termbeam 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/public/assets/{_basePickBy-CVn0rIeA.js → _basePickBy-CPjv_JEU.js} +1 -1
- package/public/assets/{_baseUniq-D-ViDZI1.js → _baseUniq-BtieUu_k.js} +1 -1
- package/public/assets/{arc-BWX7iih_.js → arc-Op_Jfgj1.js} +1 -1
- package/public/assets/architectureDiagram-Q4EWVU46-BPBC-sFg.js +36 -0
- package/public/assets/{blockDiagram-WCTKOSBZ-RZQh_7bp.js → blockDiagram-DXYQGD6D-bhrY5jZb.js} +6 -6
- package/public/assets/c4Diagram-AHTNJAMY-Bbj59C07.js +10 -0
- package/public/assets/channel-BqlgTU2z.js +1 -0
- package/public/assets/{chunk-4BX2VUAB-Cz0Sexay.js → chunk-4BX2VUAB-NTfL5dnQ.js} +1 -1
- package/public/assets/chunk-4TB4RGXK-DI71V5fB.js +206 -0
- package/public/assets/{chunk-55IACEB6-DhjD4VKO.js → chunk-55IACEB6-DErzjt0v.js} +1 -1
- package/public/assets/{chunk-KX2RTZJC-BU-NTTwY.js → chunk-EDXVE4YY-D_8mpmH-.js} +1 -1
- package/public/assets/{chunk-FMBD7UC4-H_1l13Rz.js → chunk-FMBD7UC4-DxKx7vX-.js} +1 -1
- package/public/assets/chunk-OYMX7WX6-DWu1iUFO.js +231 -0
- package/public/assets/{chunk-QZHKN3VN-CrSItx1v.js → chunk-QZHKN3VN-Cnf_5dAG.js} +1 -1
- package/public/assets/{chunk-JSJVCQXG-D_GdzPQn.js → chunk-YZCP3GAM-mW6tkOzW.js} +1 -1
- package/public/assets/classDiagram-6PBFFD2Q-BUz6cVs_.js +1 -0
- package/public/assets/classDiagram-v2-HSJHXN6E-BUz6cVs_.js +1 -0
- package/public/assets/clone-RMCUsgPf.js +1 -0
- package/public/assets/{cose-bilkent-S5V4N54A-BNYNzK1p.js → cose-bilkent-S5V4N54A-913I4PUt.js} +1 -1
- package/public/assets/{dagre-KLK3FWXG-CvP5MaIU.js → dagre-KV5264BT-BDwVAKyX.js} +2 -2
- package/public/assets/diagram-5BDNPKRD-OcJJ0e9j.js +10 -0
- package/public/assets/diagram-G4DWMVQ6-Dm20tH1B.js +24 -0
- package/public/assets/diagram-MMDJMWI5-D-cm46Bv.js +43 -0
- package/public/assets/{diagram-P4PSJMXO-D7EqFseu.js → diagram-TYMM5635-CbPn6K5D.js} +1 -1
- package/public/assets/erDiagram-SMLLAGMA-4AUfKRLi.js +85 -0
- package/public/assets/flowDiagram-DWJPFMVM-BJ4qWDVH.js +162 -0
- package/public/assets/{ganttDiagram-A5KZAMGK-C55hiPqb.js → ganttDiagram-T4ZO3ILL-_q7m5Uo2.js} +4 -4
- package/public/assets/gitGraphDiagram-UUTBAWPF-Ctcn_coL.js +106 -0
- package/public/assets/{graph-mq5DkKwp.js → graph-mh6uBCte.js} +1 -1
- package/public/assets/index-2RolNYEW.css +32 -0
- package/public/assets/index-CuJ2Kdhb.js +447 -0
- package/public/assets/{infoDiagram-LFFYTUFH-Cisyfr_w.js → infoDiagram-42DDH7IO-Cbl2ZkB4.js} +1 -1
- package/public/assets/{ishikawaDiagram-PHBUUO56-BjaKmPoV.js → ishikawaDiagram-UXIWVN3A-Buq4uztC.js} +2 -2
- package/public/assets/journeyDiagram-VCZTEJTY-CLs6SdFG.js +139 -0
- package/public/assets/{kanban-definition-K7BYSVSG-D9TVNfL2.js → kanban-definition-6JOO6SKY-CflX5gNH.js} +8 -8
- package/public/assets/{layout-DIfi_3Cg.js → layout-e9E0SnY2.js} +1 -1
- package/public/assets/{linear-CNFortHj.js → linear-Bue4Zf_D.js} +1 -1
- package/public/assets/mindmap-definition-QFDTVHPH-B8iZj3K3.js +96 -0
- package/public/assets/pieDiagram-DEJITSTG-B5dciSBP.js +30 -0
- package/public/assets/{quadrantDiagram-337W2JSQ-Dcj0avLR.js → quadrantDiagram-34T5L4WZ-CZaQCVxe.js} +1 -1
- package/public/assets/requirementDiagram-MS252O5E-2wYKQi_y.js +84 -0
- package/public/assets/{sankeyDiagram-WA2Y5GQK-CpT1bDmZ.js → sankeyDiagram-XADWPNL6-CX5Cdm9d.js} +1 -1
- package/public/assets/sequenceDiagram-FGHM5R23-BUWxC38t.js +157 -0
- package/public/assets/stateDiagram-FHFEXIEX-85EGIrQk.js +1 -0
- package/public/assets/stateDiagram-v2-QKLJ7IA2-OKhwT9tv.js +1 -0
- package/public/assets/timeline-definition-GMOUNBTQ-C3BtHzdG.js +120 -0
- package/public/assets/{vennDiagram-LZ73GAT5-Ci8AKqD1.js → vennDiagram-DHZGUBPP-Chw5is4z.js} +5 -5
- package/public/assets/wardley-RL74JXVD-FEtUMcEE.js +162 -0
- package/public/assets/wardleyDiagram-NUSXRM2D-C_sFSy0G.js +20 -0
- package/public/assets/xychartDiagram-5P7HB3ND-C9Qs21NZ.js +7 -0
- package/public/index.html +2 -2
- package/public/sw.js +2 -2
- package/src/server/index.js +5 -49
- package/src/server/routes.js +59 -72
- package/src/server/sessions.js +20 -0
- package/src/tunnel/index.js +4 -6
- package/src/utils/agent-sessions.js +210 -0
- package/src/utils/agents.js +116 -0
- package/src/utils/update-check.js +19 -0
- package/public/assets/architectureDiagram-2XIMDMQ5-Dr3bqfT2.js +0 -36
- package/public/assets/c4Diagram-IC4MRINW-BM1jg1mo.js +0 -10
- package/public/assets/channel-N7LACYfb.js +0 -1
- package/public/assets/chunk-NQ4KR5QH-_X3IQmYu.js +0 -220
- package/public/assets/chunk-WL4C6EOR-XtpH4KKr.js +0 -189
- package/public/assets/classDiagram-VBA2DB6C-Ct_F3N6M.js +0 -1
- package/public/assets/classDiagram-v2-RAHNMMFH-Ct_F3N6M.js +0 -1
- package/public/assets/clone-DfaqXUXL.js +0 -1
- package/public/assets/diagram-E7M64L7V-C1ypW2kT.js +0 -24
- package/public/assets/diagram-IFDJBPK2-CH5mcu6V.js +0 -43
- package/public/assets/erDiagram-INFDFZHY-Dc_91GQC.js +0 -70
- package/public/assets/flowDiagram-PKNHOUZH-wUw5Mjvb.js +0 -162
- package/public/assets/gitGraphDiagram-K3NZZRJ6-D3HBxR11.js +0 -65
- package/public/assets/index-BxVq7AYs.js +0 -394
- package/public/assets/index-Cpm34cTy.css +0 -32
- package/public/assets/journeyDiagram-4ABVD52K-BNP3C6Ph.js +0 -139
- package/public/assets/mindmap-definition-YRQLILUH-CfNe7W8X.js +0 -68
- package/public/assets/pieDiagram-SKSYHLDU-C3T1FeFD.js +0 -30
- package/public/assets/requirementDiagram-Z7DCOOCP-D4yTZU0p.js +0 -73
- package/public/assets/sequenceDiagram-2WXFIKYE-CPsVjHHb.js +0 -145
- package/public/assets/stateDiagram-RAJIS63D-CbB0QqSa.js +0 -1
- package/public/assets/stateDiagram-v2-FVOUBMTO-CQnYvVz1.js +0 -1
- package/public/assets/timeline-definition-YZTLITO2-Bi12ioU0.js +0 -61
- package/public/assets/treemap-KZPCXAKY-Ct-pligZ.js +0 -162
- package/public/assets/xychartDiagram-JWTSCODW-BsOGuDAL.js +0 -7
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
._backdrop_barei_1{display:flex;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);padding:1rem}._card_barei_10{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2.5rem 2rem;width:100%;max-width:360px;display:flex;flex-direction:column;align-items:center;gap:1.5rem;animation:_fade-in_barei_1 .3s ease}._logo_barei_24{font-size:1.5rem;font-weight:700;color:var(--text);display:flex;align-items:center;gap:.5rem;-webkit-user-select:none;user-select:none}._logoIcon_barei_34{font-size:1.75rem}._form_barei_38{width:100%;display:flex;flex-direction:column;gap:.75rem}._input_barei_45{width:100%;padding:.65rem .85rem;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;font-size:.95rem;outline:none;transition:border-color .15s;box-sizing:border-box}._input_barei_45:focus{border-color:var(--accent)}._button_barei_62{width:100%;padding:.65rem;background:var(--accent);color:var(--bg);border:none;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;transition:opacity .15s,transform .1s}._button_barei_62:hover:not(:disabled){opacity:.9}._button_barei_62:active:not(:disabled){transform:scale(.98)}._button_barei_62:disabled{opacity:.6;cursor:not-allowed}._error_barei_90{color:var(--danger);font-size:.85rem;text-align:center;margin:0}._banner_1u733_1{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:calc(.55rem + env(safe-area-inset-top,0px)) 1rem .55rem;background:var(--accent);color:var(--bg);font-size:.82rem;font-weight:500;animation:_slide-down_1u733_1 .25s ease}._updating_1u733_14{background:var(--accent);opacity:.9}._error_1u733_19{background:#d32f2f}._success_1u733_23{background:#2e7d32}._text_1u733_27{flex:1;text-align:center}._actionBtn_1u733_32{background:#fff3;border:1px solid rgba(255,255,255,.35);color:var(--bg);font-size:.78rem;font-weight:600;cursor:pointer;padding:.25rem .65rem;border-radius:5px;transition:background .15s,opacity .15s;white-space:nowrap}._actionBtn_1u733_32:hover{background:#ffffff59}._spinner_1u733_51{display:inline-block;animation:_spin_1u733_51 1s linear infinite}._dismiss_1u733_56{background:transparent;border:none;color:var(--bg);font-size:1rem;cursor:pointer;opacity:.7;padding:.15rem .35rem;border-radius:4px;transition:opacity .15s;line-height:1}._dismiss_1u733_56:hover{opacity:1}@keyframes _slide-down_1u733_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes _spin_1u733_51{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._banner_1tm2n_1{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:calc(.55rem + env(safe-area-inset-top,0px)) 1rem .55rem;color:#fff;font-size:.82rem;font-weight:500;animation:_slide-down_1tm2n_1 .25s ease}._warning_1tm2n_13{background:#e65100}._error_1tm2n_17{background:#d32f2f}._success_1tm2n_21{background:#2e7d32}._text_1tm2n_25{flex:1;text-align:center}._actionBtn_1tm2n_30{background:#fff3;border:1px solid rgba(255,255,255,.35);color:#fff;font-size:.78rem;font-weight:600;cursor:pointer;padding:.25rem .65rem;border-radius:5px;transition:background .15s,opacity .15s;white-space:nowrap;text-decoration:none}._actionBtn_1tm2n_30:hover{background:#ffffff59}._dismiss_1tm2n_50{background:transparent;border:none;color:#fff;font-size:1rem;cursor:pointer;opacity:.7;padding:.15rem .35rem;border-radius:4px;transition:opacity .15s;line-height:1}._dismiss_1tm2n_50:hover{opacity:1}@keyframes _slide-down_1tm2n_1{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}._wrapper_1l2xn_1{position:relative;overflow:hidden;border-radius:12px}._deleteBackground_1l2xn_7{position:absolute;top:0;right:0;bottom:0;width:80px;background:var(--danger);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:0 12px 12px 0;color:#fff;font-size:12px;font-weight:600;-webkit-user-select:none;user-select:none;cursor:pointer;border:none;padding:0;transition:background .15s}._deleteBackground_1l2xn_7:active{background:#c0392b}._card_1l2xn_34{position:relative;display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px;touch-action:pan-y;-webkit-user-select:none;user-select:none;cursor:pointer;z-index:1;transition:border-color .15s}._card_1l2xn_34:hover{border-color:var(--accent)}._topRow_1l2xn_55{display:flex;align-items:center;justify-content:space-between;gap:8px}._nameGroup_1l2xn_62{display:flex;align-items:center;gap:8px;min-width:0}._colorDot_1l2xn_69{width:10px;height:10px;border-radius:50%;flex-shrink:0}._name_1l2xn_62{font-size:17px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._pidBadge_1l2xn_85{font-size:12px;color:var(--text-secondary);background:var(--bg);padding:2px 8px;border-radius:4px;white-space:nowrap;flex-shrink:0}._detailsRow_1l2xn_96{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--text-secondary)}._detailItem_1l2xn_104{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}._detailItem_1l2xn_104 svg{flex-shrink:0}._gitRow_1l2xn_116{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px}._gitBadge_1l2xn_123{display:inline-flex;align-items:center;gap:4px;background:var(--bg);padding:2px 8px;border-radius:4px;color:var(--text-secondary);white-space:nowrap}._gitBadge_1l2xn_123 svg{flex-shrink:0}._statusClean_1l2xn_138{color:var(--success)}._statusDirty_1l2xn_142{color:var(--danger)}._connectHint_1l2xn_147{align-self:flex-end;font-size:13px;font-weight:600;color:var(--accent)}@media(pointer:coarse){._connectHint_1l2xn_147{font-size:14px}}._container_tkgsa_1{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}._breadcrumb_tkgsa_9{display:flex;align-items:center;flex-wrap:wrap;gap:.15rem;font-size:.8rem;color:var(--text-secondary);padding:.4rem .6rem;background:var(--bg);border-radius:6px;border:1px solid var(--border-subtle);min-height:2rem;flex-shrink:0}._breadcrumbSegment_tkgsa_24{background:transparent;border:none;color:var(--accent);cursor:pointer;padding:.1rem .2rem;border-radius:3px;font-size:.8rem;transition:background .1s}._breadcrumbSegment_tkgsa_24:hover{background:var(--surface)}._breadcrumbSep_tkgsa_39{color:var(--text-muted);-webkit-user-select:none;user-select:none}._list_tkgsa_44{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:.25rem;background:var(--bg);border-radius:8px;border:1px solid var(--border-subtle);margin:.5rem 0}._entry_tkgsa_58{display:flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:6px;border:none;background:transparent;color:var(--text);font-size:.82rem;cursor:pointer;text-align:left;width:100%;transition:background .1s}._entry_tkgsa_58:hover{background:var(--surface)}._entryIcon_tkgsa_78{flex-shrink:0;font-size:.9rem}._entryName_tkgsa_83{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fileEntry_tkgsa_89{color:var(--text-dim);cursor:default}._fileEntry_tkgsa_89:hover{background:transparent}._actions_tkgsa_98{display:flex;gap:.5rem;justify-content:flex-end;flex-shrink:0;padding-top:.5rem}._selectBtn_tkgsa_106{padding:.45rem 1rem;background:var(--accent);color:var(--bg);border:none;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:opacity .15s}._selectBtn_tkgsa_106:hover{opacity:.9}._selectBtn_tkgsa_106:disabled{opacity:.6;cursor:not-allowed}._cancelBtn_tkgsa_127{padding:.45rem 1rem;background:transparent;color:var(--text-secondary);border:1px solid var(--border);border-radius:8px;font-size:.85rem;cursor:pointer;transition:border-color .15s,color .15s}._cancelBtn_tkgsa_127:hover{border-color:var(--text-secondary);color:var(--text)}._loading_tkgsa_145{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-dim);font-size:.85rem}._error_tkgsa_154{color:var(--danger);font-size:.82rem;text-align:center;padding:1rem}._overlay_1tspt_1{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-bg);z-index:200;animation:_fade-in_1tspt_1 .15s ease}._content_1tspt_9{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:90%;max-width:440px;max-height:85dvh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:1.5rem;z-index:201;box-shadow:0 8px 24px #0006;animation:_fade-in_1tspt_1 .2s ease}._title_1tspt_27{font-size:1.15rem;font-weight:700;color:var(--text);margin:0 0 1.25rem}._form_1tspt_34{display:flex;flex-direction:column;gap:1rem}._field_1tspt_40{display:flex;flex-direction:column;gap:.3rem}._label_1tspt_46{font-size:.78rem;color:var(--text-secondary);font-weight:500;text-transform:uppercase;letter-spacing:.03em}._input_1tspt_54{padding:.55rem .75rem;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;font-size:.9rem;outline:none;transition:border-color .15s;width:100%;box-sizing:border-box}._input_1tspt_54:focus{border-color:var(--accent)}._select_1tspt_71{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .6rem center;padding-right:2rem}._dirRow_1tspt_81{display:flex;gap:.5rem}._dirRow_1tspt_81 ._input_1tspt_54{flex:1}._browseBtn_1tspt_90{padding:.55rem .85rem;background:var(--surface);color:var(--text-secondary);border:1px solid var(--border);border-radius:8px;font-size:.82rem;cursor:pointer;white-space:nowrap;transition:border-color .15s,color .15s}._browseBtn_1tspt_90:hover{border-color:var(--accent);color:var(--text)}._colorPicker_1tspt_109{display:flex;gap:.5rem;flex-wrap:wrap}._colorDot_1tspt_115{width:28px;height:28px;border-radius:50%;border:2px solid transparent;cursor:pointer;transition:border-color .15s,transform .1s}._colorDot_1tspt_115:hover{transform:scale(1.15)}._colorDotActive_1tspt_130{border-color:var(--text)}._actions_1tspt_134{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.5rem}._cancelBtn_1tspt_141{padding:.55rem 1rem;background:transparent;color:var(--text-secondary);border:1px solid var(--border);border-radius:8px;font-size:.88rem;cursor:pointer;transition:border-color .15s,color .15s}._cancelBtn_1tspt_141:hover{border-color:var(--text-secondary);color:var(--text)}._submitBtn_1tspt_159{min-width:100px;padding:.55rem 1.25rem;background:var(--accent);color:var(--bg);border:none;border-radius:8px;font-size:.88rem;font-weight:600;cursor:pointer;transition:opacity .15s}._submitBtn_1tspt_159:hover:not(:disabled){opacity:.9}._submitBtn_1tspt_159:disabled{opacity:.6;cursor:not-allowed}@media(pointer:coarse){._content_1tspt_9{top:30%;transform:translate(-50%,-30%)}}._page_13mh6_1{min-height:100vh;min-height:100dvh;background:var(--bg);display:flex;flex-direction:column}._page_13mh6_1:has([data-update-banner]) ._header_13mh6_11{padding-top:20px}._page_13mh6_1:has([data-update-banner]) ._headerBtn_13mh6_15{top:16px}._page_13mh6_1:has([data-update-banner]) ._themeBtn_13mh6_19{top:16px}._header_13mh6_11{position:relative;padding:calc(20px + env(safe-area-inset-top,0px)) 16px 12px;border-bottom:1px solid var(--border);text-align:center}._title_13mh6_30{font-size:22px;font-weight:700;color:var(--text);margin:0}._accent_13mh6_37{color:var(--accent)}._tagline_13mh6_41{font-size:13px;color:var(--text-secondary);margin:4px 0 0}._headerBtn_13mh6_15{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:none;border:1px solid var(--border);border-radius:8px;color:var(--text-dim);cursor:pointer;transition:border-color .15s,color .15s;padding:0}._headerBtn_13mh6_15:hover{border-color:var(--accent);color:var(--text)}._shareBtn_13mh6_71{right:96px}._refreshBtn_13mh6_75{right:56px}._themeBtn_13mh6_19{position:absolute;top:calc(16px + env(safe-area-inset-top,0px));right:16px}._themePanel_13mh6_85{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:240px;max-height:min(420px,60vh);display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:12px;z-index:1000;box-shadow:0 12px 40px #0006;animation:_themePickerFadeIn_13mh6_1 .15s ease}._themePanelHeader_13mh6_102{display:flex;align-items:center;justify-content:space-between;padding:.6rem .75rem;border-bottom:1px solid var(--border);flex-shrink:0}._themePanelTitle_13mh6_111{font-size:.85rem;font-weight:600;color:var(--text)}._themePanelClose_13mh6_117{background:none;border:none;color:var(--text-dim);font-size:.85rem;cursor:pointer;padding:.15rem .35rem;border-radius:4px;line-height:1;transition:color .15s,background .15s}._themePanelClose_13mh6_117:hover{color:var(--text);background:var(--border)}._themePanelList_13mh6_136{overflow-y:auto;padding:.35rem;flex:1}@keyframes _themePickerFadeIn_13mh6_1{0%{opacity:0}to{opacity:1}}._themeOption_13mh6_151{display:flex;align-items:center;gap:.5rem;padding:.45rem .6rem;border-radius:6px;border:none;background:transparent;color:var(--text);font-size:.82rem;cursor:pointer;width:100%;text-align:left;transition:background .1s}._themeOption_13mh6_151:hover{background:var(--bg)}._themeOptionActive_13mh6_171{color:var(--accent);font-weight:600}._themeSwatch_13mh6_176{width:14px;height:14px;border-radius:4px;border:1px solid var(--border-subtle, rgba(255, 255, 255, .1));flex-shrink:0}._themeCheck_13mh6_184{margin-left:auto;font-size:.75rem;color:var(--accent)}._content_13mh6_190{flex:1;overflow-y:auto}._sessionsList_13mh6_195{display:flex;flex-direction:column;padding:16px;padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));gap:12px}._emptyState_13mh6_203{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:4rem 1rem;color:var(--text-dim);text-align:center}._emptyIcon_13mh6_214{font-size:2.5rem;opacity:.5}._emptyText_13mh6_219{font-size:.95rem}._emptyHint_13mh6_223{font-size:.82rem;color:var(--text-muted)}._newSessionBtn_13mh6_228{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:calc(16px + env(safe-area-inset-left,0px));right:calc(16px + env(safe-area-inset-right,0px));padding:14px;background:var(--accent);color:#fff;border:none;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px #0078d44d;z-index:50;transition:transform .15s,opacity .15s;text-align:center}._newSessionBtn_13mh6_228:hover{opacity:.92}._newSessionBtn_13mh6_228:active{transform:scale(.98)}._refreshSpin_13mh6_257{animation:_spin_13mh6_1 .6s linear}@keyframes _spin_13mh6_1{to{transform:rotate(360deg)}}/**
|
|
2
|
-
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
-
* https://github.com/chjj/term.js
|
|
5
|
-
* @license MIT
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in
|
|
15
|
-
* all copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
* THE SOFTWARE.
|
|
24
|
-
*
|
|
25
|
-
* Originally forked from (with the author's permission):
|
|
26
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
-
* http://bellard.org/jslinux/
|
|
28
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
-
* The original design remains. The terminal itself
|
|
30
|
-
* has been extended to include xterm CSI codes, among
|
|
31
|
-
* other features.
|
|
32
|
-
*/.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}._pane_dc7r7_1{flex:1;position:relative;overflow:hidden;min-height:0}._terminalContainer_dc7r7_8{width:100%;height:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}._terminalContainer_dc7r7_8 .xterm-screen>*{pointer-events:none}._scrollToBottom_dc7r7_29{position:absolute;bottom:12px;right:12px;width:44px;height:44px;border-radius:50%;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:.8;transition:opacity .2s;z-index:10}._scrollToBottom_dc7r7_29:hover{opacity:1}._exitOverlay_dc7r7_53{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:var(--overlay-bg, rgba(0, 0, 0, .6));z-index:5}._exitMessage_dc7r7_63{color:var(--text-secondary);font-size:1.1rem;padding:1rem 2rem;background:var(--surface);border-radius:8px;border:1px solid var(--border)}._reconnectingBar_dc7r7_73{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.35rem 0;background:var(--surface);border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:.85rem;z-index:5;animation:_slideDown_dc7r7_1 .2s ease}@keyframes _slideDown_dc7r7_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}._reconnectingDot_dc7r7_100{width:8px;height:8px;border-radius:50%;background:var(--text-secondary);animation:_pulse_dc7r7_1 1.2s ease-in-out infinite}@keyframes _pulse_dc7r7_1{0%,to{opacity:.3}50%{opacity:1}}._reconnectOverlay_dc7r7_119{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:var(--overlay-bg, rgba(0, 0, 0, .6));z-index:5;animation:_fadeIn_dc7r7_1 .2s ease}@keyframes _fadeIn_dc7r7_1{0%{opacity:0}to{opacity:1}}._reconnectContent_dc7r7_139{display:flex;flex-direction:column;align-items:center;gap:1rem;padding:1.5rem 2rem;background:var(--surface);border-radius:12px;border:1px solid var(--border)}._reconnectMessage_dc7r7_150{color:var(--text-secondary);font-size:1.1rem}._reconnectActions_dc7r7_155{display:flex;gap:.75rem}._reconnectBtn_dc7r7_160{padding:.5rem 1.25rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.9rem;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s}._reconnectBtn_dc7r7_160:hover{background:var(--border)}._tabBar_r5aqe_1{display:flex;align-items:center;gap:2px;padding:0 8px;height:38px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;overflow:hidden}._tabBarInline_r5aqe_13{flex:1;display:flex;align-items:center;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:2px;padding:0 4px;height:100%}._tabBarInline_r5aqe_13::-webkit-scrollbar{display:none}@media(max-width:640px){._tabBar_r5aqe_1{display:none}}@media(pointer:coarse){._addBtnLabel_r5aqe_37{display:none}}._tabScroller_r5aqe_42{display:flex;align-items:center;gap:2px;overflow-x:auto;overflow-y:hidden;flex:1;min-width:0;scrollbar-width:none}._tabScroller_r5aqe_42::-webkit-scrollbar{display:none}._tab_r5aqe_1{position:relative;display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:6px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;font-size:12px;font-weight:500;color:var(--text-dim);transition:background .15s,color .15s;border-left:3px solid transparent;flex-shrink:0;height:30px;-webkit-tap-highlight-color:transparent}._tab_r5aqe_1:hover{background:var(--border);color:var(--text)}._tabActive_r5aqe_84{color:var(--text);font-weight:600;background:var(--bg)}._tabSplit_r5aqe_90{background:#0078d41a;color:var(--text)}._colorDot_r5aqe_95{width:8px;height:8px;border-radius:50%;flex-shrink:0}._tabName_r5aqe_102{max-width:100px;overflow:hidden;text-overflow:ellipsis}._tabActivity_r5aqe_108{font-size:10px;color:var(--text-muted);flex-shrink:0}._closeBtn_r5aqe_114{display:none;align-items:center;justify-content:center;background:none;border:none;width:18px;height:18px;border-radius:4px;font-size:14px;line-height:1;color:var(--text-muted);cursor:pointer;padding:0;transition:background .15s,color .15s}._tab_r5aqe_1:hover ._closeBtn_r5aqe_114,._tabActive_r5aqe_84 ._closeBtn_r5aqe_114{display:flex}._closeBtn_r5aqe_114:hover{color:var(--danger);background:transparent}._addBtn_r5aqe_37{display:flex;align-items:center;justify-content:center;gap:4px;padding:0 10px;height:28px;border-radius:6px;font-size:13px;color:var(--text-dim);flex-shrink:0;white-space:nowrap;transition:background .15s,color .15s}._addBtn_r5aqe_37:hover{background:var(--bg);color:var(--text)}._statusDot_r5aqe_165{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-left:4px}._unreadDot_r5aqe_173{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0;animation:_pulse_r5aqe_1 1.5s ease-in-out infinite}@keyframes _pulse_r5aqe_1{0%,to{opacity:1}50%{opacity:.3}}._preview_pobdq_1{position:absolute;top:100%;left:50%;transform:translate(-50%);z-index:100;margin-top:6px;padding:8px 10px;background:var(--surface);border:1px solid var(--border);border-radius:6px;box-shadow:0 4px 16px #0006;min-width:220px;max-width:360px;pointer-events:none;animation:_fade-in_pobdq_1 .15s ease-out}._lines_pobdq_19{font-family:Cascadia Code,Fira Code,Menlo,Consolas,monospace;font-size:11px;line-height:1.4;color:var(--text-secondary);white-space:pre;overflow:hidden;text-overflow:ellipsis}._empty_pobdq_29{color:var(--text-dim);font-style:italic;font-family:inherit;font-size:12px}._touchBar_g2tvp_1{position:fixed;bottom:0;left:0;right:0;z-index:50;height:calc(80px + env(safe-area-inset-bottom,0px));padding:6px 4px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px));background:var(--surface);display:flex;flex-direction:column;gap:4px;justify-content:center;user-select:none;-webkit-user-select:none;touch-action:none;overscroll-behavior:none}._row_g2tvp_21{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:0 2px}._keyBtn_g2tvp_28{min-width:0;height:34px;background:var(--key-bg);color:var(--text);border:1px solid var(--key-border);border-radius:6px;font-size:13px;font-weight:500;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 1px 0 var(--key-shadow);-webkit-tap-highlight-color:transparent;font-family:inherit;transition:background .08s}._special_g2tvp_47,._modifier_g2tvp_53{background:var(--key-special-bg);font-size:12px;font-weight:600}._modifier_g2tvp_53._active_g2tvp_59{background:var(--accent, #0078d4);box-shadow:0 1px #0003,0 0 10px #0078d480}._iconBtn_g2tvp_66{font-size:16px}._keyEnter_g2tvp_70{grid-column:span 2;background:var(--accent, #0078d4);color:#fff;font-size:20px}._keyDanger_g2tvp_77{background:#5c2222;color:#f87171}._flash_g2tvp_82{background:var(--accent, #0078d4)!important;color:#fff!important}._micBtn_g2tvp_87{transition:transform .2s ease,border-radius .2s ease,width .2s ease;position:relative}._recording_g2tvp_95{background:#dc2626!important;color:#fff!important;transform:scale(2);border-radius:50%;aspect-ratio:1;z-index:10;animation:_micRipple_g2tvp_1 1s ease-out infinite;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}._micDot_g2tvp_110{display:block;width:6px;height:6px;border-radius:50%;background:#fff;animation:_micDotBlink_g2tvp_1 1s ease-in-out infinite}._lockHint_g2tvp_119{position:absolute;bottom:calc(100% + 6px);left:50%;opacity:.7;animation:_lockHintBounce_g2tvp_1 1.2s ease-in-out infinite;filter:drop-shadow(0 1px 3px rgba(0,0,0,.4))}@keyframes _micDotBlink_g2tvp_1{0%,to{opacity:1}50%{opacity:.3}}@keyframes _lockHintBounce_g2tvp_1{0%,to{transform:translate(-50%) translateY(0);opacity:.5}50%{transform:translate(-50%) translateY(-4px);opacity:1}}._micLocked_g2tvp_150{animation:_micLockedPulse_g2tvp_1 1.5s ease-in-out infinite;transform:scale(2);border-radius:50%;aspect-ratio:1}@keyframes _micRipple_g2tvp_1{0%{box-shadow:0 0 #dc262680}70%{box-shadow:0 0 0 22px #dc262600}to{box-shadow:0 0 #dc262600}}@keyframes _micLockedPulse_g2tvp_1{0%,to{box-shadow:0 0 0 4px #dc26264d}50%{box-shadow:0 0 0 8px #dc262626}}@media(orientation:landscape)and (max-height:500px){._touchBar_g2tvp_1{height:calc(44px + env(safe-area-inset-bottom,0px));padding:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}._keyBtn_g2tvp_28{height:28px;font-size:12px}}._searchBar_1su33_1{position:absolute;top:calc(40px + env(safe-area-inset-top,0px));right:0;z-index:50;display:flex;align-items:center;gap:6px;padding:6px 12px;background:var(--surface, #1e1e2e);border-bottom:1px solid var(--border, #333);box-shadow:0 2px 8px #0000004d;animation:_slide-down_1su33_1 .15s ease}._input_1su33_16{flex:1;min-width:0;padding:6px 10px;border:1px solid var(--border, #444);border-radius:4px;background:var(--input-bg, #111);color:var(--text, #ccc);font-size:13px;outline:none;font-family:inherit}._input_1su33_16:focus{border-color:var(--accent, #4a9eff)}._btn_1su33_33{background:none;border:1px solid var(--border, #444);border-radius:4px;color:var(--text, #ccc);cursor:pointer;padding:4px 8px;font-size:13px;line-height:1}._btn_1su33_33:hover{background:var(--border, #333)}._btnActive_1su33_48{background:var(--accent, #4a9eff);color:#fff;border-color:var(--accent, #4a9eff)}._indicator_1su33_54{font-size:12px;color:var(--text-muted, #666);white-space:nowrap}@keyframes _slide-down_1su33_1{0%{transform:translateY(-100%)}to{transform:translateY(0)}}._overlay_153fc_1{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-bg);z-index:200;animation:_fadeIn_153fc_1 .15s ease-out}._content_153fc_9{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:24px;width:min(380px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;z-index:201;animation:_slideUp_153fc_1 .15s ease-out}._title_153fc_25{font-size:1.1rem;font-weight:600;color:var(--text);margin:0 0 8px}._description_153fc_32{font-size:.85rem;color:var(--text-secondary);margin:0 0 20px}._label_153fc_38{display:block;font-size:.8rem;color:var(--text-secondary);margin-bottom:6px}._input_153fc_45{width:100%;padding:10px 12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:1rem;font-family:inherit;outline:none;box-sizing:border-box}._input_153fc_45:focus{border-color:var(--accent)}._input_153fc_45::-webkit-inner-spin-button,._input_153fc_45::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._input_153fc_45[type=number]{-moz-appearance:textfield}._actions_153fc_73{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}._cancelBtn_153fc_80{padding:8px 16px;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text-secondary);cursor:pointer;font-size:.9rem;transition:border-color .15s}._cancelBtn_153fc_80:hover{border-color:var(--text-secondary)}._openBtn_153fc_95{padding:8px 20px;background:var(--accent);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .15s}._openBtn_153fc_95:hover:not(:disabled){background:var(--accent-hover)}._openBtn_153fc_95:disabled{opacity:.5;cursor:not-allowed}._close_153fc_116{position:absolute;top:12px;right:12px;background:none;border:none;color:var(--text-dim);cursor:pointer;font-size:1.2rem;line-height:1;padding:4px}._close_153fc_116:hover{color:var(--text)}@media(pointer:coarse){._content_153fc_9{top:30%;transform:translate(-50%,-30%)}}@keyframes _fadeIn_153fc_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_153fc_1{0%{opacity:0;transform:translate(-50%,-48%)}to{opacity:1;transform:translate(-50%,-50%)}}._backdrop_srwzw_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;background:#0006}._panel_srwzw_8{position:fixed;top:0;right:-100%;width:min(90vw,300px);height:100%;background:var(--bg, #1e1e2e);border-left:1px solid var(--border, #333);z-index:301;box-shadow:0 8px 24px #0006;display:flex;flex-direction:column;transition:right .25s ease}._panelOpen_srwzw_23{right:0}._header_srwzw_27{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--border, #333)}._title_srwzw_36{font-weight:600;font-size:14px;color:var(--text, #ccc)}._closeBtn_srwzw_42{background:none;border:none;color:var(--text, #999);cursor:pointer;font-size:18px;padding:4px 8px;border-radius:4px;line-height:1}._closeBtn_srwzw_42:hover{background:var(--border, #333)}._body_srwzw_57{overflow-y:auto;flex:1;padding:8px}._section_srwzw_63{margin-bottom:8px}._sectionTitle_srwzw_67{font-size:10px;font-weight:700;color:var(--text-muted, #666);text-transform:uppercase;letter-spacing:1px;padding:6px 10px 4px}._btn_srwzw_76{display:flex;align-items:center;gap:10px;width:100%;background:none;border:none;color:var(--text, #ccc);padding:10px 12px;border-radius:6px;font-size:13px;cursor:pointer;transition:background .15s}._btn_srwzw_76:hover{background:var(--surface-hover, rgba(255, 255, 255, .08))}._btn_srwzw_76 svg{width:16px;height:16px;opacity:.7;flex-shrink:0}._themeBackdrop_srwzw_103{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999}._themeFloating_srwzw_109{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:240px;max-height:min(420px,60vh);display:flex;flex-direction:column;background:var(--surface, #252526);border:1px solid var(--border, #333);border-radius:12px;z-index:1000;box-shadow:0 12px 40px #0006}._list_srwzw_125{flex:1;overflow-y:auto;padding:8px}._item_srwzw_131{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:6px;cursor:pointer;color:var(--text, #ccc);font-size:13px;border:none;background:none;width:100%;text-align:left;transition:background .15s}._item_srwzw_131:hover,._item_srwzw_131[data-selected=true],._item_srwzw_131[aria-selected=true]{background:var(--surface-hover, rgba(255, 255, 255, .08))}._container_tuvxq_1{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}._header_tuvxq_9{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}._backBtn_tuvxq_18{background:none;border:none;color:var(--text-dim);width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;padding:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._backBtn_tuvxq_18:hover{background:var(--border);color:var(--text)}._headerTitle_tuvxq_43{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);flex:1}._breadcrumb_tuvxq_52{display:flex;align-items:center;flex-wrap:wrap;gap:.15rem;font-size:.75rem;color:var(--text-secondary);padding:6px 10px;background:var(--bg);border-bottom:1px solid var(--border);min-height:1.8rem;flex-shrink:0}._breadcrumbSegment_tuvxq_66{background:transparent;border:none;color:var(--accent);cursor:pointer;padding:.1rem .2rem;border-radius:3px;font-size:.75rem;transition:background .1s}._breadcrumbSegment_tuvxq_66:hover{background:var(--surface)}._breadcrumbCurrent_tuvxq_81{color:var(--text);cursor:default}._breadcrumbCurrent_tuvxq_81:hover{background:transparent}._breadcrumbSep_tuvxq_91{color:var(--text-muted);-webkit-user-select:none;user-select:none}._list_tuvxq_96{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1px;padding:4px;-webkit-overflow-scrolling:touch}._entry_tuvxq_107{display:flex;align-items:center;gap:.5rem;padding:6px 8px;border-radius:6px;border:none;background:transparent;color:var(--text);font-size:.82rem;cursor:pointer;text-align:left;width:100%;transition:background .1s;-webkit-tap-highlight-color:transparent}._entry_tuvxq_107:hover{background:var(--surface)}._entryIcon_tuvxq_128{flex-shrink:0;font-size:.9rem}._entryName_tuvxq_133{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button._entryName_tuvxq_133{background:none;border:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}._entryMeta_tuvxq_150{font-size:.7rem;color:var(--text-muted);flex-shrink:0;white-space:nowrap}._downloadBtn_tuvxq_157{background:none;border:none;color:var(--text-muted);cursor:pointer;padding:2px 4px;border-radius:4px;font-size:.8rem;flex-shrink:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._downloadBtn_tuvxq_157:hover{background:var(--accent);color:var(--bg)}._loading_tuvxq_177{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-dim);font-size:.85rem}._error_tuvxq_186{color:var(--danger);font-size:.82rem;text-align:center;padding:1rem}._empty_tuvxq_193{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-muted);font-size:.85rem;font-style:italic}._confirmBar_tuvxq_204{border-top:1px solid var(--border);padding:10px 12px;flex-shrink:0;background:var(--surface)}._confirmText_tuvxq_211{font-size:.8rem;color:var(--text);display:block;margin-bottom:8px;word-break:break-word}._confirmActions_tuvxq_219{display:flex;gap:8px;justify-content:flex-end}._confirmCancel_tuvxq_225,._confirmOk_tuvxq_226{border:none;border-radius:6px;padding:6px 16px;font-size:.8rem;font-weight:600;cursor:pointer;transition:background .15s;-webkit-tap-highlight-color:transparent}._confirmCancel_tuvxq_225{background:var(--border);color:var(--text)}._confirmCancel_tuvxq_225:hover{background:var(--text-muted)}._confirmOk_tuvxq_226{background:var(--accent);color:var(--bg)}._confirmOk_tuvxq_226:hover{opacity:.85}._progressWrapper_tuvxq_255{position:relative;height:24px;background:var(--bg);border-radius:6px;overflow:hidden}._progressBar_tuvxq_263{position:absolute;top:0;left:0;height:100%;background:var(--accent);border-radius:6px;transition:width .15s ease}._progressLabel_tuvxq_273{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:600;color:var(--text);z-index:1}._backdrop_qbamv_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:var(--overlay-bg);animation:_fade-in_qbamv_1 .2s ease-out}._backdrop_qbamv_1[data-closing=true]{animation:_fade-out_qbamv_1 .2s ease-in forwards}._panel_qbamv_13{position:fixed;top:0;left:0;bottom:0;z-index:201;width:min(85vw,380px);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 4px 12px #0000004d;animation:_slide-in-left_qbamv_1 .25s ease-out}._panel_qbamv_13[data-closing=true]{animation:_slide-out-left_qbamv_1 .2s ease-in forwards}._header_qbamv_38{display:flex;flex-direction:column;padding:16px 14px 12px;border-bottom:1px solid var(--border);position:relative}._brand_qbamv_46{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--text)}._brand_qbamv_46 svg{flex-shrink:0;color:var(--accent)}._version_qbamv_61{font-size:11px;color:var(--text-muted);font-weight:400;margin-top:2px;padding-left:28px}._closeBtn_qbamv_69{position:absolute;top:14px;right:10px;background:none;border:none;color:var(--text-dim);width:30px;height:30px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._closeBtn_qbamv_69:hover{background:var(--border);color:var(--text)}._sectionTitle_qbamv_97{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);padding:10px 14px 4px}._list_qbamv_108{flex:1 1 0;min-height:0;overflow-y:auto;padding:8px;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:6px}._card_qbamv_121{background:var(--bg);border:1px solid var(--border);border-radius:10px;cursor:pointer;overflow:hidden;flex-shrink:0;transition:background .15s,border-color .15s;-webkit-tap-highlight-color:transparent}._card_qbamv_121:hover{border-color:var(--accent)}._cardActive_qbamv_138{border-color:var(--accent);border-width:2px}._cardHeader_qbamv_145{display:flex;align-items:center;gap:8px;padding:10px 12px 6px}._cardDot_qbamv_152{width:10px;height:10px;border-radius:50%;flex-shrink:0}._cardName_qbamv_159{font-size:13px;font-weight:600;color:var(--text);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._cardStatus_qbamv_169{width:7px;height:7px;border-radius:50%;flex-shrink:0}._cardClose_qbamv_176{background:none;border:none;color:var(--text-muted);width:26px;height:26px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;padding:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._cardClose_qbamv_176:hover{background:var(--danger);color:#fff}._cardMeta_qbamv_203{padding:0 12px 4px;font-size:10px;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._cardGit_qbamv_214{display:flex;flex-wrap:wrap;gap:3px 6px;padding:0 12px 4px;font-size:10px;color:var(--text-secondary);align-items:center}._gitBadge_qbamv_224{display:inline-flex;align-items:center;gap:3px;background:var(--surface);padding:1px 6px;border-radius:3px}._gitClean_qbamv_233{color:var(--success)}._gitDirty_qbamv_237{color:#fbbf24}._cardPreview_qbamv_243{margin:0 8px 8px;padding:6px 8px;background:var(--surface);border-radius:6px;font-family:NerdFont,JetBrains Mono,monospace;font-size:9px;line-height:1.3;color:var(--text-secondary);white-space:pre;overflow:hidden;max-height:72px;-webkit-text-size-adjust:none}._cardPreviewEmpty_qbamv_258{font-style:italic;color:var(--text-muted);text-align:center;font-family:inherit;font-size:11px;white-space:normal}._footer_qbamv_269{padding:8px;border-top:1px solid var(--border)}._footerRow_qbamv_274{display:flex;gap:6px}._footerBtn_qbamv_279{flex:1;padding:10px;border:1px dashed var(--border);border-radius:8px;background:none;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:background .15s;-webkit-tap-highlight-color:transparent}._footerBtn_qbamv_279:hover{background:var(--bg)}._footerBtn_qbamv_279:active{transform:scale(.98)}._footerBtn_qbamv_279:disabled{opacity:.4;cursor:not-allowed}._footerBtn_qbamv_279:disabled:hover{background:none}._newBtn_qbamv_314{width:100%;padding:10px;border:1px dashed var(--border);border-radius:8px;background:none;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:background .15s}._newBtn_qbamv_314:hover{background:var(--bg)}._newBtn_qbamv_314:active{transform:scale(.98)}._unreadDot_qbamv_339{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0;animation:_pulse_qbamv_1 1.5s ease-in-out infinite}@keyframes _pulse_qbamv_1{0%,to{opacity:1}50%{opacity:.3}}@keyframes _slide-in-left_qbamv_1{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes _slide-out-left_qbamv_1{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes _fade-in_qbamv_1{0%{opacity:0}to{opacity:1}}@keyframes _fade-out_qbamv_1{0%{opacity:1}to{opacity:0}}._container_klxy3_1{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}._header_klxy3_9{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}._backBtn_klxy3_18{background:none;border:none;color:var(--text-dim);width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;padding:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._backBtn_klxy3_18:hover{background:var(--border);color:var(--text)}._fileName_klxy3_43{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._zoomReset_klxy3_55{background:var(--surface);border:1px solid var(--border);color:var(--text-muted);font-size:10px;font-weight:600;padding:2px 8px;border-radius:4px;cursor:pointer;flex-shrink:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._zoomReset_klxy3_55:hover{background:var(--border);color:var(--text)}._content_klxy3_76{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;position:relative}._spacer_klxy3_84{pointer-events:none}._loading_klxy3_88{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-dim);font-size:.85rem}._error_klxy3_97{color:var(--danger);font-size:.82rem;text-align:center;padding:1rem}._markdown_klxy3_105{padding:16px 20px;font-size:.88rem;line-height:1.65;color:var(--text);word-wrap:break-word;overflow-wrap:break-word}._markdown_klxy3_105 h1,._markdown_klxy3_105 h2,._markdown_klxy3_105 h3,._markdown_klxy3_105 h4,._markdown_klxy3_105 h5,._markdown_klxy3_105 h6{color:var(--text);margin-top:1.4em;margin-bottom:.6em;font-weight:600;line-height:1.3}._markdown_klxy3_105 h1{font-size:1.5em;padding-bottom:.3em;border-bottom:1px solid var(--border)}._markdown_klxy3_105 h2{font-size:1.25em;padding-bottom:.25em;border-bottom:1px solid var(--border)}._markdown_klxy3_105 h3{font-size:1.1em}._markdown_klxy3_105 h4{font-size:1em}._markdown_klxy3_105 h5,._markdown_klxy3_105 h6{font-size:.9em;color:var(--text-muted)}._markdown_klxy3_105 p{margin:0 0 1em}._markdown_klxy3_105 a{color:var(--accent);text-decoration:none}._markdown_klxy3_105 a:hover{text-decoration:underline}._markdown_klxy3_105 ul,._markdown_klxy3_105 ol{margin:0 0 1em;padding-left:1.5em}._markdown_klxy3_105 li{margin-bottom:.25em}._markdown_klxy3_105 li>ul,._markdown_klxy3_105 li>ol{margin-bottom:0}._markdown_klxy3_105 blockquote{margin:0 0 1em;padding:.5em 1em;border-left:3px solid var(--accent);background:var(--surface);color:var(--text-muted);border-radius:0 4px 4px 0}._markdown_klxy3_105 blockquote p:last-child{margin-bottom:0}._markdown_klxy3_105 code{font-family:SF Mono,Fira Code,Cascadia Code,Menlo,monospace;font-size:.85em;background:var(--surface);padding:.15em .4em;border-radius:4px;color:var(--text)}._markdown_klxy3_105 pre{margin:0 0 1em;padding:12px 16px;background:var(--bg);border:1px solid var(--border);border-radius:6px;overflow-x:auto;-webkit-overflow-scrolling:touch}._markdown_klxy3_105 pre code{background:none;padding:0;border-radius:0;font-size:.82em;line-height:1.5}._markdown_klxy3_105 img{max-width:100%;border-radius:6px}._markdown_klxy3_105 hr{border:none;border-top:1px solid var(--border);margin:1.5em 0}._markdown_klxy3_105 table{width:100%;border-collapse:collapse;margin:0 0 1em;font-size:.85em}._markdown_klxy3_105 th,._markdown_klxy3_105 td{padding:6px 12px;border:1px solid var(--border);text-align:left}._markdown_klxy3_105 th{background:var(--surface);font-weight:600;color:var(--text)}._markdown_klxy3_105 tr:nth-child(2n){background:var(--surface)}._markdown_klxy3_105 input[type=checkbox]{margin-right:.4em}._markdown_klxy3_105 del{color:var(--text-muted)}._mermaid_klxy3_265{display:flex;justify-content:center;margin:1em 0;overflow-x:auto;-webkit-overflow-scrolling:touch}._mermaid_klxy3_265 svg{max-width:100%;height:auto}._markdown_klxy3_105 details{margin:.5em 0;padding:.5em 1em;background:var(--surface);border:1px solid var(--border);border-radius:6px}._markdown_klxy3_105 summary{cursor:pointer;font-weight:600;color:var(--text)}._markdown_klxy3_105 kbd{display:inline-block;padding:2px 6px;font-size:.8em;font-family:SF Mono,Fira Code,monospace;background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:0 1px 0 var(--border)}._markdown_klxy3_105 sup,._markdown_klxy3_105 sub{font-size:.75em}._markdown_klxy3_105 figure{margin:1em 0;text-align:center}._markdown_klxy3_105 figcaption{font-size:.8em;color:var(--text-muted);margin-top:.5em}._markdown_klxy3_105 video,._markdown_klxy3_105 iframe{max-width:100%;border-radius:6px}._container_e649y_1{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}._header_e649y_9{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid var(--border);flex-shrink:0}._backBtn_e649y_18{background:none;border:none;color:var(--text-dim);width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;padding:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._backBtn_e649y_18:hover{background:var(--border);color:var(--text)}._headerTitle_e649y_43{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);flex:1}._breadcrumb_e649y_52{display:flex;align-items:center;flex-wrap:wrap;gap:.15rem;font-size:.75rem;color:var(--text-secondary);padding:6px 10px;background:var(--bg);border-bottom:1px solid var(--border);min-height:1.8rem;flex-shrink:0}._breadcrumbSegment_e649y_66{background:transparent;border:none;color:var(--accent);cursor:pointer;padding:.1rem .2rem;border-radius:3px;font-size:.75rem;transition:background .1s}._breadcrumbSegment_e649y_66:hover{background:var(--surface)}._breadcrumbCurrent_e649y_81{color:var(--text);cursor:default}._breadcrumbCurrent_e649y_81:hover{background:transparent}._breadcrumbSep_e649y_91{color:var(--text-muted);-webkit-user-select:none;user-select:none}._list_e649y_96{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:1px;padding:4px;-webkit-overflow-scrolling:touch}._entry_e649y_107{display:flex;align-items:center;gap:.5rem;padding:6px 8px;border-radius:6px;border:none;background:transparent;color:var(--text);font-size:.82rem;cursor:pointer;text-align:left;width:100%;transition:background .1s;-webkit-tap-highlight-color:transparent}._entry_e649y_107:hover{background:var(--surface)}._entryIcon_e649y_128{flex-shrink:0;font-size:.9rem}._entryName_e649y_133{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._entryMeta_e649y_140{font-size:.7rem;color:var(--text-muted);flex-shrink:0;white-space:nowrap}._loading_e649y_147{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-dim);font-size:.85rem}._error_e649y_156{color:var(--danger);font-size:.82rem;text-align:center;padding:1rem}._empty_e649y_163{display:flex;align-items:center;justify-content:center;padding:2rem;color:var(--text-muted);font-size:.85rem;font-style:italic}._gutter_jt27z_1{display:flex;flex-direction:column;flex-shrink:0;min-width:180px;max-width:240px;border-right:1px solid var(--border);overflow:hidden;-webkit-user-select:none;user-select:none;font-family:Menlo,Monaco,Courier New,monospace;font-size:11px;line-height:1.5;background:var(--bg)}._line_jt27z_16{display:flex;align-items:baseline;padding:0 8px 0 10px;white-space:nowrap;cursor:default;min-height:1.5em;position:relative}._line_jt27z_16:first-child{padding-top:12px}._line_jt27z_16:last-child{padding-bottom:12px}._lineEven_jt27z_34{background:#ffffff05}._lineOdd_jt27z_39{background:transparent}._annotation_jt27z_44{display:flex;align-items:baseline;gap:6px;overflow:hidden}._hash_jt27z_55{color:var(--accent, #61afef);font-size:10px;flex-shrink:0;cursor:pointer}._hash_jt27z_55:hover{text-decoration:underline}._author_jt27z_66{color:var(--text-dim, #888);font-size:10px;overflow:hidden;text-overflow:ellipsis;max-width:80px;flex-shrink:1}._date_jt27z_75{color:var(--text-dim, #666);font-size:10px;flex-shrink:0;margin-left:auto}._uncommitted_jt27z_82{color:var(--text-dim, #666);font-size:10px;font-style:italic}._tooltip_jt27z_88{position:absolute;left:100%;top:0;margin-left:8px;z-index:100;background:var(--surface, #2d2d2d);border:1px solid var(--border);border-radius:6px;padding:8px 12px;min-width:200px;max-width:320px;box-shadow:0 4px 12px #0006;pointer-events:none}._tooltipHash_jt27z_104{color:var(--accent, #61afef);font-size:.75rem;font-weight:600;margin-bottom:4px}._tooltipSubject_jt27z_111{color:var(--text);font-size:.78rem;margin-bottom:4px;word-wrap:break-word;white-space:normal}._tooltipMeta_jt27z_119{color:var(--text-dim, #888);font-size:.7rem}._wrapper_1vsfc_1{display:flex;flex:1;min-height:0;overflow:hidden}._container_1vsfc_8{display:flex;flex:1;overflow:auto;background:var(--bg);font-family:Menlo,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;-webkit-overflow-scrolling:touch;touch-action:manipulation;min-height:0}._blameLoading_1vsfc_21{display:flex;align-items:flex-start;justify-content:center;min-width:180px;max-width:240px;padding:16px 12px;border-right:1px solid var(--border);color:var(--text-dim, #888);font-size:.75rem;font-style:italic}._table_1vsfc_34{display:table;min-width:100%}._row_1vsfc_39{display:table-row}._lineNumber_1vsfc_43{display:table-cell;position:sticky;left:0;padding:0 12px 0 16px;min-width:3ch;text-align:right;-webkit-user-select:none;user-select:none;color:var(--text-dim, #666);background:var(--bg);border-right:1px solid var(--border);z-index:1;white-space:nowrap}._lineContent_1vsfc_58{display:table-cell;padding:0 16px;white-space:pre;-moz-tab-size:4;tab-size:4;color:var(--text)}._table_1vsfc_34 ._row_1vsfc_39:first-child ._lineNumber_1vsfc_43,._table_1vsfc_34 ._row_1vsfc_39:first-child ._lineContent_1vsfc_58{padding-top:12px}._table_1vsfc_34 ._row_1vsfc_39:last-child ._lineNumber_1vsfc_43,._table_1vsfc_34 ._row_1vsfc_39:last-child ._lineContent_1vsfc_58{padding-bottom:12px}._lineContent_1vsfc_58 .hljs{background:transparent!important;padding:0!important;color:inherit}._empty_1vsfc_83{display:flex;align-items:center;justify-content:center;flex:1;color:var(--text-dim, #888);font-style:italic}._lineContent_1vsfc_58 .hljs-keyword,._lineContent_1vsfc_58 .hljs-selector-tag,._lineContent_1vsfc_58 .hljs-built_in{color:var(--syntax-keyword, #c678dd)}._lineContent_1vsfc_58 .hljs-string,._lineContent_1vsfc_58 .hljs-attr{color:var(--syntax-string, #98c379)}._lineContent_1vsfc_58 .hljs-number,._lineContent_1vsfc_58 .hljs-literal{color:var(--syntax-number, #d19a66)}._lineContent_1vsfc_58 .hljs-comment,._lineContent_1vsfc_58 .hljs-doctag{color:var(--syntax-comment, #7f848e);font-style:italic}._lineContent_1vsfc_58 .hljs-function,._lineContent_1vsfc_58 .hljs-title{color:var(--syntax-function, #61afef)}._lineContent_1vsfc_58 .hljs-variable,._lineContent_1vsfc_58 .hljs-template-variable{color:var(--syntax-variable, #e06c75)}._lineContent_1vsfc_58 .hljs-type,._lineContent_1vsfc_58 .hljs-class{color:var(--syntax-type, #e5c07b)}._lineContent_1vsfc_58 .hljs-meta,._lineContent_1vsfc_58 .hljs-tag{color:var(--syntax-meta, #abb2bf)}._container_1jhju_1{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;flex:1;min-width:0;scrollbar-width:thin}._node_1jhju_11{display:flex;align-items:center;gap:4px;width:100%;padding:3px 12px;border:none;background:transparent;color:var(--text);font-size:.82rem;font-family:Menlo,Monaco,Courier New,monospace;cursor:pointer;text-align:left;white-space:nowrap;transition:background .1s}._node_1jhju_11:hover{background:var(--bg-hover, rgba(255, 255, 255, .05))}._active_1jhju_32{background:var(--accent-dim, rgba(var(--accent-rgb, 130, 120, 255), .15));color:var(--accent)}._chevron_1jhju_37{flex-shrink:0;width:.8em;font-size:.75em;text-align:center;color:var(--text-dim, #888)}._fileIcon_1jhju_45{flex-shrink:0;width:16px;height:16px;object-fit:contain}._name_1jhju_52{overflow:hidden;text-overflow:ellipsis}._loading_1jhju_57,._empty_1jhju_58{padding:24px 16px;color:var(--text-dim, #888);font-size:.85rem;text-align:center;font-style:italic}._searchBox_1jhju_67{display:flex;align-items:center;padding:6px 8px;border-bottom:1px solid var(--border);gap:6px;flex-shrink:0}._searchInput_1jhju_76{flex:1;min-width:0;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:4px 8px;color:var(--text);font-size:.8rem;font-family:inherit;outline:none}._searchInput_1jhju_76:focus{border-color:var(--accent)}._searchInput_1jhju_76::placeholder{color:var(--text-dim, #888)}._searchClear_1jhju_97{background:none;border:none;color:var(--text-dim, #888);cursor:pointer;padding:2px 6px;font-size:.8rem;border-radius:3px}._searchClear_1jhju_97:hover{color:var(--text);background:var(--bg-hover, rgba(255, 255, 255, .05))}._searchResult_1jhju_112{display:flex;align-items:center;gap:6px;width:100%;padding:4px 12px;border:none;background:transparent;color:var(--text);font-size:.8rem;font-family:Menlo,Monaco,Courier New,monospace;cursor:pointer;text-align:left;white-space:nowrap;transition:background .1s}._searchResult_1jhju_112:hover{background:var(--bg-hover, rgba(255, 255, 255, .05))}._searchResultPath_1jhju_133{color:var(--text-dim, #888);font-size:.72rem;overflow:hidden;text-overflow:ellipsis}._highlight_1jhju_140{background:rgba(var(--accent-rgb, 130, 120, 255),.3);color:inherit;border-radius:2px}._tabBar_1rsoo_1{display:flex;justify-content:flex-start;overflow-x:auto;background:var(--bg-secondary, var(--bg));border-bottom:1px solid var(--border);flex-shrink:0;scrollbar-width:thin}._tab_1rsoo_1{display:flex;align-items:center;gap:6px;padding:6px 12px;border:none;border-right:1px solid var(--border);background:transparent;color:var(--text-dim, #888);font-size:.8rem;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s;flex-shrink:0}._tab_1rsoo_1:hover{background:var(--bg-hover, rgba(255, 255, 255, .05));color:var(--text)}._active_1rsoo_34{background:var(--bg);color:var(--text);border-bottom:2px solid var(--accent)}._tabName_1rsoo_40{font-family:Menlo,Monaco,Courier New,monospace;font-size:.78rem}._closeBtn_1rsoo_45{border:none;background:none;color:inherit;cursor:pointer;font-size:.7rem;opacity:.5;padding:2px 4px;border-radius:3px;line-height:1;transition:opacity .15s,background .15s}._closeBtn_1rsoo_45:hover{opacity:1;background:#ffffff1a}._container_d041i_1{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;flex:1;min-width:0;scrollbar-width:thin}._section_d041i_11{border-bottom:1px solid var(--border)}._sectionHeader_d041i_15{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-dim, #888);background:var(--surface, #252526);cursor:default;-webkit-user-select:none;user-select:none}._badge_d041i_30{font-size:.7rem;background:#ffffff1a;padding:1px 6px;border-radius:8px;font-weight:400}._fileItem_d041i_38{display:flex;align-items:center;gap:6px;width:100%;padding:3px 12px 3px 20px;border:none;background:transparent;color:var(--text);font-size:.82rem;font-family:Menlo,Monaco,Courier New,monospace;cursor:pointer;text-align:left;white-space:nowrap;transition:background .1s}._fileItem_d041i_38:hover{background:var(--bg-hover, rgba(255, 255, 255, .05))}._fileItemActive_d041i_59{background:var(--accent-dim, rgba(var(--accent-rgb, 130, 120, 255), .15));color:var(--accent)}._statusBadge_d041i_64{flex-shrink:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;border-radius:3px}._statusM_d041i_76{color:#e2c08d}._statusA_d041i_80{color:#73c991}._statusD_d041i_84{color:#e06c75}._statusR_d041i_88{color:#61afef}._statusU_d041i_92{color:#888}._fileName_d041i_96{overflow:hidden;text-overflow:ellipsis;flex:1}._footer_d041i_102{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:.75rem;color:var(--text-dim, #888);border-top:1px solid var(--border);flex-shrink:0}._additions_d041i_113{color:#73c991}._deletions_d041i_117{color:#e06c75}._refreshBtn_d041i_121{background:none;border:none;color:var(--text-dim, #888);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:.8rem;transition:background .15s,color .15s}._refreshBtn_d041i_121:hover{background:var(--bg-hover, rgba(255, 255, 255, .05));color:var(--text)}._refreshBtn_d041i_121:disabled{opacity:.5;cursor:not-allowed}._loading_d041i_144{padding:24px 16px;color:var(--text-dim, #888);font-size:.85rem;text-align:center;font-style:italic}._skeleton_d041i_152{padding:8px 20px;display:flex;flex-direction:column;gap:8px}._skeletonLine_d041i_159{height:18px;background:#ffffff0f;border-radius:4px;animation:_pulse_d041i_1 1.5s ease-in-out infinite}@keyframes _pulse_d041i_1{0%,to{opacity:.4}50%{opacity:.8}}._empty_d041i_176{padding:24px 16px;color:var(--text-dim, #888);font-size:.82rem;text-align:center}._emptyIcon_d041i_183{font-size:1.8rem;margin-bottom:8px;opacity:.5}._notGit_d041i_189{padding:24px 16px;color:var(--text-dim, #888);font-size:.82rem;text-align:center}._branchInfo_d041i_196{display:flex;align-items:center;gap:6px;padding:6px 12px;font-size:.75rem;color:var(--text-dim, #888);border-bottom:1px solid var(--border);flex-shrink:0}._branchName_d041i_207{color:var(--text);font-weight:500}._syncInfo_d041i_212{font-size:.7rem;opacity:.7}._container_17gq1_1{display:flex;flex-direction:column;flex:1;overflow:auto;background:var(--bg);font-family:Menlo,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;-webkit-overflow-scrolling:touch;min-height:0}._header_17gq1_14{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--surface, #252526);border-bottom:1px solid var(--border);flex-shrink:0;gap:12px}._fileName_17gq1_25{font-size:.85rem;font-weight:500;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}._stats_17gq1_35{display:flex;align-items:center;gap:10px;font-size:.78rem;flex-shrink:0}._additions_17gq1_43{color:#73c991}._deletions_17gq1_47{color:#e06c75}._newFile_17gq1_51{color:#73c991;font-style:italic}._stagedToggle_17gq1_56{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-dim, #888);flex-shrink:0}._stagedToggle_17gq1_56 label{cursor:pointer;-webkit-user-select:none;user-select:none}._stagedToggle_17gq1_56 input{margin:0;cursor:pointer}._toggleBtn_17gq1_75{padding:2px 8px;border:1px solid var(--border, #444);border-radius:4px;background:transparent;color:var(--text-dim, #888);font-size:.75rem;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .15s,color .15s}._toggleBtn_17gq1_75:hover{background:var(--surface, #252526);color:var(--text)}._toggleBtnActive_17gq1_95{background:#388bfd33;color:var(--text);border-color:#388bfd80}._toggleBtn_17gq1_75:disabled{opacity:.5;cursor:default}._table_17gq1_106{min-width:100%;width:fit-content}._hunkHeader_17gq1_111{display:flex;width:100%;min-width:fit-content;padding:6px 16px;color:var(--text-dim, #888);background:#388bfd26;font-size:.8rem;font-style:italic;-webkit-user-select:none;user-select:none;box-sizing:border-box}._row_17gq1_124{display:flex;width:100%;min-width:fit-content;line-height:1.5}._lineNumOld_17gq1_131,._lineNumNew_17gq1_132{flex:0 0 4.5ch;padding:0 6px;text-align:right;-webkit-user-select:none;user-select:none;color:var(--text-dim, #555);border-right:1px solid var(--border);white-space:nowrap;font-size:.85em;box-sizing:border-box}._lineNumOld_17gq1_131{padding-left:8px}._lineContent_17gq1_148{flex:1;padding:0 12px;white-space:pre;-moz-tab-size:4;tab-size:4;color:var(--text);min-width:0}._linePrefix_17gq1_157{display:inline;-webkit-user-select:none;user-select:none;opacity:.6;margin-right:4px}._rowAdd_17gq1_164 ._lineNumOld_17gq1_131,._rowAdd_17gq1_164 ._lineNumNew_17gq1_132{background:#23863633}._rowAdd_17gq1_164 ._lineContent_17gq1_148{background:#2386364d}._rowRemove_17gq1_177 ._lineNumOld_17gq1_131,._rowRemove_17gq1_177 ._lineNumNew_17gq1_132{background:#da363333}._rowRemove_17gq1_177 ._lineContent_17gq1_148{background:#da36334d}._binary_17gq1_194{display:flex;align-items:center;justify-content:center;flex:1;color:var(--text-dim, #888);font-style:italic;padding:32px}._empty_17gq1_204{display:flex;align-items:center;justify-content:center;flex:1;color:var(--text-dim, #888);font-style:italic}._page_17pak_1{display:flex;flex-direction:column;height:100dvh;overflow:hidden;background:var(--bg);color:var(--text);padding-top:env(safe-area-inset-top,0px);padding-right:env(safe-area-inset-right,0px)}._topBar_17pak_13{display:flex;align-items:center;height:44px;padding:0 4px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0;gap:0}._menuBtn_17pak_24{background:none;border:none;color:var(--text);cursor:pointer;padding:6px 10px;border-radius:6px;font-size:1.2rem;line-height:1;flex-shrink:0}._menuBtn_17pak_24:hover{background:var(--bg)}._tabsWrapper_17pak_40{flex:1;min-width:0;overflow:hidden}._backLink_17pak_46{display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--text-secondary, var(--text));cursor:pointer;padding:6px 10px;border-radius:6px;font-size:1rem;text-decoration:none;flex-shrink:0;opacity:.7;transition:opacity .15s}._backLink_17pak_46:hover{opacity:1;background:var(--bg)}._toolBtn_17pak_68{background:none;border:none;color:var(--text-dim, #888);cursor:pointer;padding:4px 8px;border-radius:5px;font-size:.85rem;flex-shrink:0;transition:background .15s,color .15s}._toolBtn_17pak_68:hover{background:var(--bg);color:var(--text)}._toolBtnActive_17pak_87{color:var(--accent);background:rgba(var(--accent-rgb, 130, 120, 255),.12)}._body_17pak_92{display:flex;flex:1;min-height:0;overflow:hidden}._sidebar_17pak_99{width:240px;min-width:180px;border-right:1px solid var(--border);display:flex;flex-direction:column;background:var(--bg);overflow:hidden;flex-shrink:0}._sidebarHeader_17pak_110{display:flex;align-items:center;gap:0;border-bottom:1px solid var(--border);flex-shrink:0}._viewModeTab_17pak_118{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:var(--text-dim, #888);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s}._viewModeTab_17pak_118:hover{color:var(--text)}._viewModeTabActive_17pak_143{color:var(--text);border-bottom-color:var(--accent)}._changesBadge_17pak_148{font-size:.65rem;font-weight:400;background:var(--accent, #61afef);color:#fff;padding:0 5px;border-radius:8px;min-width:16px;text-align:center;line-height:1.4}._main_17pak_160{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden}._placeholder_17pak_169{display:flex;align-items:center;justify-content:center;flex:1;color:var(--text-dim, #888);font-size:.95rem;font-style:italic}._error_17pak_179{padding:12px 16px;color:#e06c75;font-size:.85rem}._loading_17pak_185{padding:12px 16px;color:var(--text-dim, #888);font-size:.85rem;font-style:italic}@media(max-width:768px){._sidebar_17pak_99{position:fixed;top:calc(44px + env(safe-area-inset-top,0px));left:0;bottom:0;z-index:50;width:280px;transform:translate(-100%);transition:transform .2s ease;box-shadow:2px 0 8px #0000004d}._sidebarOpen_17pak_206{transform:translate(0)}._overlay_17pak_210{position:fixed;top:0;right:0;bottom:0;left:0;top:calc(44px + env(safe-area-inset-top,0px));background:#0006;z-index:49}}._overlay_h1a26_1{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay-bg);z-index:200;animation:_fadeIn_h1a26_1 .15s ease-out}._content_h1a26_9{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow-y:auto;z-index:201;box-shadow:0 8px 24px #0006;animation:_slideUp_h1a26_1 .15s ease-out}._title_h1a26_26{font-size:1.1rem;font-weight:600;color:var(--text);margin:0 0 16px}._dropZone_h1a26_33{border:2px dashed var(--border);border-radius:8px;padding:32px 16px;text-align:center;cursor:pointer;transition:border-color .15s,background .15s;color:var(--text-secondary);font-size:.9rem}._dropZone_h1a26_33:hover,._dropZoneDragOver_h1a26_47{border-color:var(--accent);background:#4a9eff14;background:color-mix(in srgb,var(--accent) 8%,transparent)}._fileList_h1a26_53{margin-top:12px;max-height:160px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}._fileInfo_h1a26_62{padding:8px 12px;background:var(--bg);border-radius:6px;font-size:.85rem;color:var(--text);display:flex;justify-content:space-between;align-items:center}._fileName_h1a26_73{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}._fileSize_h1a26_81{color:var(--text-dim);flex-shrink:0;margin-left:8px}._targetDirGroup_h1a26_87{margin-top:16px}._label_h1a26_91{display:block;font-size:.8rem;color:var(--text-secondary);margin-bottom:6px}._targetDirRow_h1a26_98{display:flex;gap:8px}._input_h1a26_103{flex:1;padding:8px 12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-size:.9rem;font-family:inherit;outline:none}._input_h1a26_103:focus{border-color:var(--accent)}._browseBtn_h1a26_119{padding:8px 14px;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);cursor:pointer;font-size:.85rem;white-space:nowrap;transition:border-color .15s}._browseBtn_h1a26_119:hover{border-color:var(--accent)}._hint_h1a26_135{margin-top:8px;font-size:.75rem;color:var(--text-dim)}._actions_h1a26_141{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}._cancelBtn_h1a26_148{padding:8px 16px;background:transparent;border:1px solid var(--border);border-radius:6px;color:var(--text-secondary);cursor:pointer;font-size:.9rem;transition:border-color .15s}._cancelBtn_h1a26_148:hover{border-color:var(--text-secondary)}._uploadBtn_h1a26_163{padding:8px 20px;background:var(--accent);border:none;border-radius:6px;color:#fff;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .15s}._uploadBtn_h1a26_163:hover:not(:disabled){background:var(--accent-hover)}._uploadBtn_h1a26_163:disabled{opacity:.5;cursor:not-allowed}._close_h1a26_184{position:absolute;top:12px;right:12px;background:none;border:none;color:var(--text-dim);cursor:pointer;font-size:1.2rem;line-height:1;padding:4px}._close_h1a26_184:hover{color:var(--text)}._progressWrapper_h1a26_201{margin-top:12px;background:var(--bg);border-radius:6px;height:24px;position:relative;overflow:hidden;border:1px solid var(--border)}._progressBar_h1a26_211{height:100%;background:var(--accent);border-radius:5px;transition:width .15s ease-out;min-width:0}._progressLabel_h1a26_219{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:600;color:var(--text);pointer-events:none}._folderBrowserWrapper_h1a26_231{margin-top:12px;border:1px solid var(--border);border-radius:8px;padding:8px;max-height:280px;display:flex;flex-direction:column;overflow:hidden}@media(pointer:coarse){._content_h1a26_9{top:30%;transform:translate(-50%,-30%)}}@keyframes _fadeIn_h1a26_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_h1a26_1{0%{opacity:0;transform:translate(-50%,-48%)}to{opacity:1;transform:translate(-50%,-50%)}}._overlay_1mt11_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;display:flex;flex-direction:column;background:var(--overlay-bg);animation:_fade-in_1mt11_1 .15s ease}._header_1mt11_11{display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 10px;background:var(--surface, #1e1e2e);border-bottom:1px solid var(--border, #333)}._title_1mt11_20{color:var(--text, #ccc);font-size:14px;font-weight:600}._actions_1mt11_26{display:flex;gap:8px}._btnPrimary_1mt11_31{padding:8px 18px;border:none;border-radius:6px;background:var(--accent, #4a9eff);color:#fff;font-size:14px;cursor:pointer}._btnPrimary_1mt11_31:hover{opacity:.9}._btnSecondary_1mt11_45{padding:8px 18px;border:1px solid var(--border, #444);border-radius:6px;background:transparent;color:var(--text, #ccc);font-size:14px;cursor:pointer}._btnSecondary_1mt11_45:hover{background:var(--border, #333)}._content_1mt11_59{flex:1;overflow:auto;padding:16px 16px calc(12px + env(safe-area-inset-bottom,0px))}._loadMoreBtn_1mt11_65{display:block;width:100%;padding:8px;margin-bottom:8px;border:1px solid var(--border, #444);border-radius:6px;background:var(--surface, #1e1e2e);color:var(--accent, #4a9eff);font-size:13px;cursor:pointer;text-align:center}._loadMoreBtn_1mt11_65:hover{background:var(--border, #333)}._pre_1mt11_83{margin:0;font-family:Cascadia Code,Fira Code,monospace;font-size:13px;color:var(--text, #ccc);white-space:pre;word-break:normal;user-select:text;-webkit-user-select:text}@keyframes _fade-in_1mt11_1{0%{opacity:0}to{opacity:1}}._layout_16qfp_1{--keyboard-height: 0px;position:relative;height:100vh;height:100dvh;overflow:hidden;background:var(--bg);color:var(--text);overscroll-behavior:none;touch-action:none}._topBar_16qfp_14{height:calc(40px + env(safe-area-inset-top,0px));padding:0 4px;padding-top:env(safe-area-inset-top,0px);display:flex;align-items:center;background:var(--surface);border-bottom:1px solid var(--border);gap:2px;position:fixed;top:0;left:0;right:0;z-index:60}._left_16qfp_30{display:flex;align-items:center;gap:4px;flex-shrink:0;overflow:hidden}._right_16qfp_38{display:flex;align-items:center;gap:2px;flex-shrink:0}._barBtn_16qfp_45{background:none;border:none;color:var(--text-dim);width:30px;height:30px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;text-decoration:none;gap:4px;padding:0;flex-shrink:0;transition:background .15s,color .15s;-webkit-tap-highlight-color:transparent}._barBtn_16qfp_45:hover{background:var(--border);color:var(--text)}._barBtnWithLabel_16qfp_71{width:auto;padding:0 10px;gap:3px}._btnLabel_16qfp_77{font-size:12px;font-weight:600}._stopBtn_16qfp_82{color:var(--danger);font-size:11px;font-weight:600}._stopBtn_16qfp_82:hover{background:var(--danger);color:#fff}._stopBtn_16qfp_82:active{transform:scale(.9)}._statusDot_16qfp_97{width:8px;height:8px;border-radius:50%;background:var(--danger);flex-shrink:0;transition:background .3s;display:inline-block}._statusConnected_16qfp_107{background:var(--success)}._sessionName_16qfp_111{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text);max-width:120px}._statusText_16qfp_121{font-size:11px;color:var(--text-secondary);white-space:nowrap;flex-shrink:0}._mobileOnly_16qfp_128{display:none}._connectionBanner_16qfp_133{position:fixed;top:calc(40px + env(safe-area-inset-top,0px));left:0;right:0;z-index:59;display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 16px;background:var(--danger, #f14c4c);color:#fff;font-size:13px;font-weight:500}._connectionBannerBtn_16qfp_150{background:#fff3;border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:4px;padding:2px 10px;font-size:12px;cursor:pointer}._connectionBannerBtn_16qfp_150:hover{background:#ffffff4d}@media(max-width:640px){._desktopOnly_16qfp_165{display:none!important}._mobileOnly_16qfp_128{display:flex!important}._sessionName_16qfp_111,._statusText_16qfp_121{display:none}._connectionBanner_16qfp_133{top:calc(32px + env(safe-area-inset-top,0px))}}._terminalArea_16qfp_181{position:absolute;top:calc(40px + env(safe-area-inset-top,0px));bottom:calc(80px + env(safe-area-inset-bottom,0px) + var(--keyboard-height, 0px));left:0;right:0;display:flex;min-height:0}._split_16qfp_191{flex-direction:row}._splitHorizontal_16qfp_195{flex-direction:column}._paneWrapper_16qfp_199{display:flex;flex-direction:column;min-height:0;min-width:0;position:absolute;top:0;right:0;bottom:0;left:0;visibility:hidden;pointer-events:none}._visible_16qfp_214{position:relative;flex:1;visibility:visible;pointer-events:auto}._paneFocused_16qfp_222{box-shadow:inset 0 0 0 2px var(--accent);z-index:1}._paneUnfocused_16qfp_227{opacity:.7;transition:opacity .15s;cursor:pointer}._paneUnfocused_16qfp_227:hover{opacity:.9}._split_16qfp_191:not(._splitHorizontal_16qfp_195) ._visible_16qfp_214+._visible_16qfp_214{border-left:2px solid var(--border)}._splitHorizontal_16qfp_195 ._visible_16qfp_214+._visible_16qfp_214{border-top:2px solid var(--border)}@media(orientation:landscape)and (max-height:500px){._topBar_16qfp_14{height:calc(32px + env(safe-area-inset-top,0px))}._terminalArea_16qfp_181{top:calc(32px + env(safe-area-inset-top,0px));bottom:calc(44px + env(safe-area-inset-bottom,0px) + var(--keyboard-height, 0px))}._layout_16qfp_1[data-keyboard-open] ._terminalArea_16qfp_181{bottom:calc(env(safe-area-inset-bottom,0px) + var(--keyboard-height, 0px))}}._downloadOverlay_16qfp_263{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:var(--overlay-bg);display:flex;align-items:center;justify-content:center;animation:_downloadFadeIn_16qfp_1 .2s ease-out}._downloadPanel_16qfp_274{width:min(90vw,420px);max-height:80vh;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0006;display:flex;flex-direction:column;overflow:hidden;animation:_downloadSlideUp_16qfp_1 .25s ease-out}@keyframes _downloadFadeIn_16qfp_1{0%{opacity:0}to{opacity:1}}@keyframes _downloadSlideUp_16qfp_1{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}._codeViewerOverlay_16qfp_308{position:fixed;top:0;right:0;bottom:0;left:0;z-index:300;animation:_codeViewerFadeIn_16qfp_1 .15s ease-out}@keyframes _codeViewerFadeIn_16qfp_1{0%{opacity:0}to{opacity:1}}:root{--bg: #1e1e1e;--surface: #252526;--border: #3c3c3c;--border-subtle: #474747;--text: #d4d4d4;--text-secondary: #858585;--text-dim: #6e6e6e;--text-muted: #555555;--accent: #0078d4;--accent-hover: #1a8ae8;--accent-active: #005a9e;--danger: #f14c4c;--danger-hover: #d73a3a;--success: #89d185;--overlay-bg: rgba(0, 0, 0, .85);--key-bg: #4a4a4c;--key-border: #5a5a5c;--key-shadow: rgba(0, 0, 0, .5);--key-special-bg: #333335}[data-theme=light]{--bg: #ffffff;--surface: #f3f3f3;--border: #e0e0e0;--border-subtle: #d0d0d0;--text: #1e1e1e;--text-secondary: #616161;--text-dim: #767676;--text-muted: #a0a0a0;--accent: #0078d4;--accent-hover: #106ebe;--accent-active: #005a9e;--danger: #e51400;--danger-hover: #c20000;--success: #16825d;--overlay-bg: rgba(0, 0, 0, .5);--key-bg: #ffffff;--key-border: #b5b5b5;--key-shadow: rgba(0, 0, 0, .12);--key-special-bg: #adb5bd}[data-theme=monokai]{--bg: #272822;--surface: #1e1f1c;--border: #49483e;--border-subtle: #5c5c4f;--text: #f8f8f2;--text-secondary: #a59f85;--text-dim: #75715e;--text-muted: #5a5854;--accent: #a6e22e;--accent-hover: #b8f53c;--accent-active: #8acc16;--danger: #f92672;--danger-hover: #e0155d;--success: #a6e22e;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #49483e;--key-border: #5c5c4f;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #3e3d32}[data-theme=solarized-dark]{--bg: #002b36;--surface: #073642;--border: #586e75;--border-subtle: #657b83;--text: #839496;--text-secondary: #657b83;--text-dim: #586e75;--text-muted: #4a5a62;--accent: #268bd2;--accent-hover: #379ce3;--accent-active: #1a7abf;--danger: #dc322f;--danger-hover: #c8221f;--success: #859900;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #073642;--key-border: #586e75;--key-shadow: rgba(0, 0, 0, .3);--key-special-bg: #002b36}[data-theme=solarized-light]{--bg: #fdf6e3;--surface: #eee8d5;--border: #93a1a1;--border-subtle: #839496;--text: #657b83;--text-secondary: #93a1a1;--text-dim: #a0a0a0;--text-muted: #b0b0b0;--accent: #268bd2;--accent-hover: #379ce3;--accent-active: #1a7abf;--danger: #dc322f;--danger-hover: #c8221f;--success: #859900;--overlay-bg: rgba(0, 0, 0, .4);--key-bg: #ffffff;--key-border: #b5b5b5;--key-shadow: rgba(0, 0, 0, .12);--key-special-bg: #adb5bd}[data-theme=nord]{--bg: #2e3440;--surface: #3b4252;--border: #434c5e;--border-subtle: #4c566a;--text: #d8dee9;--text-secondary: #b0bac9;--text-dim: #7b88a1;--text-muted: #5c6a85;--accent: #88c0d0;--accent-hover: #9fd4e4;--accent-active: #6aafbf;--danger: #bf616a;--danger-hover: #a84d57;--success: #a3be8c;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #434c5e;--key-border: #4c566a;--key-shadow: rgba(0, 0, 0, .3);--key-special-bg: #3b4252}[data-theme=dracula]{--bg: #282a36;--surface: #343746;--border: #44475a;--border-subtle: #525568;--text: #f8f8f2;--text-secondary: #c1c4d2;--text-dim: #8e92a4;--text-muted: #6272a4;--accent: #bd93f9;--accent-hover: #d0b0ff;--accent-active: #a77de7;--danger: #ff5555;--danger-hover: #e03d3d;--success: #50fa7b;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #44475a;--key-border: #525568;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #343746}[data-theme=github-dark]{--bg: #0d1117;--surface: #161b22;--border: #30363d;--border-subtle: #3d444d;--text: #c9d1d9;--text-secondary: #8b949e;--text-dim: #6e7681;--text-muted: #484f58;--accent: #58a6ff;--accent-hover: #79b8ff;--accent-active: #388bfd;--danger: #f85149;--danger-hover: #da3633;--success: #3fb950;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #161b22;--key-border: #30363d;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #0d1117}[data-theme=one-dark]{--bg: #282c34;--surface: #21252b;--border: #3e4452;--border-subtle: #4b5263;--text: #abb2bf;--text-secondary: #7f848e;--text-dim: #5c6370;--text-muted: #4b5263;--accent: #61afef;--accent-hover: #7dc0ff;--accent-active: #4d9ede;--danger: #e06c75;--danger-hover: #c95c67;--success: #98c379;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #3e4452;--key-border: #4b5263;--key-shadow: rgba(0, 0, 0, .3);--key-special-bg: #21252b}[data-theme=catppuccin]{--bg: #1e1e2e;--surface: #313244;--border: #45475a;--border-subtle: #585b70;--text: #cdd6f4;--text-secondary: #a6adc8;--text-dim: #7f849c;--text-muted: #585b70;--accent: #89b4fa;--accent-hover: #b4d0ff;--accent-active: #5c9de3;--danger: #f38ba8;--danger-hover: #eb7c9d;--success: #a6e3a1;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #45475a;--key-border: #585b70;--key-shadow: rgba(0, 0, 0, .3);--key-special-bg: #313244}[data-theme=gruvbox]{--bg: #282828;--surface: #3c3836;--border: #504945;--border-subtle: #665c54;--text: #ebdbb2;--text-secondary: #d5c4a1;--text-dim: #a89984;--text-muted: #7c6f64;--accent: #83a598;--accent-hover: #9dbfb4;--accent-active: #6a8f8a;--danger: #fb4934;--danger-hover: #e33826;--success: #b8bb26;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #504945;--key-border: #665c54;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #3c3836}[data-theme=night-owl]{--bg: #011627;--surface: #0d2a45;--border: #1d3b53;--border-subtle: #264863;--text: #d6deeb;--text-secondary: #8badc1;--text-dim: #5f7e97;--text-muted: #3f5f7d;--accent: #7fdbca;--accent-hover: #9ff0e0;--accent-active: #62c5b5;--danger: #ef5350;--danger-hover: #d83130;--success: #addb67;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #1d3b53;--key-border: #264863;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #0d2a45}[data-theme=tokyo-night]{--bg: #1a1b26;--surface: #24283b;--border: #3b4261;--border-subtle: #444b6a;--text: #a9b1d6;--text-secondary: #7982a9;--text-dim: #565f89;--text-muted: #414868;--accent: #7aa2f7;--accent-hover: #99b4ff;--accent-active: #5d8af0;--danger: #f7768e;--danger-hover: #e05874;--success: #9ece6a;--overlay-bg: rgba(0, 0, 0, .8);--key-bg: #3b4261;--key-border: #444b6a;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #24283b}[data-theme=rose-pine]{--bg: #191724;--surface: #1f1d2e;--border: #26233a;--border-subtle: #393552;--text: #e0def4;--text-secondary: #908caa;--text-dim: #6e6a86;--text-muted: #524f67;--accent: #c4a7e7;--accent-hover: #d4bef5;--accent-active: #a88fd4;--danger: #eb6f92;--danger-hover: #d4577a;--success: #31748f;--overlay-bg: rgba(0, 0, 0, .8);--key-bg: #26233a;--key-border: #393552;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #1f1d2e}[data-theme=kanagawa]{--bg: #1f1f28;--surface: #2a2a37;--border: #363646;--border-subtle: #454559;--text: #dcd7ba;--text-secondary: #c8c093;--text-dim: #727169;--text-muted: #54546d;--accent: #7e9cd8;--accent-hover: #9bb5e6;--accent-active: #6282c2;--danger: #c34043;--danger-hover: #a8302f;--success: #76946a;--overlay-bg: rgba(0, 0, 0, .8);--key-bg: #363646;--key-border: #454559;--key-shadow: rgba(0, 0, 0, .4);--key-special-bg: #2a2a37}[data-theme=everforest]{--bg: #2d353b;--surface: #343f44;--border: #475258;--border-subtle: #56635a;--text: #d3c6aa;--text-secondary: #a7c080;--text-dim: #859289;--text-muted: #6b7a70;--accent: #a7c080;--accent-hover: #bdd49b;--accent-active: #8faa68;--danger: #e67e80;--danger-hover: #cf6567;--success: #83c092;--overlay-bg: rgba(0, 0, 0, .75);--key-bg: #475258;--key-border: #56635a;--key-shadow: rgba(0, 0, 0, .35);--key-special-bg: #343f44}[data-theme=ayu-dark]{--bg: #0b0e14;--surface: #11151c;--border: #1c2433;--border-subtle: #2d3b4d;--text: #bfbdb6;--text-secondary: #73b8ff;--text-dim: #636a76;--text-muted: #404854;--accent: #e6b450;--accent-hover: #f0c566;--accent-active: #d49e38;--danger: #ea6c73;--danger-hover: #d4525a;--success: #91b362;--overlay-bg: rgba(0, 0, 0, .85);--key-bg: #1c2433;--key-border: #2d3b4d;--key-shadow: rgba(0, 0, 0, .5);--key-special-bg: #11151c}[data-theme=matrix]{--bg: #0a0a0a;--surface: #111111;--border: #003b00;--border-subtle: #005200;--text: #00ff41;--text-secondary: #00cc33;--text-dim: #009926;--text-muted: #006619;--accent: #00ff41;--accent-hover: #33ff66;--accent-active: #00cc33;--danger: #00e639;--danger-hover: #00b32d;--success: #33ff66;--overlay-bg: rgba(0, 0, 0, .9);--key-bg: #003b00;--key-border: #005200;--key-shadow: rgba(0, 255, 65, .15);--key-special-bg: #002200}[data-theme=cyberpunk]{--bg: #0d0221;--surface: #150535;--border: #2a0a4a;--border-subtle: #3d1166;--text: #e0d0ff;--text-secondary: #b49ce0;--text-dim: #7b5ea7;--text-muted: #4a3674;--accent: #ff2a6d;--accent-hover: #ff5588;--accent-active: #d91e5a;--danger: #d300c5;--danger-hover: #a600a0;--success: #05d9e8;--overlay-bg: rgba(13, 2, 33, .9);--key-bg: #2a0a4a;--key-border: #3d1166;--key-shadow: rgba(255, 42, 109, .2);--key-special-bg: #150535}[data-theme=sunset-glow]{--bg: #1a1016;--surface: #261820;--border: #3d2530;--border-subtle: #553545;--text: #e8d5c4;--text-secondary: #c0a090;--text-dim: #8a6a5a;--text-muted: #5a4040;--accent: #ff6b35;--accent-hover: #ff8a55;--accent-active: #e05520;--danger: #ff6b6b;--danger-hover: #e05050;--success: #c3e88d;--overlay-bg: rgba(26, 16, 22, .9);--key-bg: #3d2530;--key-border: #553545;--key-shadow: rgba(255, 107, 53, .2);--key-special-bg: #261820}[data-theme=synthwave]{--bg: #241b2f;--surface: #2e2440;--border: #453558;--border-subtle: #5a4670;--text: #f0e4fc;--text-secondary: #c0b0d8;--text-dim: #7a6a90;--text-muted: #504660;--accent: #ff7edb;--accent-hover: #ff9de6;--accent-active: #e060c0;--danger: #fe4450;--danger-hover: #d83040;--success: #72f1b8;--overlay-bg: rgba(36, 27, 47, .9);--key-bg: #453558;--key-border: #5a4670;--key-shadow: rgba(255, 126, 219, .2);--key-special-bg: #2e2440}[data-theme=aurora]{--bg: #07090f;--surface: #0e1220;--border: #1a2035;--border-subtle: #263050;--text: #c5d1eb;--text-secondary: #8898b8;--text-dim: #506080;--text-muted: #354060;--accent: #5ec796;--accent-hover: #78d8aa;--accent-active: #48b080;--danger: #e06c8a;--danger-hover: #c85575;--success: #88c0d0;--overlay-bg: rgba(7, 9, 15, .9);--key-bg: #1a2035;--key-border: #263050;--key-shadow: rgba(94, 199, 150, .15);--key-special-bg: #0e1220}[data-theme=retro-amber]{--bg: #1a1200;--surface: #221a00;--border: #3d2e00;--border-subtle: #554000;--text: #ffb000;--text-secondary: #cc8800;--text-dim: #886000;--text-muted: #664400;--accent: #ffb000;--accent-hover: #ffc040;--accent-active: #e09900;--danger: #ff8c00;--danger-hover: #e07000;--success: #ffd060;--overlay-bg: rgba(26, 18, 0, .92);--key-bg: #3d2e00;--key-border: #554000;--key-shadow: rgba(255, 176, 0, .15);--key-special-bg: #221a00}[data-theme=deep-ocean]{--bg: #040b14;--surface: #08121e;--border: #122038;--border-subtle: #1a3050;--text: #8ab4f8;--text-secondary: #5a8ac0;--text-dim: #2a5a90;--text-muted: #1a3a5c;--accent: #4fc3f7;--accent-hover: #70d4ff;--accent-active: #38a8e0;--danger: #ff5252;--danger-hover: #d83838;--success: #69f0ae;--overlay-bg: rgba(4, 11, 20, .92);--key-bg: #122038;--key-border: #1a3050;--key-shadow: rgba(79, 195, 247, .15);--key-special-bg: #08121e}[data-theme=neon-noir]{--bg: #0c0c0c;--surface: #161616;--border: #2a2a2a;--border-subtle: #383838;--text: #cccccc;--text-secondary: #999999;--text-dim: #666666;--text-muted: #444444;--accent: #00ff9f;--accent-hover: #33ffb5;--accent-active: #00cc80;--danger: #ff003c;--danger-hover: #cc0030;--success: #00ff9f;--overlay-bg: rgba(12, 12, 12, .92);--key-bg: #2a2a2a;--key-border: #383838;--key-shadow: rgba(0, 255, 159, .12);--key-special-bg: #161616}[data-theme=frost-byte]{--bg: #0a1628;--surface: #10203a;--border: #1a3050;--border-subtle: #254060;--text: #c7dbe6;--text-secondary: #8aaccc;--text-dim: #4a7090;--text-muted: #2a4668;--accent: #6cb6e0;--accent-hover: #88caf0;--accent-active: #50a0cc;--danger: #e87d8a;--danger-hover: #cc6070;--success: #8dc891;--overlay-bg: rgba(10, 22, 40, .9);--key-bg: #1a3050;--key-border: #254060;--key-shadow: rgba(108, 182, 224, .15);--key-special-bg: #10203a}[data-theme=vice-city]{--bg: #0f0326;--surface: #1a0838;--border: #2e1055;--border-subtle: #421870;--text: #f8d0f0;--text-secondary: #c8a0c0;--text-dim: #8a6088;--text-muted: #4a2068;--accent: #ff71ce;--accent-hover: #ff95db;--accent-active: #e050b0;--danger: #ff3a7e;--danger-hover: #d82868;--success: #01cdfe;--overlay-bg: rgba(15, 3, 38, .92);--key-bg: #2e1055;--key-border: #421870;--key-shadow: rgba(255, 113, 206, .2);--key-special-bg: #1a0838}[data-theme=radical]{--bg: #141322;--surface: #1c1b30;--border: #303145;--border-subtle: #40415a;--text: #d1d2d3;--text-secondary: #a8ffdb;--text-dim: #5a5b78;--text-muted: #303145;--accent: #ff428e;--accent-hover: #ff6ea4;--accent-active: #d83070;--danger: #fc28a8;--danger-hover: #d01888;--success: #00e8c6;--overlay-bg: rgba(20, 19, 34, .92);--key-bg: #303145;--key-border: #40415a;--key-shadow: rgba(255, 66, 142, .18);--key-special-bg: #1c1b30}[data-theme=material-ocean]{--bg: #0f111a;--surface: #181a27;--border: #252837;--border-subtle: #333750;--text: #a6accd;--text-secondary: #717cb4;--text-dim: #4b5178;--text-muted: #3b3f51;--accent: #82aaff;--accent-hover: #a0c0ff;--accent-active: #6090e8;--danger: #f07178;--danger-hover: #d05860;--success: #c3e88d;--overlay-bg: rgba(15, 17, 26, .92);--key-bg: #252837;--key-border: #333750;--key-shadow: rgba(130, 170, 255, .12);--key-special-bg: #181a27}[data-theme=sakura]{--bg: #1e1527;--surface: #281e35;--border: #3a2d4a;--border-subtle: #4e3d62;--text: #f0d6e8;--text-secondary: #c8a8c0;--text-dim: #8a6888;--text-muted: #4a3560;--accent: #ff90b3;--accent-hover: #ffa8c5;--accent-active: #e07898;--danger: #ff6b9d;--danger-hover: #d85080;--success: #a8d8a8;--overlay-bg: rgba(30, 21, 39, .92);--key-bg: #3a2d4a;--key-border: #4e3d62;--key-shadow: rgba(255, 144, 179, .18);--key-special-bg: #281e35}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;transition:background .3s,color .3s}#root{height:100%;display:flex;flex-direction:column}a{color:var(--accent);text-decoration:none}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}input,select,textarea{font-family:inherit;font-size:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:8px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--border-subtle)}[data-sonner-toaster]{z-index:9999!important}[data-sonner-toaster][data-y-position=top]{top:env(safe-area-inset-top,0px)!important}@keyframes toast-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes toast-out{0%{transform:translateY(0);opacity:1}to{transform:translateY(100%);opacity:0}}@keyframes slide-in-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes slide-out-right{0%{transform:translate(0)}to{transform:translate(100%)}}@keyframes slide-in-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes slide-out-left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import{g as gt}from"./chunk-FMBD7UC4-H_1l13Rz.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-JSJVCQXG-D_GdzPQn.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as n,c as R,d as X,e as $t,z as Mt}from"./index-BxVq7AYs.js";import{d as et}from"./arc-BWX7iih_.js";var U=(function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,d,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:d.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],d=[],p=[null],o=[],b=this.table,k="",C=0,K=0,dt=2,Q=1,yt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=d.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
|
|
2
|
-
`+_.showPosition()+`
|
|
3
|
-
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(_.yytext),o.push(_.yylloc),l.push(T[1]),v=null,K=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},ft&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(F,[k,K,C,I.yy,T[1],p,o].concat(yt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),tt=b[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:n(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
-
`+a+"^"},"showPosition"),test_match:n(function(i,a){var l,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],l=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var o in p)this[o]=p[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,l,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),o=0;o<p.length;o++)if(l=this._input.match(this.rules[p[o]]),l&&(!a||l[0].length>a[0].length)){if(a=l,d=o,this.options.backtrack_lexer){if(i=this.test_match(l,p[o]),i!==!1)return i;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(i=this.test_match(a,p[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:n(function(){var a=this.next();return a||this.lex()},"lex"),begin:n(function(a){this.conditionStack.push(a)},"begin"),popState:n(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:n(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:n(function(a){this.begin(a)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(a,l,d,p){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h})();g.lexer=m;function x(){this.yy={}}return n(x,"Parser"),x.prototype=g,g.Parser=x,new x})();U.parser=U;var Et=U,V="",Z=[],L=[],B=[],Ct=n(function(){Z.length=0,L.length=0,V="",B.length=0,Mt()},"clear"),Pt=n(function(t){V=t,Z.push(t)},"addSection"),It=n(function(){return Z},"getSections"),At=n(function(){let t=it();const e=100;let s=0;for(;!t&&s<e;)t=it(),s++;return L.push(...B),L},"getTasks"),Ft=n(function(){const t=[];return L.forEach(s=>{s.people&&t.push(...s.people)}),[...new Set(t)].sort()},"updateActors"),Vt=n(function(t,e){const s=e.substr(1).split(":");let c=0,r=[];s.length===1?(c=Number(s[0]),r=[]):(c=Number(s[0]),r=s[1].split(","));const f=r.map(y=>y.trim()),u={section:V,type:V,people:f,task:t,score:c};B.push(u)},"addTask"),Rt=n(function(t){const e={section:V,type:V,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),it=n(function(){const t=n(function(s){return B[s].processed},"compileTask");let e=!0;for(const[s,c]of B.entries())t(s),e=e&&c.processed;return e},"compileTasks"),Lt=n(function(){return Ft()},"getActors"),rt={getConfig:n(()=>R().journey,"getConfig"),clear:Ct,setDiagramTitle:St,getDiagramTitle:Tt,setAccTitle:wt,getAccTitle:bt,setAccDescription:vt,getAccDescription:_t,addSection:Pt,getSections:It,getTasks:At,addTask:Vt,addTaskOrg:Rt,getActors:Lt},Bt=n(t=>`.label {
|
|
7
|
-
font-family: ${t.fontFamily};
|
|
8
|
-
color: ${t.textColor};
|
|
9
|
-
}
|
|
10
|
-
.mouth {
|
|
11
|
-
stroke: #666;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
line {
|
|
15
|
-
stroke: ${t.textColor}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.legend {
|
|
19
|
-
fill: ${t.textColor};
|
|
20
|
-
font-family: ${t.fontFamily};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.label text {
|
|
24
|
-
fill: #333;
|
|
25
|
-
}
|
|
26
|
-
.label {
|
|
27
|
-
color: ${t.textColor}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.face {
|
|
31
|
-
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
|
|
32
|
-
stroke: #999;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.node rect,
|
|
36
|
-
.node circle,
|
|
37
|
-
.node ellipse,
|
|
38
|
-
.node polygon,
|
|
39
|
-
.node path {
|
|
40
|
-
fill: ${t.mainBkg};
|
|
41
|
-
stroke: ${t.nodeBorder};
|
|
42
|
-
stroke-width: 1px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.node .label {
|
|
46
|
-
text-align: center;
|
|
47
|
-
}
|
|
48
|
-
.node.clickable {
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.arrowheadPath {
|
|
53
|
-
fill: ${t.arrowheadColor};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.edgePath .path {
|
|
57
|
-
stroke: ${t.lineColor};
|
|
58
|
-
stroke-width: 1.5px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.flowchart-link {
|
|
62
|
-
stroke: ${t.lineColor};
|
|
63
|
-
fill: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.edgeLabel {
|
|
67
|
-
background-color: ${t.edgeLabelBackground};
|
|
68
|
-
rect {
|
|
69
|
-
opacity: 0.5;
|
|
70
|
-
}
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.cluster rect {
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.cluster text {
|
|
78
|
-
fill: ${t.titleColor};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
div.mermaidTooltip {
|
|
82
|
-
position: absolute;
|
|
83
|
-
text-align: center;
|
|
84
|
-
max-width: 200px;
|
|
85
|
-
padding: 2px;
|
|
86
|
-
font-family: ${t.fontFamily};
|
|
87
|
-
font-size: 12px;
|
|
88
|
-
background: ${t.tertiaryColor};
|
|
89
|
-
border: 1px solid ${t.border2};
|
|
90
|
-
border-radius: 2px;
|
|
91
|
-
pointer-events: none;
|
|
92
|
-
z-index: 100;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.task-type-0, .section-type-0 {
|
|
96
|
-
${t.fillType0?`fill: ${t.fillType0}`:""};
|
|
97
|
-
}
|
|
98
|
-
.task-type-1, .section-type-1 {
|
|
99
|
-
${t.fillType0?`fill: ${t.fillType1}`:""};
|
|
100
|
-
}
|
|
101
|
-
.task-type-2, .section-type-2 {
|
|
102
|
-
${t.fillType0?`fill: ${t.fillType2}`:""};
|
|
103
|
-
}
|
|
104
|
-
.task-type-3, .section-type-3 {
|
|
105
|
-
${t.fillType0?`fill: ${t.fillType3}`:""};
|
|
106
|
-
}
|
|
107
|
-
.task-type-4, .section-type-4 {
|
|
108
|
-
${t.fillType0?`fill: ${t.fillType4}`:""};
|
|
109
|
-
}
|
|
110
|
-
.task-type-5, .section-type-5 {
|
|
111
|
-
${t.fillType0?`fill: ${t.fillType5}`:""};
|
|
112
|
-
}
|
|
113
|
-
.task-type-6, .section-type-6 {
|
|
114
|
-
${t.fillType0?`fill: ${t.fillType6}`:""};
|
|
115
|
-
}
|
|
116
|
-
.task-type-7, .section-type-7 {
|
|
117
|
-
${t.fillType0?`fill: ${t.fillType7}`:""};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.actor-0 {
|
|
121
|
-
${t.actor0?`fill: ${t.actor0}`:""};
|
|
122
|
-
}
|
|
123
|
-
.actor-1 {
|
|
124
|
-
${t.actor1?`fill: ${t.actor1}`:""};
|
|
125
|
-
}
|
|
126
|
-
.actor-2 {
|
|
127
|
-
${t.actor2?`fill: ${t.actor2}`:""};
|
|
128
|
-
}
|
|
129
|
-
.actor-3 {
|
|
130
|
-
${t.actor3?`fill: ${t.actor3}`:""};
|
|
131
|
-
}
|
|
132
|
-
.actor-4 {
|
|
133
|
-
${t.actor4?`fill: ${t.actor4}`:""};
|
|
134
|
-
}
|
|
135
|
-
.actor-5 {
|
|
136
|
-
${t.actor5?`fill: ${t.actor5}`:""};
|
|
137
|
-
}
|
|
138
|
-
${gt()}
|
|
139
|
-
`,"getStyles"),jt=Bt,J=n(function(t,e){return kt(t,e)},"drawRect"),Nt=n(function(t,e){const c=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(g){const m=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}n(f,"smile");function u(g){const m=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}n(u,"sad");function y(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n(y,"ambivalent"),e.score>3?f(r):e.score<3?u(r):y(r),c},"drawFace"),ot=n(function(t,e){const s=t.append("circle");return s.attr("cx",e.cx),s.attr("cy",e.cy),s.attr("class","actor-"+e.pos),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("r",e.r),s.class!==void 0&&s.attr("class",s.class),e.title!==void 0&&s.append("title").text(e.title),s},"drawCircle"),ct=n(function(t,e){return xt(t,e)},"drawText"),zt=n(function(t,e){function s(r,f,u,y,g){return r+","+f+" "+(r+u)+","+f+" "+(r+u)+","+(f+y-g)+" "+(r+u-g*1.2)+","+(f+y)+" "+r+","+(f+y)}n(s,"genPoints");const c=t.append("polygon");c.attr("points",s(e.x,e.y,50,20,7)),c.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ct(t,e)},"drawLabel"),Wt=n(function(t,e,s){const c=t.append("g"),r=lt();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=s.width*e.taskCount+s.diagramMarginX*(e.taskCount-1),r.height=s.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,J(c,r),ht(s)(e.text,c,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),nt=-1,Ot=n(function(t,e,s){const c=e.x+s.width/2,r=t.append("g");nt++,r.append("line").attr("id","task"+nt).attr("x1",c).attr("y1",e.y).attr("x2",c).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(r,{cx:c,cy:300+(5-e.score)*30,score:e.score});const u=lt();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=s.width,u.height=s.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,J(r,u);let y=e.x+14;e.people.forEach(g=>{const m=e.actors[g].color,x={cx:y,cy:e.y,r:7,fill:m,stroke:"#000",title:g,pos:e.actors[g].position};ot(r,x),y+=10}),ht(s)(e.task,r,u.x,u.y,u.width,u.height,{class:"task"},s,e.colour)},"drawTask"),Yt=n(function(t,e){mt(t,e)},"drawBackgroundRect"),ht=(function(){function t(r,f,u,y,g,m,x,h){const i=f.append("text").attr("x",u+g/2).attr("y",y+m/2+5).style("font-color",h).style("text-anchor","middle").text(r);c(i,x)}n(t,"byText");function e(r,f,u,y,g,m,x,h,i){const{taskFontSize:a,taskFontFamily:l}=h,d=r.split(/<br\s*\/?>/gi);for(let p=0;p<d.length;p++){const o=p*a-a*(d.length-1)/2,b=f.append("text").attr("x",u+g/2).attr("y",y).attr("fill",i).style("text-anchor","middle").style("font-size",a).style("font-family",l);b.append("tspan").attr("x",u+g/2).attr("dy",o).text(d[p]),b.attr("y",y+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(b,x)}}n(e,"byTspan");function s(r,f,u,y,g,m,x,h){const i=f.append("switch"),l=i.append("foreignObject").attr("x",u).attr("y",y).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,i,u,y,g,m,x,h),c(l,x)}n(s,"byFo");function c(r,f){for(const u in f)u in f&&r.attr(u,f[u])}return n(c,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?s:r.textPlacement==="old"?t:e}})(),qt=n(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),j={drawRect:J,drawCircle:ot,drawSection:Wt,drawText:ct,drawLabel:zt,drawTask:Ot,drawBackgroundRect:Yt,initGraphics:qt},Ht=n(function(t){Object.keys(t).forEach(function(s){$[s]=t[s]})},"setConf"),E={},W=0;function ut(t){const e=R().journey,s=e.maxLabelWidth;W=0;let c=60;Object.keys(E).forEach(r=>{const f=E[r].color,u={cx:20,cy:c,r:7,fill:f,stroke:"#000",pos:E[r].position};j.drawCircle(t,u);let y=t.append("text").attr("visibility","hidden").text(r);const g=y.node().getBoundingClientRect().width;y.remove();let m=[];if(g<=s)m=[r];else{const x=r.split(" ");let h="";y=t.append("text").attr("visibility","hidden"),x.forEach(i=>{const a=h?`${h} ${i}`:i;if(y.text(a),y.node().getBoundingClientRect().width>s){if(h&&m.push(h),h=i,y.text(i),y.node().getBoundingClientRect().width>s){let d="";for(const p of i)d+=p,y.text(d+"-"),y.node().getBoundingClientRect().width>s&&(m.push(d.slice(0,-1)+"-"),d=p);h=d}}else h=a}),h&&m.push(h),y.remove()}m.forEach((x,h)=>{const i={x:40,y:c+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,i).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),c+=Math.max(20,m.length*20)})}n(ut,"drawActorLegend");var $=R().journey,P=0,Xt=n(function(t,e,s,c){const r=R(),f=r.journey.titleColor,u=r.journey.titleFontSize,y=r.journey.titleFontFamily,g=r.securityLevel;let m;g==="sandbox"&&(m=X("#i"+e));const x=g==="sandbox"?X(m.nodes()[0].contentDocument.body):X("body");S.init();const h=x.select("#"+e);j.initGraphics(h);const i=c.db.getTasks(),a=c.db.getDiagramTitle(),l=c.db.getActors();for(const C in E)delete E[C];let d=0;l.forEach(C=>{E[C]={color:$.actorColours[d%$.actorColours.length],position:d},d++}),ut(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(E).length*50),Gt(h,i,0);const p=S.getBounds();a&&h.append("text").text(a).attr("x",P).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",f).attr("font-family",y);const o=p.stopy-p.starty+2*$.diagramMarginY,b=P+p.stopx+2*$.diagramMarginX;$t(h,o,b,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",b-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const k=a?70:0;h.attr("viewBox",`${p.startx} -25 ${b} ${o+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",o+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:n(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:n(function(t,e,s,c){t[e]===void 0?t[e]=s:t[e]=c(s,t[e])},"updateVal"),updateBounds:n(function(t,e,s,c){const r=R().journey,f=this;let u=0;function y(g){return n(function(x){u++;const h=f.sequenceItems.length-u+1;f.updateVal(x,"starty",e-h*r.boxMargin,Math.min),f.updateVal(x,"stopy",c+h*r.boxMargin,Math.max),f.updateVal(S.data,"startx",t-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopx",s+h*r.boxMargin,Math.max),g!=="activation"&&(f.updateVal(x,"startx",t-h*r.boxMargin,Math.min),f.updateVal(x,"stopx",s+h*r.boxMargin,Math.max),f.updateVal(S.data,"starty",e-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopy",c+h*r.boxMargin,Math.max))},"updateItemBounds")}n(y,"updateFn"),this.sequenceItems.forEach(y())},"updateBounds"),insert:n(function(t,e,s,c){const r=Math.min(t,s),f=Math.max(t,s),u=Math.min(e,c),y=Math.max(e,c);this.updateVal(S.data,"startx",r,Math.min),this.updateVal(S.data,"starty",u,Math.min),this.updateVal(S.data,"stopx",f,Math.max),this.updateVal(S.data,"stopy",y,Math.max),this.updateBounds(r,u,f,y)},"insert"),bumpVerticalPos:n(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:n(function(){return this.verticalPos},"getVerticalPos"),getBounds:n(function(){return this.data},"getBounds")},G=$.sectionFills,st=$.sectionColours,Gt=n(function(t,e,s){const c=R().journey;let r="";const f=c.height*2+c.diagramMarginY,u=s+f;let y=0,g="#CCC",m="black",x=0;for(const[h,i]of e.entries()){if(r!==i.section){g=G[y%G.length],x=y%G.length,m=st[y%st.length];let l=0;const d=i.section;for(let o=h;o<e.length&&e[o].section==d;o++)l=l+1;const p={x:h*c.taskMargin+h*c.width+P,y:50,text:i.section,fill:g,num:x,colour:m,taskCount:l};j.drawSection(t,p,c),r=i.section,y++}const a=i.people.reduce((l,d)=>(E[d]&&(l[d]=E[d]),l),{});i.x=h*c.taskMargin+h*c.width+P,i.y=u,i.width=c.diagramMarginX,i.height=c.diagramMarginY,i.colour=m,i.fill=g,i.num=x,i.actors=a,j.drawTask(t,i,c),S.insert(i.x,i.y,i.x+i.width+c.taskMargin,450)}},"drawTasks"),at={setConf:Ht,draw:Xt},Qt={parser:Et,db:rt,renderer:at,styles:jt,init:n(t=>{at.setConf(t.journey),rt.clear()},"init")};export{Qt as diagram};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import{g as le}from"./chunk-55IACEB6-DhjD4VKO.js";import{s as he}from"./chunk-KX2RTZJC-BU-NTTwY.js";import{_ as l,l as C,o as de,r as ge,F as j,c as z,i as B,aK as ue,W as pe,X as fe,Y as ye}from"./index-BxVq7AYs.js";const E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function me(t,e=0){return(E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]).toLowerCase()}let Y;const Ee=new Uint8Array(16);function _e(){if(!Y){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Y=crypto.getRandomValues.bind(crypto)}return Y(Ee)}const be=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:be};function Se(t,e,n){var u;if(ne.randomUUID&&!t)return ne.randomUUID();t=t||{};const c=t.random??((u=t.rng)==null?void 0:u.call(t))??_e();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,me(c)}var K=(function(){var t=l(function(v,s,i,a){for(i=i||{},a=v.length;a--;i[v[a]]=s);return i},"o"),e=[1,4],n=[1,13],c=[1,12],u=[1,15],h=[1,16],p=[1,20],y=[1,19],_=[6,7,8],b=[1,26],m=[1,24],w=[1,25],N=[6,7,11],q=[1,6,13,15,16,19,22],J=[1,33],Q=[1,34],A=[1,6,7,11,13,15,16,19,22],G={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,i,a,o,g,r,U){var d=r.length-1;switch(g){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",r[d].id),o.addNode(r[d-1].length,r[d].id,r[d].descr,r[d].type);break;case 16:o.getLogger().trace("Icon: ",r[d]),o.decorateNode({icon:r[d]});break;case 17:case 21:o.decorateNode({class:r[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",r[d].id),o.addNode(0,r[d].id,r[d].descr,r[d].type);break;case 20:o.decorateNode({icon:r[d]});break;case 25:o.getLogger().trace("node found ..",r[d-2]),this.$={id:r[d-1],descr:r[d-1],type:o.getType(r[d-2],r[d])};break;case 26:this.$={id:r[d],descr:r[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",r[d-3]),this.$={id:r[d-3],descr:r[d-1],type:o.getType(r[d-2],r[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(_,[2,3]),{1:[2,2]},t(_,[2,4]),t(_,[2,5]),{1:[2,6],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:n,9:22,12:11,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},{6:b,7:m,10:23,11:w},t(N,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:y}),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,23]),t(N,[2,24]),t(N,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:m,10:32,11:w},{1:[2,7],6:n,12:21,13:c,14:14,15:u,16:h,17:17,18:18,19:p,22:y},t(q,[2,14],{7:J,11:Q}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),{20:[1,35]},{21:[1,36]},t(q,[2,13],{7:J,11:Q}),t(A,[2,11]),t(A,[2,12]),{21:[1,37]},t(N,[2,25]),t(N,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:l(function(s){var i=this,a=[0],o=[],g=[null],r=[],U=this.table,d="",M=0,Z=0,re=2,ee=1,ae=r.slice.call(arguments,1),f=Object.create(this.lexer),T={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(T.yy[H]=this.yy[H]);f.setInput(s,T.yy),T.yy.lexer=f,T.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var $=f.yylloc;r.push($);var oe=f.options&&f.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(D){a.length=a.length-2*D,g.length=g.length-D,r.length=r.length-D}l(ce,"popStack");function te(){var D;return D=o.pop()||f.lex()||ee,typeof D!="number"&&(D instanceof Array&&(o=D,D=o.pop()),D=i.symbols_[D]||D),D}l(te,"lex");for(var S,O,k,W,I={},V,L,ie,F;;){if(O=a[a.length-1],this.defaultActions[O]?k=this.defaultActions[O]:((S===null||typeof S>"u")&&(S=te()),k=U[O]&&U[O][S]),typeof k>"u"||!k.length||!k[0]){var X="";F=[];for(V in U[O])this.terminals_[V]&&V>re&&F.push("'"+this.terminals_[V]+"'");f.showPosition?X="Parse error on line "+(M+1)+`:
|
|
2
|
-
`+f.showPosition()+`
|
|
3
|
-
Expecting `+F.join(", ")+", got '"+(this.terminals_[S]||S)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(S==ee?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(X,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:$,expected:F})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+S);switch(k[0]){case 1:a.push(S),g.push(f.yytext),r.push(f.yylloc),a.push(k[1]),S=null,Z=f.yyleng,d=f.yytext,M=f.yylineno,$=f.yylloc;break;case 2:if(L=this.productions_[k[1]][1],I.$=g[g.length-L],I._$={first_line:r[r.length-(L||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(L||1)].first_column,last_column:r[r.length-1].last_column},oe&&(I._$.range=[r[r.length-(L||1)].range[0],r[r.length-1].range[1]]),W=this.performAction.apply(I,[d,Z,M,T.yy,k[1],g,r].concat(ae)),typeof W<"u")return W;L&&(a=a.slice(0,-1*L*2),g=g.slice(0,-1*L),r=r.slice(0,-1*L)),a.push(this.productions_[k[1]][0]),g.push(I.$),r.push(I._$),ie=U[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},se=(function(){var v={EOF:1,parseError:l(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:l(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
5
|
-
`+i+"^"},"showPosition"),test_match:l(function(s,i){var a,o,g;if(this.options.backtrack_lexer&&(g={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(g.yylloc.range=this.yylloc.range.slice(0))),o=s[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var r in g)this[r]=g[r];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,i,a,o;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),r=0;r<g.length;r++)if(a=this._input.match(this.rules[g[r]]),a&&(!i||a[0].length>i[0].length)){if(i=a,o=r,this.options.backtrack_lexer){if(s=this.test_match(a,g[r]),s!==!1)return s;if(this._backtrack){i=!1;continue}else return!1}else if(!this.options.flex)break}return i?(s=this.test_match(i,g[o]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:l(function(){var i=this.next();return i||this.lex()},"lex"),begin:l(function(i){this.conditionStack.push(i)},"begin"),popState:l(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:l(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:l(function(i){this.begin(i)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(i,a,o,g){switch(o){case 0:return i.getLogger().trace("Found comment",a.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:i.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return i.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:i.getLogger().trace("end icon"),this.popState();break;case 10:return i.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return i.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return i.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return i.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:i.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return i.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),i.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),i.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),i.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 30:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),i.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),i.getLogger().trace("node end (("),"NODE_DEND";case 35:return i.getLogger().trace("Long description:",a.yytext),20;case 36:return i.getLogger().trace("Long description:",a.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return v})();G.lexer=se;function P(){this.yy={}}return l(P,"Parser"),P.prototype=G,G.Parser=P,new P})();K.parser=K;var Ne=K,De=12,x={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},R,ke=(R=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=x,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let n=this.nodes.length-1;n>=0;n--)if(this.nodes[n].level<e)return this.nodes[n];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,n,c,u){var m,w;C.info("addNode",e,n,c,u);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const p=z();let y=((m=p.mindmap)==null?void 0:m.padding)??j.mindmap.padding;switch(u){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:y*=2;break}const _={id:this.count++,nodeId:B(n,p),level:e,descr:B(c,p),type:u,children:[],width:((w=p.mindmap)==null?void 0:w.maxNodeWidth)??j.mindmap.maxNodeWidth,padding:y,isRoot:h},b=this.getParent(e);if(b)b.children.push(_),this.nodes.push(_);else if(h)this.nodes.push(_);else throw new Error(`There can be only one root. No parent could be found for ("${_.descr}")`)}getType(e,n){switch(C.debug("In get type",e,n),e){case"[":return this.nodeType.RECT;case"(":return n===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,n){this.elements[e]=n}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const n=z(),c=this.nodes[this.nodes.length-1];e.icon&&(c.icon=B(e.icon,n)),e.class&&(c.class=B(e.class,n))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,n){if(e.level===0?e.section=void 0:e.section=n,e.children)for(const[c,u]of e.children.entries()){const h=e.level===0?c%(De-1):n;this.assignSections(u,h)}}flattenNodes(e,n){const c=["mindmap-node"];e.isRoot===!0?c.push("section-root","section--1"):e.section!==void 0&&c.push(`section-${e.section}`),e.class&&c.push(e.class);const u=c.join(" "),h=l(y=>{switch(y){case x.CIRCLE:return"mindmapCircle";case x.RECT:return"rect";case x.ROUNDED_RECT:return"rounded";case x.CLOUD:return"cloud";case x.BANG:return"bang";case x.HEXAGON:return"hexagon";case x.DEFAULT:return"defaultMindmapNode";case x.NO_BORDER:default:return"rect"}},"getShapeFromType"),p={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:h(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:u,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(p),e.children)for(const y of e.children)this.flattenNodes(y,n)}generateEdges(e,n){if(e.children)for(const c of e.children){let u="edge";c.section!==void 0&&(u+=` section-edge-${c.section}`);const h=e.level+1;u+=` edge-depth-${h}`;const p={id:`edge_${e.id}_${c.id}`,start:e.id.toString(),end:c.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:u,depth:e.level,section:c.section};n.push(p),this.generateEdges(c,n)}}getData(){const e=this.getMindmap(),n=z(),u=ue().layout!==void 0,h=n;if(u||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};C.debug("getData: mindmapRoot",e,n),this.assignSections(e);const p=[],y=[];this.flattenNodes(e,p),this.generateEdges(e,y),C.debug(`getData: processed ${p.length} nodes and ${y.length} edges`);const _=new Map;for(const b of p)_.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:p,edges:y,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(_),type:"mindmap",diagramId:"mindmap-"+Se()}}getLogger(){return C}},l(R,"MindmapDB"),R),Le=l(async(t,e,n,c)=>{var _,b;C.debug(`Rendering mindmap diagram
|
|
7
|
-
`+t);const u=c.db,h=u.getData(),p=le(e,h.config.securityLevel);h.type=c.type,h.layoutAlgorithm=de(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,u.getMindmap()&&(h.nodes.forEach(m=>{m.shape==="rounded"?(m.radius=15,m.taper=15,m.stroke="none",m.width=0,m.padding=15):m.shape==="circle"?m.padding=10:m.shape==="rect"&&(m.width=0,m.padding=10)}),await ge(h,p),he(p,((_=h.config.mindmap)==null?void 0:_.padding)??j.mindmap.padding,"mindmapDiagram",((b=h.config.mindmap)==null?void 0:b.useMaxWidth)??j.mindmap.useMaxWidth))},"draw"),xe={draw:Le},ve=l(t=>{let e="";for(let n=0;n<t.THEME_COLOR_LIMIT;n++)t["lineColor"+n]=t["lineColor"+n]||t["cScaleInv"+n],pe(t["lineColor"+n])?t["lineColor"+n]=fe(t["lineColor"+n],20):t["lineColor"+n]=ye(t["lineColor"+n],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const c=""+(17-3*n);e+=`
|
|
8
|
-
.section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
|
|
9
|
-
fill: ${t["cScale"+n]};
|
|
10
|
-
}
|
|
11
|
-
.section-${n-1} text {
|
|
12
|
-
fill: ${t["cScaleLabel"+n]};
|
|
13
|
-
}
|
|
14
|
-
.node-icon-${n-1} {
|
|
15
|
-
font-size: 40px;
|
|
16
|
-
color: ${t["cScaleLabel"+n]};
|
|
17
|
-
}
|
|
18
|
-
.section-edge-${n-1}{
|
|
19
|
-
stroke: ${t["cScale"+n]};
|
|
20
|
-
}
|
|
21
|
-
.edge-depth-${n-1}{
|
|
22
|
-
stroke-width: ${c};
|
|
23
|
-
}
|
|
24
|
-
.section-${n-1} line {
|
|
25
|
-
stroke: ${t["cScaleInv"+n]} ;
|
|
26
|
-
stroke-width: 3;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.disabled, .disabled circle, .disabled text {
|
|
30
|
-
fill: lightgray;
|
|
31
|
-
}
|
|
32
|
-
.disabled text {
|
|
33
|
-
fill: #efefef;
|
|
34
|
-
}
|
|
35
|
-
`}return e},"genSections"),Te=l(t=>`
|
|
36
|
-
.edge {
|
|
37
|
-
stroke-width: 3;
|
|
38
|
-
}
|
|
39
|
-
${ve(t)}
|
|
40
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
41
|
-
fill: ${t.git0};
|
|
42
|
-
}
|
|
43
|
-
.section-root text {
|
|
44
|
-
fill: ${t.gitBranchLabel0};
|
|
45
|
-
}
|
|
46
|
-
.section-root span {
|
|
47
|
-
color: ${t.gitBranchLabel0};
|
|
48
|
-
}
|
|
49
|
-
.section-2 span {
|
|
50
|
-
color: ${t.gitBranchLabel0};
|
|
51
|
-
}
|
|
52
|
-
.icon-container {
|
|
53
|
-
height:100%;
|
|
54
|
-
display: flex;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
align-items: center;
|
|
57
|
-
}
|
|
58
|
-
.edge {
|
|
59
|
-
fill: none;
|
|
60
|
-
}
|
|
61
|
-
.mindmap-node-label {
|
|
62
|
-
dy: 1em;
|
|
63
|
-
alignment-baseline: middle;
|
|
64
|
-
text-anchor: middle;
|
|
65
|
-
dominant-baseline: middle;
|
|
66
|
-
text-align: center;
|
|
67
|
-
}
|
|
68
|
-
`,"getStyles"),Oe=Te,we={get db(){return new ke},renderer:xe,parser:Ne,styles:Oe};export{we as diagram};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{ab as S,a3 as z,aJ as j,g as q,s as J,a as Z,b as H,q as K,p as Q,_ as p,l as F,c as X,E as Y,I as ee,N as te,e as ae,z as re,F as ne}from"./index-BxVq7AYs.js";import{p as ie}from"./chunk-4BX2VUAB-Cz0Sexay.js";import{p as se}from"./treemap-KZPCXAKY-Ct-pligZ.js";import{d as R}from"./arc-BWX7iih_.js";import{o as le}from"./ordinal-Cboi1Yqb.js";import"./_baseUniq-D-ViDZI1.js";import"./_basePickBy-CVn0rIeA.js";import"./clone-DfaqXUXL.js";import"./init-Gi6I4Gst.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,x=S(0),s=S(z),o=S(0);function l(t){var n,c=(t=j(t)).length,g,y,h=0,u=new Array(c),i=new Array(c),v=+x.apply(this,arguments),w=Math.min(z,Math.max(-z,s.apply(this,arguments)-v)),m,C=Math.min(Math.abs(w)/c,o.apply(this,arguments)),$=C*(w<0?-1:1),d;for(n=0;n<c;++n)(d=i[u[n]=n]=+e(t[n],n,t))>0&&(h+=d);for(a!=null?u.sort(function(A,D){return a(i[A],i[D])}):f!=null&&u.sort(function(A,D){return f(t[A],t[D])}),n=0,y=h?(w-c*$)/h:0;n<c;++n,v=m)g=u[n],d=i[g],m=v+(d>0?d*y:0)+$,i[g]={data:t[g],index:n,value:d,startAngle:v,endAngle:m,padAngle:C};return i}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:S(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(x=typeof t=="function"?t:S(+t),l):x},l.endAngle=function(t){return arguments.length?(s=typeof t=="function"?t:S(+t),l):s},l.padAngle=function(t){return arguments.length?(o=typeof t=="function"?t:S(+t),l):o},l}var pe=ne.pie,N={sections:new Map,showData:!1},T=N.sections,G=N.showData,ge=structuredClone(pe),de=p(()=>structuredClone(ge),"getConfig"),fe=p(()=>{T=new Map,G=N.showData,re()},"clear"),me=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(e)||(T.set(e,a),F.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),he=p(()=>T,"getSections"),ve=p(e=>{G=e},"setShowData"),Se=p(()=>G,"getShowData"),L={getConfig:de,clear:fe,setDiagramTitle:Q,getDiagramTitle:K,setAccTitle:H,getAccTitle:Z,setAccDescription:J,getAccDescription:q,addSection:me,getSections:he,setShowData:ve,getShowData:Se},xe=p((e,a)=>{ie(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ye={parse:p(async e=>{const a=await se("pie",e);F.debug(a),xe(a,L)},"parse")},we=p(e=>`
|
|
2
|
-
.pieCircle{
|
|
3
|
-
stroke: ${e.pieStrokeColor};
|
|
4
|
-
stroke-width : ${e.pieStrokeWidth};
|
|
5
|
-
opacity : ${e.pieOpacity};
|
|
6
|
-
}
|
|
7
|
-
.pieOuterCircle{
|
|
8
|
-
stroke: ${e.pieOuterStrokeColor};
|
|
9
|
-
stroke-width: ${e.pieOuterStrokeWidth};
|
|
10
|
-
fill: none;
|
|
11
|
-
}
|
|
12
|
-
.pieTitleText {
|
|
13
|
-
text-anchor: middle;
|
|
14
|
-
font-size: ${e.pieTitleTextSize};
|
|
15
|
-
fill: ${e.pieTitleTextColor};
|
|
16
|
-
font-family: ${e.fontFamily};
|
|
17
|
-
}
|
|
18
|
-
.slice {
|
|
19
|
-
font-family: ${e.fontFamily};
|
|
20
|
-
fill: ${e.pieSectionTextColor};
|
|
21
|
-
font-size:${e.pieSectionTextSize};
|
|
22
|
-
// fill: white;
|
|
23
|
-
}
|
|
24
|
-
.legend text {
|
|
25
|
-
fill: ${e.pieLegendTextColor};
|
|
26
|
-
font-family: ${e.fontFamily};
|
|
27
|
-
font-size: ${e.pieLegendTextSize};
|
|
28
|
-
}
|
|
29
|
-
`,"getStyles"),Ae=we,De=p(e=>{const a=[...e.values()].reduce((s,o)=>s+o,0),f=[...e.entries()].map(([s,o])=>({label:s,value:o})).filter(s=>s.value/a*100>=1).sort((s,o)=>o.value-s.value);return ue().value(s=>s.value)(f)},"createPieArcs"),Ce=p((e,a,f,x)=>{F.debug(`rendering pie chart
|
|
30
|
-
`+e);const s=x.db,o=X(),l=Y(s.getConfig(),o.pie),t=40,n=18,c=4,g=450,y=g,h=ee(a),u=h.append("g");u.attr("transform","translate("+y/2+","+g/2+")");const{themeVariables:i}=o;let[v]=te(i.pieOuterStrokeWidth);v??(v=2);const w=l.textPosition,m=Math.min(y,g)/2-t,C=R().innerRadius(0).outerRadius(m),$=R().innerRadius(m*w).outerRadius(m*w);u.append("circle").attr("cx",0).attr("cy",0).attr("r",m+v/2).attr("class","pieOuterCircle");const d=s.getSections(),A=De(d),D=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let b=0;d.forEach(r=>{b+=r});const W=A.filter(r=>(r.data.value/b*100).toFixed(0)!=="0"),E=le(D);u.selectAll("mySlices").data(W).enter().append("path").attr("d",C).attr("fill",r=>E(r.data.label)).attr("class","pieCircle"),u.selectAll("mySlices").data(W).enter().append("text").text(r=>(r.data.value/b*100).toFixed(0)+"%").attr("transform",r=>"translate("+$.centroid(r)+")").style("text-anchor","middle").attr("class","slice"),u.append("text").text(s.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const I=[...d.entries()].map(([r,M])=>({label:r,value:M})),k=u.selectAll(".legend").data(I).enter().append("g").attr("class","legend").attr("transform",(r,M)=>{const P=n+c,B=P*I.length/2,V=12*n,U=M*P-B;return"translate("+V+","+U+")"});k.append("rect").attr("width",n).attr("height",n).style("fill",r=>E(r.label)).style("stroke",r=>E(r.label)),k.append("text").attr("x",n+c).attr("y",n-c).text(r=>s.getShowData()?`${r.label} [${r.value}]`:r.label);const _=Math.max(...k.selectAll("text").nodes().map(r=>(r==null?void 0:r.getBoundingClientRect().width)??0)),O=y+t+n+c+_;h.attr("viewBox",`0 0 ${O} ${g}`),ae(h,g,O,l.useMaxWidth)},"draw"),$e={draw:Ce},We={parser:ye,db:L,renderer:$e,styles:Ae};export{We as diagram};
|