codeplane-darwin-x64-baseline 29.0.25 → 29.0.26
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/bin/codeplane +0 -0
- package/bin/runtime/tui/{_baseUniq-CIdKO3dq-saxa3280.js → _baseUniq-DiRPzHd--26426db9.js} +1 -1
- package/bin/runtime/tui/{ar-DWiV1g-n-1af1nyxy.js → ar-B5R9jdSq-3wmhwvp4.js} +1 -1
- package/bin/runtime/tui/{ar-BmGaE6dF-q6t3706d.js → ar-CmtdxakA-zefryct7.js} +1 -1
- package/bin/runtime/tui/{arc-DqLXbJ-l-1yzq3v1g.js → arc-DhPNfM5M-vnpvbgz7.js} +1 -1
- package/bin/runtime/tui/{architectureDiagram-Q4EWVU46-9rt-8b6E-wk53k0jh.js → architectureDiagram-Q4EWVU46-BSshIJrt-s3bb7scj.js} +1 -1
- package/bin/runtime/tui/{blockDiagram-DXYQGD6D-Wi5D5jIb-83qd40vp.js → blockDiagram-DXYQGD6D-DN97l508-6gaqvmny.js} +1 -1
- package/bin/runtime/tui/{br-CJxfXkhA-h51k61qx.js → br-C3sTTSy7-nzgz0kzv.js} +1 -1
- package/bin/runtime/tui/{br-C0Yr4nSr-bs9cbqgb.js → br-JtOIrpA--4rv6b2dw.js} +1 -1
- package/bin/runtime/tui/{bs-CaCKWAeY-xew7v80s.js → bs-Cbvm7Uef-2xagg46s.js} +1 -1
- package/bin/runtime/tui/{bs-CEFL9l5a-k8vrktf8.js → bs-q_YF7Hgh-8hean8ba.js} +1 -1
- package/bin/runtime/tui/{c4Diagram-AHTNJAMY-Cnx6lSY6-hfk7ydjz.js → c4Diagram-AHTNJAMY-DqJOCwZp-x5jrhgwb.js} +1 -1
- package/bin/runtime/tui/channel-CSNH1reU-wgd023va.js +1 -0
- package/bin/runtime/tui/{chunk-4BX2VUAB-DdU5eMNC-r5g39pnj.js → chunk-4BX2VUAB-CzhSmsyW-78gzmdk7.js} +1 -1
- package/bin/runtime/tui/{chunk-4TB4RGXK-DkOtUh9r-1g0b4dt8.js → chunk-4TB4RGXK-CMCk0y3--x9b62cbj.js} +1 -1
- package/bin/runtime/tui/{chunk-55IACEB6-CU9uIPGP-rh65kk9d.js → chunk-55IACEB6-CHpQ6P0V-h665p434.js} +1 -1
- package/bin/runtime/tui/{chunk-EDXVE4YY-DqmH469b-5ymhdtxk.js → chunk-EDXVE4YY-DsCkSNLQ-t7p80xnh.js} +1 -1
- package/bin/runtime/tui/{chunk-FMBD7UC4-BMB1F1VO-vy5p5w7r.js → chunk-FMBD7UC4-Xha1N2MD-xkgcsjz3.js} +1 -1
- package/bin/runtime/tui/{chunk-OYMX7WX6-mS1fhc79-0fg9mpxa.js → chunk-OYMX7WX6-Dc83aM1d-2sz8brcx.js} +1 -1
- package/bin/runtime/tui/{chunk-QZHKN3VN-B_uJ2Sul-q596hvme.js → chunk-QZHKN3VN-DLDh7Jmm-3f3tmekq.js} +1 -1
- package/bin/runtime/tui/{chunk-YZCP3GAM-X3zoXePk-wt6cc28k.js → chunk-YZCP3GAM-ys0Det8S-6ddb3t70.js} +1 -1
- package/bin/runtime/tui/classDiagram-6PBFFD2Q-DwRK40eI-c51qj51n.js +1 -0
- package/bin/runtime/tui/classDiagram-v2-HSJHXN6E-DwRK40eI-c51qj51n.js +1 -0
- package/bin/runtime/tui/clone-CuRN5OPq-ytbp2ygt.js +1 -0
- package/bin/runtime/tui/{cose-bilkent-S5V4N54A-COxeQzun-09sz9bh5.js → cose-bilkent-S5V4N54A-_G1XpVas-74a4nzk3.js} +1 -1
- package/bin/runtime/tui/{da-CLGt8t51-fzwrsjwy.js → da-Bd-y8LIf-7msy8tgs.js} +1 -1
- package/bin/runtime/tui/{da-DYi2YCQi-k85nfe73.js → da-By9-0K0u-1rjk06sy.js} +1 -1
- package/bin/runtime/tui/{dagre-KV5264BT-BgAj3J6z-q3rxwrwn.js → dagre-KV5264BT-BhJ822gp-nf7x72ck.js} +1 -1
- package/bin/runtime/tui/{de-27e6V80Y-9dnj28p9.js → de-BUNDtHw5-cnqdj6n9.js} +1 -1
- package/bin/runtime/tui/{de-BDLaTYvp-wvmhyndj.js → de-D93Gzzl8-409k52nj.js} +1 -1
- package/bin/runtime/tui/{diagram-5BDNPKRD-B595d8w6-sdjnp45b.js → diagram-5BDNPKRD-COO7YBFQ-twrqtpmf.js} +1 -1
- package/bin/runtime/tui/{diagram-G4DWMVQ6-GH5GGsQB-13f0w3x6.js → diagram-G4DWMVQ6-DLpYRRsj-t3fcwvad.js} +1 -1
- package/bin/runtime/tui/{diagram-MMDJMWI5-iFQuIw9r-sz4jv8vy.js → diagram-MMDJMWI5-DMsYt75j-3wvnqhwc.js} +1 -1
- package/bin/runtime/tui/{diagram-TYMM5635-t1HmZT7K-ys2esat3.js → diagram-TYMM5635-BDig_TyM-48481cs9.js} +1 -1
- package/bin/runtime/tui/{dialog-connect-provider-CbBxytwI-q3p86cwv.js → dialog-connect-provider-Cu-bRug--avjpvdc0.js} +2 -2
- package/bin/runtime/tui/{dialog-edit-project-CX76A6rc-58d95507.js → dialog-edit-project-g8UJkKZf-xx9jgnn0.js} +1 -1
- package/bin/runtime/tui/{dialog-fork-CG-wOlV3-xsxbpcme.js → dialog-fork-BsuXZeVe-1xyrk0mg.js} +1 -1
- package/bin/runtime/tui/{dialog-manage-models-BFS05VVX-wg4qb1qy.js → dialog-manage-models-DTZbb2Jt-6vfej0ys.js} +1 -1
- package/bin/runtime/tui/{dialog-quick-switcher-Bvm8ie5S-x84spk50.js → dialog-quick-switcher-PP1cl-AC-10f5xz35.js} +1 -1
- package/bin/runtime/tui/{dialog-select-directory-BgyTQJRP-8f8rm1ms.js → dialog-select-directory-DlfczDen-j01wt9js.js} +1 -1
- package/bin/runtime/tui/{dialog-select-file-B1bCyEnR-w76wavza.js → dialog-select-file-BBCDqX1E-gcyfvs65.js} +1 -1
- package/bin/runtime/tui/{dialog-select-mcp-DWrPE3wB-6jw1gxs7.js → dialog-select-mcp-CQpihzn4-hbbb2y7s.js} +1 -1
- package/bin/runtime/tui/{dialog-select-model-unpaid-DxRiJHnB-1e51xzvn.js → dialog-select-model-unpaid-DmAQ-1zQ-2ab0ga8b.js} +2 -2
- package/bin/runtime/tui/{dialog-select-provider-C-JEreLC-a3hzzr95.js → dialog-select-provider-DBHvhmzI-gvqmttak.js} +1 -1
- package/bin/runtime/tui/{dialog-select-server-DGTNSgKw-hkzncy6h.js → dialog-select-server-HywTbVo8-cy2w3yed.js} +1 -1
- package/bin/runtime/tui/{erDiagram-SMLLAGMA-Dkutm0UC-mr8b5cr2.js → erDiagram-SMLLAGMA-BDTN3rNG-n7aq0200.js} +1 -1
- package/bin/runtime/tui/{es--JMv8T7K-4n7x3j2t.js → es-BYA-UbLo-69ep2z6q.js} +1 -1
- package/bin/runtime/tui/{es-KW_Zclw5-sm6qt3en.js → es-D33ohYLC-w8d97r3z.js} +1 -1
- package/bin/runtime/tui/{file-icon-hzEOBp5u-wzb45m8v.js → file-icon-BlCvs3E5-8mwqe04h.js} +1 -1
- package/bin/runtime/tui/{flowDiagram-DWJPFMVM-Dxq5CqUW-55cxb8yg.js → flowDiagram-DWJPFMVM-BtACFPOp-9v6w940q.js} +1 -1
- package/bin/runtime/tui/{fr-BKYYu4_6-q6bgdt7z.js → fr-JgNSQr2k-y2p8w9yt.js} +1 -1
- package/bin/runtime/tui/{fr-EPg9myXQ-scb4s2xb.js → fr-ciUw-6za-3hxgh1v3.js} +1 -1
- package/bin/runtime/tui/{ganttDiagram-T4ZO3ILL-BMFQ_DA_-wv9dzvbt.js → ganttDiagram-T4ZO3ILL-BB0bR979-6gjvbgx3.js} +1 -1
- package/bin/runtime/tui/{ghostty-web-DF5QFCvM-vyezzh2f.js → ghostty-web-m4K2PR8W-zjd4zn06.js} +1 -1
- package/bin/runtime/tui/{gitGraphDiagram-UUTBAWPF-CXFHqzP_-t4byf1er.js → gitGraphDiagram-UUTBAWPF-DuBzx2HA-e4mrc6fx.js} +1 -1
- package/bin/runtime/tui/{graph-CdxUj6yb-scg0vj1a.js → graph-FFxo4W9V-bxfsgjev.js} +1 -1
- package/bin/runtime/tui/{home-BxUuIoXQ-ppzcm720.js → home-B7DxBTly-c4129wqa.js} +1 -1
- package/bin/runtime/tui/{index-CaPWFEmi-2z8vnrgq.js → index-B3MnqBGf-ykyzcgeq.js} +6 -6
- package/bin/runtime/tui/{index-fanx7c5q.html → index-gtxspt2k.html} +1 -1
- package/bin/runtime/tui/{infoDiagram-42DDH7IO-gNmXJmyB-s5qv9bvz.js → infoDiagram-42DDH7IO-P2eaEwsI-s6rzznvg.js} +1 -1
- package/bin/runtime/tui/{ishikawaDiagram-UXIWVN3A-DB4uZHja-e8hkd3zx.js → ishikawaDiagram-UXIWVN3A-BkrQ8CMT-2adnfzgj.js} +1 -1
- package/bin/runtime/tui/{ja-BflM-d8c-t7h818p0.js → ja-Bk0DfrZG-376yc4vv.js} +1 -1
- package/bin/runtime/tui/{ja-CJTo4KkK-zz1pfe3t.js → ja-CvdVSE8m-dnj7gdts.js} +1 -1
- package/bin/runtime/tui/{journeyDiagram-VCZTEJTY-C2cCx7a9-n6nfmvss.js → journeyDiagram-VCZTEJTY-pYBDfyva-fqwx8qff.js} +1 -1
- package/bin/runtime/tui/{kanban-definition-6JOO6SKY-CNIEkQb7-tejfkajm.js → kanban-definition-6JOO6SKY-C7XMcl8p-5y3hd0d6.js} +1 -1
- package/bin/runtime/tui/{ko-wnATYZhS-e8rh7bnb.js → ko-BhteX161-ev06xkxf.js} +1 -1
- package/bin/runtime/tui/{ko-1AesI1gp-7w8kmsd8.js → ko-el1XZEPY-981ssgkg.js} +1 -1
- package/bin/runtime/tui/{layout-CsyKM6QG-7fdxg3x9.js → layout-CeRLEx6M-v71c0xbk.js} +1 -1
- package/bin/runtime/tui/{linear-B97-2TdH-311hnq70.js → linear-DmVMk72g-kay2bx96.js} +1 -1
- package/bin/runtime/tui/{list-BiQMzfJm-c8sbm1ws.js → list-B7F45yIt-1x8rd8t3.js} +1 -1
- package/bin/runtime/tui/{mermaid.core-B1DAMRyG-23wemngf.js → mermaid.core-BZI8AtwT-2eqza8n6.js} +5 -5
- package/bin/runtime/tui/{min-BxM1U1Fg-21yb3amj.js → min-Bukm-5js-3h0q53x6.js} +1 -1
- package/bin/runtime/tui/{mindmap-definition-QFDTVHPH-CcS-c13S-b9v8r98c.js → mindmap-definition-QFDTVHPH-BRYqOb0v-8t5t07jg.js} +1 -1
- package/bin/runtime/tui/{no-bayaWMMG-fkj8cwdj.js → no-ByujzpZU-fbqpjstb.js} +1 -1
- package/bin/runtime/tui/{no-zt964wOK-kasce13c.js → no-DpW2hGdy-qdk2edsq.js} +1 -1
- package/bin/runtime/tui/node-main.js +253 -253
- package/bin/runtime/tui/{notifications-Can6MxXX-aw5q9fhj.js → notifications-CwW7x_Cu-970h9wfp.js} +1 -1
- package/bin/runtime/tui/{pieDiagram-DEJITSTG-Doif1hoz-3b07tqbh.js → pieDiagram-DEJITSTG-CTn1U15j-gw57ye2v.js} +1 -1
- package/bin/runtime/tui/{pl-DP31XAiJ-tn04m90e.js → pl-BjRQVeDz-dsfrwew9.js} +1 -1
- package/bin/runtime/tui/{pl-4fUPofNs-237e1s4t.js → pl-DmF_DGQf-ws0avvyd.js} +1 -1
- package/bin/runtime/tui/{provider-icon-mQ6o_ygz-ygz739x5.js → provider-icon-9tRUCm8P-86zfzezy.js} +1 -1
- package/bin/runtime/tui/{quadrantDiagram-34T5L4WZ-DzCsn8oz-66jhgzt4.js → quadrantDiagram-34T5L4WZ-Cqxa5AhV-ck3v3pcw.js} +1 -1
- package/bin/runtime/tui/{requirementDiagram-MS252O5E-3SSg0glz-j59wp495.js → requirementDiagram-MS252O5E-BjEEAAcr-2p7wm3j1.js} +1 -1
- package/bin/runtime/tui/{ru-DaitQUn1-hagr69y5.js → ru-C5TA59lK-jns7k6e5.js} +1 -1
- package/bin/runtime/tui/{ru-DjsUX_Mx-m7ckn8dk.js → ru-DtS87Pq4-jrk7v5aw.js} +1 -1
- package/bin/runtime/tui/{sankeyDiagram-XADWPNL6-mWMx9G9E-4f71xj48.js → sankeyDiagram-XADWPNL6-tTORGPwn-qtpp88mc.js} +1 -1
- package/bin/runtime/tui/{sequenceDiagram-FGHM5R23-0Ri6_7zP-k17t9yk8.js → sequenceDiagram-FGHM5R23-Chd2GR2n-v0dh3dgt.js} +1 -1
- package/bin/runtime/tui/{session-BV0LX606-j11ppydf.js → session-xxBuNFt6-pgavg5zv.js} +25 -25
- package/bin/runtime/tui/{settings-CaQrQUx2-jhes3jwj.js → settings-DAiABNBQ-08r9nej6.js} +1 -1
- package/bin/runtime/tui/{stateDiagram-FHFEXIEX-fwQ5rVuv-ecabdwkx.js → stateDiagram-FHFEXIEX-B0PmXsD5-0ncrecth.js} +1 -1
- package/bin/runtime/tui/stateDiagram-v2-QKLJ7IA2-BQp9UDrh-nz8sa58k.js +1 -0
- package/bin/runtime/tui/{th-DjONqhgk-72te62ev.js → th-BLv0rqnk-qhyahbgr.js} +1 -1
- package/bin/runtime/tui/{th-BS1uSHlN-gaxxaqr8.js → th-n0bdSbJW-hg46eqkv.js} +1 -1
- package/bin/runtime/tui/{timeline-definition-GMOUNBTQ-D_Neh8bS-f9qz8qj3.js → timeline-definition-GMOUNBTQ-DAd7pu9f-tt8fxjcy.js} +1 -1
- package/bin/runtime/tui/{tr-D7JUDkNG-trybtksg.js → tr-7N3SaL64-v5n6b6bw.js} +1 -1
- package/bin/runtime/tui/{tr-DHKVC_SD-t7crfnsr.js → tr-BFbjYrNY-a2gxx7v4.js} +1 -1
- package/bin/runtime/tui/{vennDiagram-DHZGUBPP-fIOdUHTG-bm8beekk.js → vennDiagram-DHZGUBPP-DmZAZOkV-tb4akpv9.js} +1 -1
- package/bin/runtime/tui/{wardley-RL74JXVD-mp486ivj-s1bcrv2m.js → wardley-RL74JXVD-D9krgESy-hc51cka6.js} +1 -1
- package/bin/runtime/tui/{wardleyDiagram-NUSXRM2D-CbulH8KL-9vtmgc00.js → wardleyDiagram-NUSXRM2D-Yu7Pm_ao-s084pty1.js} +1 -1
- package/bin/runtime/tui/{xychartDiagram-5P7HB3ND-5c4vGFpm-4ajepfh1.js → xychartDiagram-5P7HB3ND-DyPEpWm0-3aqchb1r.js} +1 -1
- package/bin/runtime/tui/{zh-BdQ5rFUE-gq6r6pg6.js → zh-B7FVGIem-dnw0eg81.js} +1 -1
- package/bin/runtime/tui/{zh--EusBuW5-v3jgdrns.js → zh-DDJFG7nx-rmp3bdtr.js} +1 -1
- package/bin/runtime/tui/{zht-C2Bj8Y3u-j4mn0ty9.js → zht-BPNRNUu6-s4vdbj2q.js} +1 -1
- package/bin/runtime/tui/{zht-uBUhPDWj-tabqnar8.js → zht-f-8ad5jF-65hba3y7.js} +1 -1
- package/package.json +1 -1
- package/bin/runtime/tui/channel-CRd61DfB-a84z4rad.js +0 -1
- package/bin/runtime/tui/classDiagram-6PBFFD2Q-B2auL2tY-ve962fat.js +0 -1
- package/bin/runtime/tui/classDiagram-v2-HSJHXN6E-B2auL2tY-ve962fat.js +0 -1
- package/bin/runtime/tui/clone-BzwFlJAo-xaa46y8s.js +0 -1
- package/bin/runtime/tui/stateDiagram-v2-QKLJ7IA2-Dwy86PJv-fgm1z51m.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as e}from"./index-CaPWFEmi.js";const o={"command.category.suggested":"추천","command.category.view":"보기","command.category.project":"프로젝트","command.category.provider":"공급자","command.category.server":"서버","command.category.session":"세션","command.category.theme":"테마","command.category.language":"언어","command.category.file":"파일","command.category.context":"컨텍스트","command.category.terminal":"터미널","command.category.model":"모델","command.category.agent":"에이전트","command.category.permissions":"권한","command.category.workspace":"작업 공간","command.category.settings":"설정","theme.scheme.system":"시스템","theme.scheme.light":"라이트","theme.scheme.dark":"다크","command.sidebar.toggle":"사이드바 토글","command.project.open":"프로젝트 열기","command.provider.connect":"공급자 연결","command.server.switch":"서버 전환","command.settings.open":"설정 열기","command.session.previous":"이전 세션","command.session.next":"다음 세션","command.session.previous.unseen":"이전 읽지 않은 세션","command.session.next.unseen":"다음 읽지 않은 세션","command.session.archive":"세션 보관","command.palette":"명령 팔레트","command.theme.cycle":"테마 순환","command.theme.set":"테마 사용: {{theme}}","command.theme.scheme.cycle":"색상 테마 순환","command.theme.scheme.set":"색상 테마 사용: {{scheme}}","command.language.cycle":"언어 순환","command.language.set":"언어 사용: {{language}}","command.session.new":"새 세션","command.file.open":"파일 열기","command.tab.close":"탭 닫기","command.context.addSelection":"선택 영역을 컨텍스트에 추가","command.context.addSelection.description":"현재 파일에서 선택한 줄을 추가","command.input.focus":"입력창 포커스","command.terminal.toggle":"터미널 토글","command.fileTree.toggle":"파일 트리 토글","command.review.toggle":"검토 토글","command.terminal.new":"새 터미널","command.terminal.new.description":"새 터미널 탭 생성","command.steps.toggle":"단계 토글","command.steps.toggle.description":"현재 메시지의 단계 표시/숨기기","command.message.previous":"이전 메시지","command.message.previous.description":"이전 사용자 메시지로 이동","command.message.next":"다음 메시지","command.message.next.description":"다음 사용자 메시지로 이동","command.model.choose":"모델 선택","command.model.choose.description":"다른 모델 선택","command.mcp.toggle":"MCP 토글","command.mcp.toggle.description":"MCP 토글","command.agent.cycle":"에이전트 순환","command.agent.cycle.description":"다음 에이전트로 전환","command.agent.cycle.reverse":"에이전트 역순환","command.agent.cycle.reverse.description":"이전 에이전트로 전환","command.model.variant.cycle":"생각 수준 순환","command.model.variant.cycle.description":"다음 생각 수준으로 전환","command.prompt.mode.shell":"셸","command.prompt.mode.normal":"프롬프트","command.permissions.autoaccept.enable":"권한 자동 수락","command.permissions.autoaccept.disable":"권한 자동 수락 중지","command.workspace.toggle":"작업 공간 전환","command.workspace.toggle.description":"사이드바에서 다중 작업 공간 활성화 또는 비활성화","command.session.undo":"실행 취소","command.session.undo.description":"마지막 메시지 실행 취소","command.session.redo":"다시 실행","command.session.redo.description":"마지막 실행 취소된 메시지 다시 실행","command.session.compact":"세션 압축","command.session.compact.description":"컨텍스트 크기를 줄이기 위해 세션 요약","command.session.fork":"메시지에서 분기","command.session.fork.description":"이전 메시지에서 새 세션 생성","command.session.share":"세션 공유","command.session.share.description":"이 세션을 공유하고 URL을 클립보드에 복사","command.session.unshare":"세션 공유 중지","command.session.unshare.description":"이 세션 공유 중지","palette.search.placeholder":"파일, 명령어 및 세션 검색","palette.empty":"결과 없음","palette.group.commands":"명령어","palette.group.files":"파일","dialog.provider.search.placeholder":"공급자 검색","dialog.provider.empty":"공급자 없음","dialog.provider.group.popular":"인기","dialog.provider.group.other":"기타","dialog.provider.tag.recommended":"추천","dialog.provider.codeplane.note":"Claude, GPT, Gemini 등을 포함한 엄선된 모델","dialog.provider.codeplane.tagline":"신뢰할 수 있는 최적화 모델","dialog.provider.anthropic.note":"Anthropic API 키로 연결","dialog.provider.copilot.note":"Copilot 또는 API 키로 연결","dialog.provider.openai.note":"ChatGPT Pro/Plus 또는 API 키로 연결","dialog.provider.google.note":"빠르고 구조화된 응답을 위한 Gemini 모델","dialog.provider.openrouter.note":"모든 지원 모델을 단일 공급자에서 액세스","dialog.provider.vercel.note":"스마트 라우팅을 통한 AI 모델 통합 액세스","dialog.model.select.title":"모델 선택","dialog.model.search.placeholder":"모델 검색","dialog.model.empty":"모델 결과 없음","dialog.model.manage":"모델 관리","dialog.model.manage.description":"모델 선택기에 표시할 모델 사용자 지정","dialog.model.manage.provider.toggle":"모든 {{provider}} 모델 토글","dialog.model.unpaid.freeModels.title":"Codeplane에서 제공하는 무료 모델","dialog.model.unpaid.addMore.title":"인기 공급자의 모델 추가","dialog.provider.viewAll":"더 많은 공급자 보기","provider.connect.title":"{{provider}} 연결","provider.connect.title.anthropicProMax":"Claude Pro/Max로 로그인","provider.connect.selectMethod":"{{provider}} 로그인 방법 선택","provider.connect.method.apiKey":"API 키","provider.connect.status.inProgress":"인증 진행 중...","provider.connect.status.waiting":"인증 대기 중...","provider.connect.status.failed":"인증 실패: {{error}}","provider.connect.apiKey.description":"{{provider}} API 키를 입력하여 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.apiKey.label":"{{provider}} API 키","provider.connect.apiKey.placeholder":"API 키","provider.connect.apiKey.required":"API 키가 필요합니다","provider.connect.oauth.code.visit.prefix":"다음 ","provider.connect.oauth.code.visit.link":"이 링크","provider.connect.oauth.code.visit.suffix":"를 방문하여 인증 코드를 받아 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.oauth.code.label":"{{method}} 인증 코드","provider.connect.oauth.code.placeholder":"인증 코드","provider.connect.oauth.code.required":"인증 코드가 필요합니다","provider.connect.oauth.code.invalid":"유효하지 않은 인증 코드","provider.connect.oauth.auto.visit.prefix":"다음 ","provider.connect.oauth.auto.visit.link":"이 링크","provider.connect.oauth.auto.visit.suffix":"를 방문하고 아래 코드를 입력하여 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.oauth.auto.confirmationCode":"확인 코드","provider.connect.toast.connected.title":"{{provider}} 연결됨","provider.connect.toast.connected.description":"이제 {{provider}} 모델을 사용할 수 있습니다.","provider.custom.title":"사용자 지정 공급자","provider.custom.description.prefix":"OpenAI 호환 공급자를 구성합니다. ","provider.custom.description.link":"공급자 구성 문서","provider.custom.description.suffix":"를 참조하세요.","provider.custom.field.providerID.label":"공급자 ID","provider.custom.field.providerID.description":"소문자, 숫자, 하이픈 또는 밑줄","provider.custom.field.name.label":"표시 이름","provider.custom.field.name.placeholder":"내 AI 공급자","provider.custom.field.baseURL.label":"기본 URL","provider.custom.field.apiKey.label":"API 키","provider.custom.field.apiKey.placeholder":"API 키","provider.custom.field.apiKey.description":"선택 사항입니다. 헤더를 통해 인증을 관리하는 경우 비워 두세요.","provider.custom.models.label":"모델","provider.custom.models.name.label":"이름","provider.custom.models.name.placeholder":"표시 이름","provider.custom.models.remove":"모델 제거","provider.custom.models.add":"모델 추가","provider.custom.headers.label":"헤더 (선택 사항)","provider.custom.headers.key.label":"헤더","provider.custom.headers.key.placeholder":"헤더 이름","provider.custom.headers.value.label":"값","provider.custom.headers.value.placeholder":"값","provider.custom.headers.remove":"헤더 제거","provider.custom.headers.add":"헤더 추가","provider.custom.error.providerID.required":"공급자 ID가 필요합니다","provider.custom.error.providerID.format":"소문자, 숫자, 하이픈 또는 밑줄을 사용하세요","provider.custom.error.providerID.exists":"해당 공급자 ID가 이미 존재합니다","provider.custom.error.name.required":"표시 이름이 필요합니다","provider.custom.error.baseURL.required":"기본 URL이 필요합니다","provider.custom.error.baseURL.format":"http:// 또는 https://로 시작해야 합니다","provider.custom.error.required":"필수","provider.custom.error.duplicate":"중복","provider.disconnect.toast.disconnected.title":"{{provider}} 연결 해제됨","provider.disconnect.toast.disconnected.description":"{{provider}} 모델을 더 이상 사용할 수 없습니다.","model.tag.free":"무료","model.tag.latest":"최신","model.input.text":"텍스트","model.input.image":"이미지","model.input.audio":"오디오","model.input.video":"비디오","model.tooltip.allows":"지원: {{inputs}}","model.tooltip.reasoning.allowed":"추론 허용","model.tooltip.reasoning.none":"추론 없음","model.tooltip.context":"컨텍스트 제한 {{limit}}","common.search.placeholder":"검색","common.goBack":"뒤로 가기","common.goForward":"앞으로 가기","common.loading":"로딩 중","common.cancel":"취소","common.connect":"연결","common.disconnect":"연결 해제","common.continue":"제출","common.submit":"제출","common.save":"저장","common.saving":"저장 중...","common.default":"기본값","common.attachment":"첨부 파일","prompt.placeholder.shell":"셸 명령어 입력... {{example}}","prompt.placeholder.normal":'무엇이든 물어보세요... "{{example}}"',"prompt.placeholder.simple":"무엇이든 물어보세요...","prompt.placeholder.summarizeComments":"댓글 요약…","prompt.placeholder.summarizeComment":"댓글 요약…","prompt.mode.shell":"셸","prompt.mode.normal":"프롬프트","prompt.mode.shell.exit":"종료하려면 esc","prompt.example.1":"코드베이스의 TODO 수정","prompt.example.2":"이 프로젝트의 기술 스택이 무엇인가요?","prompt.example.3":"고장 난 테스트 수정","prompt.example.4":"인증 작동 방식 설명","prompt.example.5":"보안 취약점 찾기 및 수정","prompt.example.6":"사용자 서비스에 단위 테스트 추가","prompt.example.7":"이 함수를 더 읽기 쉽게 리팩터링","prompt.example.8":"이 오류는 무엇을 의미하나요?","prompt.example.9":"이 문제 디버깅 도와줘","prompt.example.10":"API 문서 생성","prompt.example.11":"데이터베이스 쿼리 최적화","prompt.example.12":"입력 유효성 검사 추가","prompt.example.13":"...를 위한 새 컴포넌트 생성","prompt.example.14":"이 프로젝트를 어떻게 배포하나요?","prompt.example.15":"모범 사례를 기준으로 내 코드 검토","prompt.example.16":"이 함수에 오류 처리 추가","prompt.example.17":"이 정규식 패턴 설명","prompt.example.18":"이것을 TypeScript로 변환","prompt.example.19":"코드베이스 전체에 로깅 추가","prompt.example.20":"오래된 종속성은 무엇인가요?","prompt.example.21":"마이그레이션 스크립트 작성 도와줘","prompt.example.22":"이 엔드포인트에 캐싱 구현","prompt.example.23":"이 목록에 페이지네이션 추가","prompt.example.24":"...를 위한 CLI 명령어 생성","prompt.example.25":"여기서 환경 변수는 어떻게 작동하나요?","prompt.popover.emptyResults":"일치하는 결과 없음","prompt.popover.emptyCommands":"일치하는 명령어 없음","prompt.dropzone.label":"이미지, PDF 또는 텍스트 파일을 이곳에 드롭하세요","prompt.dropzone.file.label":"드롭하여 파일 @멘션 추가","prompt.slash.badge.custom":"사용자 지정","prompt.slash.badge.skill":"스킬","prompt.context.active":"활성","prompt.context.includeActiveFile":"활성 파일 포함","prompt.context.removeActiveFile":"컨텍스트에서 활성 파일 제거","prompt.context.removeFile":"컨텍스트에서 파일 제거","prompt.action.attachFile":"파일 첨부","prompt.attachment.remove":"첨부 파일 제거","prompt.action.send":"전송","prompt.action.stop":"중지","prompt.toast.pasteUnsupported.title":"지원되지 않는 첨부 파일","prompt.toast.pasteUnsupported.description":"이미지, PDF 또는 텍스트 파일만 첨부할 수 있습니다.","prompt.toast.modelAgentRequired.title":"에이전트 및 모델 선택","prompt.toast.modelAgentRequired.description":"프롬프트를 보내기 전에 에이전트와 모델을 선택하세요.","prompt.toast.worktreeCreateFailed.title":"작업 트리 생성 실패","prompt.toast.sessionCreateFailed.title":"세션 생성 실패","prompt.toast.shellSendFailed.title":"셸 명령 전송 실패","prompt.toast.commandSendFailed.title":"명령 전송 실패","prompt.toast.promptSendFailed.title":"프롬프트 전송 실패","prompt.toast.promptSendFailed.description":"세션을 가져올 수 없습니다","dialog.mcp.title":"MCP","dialog.mcp.description":"{{total}}개 중 {{enabled}}개 활성화됨","dialog.mcp.empty":"구성된 MCP 없음","dialog.lsp.empty":"파일 유형에서 자동 감지된 LSP","dialog.plugins.empty":"codeplane.json에 구성된 플러그인","mcp.status.connected":"연결됨","mcp.status.failed":"실패","mcp.status.needs_auth":"인증 필요","mcp.status.disabled":"비활성화됨","dialog.fork.empty":"분기할 메시지 없음","dialog.directory.search.placeholder":"폴더 검색","dialog.directory.empty":"폴더 없음","dialog.server.title":"서버","dialog.server.description":"이 앱이 연결할 Codeplane 서버를 전환합니다.","dialog.server.search.placeholder":"서버 검색","dialog.server.empty":"서버 없음","dialog.server.add.title":"서버 추가","dialog.server.add.url":"서버 URL","dialog.server.add.error":"서버에 연결할 수 없습니다","dialog.server.add.checking":"확인 중...","dialog.server.add.button":"서버 추가","dialog.server.add.name":"서버 이름 (선택 사항)","dialog.server.add.username":"사용자 이름 (선택 사항)","dialog.server.add.password":"비밀번호 (선택 사항)","dialog.server.edit.title":"서버 편집","dialog.server.default.title":"기본 서버","dialog.server.default.description":"로컬 서버를 시작하는 대신 앱 실행 시 이 서버에 연결합니다. 다시 시작해야 합니다.","dialog.server.default.none":"선택된 서버 없음","dialog.server.default.set":"현재 서버를 기본값으로 설정","dialog.server.default.clear":"지우기","dialog.server.action.remove":"서버 제거","dialog.server.menu.edit":"편집","dialog.server.menu.default":"기본값으로 설정","dialog.server.menu.defaultRemove":"기본값 제거","dialog.server.menu.delete":"삭제","dialog.server.current":"현재 서버","dialog.server.status.default":"기본값","dialog.project.edit.title":"프로젝트 편집","dialog.project.edit.name":"이름","dialog.project.edit.icon":"아이콘","dialog.project.edit.icon.alt":"프로젝트 아이콘","dialog.project.edit.icon.hint":"이미지를 클릭하거나 드래그하세요","dialog.project.edit.icon.recommended":"권장: 128x128px","dialog.project.edit.color":"색상","dialog.project.edit.color.select":"{{color}} 색상 선택","dialog.project.edit.worktree.startup":"작업 공간 시작 스크립트","dialog.project.edit.worktree.startup.description":"새 작업 공간(작업 트리)을 만든 뒤 실행됩니다.","dialog.project.edit.worktree.startup.placeholder":"예: bun install","context.breakdown.title":"컨텍스트 분석","context.breakdown.note":'입력 토큰의 대략적인 분석입니다. "기타"에는 도구 정의 및 오버헤드가 포함됩니다.',"context.breakdown.system":"시스템","context.breakdown.user":"사용자","context.breakdown.assistant":"어시스턴트","context.breakdown.tool":"도구 호출","context.breakdown.other":"기타","context.systemPrompt.title":"시스템 프롬프트","context.rawMessages.title":"원시 메시지","context.stats.session":"세션","context.stats.messages":"메시지","context.stats.provider":"공급자","context.stats.model":"모델","context.stats.limit":"컨텍스트 제한","context.stats.totalTokens":"총 토큰","context.stats.usage":"사용량","context.stats.inputTokens":"입력 토큰","context.stats.outputTokens":"출력 토큰","context.stats.reasoningTokens":"추론 토큰","context.stats.cacheTokens":"캐시 토큰 (읽기/쓰기)","context.stats.userMessages":"사용자 메시지","context.stats.assistantMessages":"어시스턴트 메시지","context.stats.totalCost":"총 비용","context.stats.sessionCreated":"세션 생성됨","context.stats.lastActivity":"최근 활동","context.usage.tokens":"토큰","context.usage.usage":"사용량","context.usage.cost":"비용","context.usage.clickToView":"컨텍스트를 보려면 클릭","context.usage.view":"컨텍스트 사용량 보기","toast.language.title":"언어","toast.language.description":"{{language}}(으)로 전환됨","toast.theme.title":"테마 전환됨","toast.scheme.title":"색상 테마","toast.workspace.enabled.title":"작업 공간 활성화됨","toast.workspace.enabled.description":"이제 사이드바에 여러 작업 트리가 표시됩니다","toast.workspace.disabled.title":"작업 공간 비활성화됨","toast.workspace.disabled.description":"사이드바에 메인 작업 트리만 표시됩니다","toast.permissions.autoaccept.on.title":"권한 자동 수락 중","toast.permissions.autoaccept.on.description":"권한 요청이 자동으로 승인됩니다","toast.permissions.autoaccept.off.title":"권한 자동 수락 중지됨","toast.permissions.autoaccept.off.description":"권한 요청에 승인이 필요합니다","toast.model.none.title":"선택된 모델 없음","toast.model.none.description":"이 세션을 요약하려면 공급자를 연결하세요","toast.file.loadFailed.title":"파일 로드 실패","toast.file.listFailed.title":"파일 목록을 불러오지 못했습니다","toast.context.noLineSelection.title":"줄 선택 없음","toast.context.noLineSelection.description":"먼저 파일 탭에서 줄 범위를 선택하세요.","toast.session.share.copyFailed.title":"URL 클립보드 복사 실패","toast.session.share.success.title":"세션 공유됨","toast.session.share.success.description":"공유 URL이 클립보드에 복사되었습니다!","toast.session.share.failed.title":"세션 공유 실패","toast.session.share.failed.description":"세션을 공유하는 동안 오류가 발생했습니다","toast.session.unshare.success.title":"세션 공유 해제됨","toast.session.unshare.success.description":"세션 공유가 성공적으로 해제되었습니다!","toast.session.unshare.failed.title":"세션 공유 해제 실패","toast.session.unshare.failed.description":"세션 공유를 해제하는 동안 오류가 발생했습니다","toast.session.listFailed.title":"{{project}}에 대한 세션을 로드하지 못했습니다","error.page.title":"문제가 발생했습니다","error.page.description":"애플리케이션을 로드하는 동안 오류가 발생했습니다.","error.page.details.label":"오류 세부 정보","error.page.action.restart":"다시 시작","error.page.report.prefix":"이 오류를 Codeplane 팀에 제보해 주세요: ","error.page.report.issues":"GitHub에서","error.page.version":"버전: {{version}}","error.dev.rootNotFound":"루트 요소를 찾을 수 없습니다. index.html에 추가하는 것을 잊으셨나요? 또는 id 속성의 철자가 틀렸을 수 있습니다.","error.globalSync.connectFailed":"서버에 연결할 수 없습니다. `{{url}}`에서 서버가 실행 중인가요?","directory.error.invalidUrl":"URL에 유효하지 않은 디렉터리가 있습니다.","error.chain.unknown":"알 수 없는 오류","error.chain.causedBy":"원인:","error.chain.apiError":"API 오류","error.chain.status":"상태: {{status}}","error.chain.retryable":"재시도 가능: {{retryable}}","error.chain.responseBody":`응답 본문:
|
|
1
|
+
import{d as e}from"./index-B3MnqBGf.js";const o={"command.category.suggested":"추천","command.category.view":"보기","command.category.project":"프로젝트","command.category.provider":"공급자","command.category.server":"서버","command.category.session":"세션","command.category.theme":"테마","command.category.language":"언어","command.category.file":"파일","command.category.context":"컨텍스트","command.category.terminal":"터미널","command.category.model":"모델","command.category.agent":"에이전트","command.category.permissions":"권한","command.category.workspace":"작업 공간","command.category.settings":"설정","theme.scheme.system":"시스템","theme.scheme.light":"라이트","theme.scheme.dark":"다크","command.sidebar.toggle":"사이드바 토글","command.project.open":"프로젝트 열기","command.provider.connect":"공급자 연결","command.server.switch":"서버 전환","command.settings.open":"설정 열기","command.session.previous":"이전 세션","command.session.next":"다음 세션","command.session.previous.unseen":"이전 읽지 않은 세션","command.session.next.unseen":"다음 읽지 않은 세션","command.session.archive":"세션 보관","command.palette":"명령 팔레트","command.theme.cycle":"테마 순환","command.theme.set":"테마 사용: {{theme}}","command.theme.scheme.cycle":"색상 테마 순환","command.theme.scheme.set":"색상 테마 사용: {{scheme}}","command.language.cycle":"언어 순환","command.language.set":"언어 사용: {{language}}","command.session.new":"새 세션","command.file.open":"파일 열기","command.tab.close":"탭 닫기","command.context.addSelection":"선택 영역을 컨텍스트에 추가","command.context.addSelection.description":"현재 파일에서 선택한 줄을 추가","command.input.focus":"입력창 포커스","command.terminal.toggle":"터미널 토글","command.fileTree.toggle":"파일 트리 토글","command.review.toggle":"검토 토글","command.terminal.new":"새 터미널","command.terminal.new.description":"새 터미널 탭 생성","command.steps.toggle":"단계 토글","command.steps.toggle.description":"현재 메시지의 단계 표시/숨기기","command.message.previous":"이전 메시지","command.message.previous.description":"이전 사용자 메시지로 이동","command.message.next":"다음 메시지","command.message.next.description":"다음 사용자 메시지로 이동","command.model.choose":"모델 선택","command.model.choose.description":"다른 모델 선택","command.mcp.toggle":"MCP 토글","command.mcp.toggle.description":"MCP 토글","command.agent.cycle":"에이전트 순환","command.agent.cycle.description":"다음 에이전트로 전환","command.agent.cycle.reverse":"에이전트 역순환","command.agent.cycle.reverse.description":"이전 에이전트로 전환","command.model.variant.cycle":"생각 수준 순환","command.model.variant.cycle.description":"다음 생각 수준으로 전환","command.prompt.mode.shell":"셸","command.prompt.mode.normal":"프롬프트","command.permissions.autoaccept.enable":"권한 자동 수락","command.permissions.autoaccept.disable":"권한 자동 수락 중지","command.workspace.toggle":"작업 공간 전환","command.workspace.toggle.description":"사이드바에서 다중 작업 공간 활성화 또는 비활성화","command.session.undo":"실행 취소","command.session.undo.description":"마지막 메시지 실행 취소","command.session.redo":"다시 실행","command.session.redo.description":"마지막 실행 취소된 메시지 다시 실행","command.session.compact":"세션 압축","command.session.compact.description":"컨텍스트 크기를 줄이기 위해 세션 요약","command.session.fork":"메시지에서 분기","command.session.fork.description":"이전 메시지에서 새 세션 생성","command.session.share":"세션 공유","command.session.share.description":"이 세션을 공유하고 URL을 클립보드에 복사","command.session.unshare":"세션 공유 중지","command.session.unshare.description":"이 세션 공유 중지","palette.search.placeholder":"파일, 명령어 및 세션 검색","palette.empty":"결과 없음","palette.group.commands":"명령어","palette.group.files":"파일","dialog.provider.search.placeholder":"공급자 검색","dialog.provider.empty":"공급자 없음","dialog.provider.group.popular":"인기","dialog.provider.group.other":"기타","dialog.provider.tag.recommended":"추천","dialog.provider.codeplane.note":"Claude, GPT, Gemini 등을 포함한 엄선된 모델","dialog.provider.codeplane.tagline":"신뢰할 수 있는 최적화 모델","dialog.provider.anthropic.note":"Anthropic API 키로 연결","dialog.provider.copilot.note":"Copilot 또는 API 키로 연결","dialog.provider.openai.note":"ChatGPT Pro/Plus 또는 API 키로 연결","dialog.provider.google.note":"빠르고 구조화된 응답을 위한 Gemini 모델","dialog.provider.openrouter.note":"모든 지원 모델을 단일 공급자에서 액세스","dialog.provider.vercel.note":"스마트 라우팅을 통한 AI 모델 통합 액세스","dialog.model.select.title":"모델 선택","dialog.model.search.placeholder":"모델 검색","dialog.model.empty":"모델 결과 없음","dialog.model.manage":"모델 관리","dialog.model.manage.description":"모델 선택기에 표시할 모델 사용자 지정","dialog.model.manage.provider.toggle":"모든 {{provider}} 모델 토글","dialog.model.unpaid.freeModels.title":"Codeplane에서 제공하는 무료 모델","dialog.model.unpaid.addMore.title":"인기 공급자의 모델 추가","dialog.provider.viewAll":"더 많은 공급자 보기","provider.connect.title":"{{provider}} 연결","provider.connect.title.anthropicProMax":"Claude Pro/Max로 로그인","provider.connect.selectMethod":"{{provider}} 로그인 방법 선택","provider.connect.method.apiKey":"API 키","provider.connect.status.inProgress":"인증 진행 중...","provider.connect.status.waiting":"인증 대기 중...","provider.connect.status.failed":"인증 실패: {{error}}","provider.connect.apiKey.description":"{{provider}} API 키를 입력하여 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.apiKey.label":"{{provider}} API 키","provider.connect.apiKey.placeholder":"API 키","provider.connect.apiKey.required":"API 키가 필요합니다","provider.connect.oauth.code.visit.prefix":"다음 ","provider.connect.oauth.code.visit.link":"이 링크","provider.connect.oauth.code.visit.suffix":"를 방문하여 인증 코드를 받아 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.oauth.code.label":"{{method}} 인증 코드","provider.connect.oauth.code.placeholder":"인증 코드","provider.connect.oauth.code.required":"인증 코드가 필요합니다","provider.connect.oauth.code.invalid":"유효하지 않은 인증 코드","provider.connect.oauth.auto.visit.prefix":"다음 ","provider.connect.oauth.auto.visit.link":"이 링크","provider.connect.oauth.auto.visit.suffix":"를 방문하고 아래 코드를 입력하여 계정을 연결하고 Codeplane에서 {{provider}} 모델을 사용하세요.","provider.connect.oauth.auto.confirmationCode":"확인 코드","provider.connect.toast.connected.title":"{{provider}} 연결됨","provider.connect.toast.connected.description":"이제 {{provider}} 모델을 사용할 수 있습니다.","provider.custom.title":"사용자 지정 공급자","provider.custom.description.prefix":"OpenAI 호환 공급자를 구성합니다. ","provider.custom.description.link":"공급자 구성 문서","provider.custom.description.suffix":"를 참조하세요.","provider.custom.field.providerID.label":"공급자 ID","provider.custom.field.providerID.description":"소문자, 숫자, 하이픈 또는 밑줄","provider.custom.field.name.label":"표시 이름","provider.custom.field.name.placeholder":"내 AI 공급자","provider.custom.field.baseURL.label":"기본 URL","provider.custom.field.apiKey.label":"API 키","provider.custom.field.apiKey.placeholder":"API 키","provider.custom.field.apiKey.description":"선택 사항입니다. 헤더를 통해 인증을 관리하는 경우 비워 두세요.","provider.custom.models.label":"모델","provider.custom.models.name.label":"이름","provider.custom.models.name.placeholder":"표시 이름","provider.custom.models.remove":"모델 제거","provider.custom.models.add":"모델 추가","provider.custom.headers.label":"헤더 (선택 사항)","provider.custom.headers.key.label":"헤더","provider.custom.headers.key.placeholder":"헤더 이름","provider.custom.headers.value.label":"값","provider.custom.headers.value.placeholder":"값","provider.custom.headers.remove":"헤더 제거","provider.custom.headers.add":"헤더 추가","provider.custom.error.providerID.required":"공급자 ID가 필요합니다","provider.custom.error.providerID.format":"소문자, 숫자, 하이픈 또는 밑줄을 사용하세요","provider.custom.error.providerID.exists":"해당 공급자 ID가 이미 존재합니다","provider.custom.error.name.required":"표시 이름이 필요합니다","provider.custom.error.baseURL.required":"기본 URL이 필요합니다","provider.custom.error.baseURL.format":"http:// 또는 https://로 시작해야 합니다","provider.custom.error.required":"필수","provider.custom.error.duplicate":"중복","provider.disconnect.toast.disconnected.title":"{{provider}} 연결 해제됨","provider.disconnect.toast.disconnected.description":"{{provider}} 모델을 더 이상 사용할 수 없습니다.","model.tag.free":"무료","model.tag.latest":"최신","model.input.text":"텍스트","model.input.image":"이미지","model.input.audio":"오디오","model.input.video":"비디오","model.tooltip.allows":"지원: {{inputs}}","model.tooltip.reasoning.allowed":"추론 허용","model.tooltip.reasoning.none":"추론 없음","model.tooltip.context":"컨텍스트 제한 {{limit}}","common.search.placeholder":"검색","common.goBack":"뒤로 가기","common.goForward":"앞으로 가기","common.loading":"로딩 중","common.cancel":"취소","common.connect":"연결","common.disconnect":"연결 해제","common.continue":"제출","common.submit":"제출","common.save":"저장","common.saving":"저장 중...","common.default":"기본값","common.attachment":"첨부 파일","prompt.placeholder.shell":"셸 명령어 입력... {{example}}","prompt.placeholder.normal":'무엇이든 물어보세요... "{{example}}"',"prompt.placeholder.simple":"무엇이든 물어보세요...","prompt.placeholder.summarizeComments":"댓글 요약…","prompt.placeholder.summarizeComment":"댓글 요약…","prompt.mode.shell":"셸","prompt.mode.normal":"프롬프트","prompt.mode.shell.exit":"종료하려면 esc","prompt.example.1":"코드베이스의 TODO 수정","prompt.example.2":"이 프로젝트의 기술 스택이 무엇인가요?","prompt.example.3":"고장 난 테스트 수정","prompt.example.4":"인증 작동 방식 설명","prompt.example.5":"보안 취약점 찾기 및 수정","prompt.example.6":"사용자 서비스에 단위 테스트 추가","prompt.example.7":"이 함수를 더 읽기 쉽게 리팩터링","prompt.example.8":"이 오류는 무엇을 의미하나요?","prompt.example.9":"이 문제 디버깅 도와줘","prompt.example.10":"API 문서 생성","prompt.example.11":"데이터베이스 쿼리 최적화","prompt.example.12":"입력 유효성 검사 추가","prompt.example.13":"...를 위한 새 컴포넌트 생성","prompt.example.14":"이 프로젝트를 어떻게 배포하나요?","prompt.example.15":"모범 사례를 기준으로 내 코드 검토","prompt.example.16":"이 함수에 오류 처리 추가","prompt.example.17":"이 정규식 패턴 설명","prompt.example.18":"이것을 TypeScript로 변환","prompt.example.19":"코드베이스 전체에 로깅 추가","prompt.example.20":"오래된 종속성은 무엇인가요?","prompt.example.21":"마이그레이션 스크립트 작성 도와줘","prompt.example.22":"이 엔드포인트에 캐싱 구현","prompt.example.23":"이 목록에 페이지네이션 추가","prompt.example.24":"...를 위한 CLI 명령어 생성","prompt.example.25":"여기서 환경 변수는 어떻게 작동하나요?","prompt.popover.emptyResults":"일치하는 결과 없음","prompt.popover.emptyCommands":"일치하는 명령어 없음","prompt.dropzone.label":"이미지, PDF 또는 텍스트 파일을 이곳에 드롭하세요","prompt.dropzone.file.label":"드롭하여 파일 @멘션 추가","prompt.slash.badge.custom":"사용자 지정","prompt.slash.badge.skill":"스킬","prompt.context.active":"활성","prompt.context.includeActiveFile":"활성 파일 포함","prompt.context.removeActiveFile":"컨텍스트에서 활성 파일 제거","prompt.context.removeFile":"컨텍스트에서 파일 제거","prompt.action.attachFile":"파일 첨부","prompt.attachment.remove":"첨부 파일 제거","prompt.action.send":"전송","prompt.action.stop":"중지","prompt.toast.pasteUnsupported.title":"지원되지 않는 첨부 파일","prompt.toast.pasteUnsupported.description":"이미지, PDF 또는 텍스트 파일만 첨부할 수 있습니다.","prompt.toast.modelAgentRequired.title":"에이전트 및 모델 선택","prompt.toast.modelAgentRequired.description":"프롬프트를 보내기 전에 에이전트와 모델을 선택하세요.","prompt.toast.worktreeCreateFailed.title":"작업 트리 생성 실패","prompt.toast.sessionCreateFailed.title":"세션 생성 실패","prompt.toast.shellSendFailed.title":"셸 명령 전송 실패","prompt.toast.commandSendFailed.title":"명령 전송 실패","prompt.toast.promptSendFailed.title":"프롬프트 전송 실패","prompt.toast.promptSendFailed.description":"세션을 가져올 수 없습니다","dialog.mcp.title":"MCP","dialog.mcp.description":"{{total}}개 중 {{enabled}}개 활성화됨","dialog.mcp.empty":"구성된 MCP 없음","dialog.lsp.empty":"파일 유형에서 자동 감지된 LSP","dialog.plugins.empty":"codeplane.json에 구성된 플러그인","mcp.status.connected":"연결됨","mcp.status.failed":"실패","mcp.status.needs_auth":"인증 필요","mcp.status.disabled":"비활성화됨","dialog.fork.empty":"분기할 메시지 없음","dialog.directory.search.placeholder":"폴더 검색","dialog.directory.empty":"폴더 없음","dialog.server.title":"서버","dialog.server.description":"이 앱이 연결할 Codeplane 서버를 전환합니다.","dialog.server.search.placeholder":"서버 검색","dialog.server.empty":"서버 없음","dialog.server.add.title":"서버 추가","dialog.server.add.url":"서버 URL","dialog.server.add.error":"서버에 연결할 수 없습니다","dialog.server.add.checking":"확인 중...","dialog.server.add.button":"서버 추가","dialog.server.add.name":"서버 이름 (선택 사항)","dialog.server.add.username":"사용자 이름 (선택 사항)","dialog.server.add.password":"비밀번호 (선택 사항)","dialog.server.edit.title":"서버 편집","dialog.server.default.title":"기본 서버","dialog.server.default.description":"로컬 서버를 시작하는 대신 앱 실행 시 이 서버에 연결합니다. 다시 시작해야 합니다.","dialog.server.default.none":"선택된 서버 없음","dialog.server.default.set":"현재 서버를 기본값으로 설정","dialog.server.default.clear":"지우기","dialog.server.action.remove":"서버 제거","dialog.server.menu.edit":"편집","dialog.server.menu.default":"기본값으로 설정","dialog.server.menu.defaultRemove":"기본값 제거","dialog.server.menu.delete":"삭제","dialog.server.current":"현재 서버","dialog.server.status.default":"기본값","dialog.project.edit.title":"프로젝트 편집","dialog.project.edit.name":"이름","dialog.project.edit.icon":"아이콘","dialog.project.edit.icon.alt":"프로젝트 아이콘","dialog.project.edit.icon.hint":"이미지를 클릭하거나 드래그하세요","dialog.project.edit.icon.recommended":"권장: 128x128px","dialog.project.edit.color":"색상","dialog.project.edit.color.select":"{{color}} 색상 선택","dialog.project.edit.worktree.startup":"작업 공간 시작 스크립트","dialog.project.edit.worktree.startup.description":"새 작업 공간(작업 트리)을 만든 뒤 실행됩니다.","dialog.project.edit.worktree.startup.placeholder":"예: bun install","context.breakdown.title":"컨텍스트 분석","context.breakdown.note":'입력 토큰의 대략적인 분석입니다. "기타"에는 도구 정의 및 오버헤드가 포함됩니다.',"context.breakdown.system":"시스템","context.breakdown.user":"사용자","context.breakdown.assistant":"어시스턴트","context.breakdown.tool":"도구 호출","context.breakdown.other":"기타","context.systemPrompt.title":"시스템 프롬프트","context.rawMessages.title":"원시 메시지","context.stats.session":"세션","context.stats.messages":"메시지","context.stats.provider":"공급자","context.stats.model":"모델","context.stats.limit":"컨텍스트 제한","context.stats.totalTokens":"총 토큰","context.stats.usage":"사용량","context.stats.inputTokens":"입력 토큰","context.stats.outputTokens":"출력 토큰","context.stats.reasoningTokens":"추론 토큰","context.stats.cacheTokens":"캐시 토큰 (읽기/쓰기)","context.stats.userMessages":"사용자 메시지","context.stats.assistantMessages":"어시스턴트 메시지","context.stats.totalCost":"총 비용","context.stats.sessionCreated":"세션 생성됨","context.stats.lastActivity":"최근 활동","context.usage.tokens":"토큰","context.usage.usage":"사용량","context.usage.cost":"비용","context.usage.clickToView":"컨텍스트를 보려면 클릭","context.usage.view":"컨텍스트 사용량 보기","toast.language.title":"언어","toast.language.description":"{{language}}(으)로 전환됨","toast.theme.title":"테마 전환됨","toast.scheme.title":"색상 테마","toast.workspace.enabled.title":"작업 공간 활성화됨","toast.workspace.enabled.description":"이제 사이드바에 여러 작업 트리가 표시됩니다","toast.workspace.disabled.title":"작업 공간 비활성화됨","toast.workspace.disabled.description":"사이드바에 메인 작업 트리만 표시됩니다","toast.permissions.autoaccept.on.title":"권한 자동 수락 중","toast.permissions.autoaccept.on.description":"권한 요청이 자동으로 승인됩니다","toast.permissions.autoaccept.off.title":"권한 자동 수락 중지됨","toast.permissions.autoaccept.off.description":"권한 요청에 승인이 필요합니다","toast.model.none.title":"선택된 모델 없음","toast.model.none.description":"이 세션을 요약하려면 공급자를 연결하세요","toast.file.loadFailed.title":"파일 로드 실패","toast.file.listFailed.title":"파일 목록을 불러오지 못했습니다","toast.context.noLineSelection.title":"줄 선택 없음","toast.context.noLineSelection.description":"먼저 파일 탭에서 줄 범위를 선택하세요.","toast.session.share.copyFailed.title":"URL 클립보드 복사 실패","toast.session.share.success.title":"세션 공유됨","toast.session.share.success.description":"공유 URL이 클립보드에 복사되었습니다!","toast.session.share.failed.title":"세션 공유 실패","toast.session.share.failed.description":"세션을 공유하는 동안 오류가 발생했습니다","toast.session.unshare.success.title":"세션 공유 해제됨","toast.session.unshare.success.description":"세션 공유가 성공적으로 해제되었습니다!","toast.session.unshare.failed.title":"세션 공유 해제 실패","toast.session.unshare.failed.description":"세션 공유를 해제하는 동안 오류가 발생했습니다","toast.session.listFailed.title":"{{project}}에 대한 세션을 로드하지 못했습니다","error.page.title":"문제가 발생했습니다","error.page.description":"애플리케이션을 로드하는 동안 오류가 발생했습니다.","error.page.details.label":"오류 세부 정보","error.page.action.restart":"다시 시작","error.page.report.prefix":"이 오류를 Codeplane 팀에 제보해 주세요: ","error.page.report.issues":"GitHub에서","error.page.version":"버전: {{version}}","error.dev.rootNotFound":"루트 요소를 찾을 수 없습니다. index.html에 추가하는 것을 잊으셨나요? 또는 id 속성의 철자가 틀렸을 수 있습니다.","error.globalSync.connectFailed":"서버에 연결할 수 없습니다. `{{url}}`에서 서버가 실행 중인가요?","directory.error.invalidUrl":"URL에 유효하지 않은 디렉터리가 있습니다.","error.chain.unknown":"알 수 없는 오류","error.chain.causedBy":"원인:","error.chain.apiError":"API 오류","error.chain.status":"상태: {{status}}","error.chain.retryable":"재시도 가능: {{retryable}}","error.chain.responseBody":`응답 본문:
|
|
2
2
|
{{body}}`,"error.chain.didYouMean":"혹시 {{suggestions}}을(를) 의미하셨나요?","error.chain.modelNotFound":"모델을 찾을 수 없음: {{provider}}/{{model}}","error.chain.checkConfig":"구성(codeplane.json)의 공급자/모델 이름을 확인하세요","error.chain.mcpFailed":'MCP 서버 "{{name}}" 실패. 참고: Codeplane는 아직 MCP 인증을 지원하지 않습니다.',"error.chain.providerAuthFailed":"공급자 인증 실패 ({{provider}}): {{message}}","error.chain.providerInitFailed":'공급자 "{{provider}}" 초기화 실패. 자격 증명과 구성을 확인하세요.',"error.chain.configJsonInvalid":"{{path}}의 구성 파일이 유효한 JSON(C)가 아닙니다","error.chain.configJsonInvalidWithMessage":"{{path}}의 구성 파일이 유효한 JSON(C)가 아닙니다: {{message}}","error.chain.configDirectoryTypo":'{{path}}의 "{{dir}}" 디렉터리가 유효하지 않습니다. 디렉터리 이름을 "{{suggestion}}"으로 변경하거나 제거하세요. 이는 흔한 오타입니다.',"error.chain.configFrontmatterError":`{{path}}의 frontmatter 파싱 실패:
|
|
3
3
|
{{message}}`,"error.chain.configInvalid":"{{path}}의 구성 파일이 유효하지 않습니다","error.chain.configInvalidWithMessage":"{{path}}의 구성 파일이 유효하지 않습니다: {{message}}","notification.permission.title":"권한 필요","notification.permission.description":"{{projectName}}의 {{sessionTitle}}에서 권한이 필요합니다","notification.question.title":"질문","notification.question.description":"{{projectName}}의 {{sessionTitle}}에서 질문이 있습니다","notification.action.goToSession":"세션으로 이동","notification.session.responseReady.title":"응답 준비됨","notification.session.error.title":"세션 오류","notification.session.error.fallbackDescription":"오류가 발생했습니다","home.recentProjects":"최근 프로젝트","home.empty.title":"최근 프로젝트 없음","home.empty.description":"로컬 프로젝트를 열어 시작하세요","session.tab.session":"세션","session.tab.review":"검토","session.tab.context":"컨텍스트","session.panel.reviewAndFiles":"검토 및 파일","session.review.filesChanged":"{{count}}개 파일 변경됨","session.review.change.one":"변경","session.review.change.other":"변경","session.review.loadingChanges":"변경 사항 로드 중...","session.review.empty":"이 세션에 변경 사항이 아직 없습니다","session.review.noVcs":"Git 버전 관리 시스템이 감지되지 않아 변경 사항이 표시되지 않습니다","session.review.noSnapshot":"구성에서 스냅샷 추적이 비활성화되어 있어 세션 변경 사항을 사용할 수 없습니다","session.review.noChanges":"변경 없음","session.files.selectToOpen":"열 파일을 선택하세요","session.files.all":"모든 파일","session.files.empty":"파일 없음","session.files.binaryContent":"바이너리 파일 (내용을 표시할 수 없음)","session.messages.renderEarlier":"이전 메시지 렌더링","session.messages.loadingEarlier":"이전 메시지 로드 중...","session.messages.loadEarlier":"이전 메시지 로드","session.messages.loading":"메시지 로드 중...","session.messages.jumpToLatest":"최신으로 이동","session.context.addToContext":"컨텍스트에 {{selection}} 추가","session.todo.title":"할 일","session.todo.collapse":"접기","session.todo.expand":"펼치기","session.followupDock.summary.one":"{{count}}개의 대기 중인 메시지","session.followupDock.summary.other":"{{count}}개의 대기 중인 메시지","session.followupDock.sendNow":"지금 전송","session.followupDock.edit":"편집","session.followupDock.collapse":"대기 중인 메시지 접기","session.followupDock.expand":"대기 중인 메시지 펼치기","session.revertDock.summary.one":"{{count}}개의 롤백된 메시지","session.revertDock.summary.other":"{{count}}개의 롤백된 메시지","session.revertDock.collapse":"롤백된 메시지 접기","session.revertDock.expand":"롤백된 메시지 펼치기","session.revertDock.restore":"메시지 복원","session.new.title":"무엇이든 만들기","session.new.worktree.main":"메인 브랜치","session.new.worktree.mainWithBranch":"메인 브랜치 ({{branch}})","session.new.worktree.create":"새 작업 트리 생성","session.new.lastModified":"최근 수정","session.header.search.placeholder":"{{project}} 검색","session.header.searchFiles":"파일 검색","session.header.openIn":"다음에서 열기","session.header.open.action":"{{app}} 열기","session.header.open.ariaLabel":"{{app}}에서 열기","session.header.open.menu":"열기 옵션","session.header.open.copyPath":"경로 복사","status.popover.trigger":"상태","status.popover.ariaLabel":"서버 구성","status.popover.tab.servers":"서버","status.popover.tab.plugins":"플러그인","status.popover.action.manageServers":"서버 관리","session.share.popover.title":"웹에 게시","session.share.popover.description.shared":"이 세션은 웹에 공개되었습니다. 링크가 있는 누구나 액세스할 수 있습니다.","session.share.popover.description.unshared":"세션을 웹에 공개적으로 공유합니다. 링크가 있는 누구나 액세스할 수 있습니다.","session.share.action.share":"공유","session.share.action.publish":"게시","session.share.action.publishing":"게시 중...","session.share.action.unpublish":"게시 취소","session.share.action.unpublishing":"게시 취소 중...","session.share.action.view":"보기","session.share.copy.copied":"복사됨","session.share.copy.copyLink":"링크 복사","lsp.tooltip.none":"LSP 서버 없음","prompt.loading":"프롬프트 로드 중...","terminal.loading":"터미널 로드 중...","terminal.title":"터미널","terminal.title.numbered":"터미널 {{number}}","terminal.close":"터미널 닫기","terminal.connectionLost.title":"연결 끊김","terminal.connectionLost.description":"터미널 연결이 중단되었습니다. 서버가 재시작하면 이런 일이 발생할 수 있습니다.","common.closeTab":"탭 닫기","common.dismiss":"닫기","common.requestFailed":"요청 실패","common.moreOptions":"더 많은 옵션","common.learnMore":"더 알아보기","common.rename":"이름 바꾸기","common.reset":"초기화","common.archive":"보관","common.delete":"삭제","common.close":"닫기","common.edit":"편집","common.loadMore":"더 불러오기","sidebar.menu.toggle":"메뉴 토글","sidebar.nav.projectsAndSessions":"프로젝트 및 세션","sidebar.settings":"설정","sidebar.help":"도움말","sidebar.workspaces.enable":"작업 공간 활성화","sidebar.workspaces.disable":"작업 공간 비활성화","sidebar.gettingStarted.title":"시작하기","sidebar.gettingStarted.line1":"Codeplane에는 무료 모델이 포함되어 있어 즉시 시작할 수 있습니다.","sidebar.gettingStarted.line2":"Claude, GPT, Gemini 등을 포함한 모델을 사용하려면 공급자를 연결하세요.","sidebar.project.recentSessions":"최근 세션","sidebar.project.viewAllSessions":"모든 세션 보기","sidebar.project.clearNotifications":"알림 지우기","settings.section.server":"서버","settings.tab.general":"일반","settings.tab.shortcuts":"단축키","settings.general.section.appearance":"모양","settings.general.section.notifications":"시스템 알림","settings.general.section.sounds":"효과음","settings.general.section.feed":"피드","settings.general.row.language.title":"언어","settings.general.row.language.description":"Codeplane 표시 언어 변경","settings.general.row.appearance.title":"모양","settings.general.row.appearance.description":"기기에서 Codeplane가 보이는 방식 사용자 지정","settings.general.row.colorScheme.title":"색상 테마","settings.general.row.colorScheme.description":"Codeplane가 시스템, 라이트 또는 다크 테마를 따를지 선택하세요","settings.general.row.theme.title":"테마","settings.general.row.theme.description":"Codeplane 테마 사용자 지정","settings.general.row.font.title":"코드 글꼴","settings.general.row.font.description":"코드 블록에 사용되는 글꼴을 사용자 지정","settings.general.row.uiFont.title":"UI 글꼴","settings.general.row.uiFont.description":"인터페이스 전반에 사용되는 글꼴을 사용자 지정","settings.general.row.followup.title":"후속 조치 동작","settings.general.row.followup.description":"후속 프롬프트를 즉시 실행할지 대기열에 넣을지 선택하세요","settings.general.row.followup.option.queue":"대기열","settings.general.row.followup.option.steer":"조종","settings.general.row.codeplaneCoauthor.title":"Codeplane 공동 작성자","settings.general.row.codeplaneCoauthor.description":"Codeplane을 통해 만든 커밋에 Co-Authored-By: codeplane-agent[bot] <287208015+codeplane-agent[bot]@users.noreply.github.com>를 추가합니다","settings.general.row.reasoningSummaries.title":"추론 요약 표시","settings.general.row.reasoningSummaries.description":"타임라인에 모델 추론 요약 표시","settings.general.row.shellToolPartsExpanded.title":"shell 도구 파트 펼치기","settings.general.row.shellToolPartsExpanded.description":"타임라인에서 기본적으로 shell 도구 파트를 펼친 상태로 표시합니다","settings.general.row.editToolPartsExpanded.title":"edit 도구 파트 펼치기","settings.general.row.editToolPartsExpanded.description":"타임라인에서 기본적으로 edit, write, patch 도구 파트를 펼친 상태로 표시합니다","settings.general.row.showSessionProgressBar.title":"세션 진행 표시줄 표시","settings.general.row.showSessionProgressBar.description":"에이전트가 작업 중일 때 세션 상단에 애니메이션 진행 표시줄을 표시합니다","settings.general.row.releaseNotes.title":"릴리스 노트","settings.general.row.releaseNotes.description":"업데이트 후 '새 소식' 팝업 표시","sound.option.none":"없음","sound.option.alert01":"알림 01","sound.option.alert02":"알림 02","sound.option.alert03":"알림 03","sound.option.alert04":"알림 04","sound.option.alert05":"알림 05","sound.option.alert06":"알림 06","sound.option.alert07":"알림 07","sound.option.alert08":"알림 08","sound.option.alert09":"알림 09","sound.option.alert10":"알림 10","sound.option.bipbop01":"빕-밥 01","sound.option.bipbop02":"빕-밥 02","sound.option.bipbop03":"빕-밥 03","sound.option.bipbop04":"빕-밥 04","sound.option.bipbop05":"빕-밥 05","sound.option.bipbop06":"빕-밥 06","sound.option.bipbop07":"빕-밥 07","sound.option.bipbop08":"빕-밥 08","sound.option.bipbop09":"빕-밥 09","sound.option.bipbop10":"빕-밥 10","sound.option.staplebops01":"스테이플밥스 01","sound.option.staplebops02":"스테이플밥스 02","sound.option.staplebops03":"스테이플밥스 03","sound.option.staplebops04":"스테이플밥스 04","sound.option.staplebops05":"스테이플밥스 05","sound.option.staplebops06":"스테이플밥스 06","sound.option.staplebops07":"스테이플밥스 07","sound.option.nope01":"아니오 01","sound.option.nope02":"아니오 02","sound.option.nope03":"아니오 03","sound.option.nope04":"아니오 04","sound.option.nope05":"아니오 05","sound.option.nope06":"아니오 06","sound.option.nope07":"아니오 07","sound.option.nope08":"아니오 08","sound.option.nope09":"아니오 09","sound.option.nope10":"아니오 10","sound.option.nope11":"아니오 11","sound.option.nope12":"아니오 12","sound.option.yup01":"네 01","sound.option.yup02":"네 02","sound.option.yup03":"네 03","sound.option.yup04":"네 04","sound.option.yup05":"네 05","sound.option.yup06":"네 06","settings.general.notifications.agent.title":"에이전트","settings.general.notifications.agent.description":"에이전트가 완료되거나 주의가 필요할 때 시스템 알림 표시","settings.general.notifications.permissions.title":"권한","settings.general.notifications.permissions.description":"권한이 필요할 때 시스템 알림 표시","settings.general.notifications.errors.title":"오류","settings.general.notifications.errors.description":"오류가 발생했을 때 시스템 알림 표시","settings.general.sounds.agent.title":"에이전트","settings.general.sounds.agent.description":"에이전트가 완료되거나 주의가 필요할 때 소리 재생","settings.general.sounds.permissions.title":"권한","settings.general.sounds.permissions.description":"권한이 필요할 때 소리 재생","settings.general.sounds.errors.title":"오류","settings.general.sounds.errors.description":"오류가 발생했을 때 소리 재생","settings.shortcuts.title":"키보드 단축키","settings.shortcuts.reset.button":"기본값으로 초기화","settings.shortcuts.reset.toast.title":"단축키 초기화됨","settings.shortcuts.reset.toast.description":"키보드 단축키가 기본값으로 초기화되었습니다.","settings.shortcuts.conflict.title":"단축키가 이미 사용 중임","settings.shortcuts.conflict.description":"{{keybind}}은(는) 이미 {{titles}}에 할당되어 있습니다.","settings.shortcuts.unassigned":"할당되지 않음","settings.shortcuts.pressKeys":"키 누르기","settings.shortcuts.search.placeholder":"단축키 검색","settings.shortcuts.search.empty":"단축키를 찾을 수 없습니다","settings.shortcuts.group.general":"일반","settings.shortcuts.group.session":"세션","settings.shortcuts.group.navigation":"탐색","settings.shortcuts.group.modelAndAgent":"모델 및 에이전트","settings.shortcuts.group.terminal":"터미널","settings.shortcuts.group.prompt":"프롬프트","settings.providers.title":"공급자","settings.providers.description":"공급자 설정은 여기서 구성할 수 있습니다.","settings.providers.section.connected":"연결된 공급자","settings.providers.connected.empty":"연결된 공급자 없음","settings.providers.section.popular":"인기 공급자","settings.providers.tag.environment":"환경","settings.providers.tag.config":"구성","settings.providers.tag.custom":"사용자 지정","settings.providers.tag.other":"기타","settings.models.title":"모델","settings.models.description":"모델 설정은 여기서 구성할 수 있습니다.","settings.agents.title":"에이전트","settings.agents.description":"에이전트 설정은 여기서 구성할 수 있습니다.","settings.commands.title":"명령어","settings.commands.description":"명령어 설정은 여기서 구성할 수 있습니다.","settings.mcp.description":"MCP 설정은 여기서 구성할 수 있습니다.","settings.permissions.title":"권한","settings.permissions.description":"서버가 기본적으로 사용할 수 있는 도구를 제어합니다.","settings.permissions.section.tools":"도구","settings.permissions.toast.updateFailed.title":"권한 업데이트 실패","settings.permissions.action.allow":"허용","settings.permissions.action.ask":"묻기","settings.permissions.action.deny":"거부","settings.permissions.tool.read.title":"읽기","settings.permissions.tool.read.description":"파일 읽기 (파일 경로와 일치)","settings.permissions.tool.edit.title":"편집","settings.permissions.tool.edit.description":"파일 수정 (편집, 쓰기, 패치 및 다중 편집 포함)","settings.permissions.tool.glob.description":"glob 패턴을 사용하여 파일 일치","settings.permissions.tool.grep.description":"정규식을 사용하여 파일 내용 검색","settings.permissions.tool.list.title":"목록","settings.permissions.tool.list.description":"디렉터리 내 파일 나열","settings.permissions.tool.bash.description":"셸 명령어 실행","settings.permissions.tool.task.title":"작업","settings.permissions.tool.task.description":"하위 에이전트 실행","settings.permissions.tool.skill.title":"기술","settings.permissions.tool.skill.description":"이름으로 기술 로드","settings.permissions.tool.lsp.description":"언어 서버 쿼리 실행","settings.permissions.tool.todowrite.title":"할 일 쓰기","settings.permissions.tool.todowrite.description":"할 일 목록 업데이트","settings.permissions.tool.webfetch.title":"웹 가져오기","settings.permissions.tool.webfetch.description":"URL에서 콘텐츠 가져오기","settings.permissions.tool.websearch.title":"웹 검색","settings.permissions.tool.websearch.description":"웹 검색","settings.permissions.tool.codesearch.title":"코드 검색","settings.permissions.tool.codesearch.description":"웹에서 코드 검색","settings.permissions.tool.external_directory.title":"외부 디렉터리","settings.permissions.tool.external_directory.description":"프로젝트 디렉터리 외부의 파일에 액세스","settings.permissions.tool.doom_loop.title":"무한 반복","settings.permissions.tool.doom_loop.description":"동일한 입력으로 반복되는 도구 호출 감지","session.copyId":"세션 ID 복사","session.delete.failed.title":"세션 삭제 실패","session.delete.title":"세션 삭제","session.delete.confirm":'"{{name}}" 세션을 삭제하시겠습니까?',"session.delete.button":"세션 삭제","workspace.new":"새 작업 공간","workspace.type.local":"로컬","workspace.type.sandbox":"샌드박스","workspace.create.failed.title":"작업 공간 생성 실패","workspace.delete.failed.title":"작업 공간 삭제 실패","workspace.resetting.title":"작업 공간 재설정 중","workspace.resetting.description":"잠시 시간이 걸릴 수 있습니다.","workspace.reset.failed.title":"작업 공간 재설정 실패","workspace.reset.success.title":"작업 공간 재설정됨","workspace.reset.success.description":"작업 공간이 이제 기본 브랜치와 일치합니다.","workspace.error.stillPreparing":"작업 공간이 아직 준비 중입니다","workspace.status.checking":"병합되지 않은 변경 사항 확인 중...","workspace.status.error":"Git 상태를 확인할 수 없습니다.","workspace.status.clean":"병합되지 않은 변경 사항이 감지되지 않았습니다.","workspace.status.dirty":"이 작업 공간에서 병합되지 않은 변경 사항이 감지되었습니다.","workspace.delete.title":"작업 공간 삭제","workspace.delete.confirm":'"{{name}}" 작업 공간을 삭제하시겠습니까?',"workspace.delete.button":"작업 공간 삭제","workspace.reset.title":"작업 공간 재설정","workspace.reset.confirm":'"{{name}}" 작업 공간을 재설정하시겠습니까?',"workspace.reset.button":"작업 공간 재설정","workspace.reset.archived.none":"활성 세션이 보관되지 않습니다.","workspace.reset.archived.one":"1개의 세션이 보관됩니다.","workspace.reset.archived.many":"{{count}}개의 세션이 보관됩니다.","workspace.reset.note":"이 작업은 작업 공간을 기본 브랜치와 일치하도록 재설정합니다.","common.open":"열기","dialog.releaseNotes.action.getStarted":"시작하기","dialog.releaseNotes.action.next":"다음","dialog.releaseNotes.action.hideFuture":"다시 보지 않기","dialog.releaseNotes.media.alt":"릴리스 미리보기","toast.project.reloadFailed.title":"{{project}} 다시 불러오기 실패","error.server.invalidConfiguration":"잘못된 구성","common.moreCountSuffix":" (외 {{count}}개)","common.time.justNow":"방금 전","common.time.minutesAgo.short":"{{count}}분 전","common.time.hoursAgo.short":"{{count}}시간 전","common.time.daysAgo.short":"{{count}}일 전","settings.providers.connected.environmentDescription":"환경 변수에서 연결됨","settings.providers.custom.description":"기본 URL로 OpenAI 호환 공급자를 추가합니다.","app.server.unreachable":"{{server}}에 연결할 수 없습니다","app.server.retrying":"자동으로 재시도 중...","app.server.otherServers":"다른 서버","dialog.server.add.usernamePlaceholder":"사용자 이름","dialog.server.add.passwordPlaceholder":"비밀번호","server.row.noUsername":"사용자 이름 없음","session.review.noVcs.createGit.title":"Git 저장소 생성","session.review.noVcs.createGit.description":"이 프로젝트의 변경 사항을 추적, 검토 및 실행 취소","session.review.noVcs.createGit.actionLoading":"Git 저장소 생성 중...","session.review.noVcs.createGit.action":"Git 저장소 생성","session.todo.progress":"{{total}}개의 할 일 중 {{done}}개 완료","session.question.progress":"{{total}}개의 질문 중 {{current}}개","session.header.open.fileExplorer":"파일 탐색기","session.header.open.fileManager":"파일 관리자","session.header.open.app.terminal":"터미널","debugBar.ariaLabel":"개발 성능 진단","debugBar.na":"해당 없음","debugBar.nav.tip":"세션 페이지에 닿은 마지막 완료된 라우트 전환. 라우터 시작부터 정착 후 첫 번째 페인트까지 측정됨.","debugBar.fps.tip":"지난 5초간의 초당 프레임 수.","debugBar.frame.tip":"지난 5초간의 최악의 프레임 시간.","debugBar.jank.tip":"지난 5초간 32ms를 초과한 프레임.","debugBar.long.tip":"지난 5초간의 차단된 시간 및 긴 작업 수. 최대 작업: {{max}}.","debugBar.delay.tip":"지난 5초간 관찰된 최악의 입력 지연.","debugBar.inp.tip":"지난 5초간의 대략적인 상호작용 지속 시간. 이것은 공식 Web Vitals INP가 아닌 INP와 유사합니다.","debugBar.cls.tip":"현재 앱 수명 동안의 누적 레이아웃 이동.","debugBar.mem.tipUnavailable":"사용된 JS 힙 대 힙 제한. Chromium 전용.","debugBar.mem.tip":"사용된 JS 힙 대 힙 제한. {{limit}} 중 {{used}}.","common.unknown":"알 수 없음","error.page.circular":"[순환]","error.globalSDK.noServerAvailable":"사용 가능한 서버 없음","error.globalSDK.serverNotAvailable":"서버를 사용할 수 없음","error.childStore.persistedCacheCreateFailed":"영구 캐시 생성 실패","error.childStore.persistedProjectMetadataCreateFailed":"영구 프로젝트 메타데이터 생성 실패","error.childStore.persistedProjectIconCreateFailed":"영구 프로젝트 아이콘 생성 실패","error.childStore.storeCreateFailed":"저장소 생성 실패","terminal.connectionLost.abnormalClose":"WebSocket이 비정상적으로 닫힘: {{code}}"},s={...e,...o};export{s as dict};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Ve,G as g,i as m,v as E}from"./graph-CdxUj6yb.js";import{i as z,c as C,k as Ye,o as $e,p as ve,q as pe,t as De,u as we,v as qe,w as be,d as V,x as We,b as ze,y as Xe,n as f,m as I,r as B}from"./_baseUniq-CIdKO3dq.js";import{f as O,b as me,a as He,c as Ue,m as w,d as P}from"./min-BxM1U1Fg.js";import{a_ as M,bx as Je,by as Ke,b5 as ge,bz as S,aR as ye,bq as Ze,aF as Qe,bv as en,bA as nn,aH as xe,bu as rn,b4 as Ee,aG as ke,aY as tn,b7 as an,bB as X}from"./mermaid.core-B1DAMRyG.js";var on=/\s/;function un(e){for(var n=e.length;n--&&on.test(e.charAt(n)););return n}var dn=/^\s+/;function sn(e){return e&&e.slice(0,un(e)+1).replace(dn,"")}var re=NaN,fn=/^[-+]0x[0-9a-f]+$/i,cn=/^0b[01]+$/i,ln=/^0o[0-7]+$/i,hn=parseInt;function vn(e){if(typeof e=="number")return e;if(z(e))return re;if(M(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=M(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=sn(e);var r=cn.test(e);return r||ln.test(e)?hn(e.slice(2),r?2:8):fn.test(e)?re:+e}var te=1/0,pn=17976931348623157e292;function T(e){if(!e)return e===0?e:0;if(e=vn(e),e===te||e===-te){var n=e<0?-1:1;return n*pn}return e===e?e:0}function wn(e){var n=T(e),r=n%1;return n===n?r?n-r:n:0}function bn(e){return Je(Ke(e,void 0,O),e+"")}var mn=1,gn=4;function yn(e){return Ve(e,mn|gn)}var Oe=Object.prototype,xn=Oe.hasOwnProperty,En=ge(function(e,n){e=Object(e);var r=-1,t=n.length,i=t>2?n[2]:void 0;for(i&&S(n[0],n[1],i)&&(t=1);++r<t;)for(var o=n[r],a=ye(o),u=-1,d=a.length;++u<d;){var s=a[u],c=e[s];(c===void 0||Ze(c,Oe[s])&&!xn.call(e,s))&&(e[s]=o[s])}return e});function F(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function kn(e){return function(n,r,t){var i=Object(n);if(!Qe(n)){var o=C(r);n=Ye(n),r=function(u){return o(i[u],u,i)}}var a=e(n,r,t);return a>-1?i[o?n[a]:a]:void 0}}var On=Math.max;function Nn(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var i=r==null?0:wn(r);return i<0&&(i=On(t+i,0)),$e(e,C(n),i)}var U=kn(Nn);function Ln(e,n){return e==null?e:en(e,ve(n),ye)}function Pn(e,n){return e&&pe(e,ve(n))}function _n(e,n){return e>n}var Cn=Object.prototype,In=Cn.hasOwnProperty;function Rn(e,n){return e!=null&&In.call(e,n)}function Ne(e,n){return e!=null&&De(e,n,Rn)}function j(e,n){var r={};return n=C(n),pe(e,function(t,i,o){nn(r,i,n(t,i,o))}),r}function y(e){return e&&e.length?me(e,xe,_n):void 0}function J(e,n){return e&&e.length?me(e,C(n),He):void 0}function Tn(e,n,r,t){if(!M(e))return e;n=we(n,e);for(var i=-1,o=n.length,a=o-1,u=e;u!=null&&++i<o;){var d=qe(n[i]),s=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(i!=a){var c=u[d];s=void 0,s===void 0&&(s=M(c)?c:rn(n[i+1])?[]:{})}Ee(u,d,s),u=u[d]}return e}function Mn(e,n,r){for(var t=-1,i=n.length,o={};++t<i;){var a=n[t],u=be(e,a);r(u,a)&&Tn(o,we(a,e),u)}return o}function Sn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Fn(e,n){if(e!==n){var r=e!==void 0,t=e===null,i=e===e,o=z(e),a=n!==void 0,u=n===null,d=n===n,s=z(n);if(!u&&!s&&!o&&e>n||o&&a&&d&&!u&&!s||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!s&&e<n||s&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function An(e,n,r){for(var t=-1,i=e.criteria,o=n.criteria,a=i.length,u=r.length;++t<a;){var d=Fn(i[t],o[t]);if(d){if(t>=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function Bn(e,n,r){n.length?n=V(n,function(o){return ke(o)?function(a){return be(a,o.length===1?o[0]:o)}:o}):n=[xe];var t=-1;n=V(n,tn(C));var i=Ue(e,function(o,a,u){var d=V(n,function(s){return s(o)});return{criteria:d,index:++t,value:o}});return Sn(i,function(o,a){return An(o,a,r)})}function jn(e,n){return Mn(e,n,function(r,t){return We(e,t)})}var A=bn(function(e,n){return e==null?{}:jn(e,n)}),Gn=Math.ceil,Vn=Math.max;function Yn(e,n,r,t){for(var i=-1,o=Vn(Gn((n-e)/(r||1)),0),a=Array(o);o--;)a[++i]=e,e+=r;return a}function $n(e){return function(n,r,t){return t&&typeof t!="number"&&S(n,r,t)&&(r=t=void 0),n=T(n),r===void 0?(r=n,n=0):r=T(r),t=t===void 0?n<r?1:-1:T(t),Yn(n,r,t)}}var k=$n(),R=ge(function(e,n){if(e==null)return[];var r=n.length;return r>1&&S(e,n[0],n[1])?n=[]:r>2&&S(n[0],n[1],n[2])&&(n=[n[0]]),Bn(e,ze(n),[])}),Dn=0;function K(e){var n=++Dn;return Xe(e)+n}function qn(e,n,r){for(var t=-1,i=e.length,o=n.length,a={};++t<i;){var u=t<o?n[t]:void 0;r(a,e[t],u)}return a}function Wn(e,n){return qn(e||[],n||[],Ee)}class zn{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return ie(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&ie(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Xn)),t=t._prev;return"["+n.join(", ")+"]"}}function ie(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Xn(e,n){if(e!=="_next"&&e!=="_prev")return n}var Hn=an(1);function Un(e,n){if(e.nodeCount()<=1)return[];var r=Kn(e,n||Hn),t=Jn(r.graph,r.buckets,r.zeroIdx);return O(w(t,function(i){return e.outEdges(i.v,i.w)}))}function Jn(e,n,r){for(var t=[],i=n[n.length-1],o=n[0],a;e.nodeCount();){for(;a=o.dequeue();)Y(e,n,r,a);for(;a=i.dequeue();)Y(e,n,r,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){t=t.concat(Y(e,n,r,a,!0));break}}}return t}function Y(e,n,r,t,i){var o=i?[]:void 0;return f(e.inEdges(t.v),function(a){var u=e.edge(a),d=e.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,H(n,r,d)}),f(e.outEdges(t.v),function(a){var u=e.edge(a),d=a.w,s=e.node(d);s.in-=u,H(n,r,s)}),e.removeNode(t.v),o}function Kn(e,n){var r=new g,t=0,i=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var o=k(i+t+3).map(function(){return new zn}),a=t+1;return f(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Zn(e){var n=e.graph().acyclicer==="greedy"?Un(e,r(e)):Qn(e);f(n,function(t){var i=e.edge(t);e.removeEdge(t),i.forwardName=t.name,i.reversed=!0,e.setEdge(t.w,t.v,i,K("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Qn(e){var n=[],r={},t={};function i(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,f(e.outEdges(o),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?n.push(a):i(a.w)}),delete r[o])}return f(e.nodes(),i),n}function er(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function N(e,n,r,t){var i;do i=K(t);while(e.hasNode(i));return r.dummy=n,e.setNode(i,r),i}function nr(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),n}function Le(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function ae(e,n){var r=e.x,t=e.y,i=n.x-r,o=n.y-t,a=e.width/2,u=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,s=u):(i<0&&(a=-a),d=a,s=a*o/i),{x:r+d,y:t+s}}function G(e){var n=w(k(Pe(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),i=t.rank;m(i)||(n[i][t.order]=r)}),n}function rr(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);Ne(t,"rank")&&(t.rank-=n)})}function tr(e){var n=P(w(e.nodes(),function(o){return e.node(o).rank})),r=[];f(e.nodes(),function(o){var a=e.node(o).rank-n;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=e.graph().nodeRankFactor;f(r,function(o,a){m(o)&&a%i!==0?--t:t&&f(o,function(u){e.node(u).rank+=t})})}function oe(e,n,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),N(e,"border",i,n)}function Pe(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function ir(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function ar(e,n){return n()}function or(e){function n(r){var t=e.children(r),i=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)ue(e,"borderLeft","_bl",r,i,o),ue(e,"borderRight","_br",r,i,o)}}f(e.children(),n)}function ue(e,n,r,t,i,o){var a={width:0,height:0,rank:o,borderType:n},u=i[n][o-1],d=N(e,"border",a,r);i[n][o]=d,e.setParent(d,t),u&&e.setEdge(u,d,{weight:1})}function ur(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&_e(e)}function dr(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&sr(e),(n==="lr"||n==="rl")&&(fr(e),_e(e))}function _e(e){f(e.nodes(),function(n){de(e.node(n))}),f(e.edges(),function(n){de(e.edge(n))})}function de(e){var n=e.width;e.width=e.height,e.height=n}function sr(e){f(e.nodes(),function(n){$(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,$),Object.prototype.hasOwnProperty.call(r,"y")&&$(r)})}function $(e){e.y=-e.y}function fr(e){f(e.nodes(),function(n){D(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,D),Object.prototype.hasOwnProperty.call(r,"x")&&D(r)})}function D(e){var n=e.x;e.x=e.y,e.y=n}function cr(e){e.graph().dummyChains=[],f(e.edges(),function(n){lr(e,n)})}function lr(e,n){var r=n.v,t=e.node(r).rank,i=n.w,o=e.node(i).rank,a=n.name,u=e.edge(n),d=u.labelRank;if(o!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<o;++l,++t)u.points=[],s={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},c=N(e,"edge",s,"_d"),t===d&&(s.width=u.width,s.height=u.height,s.dummy="edge-label",s.labelpos=u.labelpos),e.setEdge(r,c,{weight:u.weight},a),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,i,{weight:u.weight},a)}}function hr(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,i;for(e.setEdge(r.edgeObj,t);r.dummy;)i=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=i,r=e.node(n)})}function Z(e){var n={};function r(t){var i=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return i.rank;n[t]=!0;var o=P(w(e.outEdges(t),function(a){return r(a.w)-e.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}f(e.sources(),r)}function _(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function Ce(e){var n=new g({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var i,o;vr(n,e)<t;)i=pr(n,e),o=n.hasNode(i.v)?_(e,i):-_(e,i),wr(n,e,o);return n}function vr(e,n){function r(t){f(n.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!e.hasNode(a)&&!_(n,i)&&(e.setNode(a,{}),e.setEdge(t,a,{}),r(a))})}return f(e.nodes(),r),e.nodeCount()}function pr(e,n){return J(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return _(n,r)})}function wr(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function br(){}br.prototype=new Error;function Ie(e,n,r){ke(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return f(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);Re(e,a,r==="post",o,t,i)}),i}function Re(e,n,r,t,i,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),f(i(n),function(a){Re(e,a,r,t,i,o)}),r&&o.push(n))}function mr(e,n){return Ie(e,n,"post")}function gr(e,n){return Ie(e,n,"pre")}x.initLowLimValues=ee;x.initCutValues=Q;x.calcCutValue=Te;x.leaveEdge=Se;x.enterEdge=Fe;x.exchangeEdges=Ae;function x(e){e=nr(e),Z(e);var n=Ce(e);ee(n),Q(n,e);for(var r,t;r=Se(n);)t=Fe(n,e,r),Ae(n,e,r,t)}function Q(e,n){var r=mr(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){yr(e,n,t)})}function yr(e,n,r){var t=e.node(r),i=t.parent;e.edge(r,i).cutvalue=Te(e,n,r)}function Te(e,n,r){var t=e.node(r),i=t.parent,o=!0,a=n.edge(r,i),u=0;return a||(o=!1,a=n.edge(i,r)),u=a.weight,f(n.nodeEdges(r),function(d){var s=d.v===r,c=s?d.w:d.v;if(c!==i){var l=s===o,h=n.edge(d).weight;if(u+=l?h:-h,Er(e,r,c)){var v=e.edge(r,c).cutvalue;u+=l?-v:v}}}),u}function ee(e,n){arguments.length<2&&(n=e.nodes()[0]),Me(e,{},1,n)}function Me(e,n,r,t,i){var o=r,a=e.node(t);return n[t]=!0,f(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=Me(e,n,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Se(e){return U(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Fe(e,n,r){var t=r.v,i=r.w;n.hasEdge(t,i)||(t=r.w,i=r.v);var o=e.node(t),a=e.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var s=I(n.edges(),function(c){return d===se(e,e.node(c.v),u)&&d!==se(e,e.node(c.w),u)});return J(s,function(c){return _(n,c)})}function Ae(e,n,r,t){var i=r.v,o=r.w;e.removeEdge(i,o),e.setEdge(t.v,t.w,{}),ee(e),Q(e,n),xr(e,n)}function xr(e,n){var r=U(e.nodes(),function(i){return!n.node(i).parent}),t=gr(e,r);t=t.slice(1),f(t,function(i){var o=e.node(i).parent,a=n.edge(i,o),u=!1;a||(a=n.edge(o,i),u=!0),n.node(i).rank=n.node(o).rank+(u?a.minlen:-a.minlen)})}function Er(e,n,r){return e.hasEdge(n,r)}function se(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function kr(e){switch(e.graph().ranker){case"network-simplex":fe(e);break;case"tight-tree":Nr(e);break;case"longest-path":Or(e);break;default:fe(e)}}var Or=Z;function Nr(e){Z(e),Ce(e)}function fe(e){x(e)}function Lr(e){var n=N(e,"root",{},"_root"),r=Pr(e),t=y(E(r))-1,i=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(a){e.edge(a).minlen*=i});var o=_r(e)+1;f(e.children(),function(a){Be(e,n,i,o,t,r,a)}),e.graph().nodeRankFactor=i}function Be(e,n,r,t,i,o,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:r});return}var d=oe(e,"_bt"),s=oe(e,"_bb"),c=e.node(a);e.setParent(d,a),c.borderTop=d,e.setParent(s,a),c.borderBottom=s,f(u,function(l){Be(e,n,r,t,i,o,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,L=v!==p?1:i-o[a]+1;e.setEdge(d,v,{weight:b,minlen:L,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:L,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,d,{weight:0,minlen:i+o[a]})}function Pr(e){var n={};function r(t,i){var o=e.children(t);o&&o.length&&f(o,function(a){r(a,i+1)}),n[t]=i}return f(e.children(),function(t){r(t,1)}),n}function _r(e){return B(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Cr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Ir(e,n,r){var t={},i;f(r,function(o){for(var a=e.parent(o),u,d;a;){if(u=e.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){n.setEdge(d,a);return}a=u}})}function Rr(e,n,r){var t=Tr(e),i=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return f(e.nodes(),function(o){var a=e.node(o),u=e.parent(o);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),f(e[r](o),function(d){var s=d.v===o?d.w:d.v,c=i.edge(s,o),l=m(c)?0:c.weight;i.setEdge(s,o,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),i}function Tr(e){for(var n;e.hasNode(n=K("_root")););return n}function Mr(e,n){for(var r=0,t=1;t<n.length;++t)r+=Sr(e,n[t-1],n[t]);return r}function Sr(e,n,r){for(var t=Wn(r,w(r,function(s,c){return c})),i=O(w(n,function(s){return R(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=w(new Array(a),function(){return 0}),d=0;return f(i.forEach(function(s){var c=s.pos+o;u[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function Fr(e){var n={},r=I(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),i=w(k(t+1),function(){return[]});function o(u){if(!Ne(n,u)){n[u]=!0;var d=e.node(u);i[d.rank].push(u),f(e.successors(u),o)}}var a=R(r,function(u){return e.node(u).rank});return f(a,o),i}function Ar(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var i=B(t,function(o,a){var u=e.edge(a),d=e.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Br(e,n){var r={};f(e,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};m(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),f(n.edges(),function(i){var o=r[i.v],a=r[i.w];!m(o)&&!m(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=I(r,function(i){return!i.indegree});return jr(t)}function jr(e){var n=[];function r(o){return function(a){a.merged||(m(a.barycenter)||m(o.barycenter)||a.barycenter>=o.barycenter)&&Gr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){var i=e.pop();n.push(i),f(i.in.reverse(),r(i)),f(i.out,t(i))}return w(I(n,function(o){return!o.merged}),function(o){return A(o,["vs","i","barycenter","weight"])})}function Gr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Vr(e,n){var r=ir(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,i=R(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Yr(!!n)),d=ce(o,i,d),f(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=ce(o,i,d)});var s={vs:O(o)};return u&&(s.barycenter=a/u,s.weight=u),s}function ce(e,n,r){for(var t;n.length&&(t=F(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Yr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function je(e,n,r,t){var i=e.children(n),o=e.node(n),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=I(i,function(p){return p!==a&&p!==u}));var s=Ar(e,i);f(s,function(p){if(e.children(p.v).length){var b=je(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Dr(p,b)}});var c=Br(s,r);$r(c,d);var l=Vr(c,t);if(a&&(l.vs=O([a,l.vs,u]),e.predecessors(a).length)){var h=e.node(e.predecessors(a)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function $r(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Dr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function qr(e){var n=Pe(e),r=le(e,k(1,n+1),"inEdges"),t=le(e,k(n-1,-1,-1),"outEdges"),i=Fr(e);he(e,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Wr(u%2?r:t,u%4>=2),i=G(e);var s=Mr(e,i);s<o&&(d=0,a=yn(i),o=s)}he(e,a)}function le(e,n,r){return w(n,function(t){return Rr(e,t,r)})}function Wr(e,n){var r=new g;f(e,function(t){var i=t.graph().root,o=je(t,i,r,n);f(o.vs,function(a,u){t.node(a).order=u}),Ir(t,r,o.vs)})}function he(e,n){f(n,function(r){f(r,function(t,i){e.node(t).order=i})})}function zr(e){var n=Hr(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),i=t.edgeObj,o=Xr(e,n,i.v,i.w),a=o.path,u=o.lca,d=0,s=a[d],c=!0;r!==i.w;){if(t=e.node(r),c){for(;(s=a[d])!==u&&e.node(s).maxRank<t.rank;)d++;s===u&&(c=!1)}if(!c){for(;d<a.length-1&&e.node(s=a[d+1]).minRank<=t.rank;)d++;s=a[d]}e.setParent(r,s),r=e.successors(r)[0]}})}function Xr(e,n,r,t){var i=[],o=[],a=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),d,s;d=r;do d=e.parent(d),i.push(d);while(d&&(n[d].low>a||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)o.push(d);return{path:i.concat(o.reverse()),lca:s}}function Hr(e){var n={},r=0;function t(i){var o=r;f(e.children(i),t),n[i]={low:o,lim:r++}}return f(e.children(),t),n}function Ur(e,n){var r={};function t(i,o){var a=0,u=0,d=i.length,s=F(o);return f(o,function(c,l){var h=Kr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(o.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var L=e.node(b),ne=L.order;(ne<a||v<ne)&&!(L.dummy&&e.node(p).dummy)&&Ge(r,b,p)})}),u=l+1,a=v)}),o}return B(n,t),r}function Jr(e,n){var r={};function t(o,a,u,d,s){var c;f(k(a,u),function(l){c=o[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>s)&&Ge(r,h,c)})})}function i(o,a){var u=-1,d,s=0;return f(a,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(a,s,l,u,d),s=l,u=d)}t(a,s,a.length,d,o.length)}),a}return B(n,i),r}function Kr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[n];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Zr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Qr(e,n,r,t){var i={},o={},a={};return f(n,function(u){f(u,function(d,s){i[d]=d,o[d]=d,a[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return a[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];o[s]===s&&d<a[p]&&!Zr(r,s,p)&&(o[p]=s,o[s]=i[s]=i[p],d=a[p])}}})}),{root:i,align:o}}function et(e,n,r,t,i){var o={},a=nt(e,n,r,i),u=i?"borderLeft":"borderRight";function d(l,h){for(var v=a.nodes(),p=v.pop(),b={};p;)b[p]?l(p):(b[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){o[l]=a.inEdges(l).reduce(function(h,v){return Math.max(h,o[v.v]+a.edge(v))},0)}function c(l){var h=a.outEdges(l).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(o[l]=Math.max(o[l],h))}return d(s,a.predecessors.bind(a)),d(c,a.successors.bind(a)),f(t,function(l){o[l]=o[r[l]]}),o}function nt(e,n,r,t){var i=new g,o=e.graph(),a=ot(o.nodesep,o.edgesep,t);return f(n,function(u){var d;f(u,function(s){var c=r[s];if(i.setNode(c),d){var l=r[d],h=i.edge(l,c);i.setEdge(l,c,Math.max(a(e,s,d),h||0))}d=s})}),i}function rt(e,n){return J(E(n),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Ln(r,function(o,a){var u=ut(e,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function tt(e,n){var r=E(n),t=P(r),i=y(r);f(["u","d"],function(o){f(["l","r"],function(a){var u=o+a,d=e[u],s;if(d!==n){var c=E(d);s=a==="l"?t-P(c):i-y(c),s&&(e[u]=j(d,function(l){return l+s}))}})})}function it(e,n){return j(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var i=R(w(e,t));return(i[1]+i[2])/2})}function at(e){var n=G(e),r=X(Ur(e,n),Jr(e,n)),t={},i;f(["u","d"],function(a){i=a==="u"?n:E(n).reverse(),f(["l","r"],function(u){u==="r"&&(i=w(i,function(l){return E(l).reverse()}));var d=(a==="u"?e.predecessors:e.successors).bind(e),s=Qr(e,i,r,d),c=et(e,i,s.root,s.align,u==="r");u==="r"&&(c=j(c,function(l){return-l})),t[a+u]=c})});var o=rt(e,t);return tt(t,o),it(t,e.graph().align)}function ot(e,n,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,s;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=-a.width/2;break;case"r":s=a.width/2;break}if(s&&(d+=r?s:-s),s=0,d+=(a.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2;break}return s&&(d+=r?s:-s),s=0,d}}function ut(e,n){return e.node(n).width}function dt(e){e=Le(e),st(e),Pn(at(e),function(n,r){e.node(r).x=n})}function st(e){var n=G(e),r=e.graph().ranksep,t=0;f(n,function(i){var o=y(w(i,function(a){return e.node(a).height}));f(i,function(a){e.node(a).y=t+o/2}),t+=o+r})}function Bt(e,n){var r=ar;r("layout",()=>{var t=r(" buildLayoutGraph",()=>yt(e));r(" runLayout",()=>ft(t,r)),r(" updateInputGraph",()=>ct(e,t))})}function ft(e,n){n(" makeSpaceForEdgeLabels",()=>xt(e)),n(" removeSelfEdges",()=>It(e)),n(" acyclic",()=>Zn(e)),n(" nestingGraph.run",()=>Lr(e)),n(" rank",()=>kr(Le(e))),n(" injectEdgeLabelProxies",()=>Et(e)),n(" removeEmptyRanks",()=>tr(e)),n(" nestingGraph.cleanup",()=>Cr(e)),n(" normalizeRanks",()=>rr(e)),n(" assignRankMinMax",()=>kt(e)),n(" removeEdgeLabelProxies",()=>Ot(e)),n(" normalize.run",()=>cr(e)),n(" parentDummyChains",()=>zr(e)),n(" addBorderSegments",()=>or(e)),n(" order",()=>qr(e)),n(" insertSelfEdges",()=>Rt(e)),n(" adjustCoordinateSystem",()=>ur(e)),n(" position",()=>dt(e)),n(" positionSelfEdges",()=>Tt(e)),n(" removeBorderNodes",()=>Ct(e)),n(" normalize.undo",()=>hr(e)),n(" fixupEdgeLabelCoords",()=>Pt(e)),n(" undoCoordinateSystem",()=>dr(e)),n(" translateGraph",()=>Nt(e)),n(" assignNodeIntersects",()=>Lt(e)),n(" reversePoints",()=>_t(e)),n(" acyclic.undo",()=>er(e))}function ct(e,n){f(e.nodes(),function(r){var t=e.node(r),i=n.node(r);t&&(t.x=i.x,t.y=i.y,n.children(r).length&&(t.width=i.width,t.height=i.height))}),f(e.edges(),function(r){var t=e.edge(r),i=n.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var lt=["nodesep","edgesep","ranksep","marginx","marginy"],ht={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},vt=["acyclicer","ranker","rankdir","align"],pt=["width","height"],wt={width:0,height:0},bt=["minlen","weight","width","height","labeloffset"],mt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gt=["labelpos"];function yt(e){var n=new g({multigraph:!0,compound:!0}),r=W(e.graph());return n.setGraph(X({},ht,q(r,lt),A(r,vt))),f(e.nodes(),function(t){var i=W(e.node(t));n.setNode(t,En(q(i,pt),wt)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var i=W(e.edge(t));n.setEdge(t,X({},mt,q(i,bt),A(i,gt)))}),n}function xt(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Et(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),i=e.node(n.w),o={rank:(i.rank-t.rank)/2+t.rank,e:n};N(e,"edge-proxy",o,"_ep")}})}function kt(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ot(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Nt(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,u=o.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),i=Math.max(i,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=a,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),o.width=r-n+a,o.height=i-t+u}function Lt(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),i=e.node(n.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(ae(t,o)),r.points.push(ae(i,a))})}function Pt(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function _t(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ct(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),i=e.node(r.borderBottom),o=e.node(F(r.borderLeft)),a=e.node(F(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function It(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Rt(e){var n=G(e);f(n,function(r){var t=0;f(r,function(i,o){var a=e.node(i);a.order=o+t,f(a.selfEdges,function(u){N(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Tt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function q(e,n){return j(A(e,n),Number)}function W(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Bt as l};
|
|
1
|
+
import{b as Ve,G as g,i as m,v as E}from"./graph-FFxo4W9V.js";import{i as z,c as C,k as Ye,o as $e,p as ve,q as pe,t as De,u as we,v as qe,w as be,d as V,x as We,b as ze,y as Xe,n as f,m as I,r as B}from"./_baseUniq-DiRPzHd-.js";import{f as O,b as me,a as He,c as Ue,m as w,d as P}from"./min-Bukm-5js.js";import{a_ as M,bx as Je,by as Ke,b5 as ge,bz as S,aR as ye,bq as Ze,aF as Qe,bv as en,bA as nn,aH as xe,bu as rn,b4 as Ee,aG as ke,aY as tn,b7 as an,bB as X}from"./mermaid.core-BZI8AtwT.js";var on=/\s/;function un(e){for(var n=e.length;n--&&on.test(e.charAt(n)););return n}var dn=/^\s+/;function sn(e){return e&&e.slice(0,un(e)+1).replace(dn,"")}var re=NaN,fn=/^[-+]0x[0-9a-f]+$/i,cn=/^0b[01]+$/i,ln=/^0o[0-7]+$/i,hn=parseInt;function vn(e){if(typeof e=="number")return e;if(z(e))return re;if(M(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=M(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=sn(e);var r=cn.test(e);return r||ln.test(e)?hn(e.slice(2),r?2:8):fn.test(e)?re:+e}var te=1/0,pn=17976931348623157e292;function T(e){if(!e)return e===0?e:0;if(e=vn(e),e===te||e===-te){var n=e<0?-1:1;return n*pn}return e===e?e:0}function wn(e){var n=T(e),r=n%1;return n===n?r?n-r:n:0}function bn(e){return Je(Ke(e,void 0,O),e+"")}var mn=1,gn=4;function yn(e){return Ve(e,mn|gn)}var Oe=Object.prototype,xn=Oe.hasOwnProperty,En=ge(function(e,n){e=Object(e);var r=-1,t=n.length,i=t>2?n[2]:void 0;for(i&&S(n[0],n[1],i)&&(t=1);++r<t;)for(var o=n[r],a=ye(o),u=-1,d=a.length;++u<d;){var s=a[u],c=e[s];(c===void 0||Ze(c,Oe[s])&&!xn.call(e,s))&&(e[s]=o[s])}return e});function F(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function kn(e){return function(n,r,t){var i=Object(n);if(!Qe(n)){var o=C(r);n=Ye(n),r=function(u){return o(i[u],u,i)}}var a=e(n,r,t);return a>-1?i[o?n[a]:a]:void 0}}var On=Math.max;function Nn(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var i=r==null?0:wn(r);return i<0&&(i=On(t+i,0)),$e(e,C(n),i)}var U=kn(Nn);function Ln(e,n){return e==null?e:en(e,ve(n),ye)}function Pn(e,n){return e&&pe(e,ve(n))}function _n(e,n){return e>n}var Cn=Object.prototype,In=Cn.hasOwnProperty;function Rn(e,n){return e!=null&&In.call(e,n)}function Ne(e,n){return e!=null&&De(e,n,Rn)}function j(e,n){var r={};return n=C(n),pe(e,function(t,i,o){nn(r,i,n(t,i,o))}),r}function y(e){return e&&e.length?me(e,xe,_n):void 0}function J(e,n){return e&&e.length?me(e,C(n),He):void 0}function Tn(e,n,r,t){if(!M(e))return e;n=we(n,e);for(var i=-1,o=n.length,a=o-1,u=e;u!=null&&++i<o;){var d=qe(n[i]),s=r;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(i!=a){var c=u[d];s=void 0,s===void 0&&(s=M(c)?c:rn(n[i+1])?[]:{})}Ee(u,d,s),u=u[d]}return e}function Mn(e,n,r){for(var t=-1,i=n.length,o={};++t<i;){var a=n[t],u=be(e,a);r(u,a)&&Tn(o,we(a,e),u)}return o}function Sn(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Fn(e,n){if(e!==n){var r=e!==void 0,t=e===null,i=e===e,o=z(e),a=n!==void 0,u=n===null,d=n===n,s=z(n);if(!u&&!s&&!o&&e>n||o&&a&&d&&!u&&!s||t&&a&&d||!r&&d||!i)return 1;if(!t&&!o&&!s&&e<n||s&&r&&i&&!t&&!o||u&&r&&i||!a&&i||!d)return-1}return 0}function An(e,n,r){for(var t=-1,i=e.criteria,o=n.criteria,a=i.length,u=r.length;++t<a;){var d=Fn(i[t],o[t]);if(d){if(t>=u)return d;var s=r[t];return d*(s=="desc"?-1:1)}}return e.index-n.index}function Bn(e,n,r){n.length?n=V(n,function(o){return ke(o)?function(a){return be(a,o.length===1?o[0]:o)}:o}):n=[xe];var t=-1;n=V(n,tn(C));var i=Ue(e,function(o,a,u){var d=V(n,function(s){return s(o)});return{criteria:d,index:++t,value:o}});return Sn(i,function(o,a){return An(o,a,r)})}function jn(e,n){return Mn(e,n,function(r,t){return We(e,t)})}var A=bn(function(e,n){return e==null?{}:jn(e,n)}),Gn=Math.ceil,Vn=Math.max;function Yn(e,n,r,t){for(var i=-1,o=Vn(Gn((n-e)/(r||1)),0),a=Array(o);o--;)a[++i]=e,e+=r;return a}function $n(e){return function(n,r,t){return t&&typeof t!="number"&&S(n,r,t)&&(r=t=void 0),n=T(n),r===void 0?(r=n,n=0):r=T(r),t=t===void 0?n<r?1:-1:T(t),Yn(n,r,t)}}var k=$n(),R=ge(function(e,n){if(e==null)return[];var r=n.length;return r>1&&S(e,n[0],n[1])?n=[]:r>2&&S(n[0],n[1],n[2])&&(n=[n[0]]),Bn(e,ze(n),[])}),Dn=0;function K(e){var n=++Dn;return Xe(e)+n}function qn(e,n,r){for(var t=-1,i=e.length,o=n.length,a={};++t<i;){var u=t<o?n[t]:void 0;r(a,e[t],u)}return a}function Wn(e,n){return qn(e||[],n||[],Ee)}class zn{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return ie(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&ie(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,Xn)),t=t._prev;return"["+n.join(", ")+"]"}}function ie(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Xn(e,n){if(e!=="_next"&&e!=="_prev")return n}var Hn=an(1);function Un(e,n){if(e.nodeCount()<=1)return[];var r=Kn(e,n||Hn),t=Jn(r.graph,r.buckets,r.zeroIdx);return O(w(t,function(i){return e.outEdges(i.v,i.w)}))}function Jn(e,n,r){for(var t=[],i=n[n.length-1],o=n[0],a;e.nodeCount();){for(;a=o.dequeue();)Y(e,n,r,a);for(;a=i.dequeue();)Y(e,n,r,a);if(e.nodeCount()){for(var u=n.length-2;u>0;--u)if(a=n[u].dequeue(),a){t=t.concat(Y(e,n,r,a,!0));break}}}return t}function Y(e,n,r,t,i){var o=i?[]:void 0;return f(e.inEdges(t.v),function(a){var u=e.edge(a),d=e.node(a.v);i&&o.push({v:a.v,w:a.w}),d.out-=u,H(n,r,d)}),f(e.outEdges(t.v),function(a){var u=e.edge(a),d=a.w,s=e.node(d);s.in-=u,H(n,r,s)}),e.removeNode(t.v),o}function Kn(e,n){var r=new g,t=0,i=0;f(e.nodes(),function(u){r.setNode(u,{v:u,in:0,out:0})}),f(e.edges(),function(u){var d=r.edge(u.v,u.w)||0,s=n(u),c=d+s;r.setEdge(u.v,u.w,c),i=Math.max(i,r.node(u.v).out+=s),t=Math.max(t,r.node(u.w).in+=s)});var o=k(i+t+3).map(function(){return new zn}),a=t+1;return f(r.nodes(),function(u){H(o,a,r.node(u))}),{graph:r,buckets:o,zeroIdx:a}}function H(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function Zn(e){var n=e.graph().acyclicer==="greedy"?Un(e,r(e)):Qn(e);f(n,function(t){var i=e.edge(t);e.removeEdge(t),i.forwardName=t.name,i.reversed=!0,e.setEdge(t.w,t.v,i,K("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function Qn(e){var n=[],r={},t={};function i(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,f(e.outEdges(o),function(a){Object.prototype.hasOwnProperty.call(r,a.w)?n.push(a):i(a.w)}),delete r[o])}return f(e.nodes(),i),n}function er(e){f(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function N(e,n,r,t){var i;do i=K(t);while(e.hasNode(i));return r.dummy=n,e.setNode(i,r),i}function nr(e){var n=new g().setGraph(e.graph());return f(e.nodes(),function(r){n.setNode(r,e.node(r))}),f(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),n}function Le(e){var n=new g({multigraph:e.isMultigraph()}).setGraph(e.graph());return f(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),f(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function ae(e,n){var r=e.x,t=e.y,i=n.x-r,o=n.y-t,a=e.width/2,u=e.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var d,s;return Math.abs(o)*a>Math.abs(i)*u?(o<0&&(u=-u),d=u*i/o,s=u):(i<0&&(a=-a),d=a,s=a*o/i),{x:r+d,y:t+s}}function G(e){var n=w(k(Pe(e)+1),function(){return[]});return f(e.nodes(),function(r){var t=e.node(r),i=t.rank;m(i)||(n[i][t.order]=r)}),n}function rr(e){var n=P(w(e.nodes(),function(r){return e.node(r).rank}));f(e.nodes(),function(r){var t=e.node(r);Ne(t,"rank")&&(t.rank-=n)})}function tr(e){var n=P(w(e.nodes(),function(o){return e.node(o).rank})),r=[];f(e.nodes(),function(o){var a=e.node(o).rank-n;r[a]||(r[a]=[]),r[a].push(o)});var t=0,i=e.graph().nodeRankFactor;f(r,function(o,a){m(o)&&a%i!==0?--t:t&&f(o,function(u){e.node(u).rank+=t})})}function oe(e,n,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),N(e,"border",i,n)}function Pe(e){return y(w(e.nodes(),function(n){var r=e.node(n).rank;if(!m(r))return r}))}function ir(e,n){var r={lhs:[],rhs:[]};return f(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function ar(e,n){return n()}function or(e){function n(r){var t=e.children(r),i=e.node(r);if(t.length&&f(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)ue(e,"borderLeft","_bl",r,i,o),ue(e,"borderRight","_br",r,i,o)}}f(e.children(),n)}function ue(e,n,r,t,i,o){var a={width:0,height:0,rank:o,borderType:n},u=i[n][o-1],d=N(e,"border",a,r);i[n][o]=d,e.setParent(d,t),u&&e.setEdge(u,d,{weight:1})}function ur(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&_e(e)}function dr(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&sr(e),(n==="lr"||n==="rl")&&(fr(e),_e(e))}function _e(e){f(e.nodes(),function(n){de(e.node(n))}),f(e.edges(),function(n){de(e.edge(n))})}function de(e){var n=e.width;e.width=e.height,e.height=n}function sr(e){f(e.nodes(),function(n){$(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,$),Object.prototype.hasOwnProperty.call(r,"y")&&$(r)})}function $(e){e.y=-e.y}function fr(e){f(e.nodes(),function(n){D(e.node(n))}),f(e.edges(),function(n){var r=e.edge(n);f(r.points,D),Object.prototype.hasOwnProperty.call(r,"x")&&D(r)})}function D(e){var n=e.x;e.x=e.y,e.y=n}function cr(e){e.graph().dummyChains=[],f(e.edges(),function(n){lr(e,n)})}function lr(e,n){var r=n.v,t=e.node(r).rank,i=n.w,o=e.node(i).rank,a=n.name,u=e.edge(n),d=u.labelRank;if(o!==t+1){e.removeEdge(n);var s=void 0,c,l;for(l=0,++t;t<o;++l,++t)u.points=[],s={width:0,height:0,edgeLabel:u,edgeObj:n,rank:t},c=N(e,"edge",s,"_d"),t===d&&(s.width=u.width,s.height=u.height,s.dummy="edge-label",s.labelpos=u.labelpos),e.setEdge(r,c,{weight:u.weight},a),l===0&&e.graph().dummyChains.push(c),r=c;e.setEdge(r,i,{weight:u.weight},a)}}function hr(e){f(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,i;for(e.setEdge(r.edgeObj,t);r.dummy;)i=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=i,r=e.node(n)})}function Z(e){var n={};function r(t){var i=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return i.rank;n[t]=!0;var o=P(w(e.outEdges(t),function(a){return r(a.w)-e.edge(a).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),i.rank=o}f(e.sources(),r)}function _(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function Ce(e){var n=new g({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var i,o;vr(n,e)<t;)i=pr(n,e),o=n.hasNode(i.v)?_(e,i):-_(e,i),wr(n,e,o);return n}function vr(e,n){function r(t){f(n.nodeEdges(t),function(i){var o=i.v,a=t===o?i.w:o;!e.hasNode(a)&&!_(n,i)&&(e.setNode(a,{}),e.setEdge(t,a,{}),r(a))})}return f(e.nodes(),r),e.nodeCount()}function pr(e,n){return J(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return _(n,r)})}function wr(e,n,r){f(e.nodes(),function(t){n.node(t).rank+=r})}function br(){}br.prototype=new Error;function Ie(e,n,r){ke(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],o={};return f(n,function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);Re(e,a,r==="post",o,t,i)}),i}function Re(e,n,r,t,i,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),f(i(n),function(a){Re(e,a,r,t,i,o)}),r&&o.push(n))}function mr(e,n){return Ie(e,n,"post")}function gr(e,n){return Ie(e,n,"pre")}x.initLowLimValues=ee;x.initCutValues=Q;x.calcCutValue=Te;x.leaveEdge=Se;x.enterEdge=Fe;x.exchangeEdges=Ae;function x(e){e=nr(e),Z(e);var n=Ce(e);ee(n),Q(n,e);for(var r,t;r=Se(n);)t=Fe(n,e,r),Ae(n,e,r,t)}function Q(e,n){var r=mr(e,e.nodes());r=r.slice(0,r.length-1),f(r,function(t){yr(e,n,t)})}function yr(e,n,r){var t=e.node(r),i=t.parent;e.edge(r,i).cutvalue=Te(e,n,r)}function Te(e,n,r){var t=e.node(r),i=t.parent,o=!0,a=n.edge(r,i),u=0;return a||(o=!1,a=n.edge(i,r)),u=a.weight,f(n.nodeEdges(r),function(d){var s=d.v===r,c=s?d.w:d.v;if(c!==i){var l=s===o,h=n.edge(d).weight;if(u+=l?h:-h,Er(e,r,c)){var v=e.edge(r,c).cutvalue;u+=l?-v:v}}}),u}function ee(e,n){arguments.length<2&&(n=e.nodes()[0]),Me(e,{},1,n)}function Me(e,n,r,t,i){var o=r,a=e.node(t);return n[t]=!0,f(e.neighbors(t),function(u){Object.prototype.hasOwnProperty.call(n,u)||(r=Me(e,n,r,u,t))}),a.low=o,a.lim=r++,i?a.parent=i:delete a.parent,r}function Se(e){return U(e.edges(),function(n){return e.edge(n).cutvalue<0})}function Fe(e,n,r){var t=r.v,i=r.w;n.hasEdge(t,i)||(t=r.w,i=r.v);var o=e.node(t),a=e.node(i),u=o,d=!1;o.lim>a.lim&&(u=a,d=!0);var s=I(n.edges(),function(c){return d===se(e,e.node(c.v),u)&&d!==se(e,e.node(c.w),u)});return J(s,function(c){return _(n,c)})}function Ae(e,n,r,t){var i=r.v,o=r.w;e.removeEdge(i,o),e.setEdge(t.v,t.w,{}),ee(e),Q(e,n),xr(e,n)}function xr(e,n){var r=U(e.nodes(),function(i){return!n.node(i).parent}),t=gr(e,r);t=t.slice(1),f(t,function(i){var o=e.node(i).parent,a=n.edge(i,o),u=!1;a||(a=n.edge(o,i),u=!0),n.node(i).rank=n.node(o).rank+(u?a.minlen:-a.minlen)})}function Er(e,n,r){return e.hasEdge(n,r)}function se(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function kr(e){switch(e.graph().ranker){case"network-simplex":fe(e);break;case"tight-tree":Nr(e);break;case"longest-path":Or(e);break;default:fe(e)}}var Or=Z;function Nr(e){Z(e),Ce(e)}function fe(e){x(e)}function Lr(e){var n=N(e,"root",{},"_root"),r=Pr(e),t=y(E(r))-1,i=2*t+1;e.graph().nestingRoot=n,f(e.edges(),function(a){e.edge(a).minlen*=i});var o=_r(e)+1;f(e.children(),function(a){Be(e,n,i,o,t,r,a)}),e.graph().nodeRankFactor=i}function Be(e,n,r,t,i,o,a){var u=e.children(a);if(!u.length){a!==n&&e.setEdge(n,a,{weight:0,minlen:r});return}var d=oe(e,"_bt"),s=oe(e,"_bb"),c=e.node(a);e.setParent(d,a),c.borderTop=d,e.setParent(s,a),c.borderBottom=s,f(u,function(l){Be(e,n,r,t,i,o,l);var h=e.node(l),v=h.borderTop?h.borderTop:l,p=h.borderBottom?h.borderBottom:l,b=h.borderTop?t:2*t,L=v!==p?1:i-o[a]+1;e.setEdge(d,v,{weight:b,minlen:L,nestingEdge:!0}),e.setEdge(p,s,{weight:b,minlen:L,nestingEdge:!0})}),e.parent(a)||e.setEdge(n,d,{weight:0,minlen:i+o[a]})}function Pr(e){var n={};function r(t,i){var o=e.children(t);o&&o.length&&f(o,function(a){r(a,i+1)}),n[t]=i}return f(e.children(),function(t){r(t,1)}),n}function _r(e){return B(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Cr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,f(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Ir(e,n,r){var t={},i;f(r,function(o){for(var a=e.parent(o),u,d;a;){if(u=e.parent(a),u?(d=t[u],t[u]=a):(d=i,i=a),d&&d!==a){n.setEdge(d,a);return}a=u}})}function Rr(e,n,r){var t=Tr(e),i=new g({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return f(e.nodes(),function(o){var a=e.node(o),u=e.parent(o);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(o),i.setParent(o,u||t),f(e[r](o),function(d){var s=d.v===o?d.w:d.v,c=i.edge(s,o),l=m(c)?0:c.weight;i.setEdge(s,o,{weight:e.edge(d).weight+l})}),Object.prototype.hasOwnProperty.call(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),i}function Tr(e){for(var n;e.hasNode(n=K("_root")););return n}function Mr(e,n){for(var r=0,t=1;t<n.length;++t)r+=Sr(e,n[t-1],n[t]);return r}function Sr(e,n,r){for(var t=Wn(r,w(r,function(s,c){return c})),i=O(w(n,function(s){return R(w(e.outEdges(s),function(c){return{pos:t[c.w],weight:e.edge(c).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var a=2*o-1;o-=1;var u=w(new Array(a),function(){return 0}),d=0;return f(i.forEach(function(s){var c=s.pos+o;u[c]+=s.weight;for(var l=0;c>0;)c%2&&(l+=u[c+1]),c=c-1>>1,u[c]+=s.weight;d+=s.weight*l})),d}function Fr(e){var n={},r=I(e.nodes(),function(u){return!e.children(u).length}),t=y(w(r,function(u){return e.node(u).rank})),i=w(k(t+1),function(){return[]});function o(u){if(!Ne(n,u)){n[u]=!0;var d=e.node(u);i[d.rank].push(u),f(e.successors(u),o)}}var a=R(r,function(u){return e.node(u).rank});return f(a,o),i}function Ar(e,n){return w(n,function(r){var t=e.inEdges(r);if(t.length){var i=B(t,function(o,a){var u=e.edge(a),d=e.node(a.v);return{sum:o.sum+u.weight*d.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Br(e,n){var r={};f(e,function(i,o){var a=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};m(i.barycenter)||(a.barycenter=i.barycenter,a.weight=i.weight)}),f(n.edges(),function(i){var o=r[i.v],a=r[i.w];!m(o)&&!m(a)&&(a.indegree++,o.out.push(r[i.w]))});var t=I(r,function(i){return!i.indegree});return jr(t)}function jr(e){var n=[];function r(o){return function(a){a.merged||(m(a.barycenter)||m(o.barycenter)||a.barycenter>=o.barycenter)&&Gr(o,a)}}function t(o){return function(a){a.in.push(o),--a.indegree===0&&e.push(a)}}for(;e.length;){var i=e.pop();n.push(i),f(i.in.reverse(),r(i)),f(i.out,t(i))}return w(I(n,function(o){return!o.merged}),function(o){return A(o,["vs","i","barycenter","weight"])})}function Gr(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Vr(e,n){var r=ir(e,function(c){return Object.prototype.hasOwnProperty.call(c,"barycenter")}),t=r.lhs,i=R(r.rhs,function(c){return-c.i}),o=[],a=0,u=0,d=0;t.sort(Yr(!!n)),d=ce(o,i,d),f(t,function(c){d+=c.vs.length,o.push(c.vs),a+=c.barycenter*c.weight,u+=c.weight,d=ce(o,i,d)});var s={vs:O(o)};return u&&(s.barycenter=a/u,s.weight=u),s}function ce(e,n,r){for(var t;n.length&&(t=F(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Yr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function je(e,n,r,t){var i=e.children(n),o=e.node(n),a=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,d={};a&&(i=I(i,function(p){return p!==a&&p!==u}));var s=Ar(e,i);f(s,function(p){if(e.children(p.v).length){var b=je(e,p.v,r,t);d[p.v]=b,Object.prototype.hasOwnProperty.call(b,"barycenter")&&Dr(p,b)}});var c=Br(s,r);$r(c,d);var l=Vr(c,t);if(a&&(l.vs=O([a,l.vs,u]),e.predecessors(a).length)){var h=e.node(e.predecessors(a)[0]),v=e.node(e.predecessors(u)[0]);Object.prototype.hasOwnProperty.call(l,"barycenter")||(l.barycenter=0,l.weight=0),l.barycenter=(l.barycenter*l.weight+h.order+v.order)/(l.weight+2),l.weight+=2}return l}function $r(e,n){f(e,function(r){r.vs=O(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Dr(e,n){m(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function qr(e){var n=Pe(e),r=le(e,k(1,n+1),"inEdges"),t=le(e,k(n-1,-1,-1),"outEdges"),i=Fr(e);he(e,i);for(var o=Number.POSITIVE_INFINITY,a,u=0,d=0;d<4;++u,++d){Wr(u%2?r:t,u%4>=2),i=G(e);var s=Mr(e,i);s<o&&(d=0,a=yn(i),o=s)}he(e,a)}function le(e,n,r){return w(n,function(t){return Rr(e,t,r)})}function Wr(e,n){var r=new g;f(e,function(t){var i=t.graph().root,o=je(t,i,r,n);f(o.vs,function(a,u){t.node(a).order=u}),Ir(t,r,o.vs)})}function he(e,n){f(n,function(r){f(r,function(t,i){e.node(t).order=i})})}function zr(e){var n=Hr(e);f(e.graph().dummyChains,function(r){for(var t=e.node(r),i=t.edgeObj,o=Xr(e,n,i.v,i.w),a=o.path,u=o.lca,d=0,s=a[d],c=!0;r!==i.w;){if(t=e.node(r),c){for(;(s=a[d])!==u&&e.node(s).maxRank<t.rank;)d++;s===u&&(c=!1)}if(!c){for(;d<a.length-1&&e.node(s=a[d+1]).minRank<=t.rank;)d++;s=a[d]}e.setParent(r,s),r=e.successors(r)[0]}})}function Xr(e,n,r,t){var i=[],o=[],a=Math.min(n[r].low,n[t].low),u=Math.max(n[r].lim,n[t].lim),d,s;d=r;do d=e.parent(d),i.push(d);while(d&&(n[d].low>a||u>n[d].lim));for(s=d,d=t;(d=e.parent(d))!==s;)o.push(d);return{path:i.concat(o.reverse()),lca:s}}function Hr(e){var n={},r=0;function t(i){var o=r;f(e.children(i),t),n[i]={low:o,lim:r++}}return f(e.children(),t),n}function Ur(e,n){var r={};function t(i,o){var a=0,u=0,d=i.length,s=F(o);return f(o,function(c,l){var h=Kr(e,c),v=h?e.node(h).order:d;(h||c===s)&&(f(o.slice(u,l+1),function(p){f(e.predecessors(p),function(b){var L=e.node(b),ne=L.order;(ne<a||v<ne)&&!(L.dummy&&e.node(p).dummy)&&Ge(r,b,p)})}),u=l+1,a=v)}),o}return B(n,t),r}function Jr(e,n){var r={};function t(o,a,u,d,s){var c;f(k(a,u),function(l){c=o[l],e.node(c).dummy&&f(e.predecessors(c),function(h){var v=e.node(h);v.dummy&&(v.order<d||v.order>s)&&Ge(r,h,c)})})}function i(o,a){var u=-1,d,s=0;return f(a,function(c,l){if(e.node(c).dummy==="border"){var h=e.predecessors(c);h.length&&(d=e.node(h[0]).order,t(a,s,l,u,d),s=l,u=d)}t(a,s,a.length,d,o.length)}),a}return B(n,i),r}function Kr(e,n){if(e.node(n).dummy)return U(e.predecessors(n),function(r){return e.node(r).dummy})}function Ge(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[n];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Zr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Qr(e,n,r,t){var i={},o={},a={};return f(n,function(u){f(u,function(d,s){i[d]=d,o[d]=d,a[d]=s})}),f(n,function(u){var d=-1;f(u,function(s){var c=t(s);if(c.length){c=R(c,function(b){return a[b]});for(var l=(c.length-1)/2,h=Math.floor(l),v=Math.ceil(l);h<=v;++h){var p=c[h];o[s]===s&&d<a[p]&&!Zr(r,s,p)&&(o[p]=s,o[s]=i[s]=i[p],d=a[p])}}})}),{root:i,align:o}}function et(e,n,r,t,i){var o={},a=nt(e,n,r,i),u=i?"borderLeft":"borderRight";function d(l,h){for(var v=a.nodes(),p=v.pop(),b={};p;)b[p]?l(p):(b[p]=!0,v.push(p),v=v.concat(h(p))),p=v.pop()}function s(l){o[l]=a.inEdges(l).reduce(function(h,v){return Math.max(h,o[v.v]+a.edge(v))},0)}function c(l){var h=a.outEdges(l).reduce(function(p,b){return Math.min(p,o[b.w]-a.edge(b))},Number.POSITIVE_INFINITY),v=e.node(l);h!==Number.POSITIVE_INFINITY&&v.borderType!==u&&(o[l]=Math.max(o[l],h))}return d(s,a.predecessors.bind(a)),d(c,a.successors.bind(a)),f(t,function(l){o[l]=o[r[l]]}),o}function nt(e,n,r,t){var i=new g,o=e.graph(),a=ot(o.nodesep,o.edgesep,t);return f(n,function(u){var d;f(u,function(s){var c=r[s];if(i.setNode(c),d){var l=r[d],h=i.edge(l,c);i.setEdge(l,c,Math.max(a(e,s,d),h||0))}d=s})}),i}function rt(e,n){return J(E(n),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Ln(r,function(o,a){var u=ut(e,a)/2;t=Math.max(o+u,t),i=Math.min(o-u,i)}),t-i})}function tt(e,n){var r=E(n),t=P(r),i=y(r);f(["u","d"],function(o){f(["l","r"],function(a){var u=o+a,d=e[u],s;if(d!==n){var c=E(d);s=a==="l"?t-P(c):i-y(c),s&&(e[u]=j(d,function(l){return l+s}))}})})}function it(e,n){return j(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var i=R(w(e,t));return(i[1]+i[2])/2})}function at(e){var n=G(e),r=X(Ur(e,n),Jr(e,n)),t={},i;f(["u","d"],function(a){i=a==="u"?n:E(n).reverse(),f(["l","r"],function(u){u==="r"&&(i=w(i,function(l){return E(l).reverse()}));var d=(a==="u"?e.predecessors:e.successors).bind(e),s=Qr(e,i,r,d),c=et(e,i,s.root,s.align,u==="r");u==="r"&&(c=j(c,function(l){return-l})),t[a+u]=c})});var o=rt(e,t);return tt(t,o),it(t,e.graph().align)}function ot(e,n,r){return function(t,i,o){var a=t.node(i),u=t.node(o),d=0,s;if(d+=a.width/2,Object.prototype.hasOwnProperty.call(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":s=-a.width/2;break;case"r":s=a.width/2;break}if(s&&(d+=r?s:-s),s=0,d+=(a.dummy?n:e)/2,d+=(u.dummy?n:e)/2,d+=u.width/2,Object.prototype.hasOwnProperty.call(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=u.width/2;break;case"r":s=-u.width/2;break}return s&&(d+=r?s:-s),s=0,d}}function ut(e,n){return e.node(n).width}function dt(e){e=Le(e),st(e),Pn(at(e),function(n,r){e.node(r).x=n})}function st(e){var n=G(e),r=e.graph().ranksep,t=0;f(n,function(i){var o=y(w(i,function(a){return e.node(a).height}));f(i,function(a){e.node(a).y=t+o/2}),t+=o+r})}function Bt(e,n){var r=ar;r("layout",()=>{var t=r(" buildLayoutGraph",()=>yt(e));r(" runLayout",()=>ft(t,r)),r(" updateInputGraph",()=>ct(e,t))})}function ft(e,n){n(" makeSpaceForEdgeLabels",()=>xt(e)),n(" removeSelfEdges",()=>It(e)),n(" acyclic",()=>Zn(e)),n(" nestingGraph.run",()=>Lr(e)),n(" rank",()=>kr(Le(e))),n(" injectEdgeLabelProxies",()=>Et(e)),n(" removeEmptyRanks",()=>tr(e)),n(" nestingGraph.cleanup",()=>Cr(e)),n(" normalizeRanks",()=>rr(e)),n(" assignRankMinMax",()=>kt(e)),n(" removeEdgeLabelProxies",()=>Ot(e)),n(" normalize.run",()=>cr(e)),n(" parentDummyChains",()=>zr(e)),n(" addBorderSegments",()=>or(e)),n(" order",()=>qr(e)),n(" insertSelfEdges",()=>Rt(e)),n(" adjustCoordinateSystem",()=>ur(e)),n(" position",()=>dt(e)),n(" positionSelfEdges",()=>Tt(e)),n(" removeBorderNodes",()=>Ct(e)),n(" normalize.undo",()=>hr(e)),n(" fixupEdgeLabelCoords",()=>Pt(e)),n(" undoCoordinateSystem",()=>dr(e)),n(" translateGraph",()=>Nt(e)),n(" assignNodeIntersects",()=>Lt(e)),n(" reversePoints",()=>_t(e)),n(" acyclic.undo",()=>er(e))}function ct(e,n){f(e.nodes(),function(r){var t=e.node(r),i=n.node(r);t&&(t.x=i.x,t.y=i.y,n.children(r).length&&(t.width=i.width,t.height=i.height))}),f(e.edges(),function(r){var t=e.edge(r),i=n.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var lt=["nodesep","edgesep","ranksep","marginx","marginy"],ht={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},vt=["acyclicer","ranker","rankdir","align"],pt=["width","height"],wt={width:0,height:0},bt=["minlen","weight","width","height","labeloffset"],mt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},gt=["labelpos"];function yt(e){var n=new g({multigraph:!0,compound:!0}),r=W(e.graph());return n.setGraph(X({},ht,q(r,lt),A(r,vt))),f(e.nodes(),function(t){var i=W(e.node(t));n.setNode(t,En(q(i,pt),wt)),n.setParent(t,e.parent(t))}),f(e.edges(),function(t){var i=W(e.edge(t));n.setEdge(t,X({},mt,q(i,bt),A(i,gt)))}),n}function xt(e){var n=e.graph();n.ranksep/=2,f(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Et(e){f(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),i=e.node(n.w),o={rank:(i.rank-t.rank)/2+t.rank,e:n};N(e,"edge-proxy",o,"_ep")}})}function kt(e){var n=0;f(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=y(n,t.maxRank))}),e.graph().maxRank=n}function Ot(e){f(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function Nt(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,u=o.marginy||0;function d(s){var c=s.x,l=s.y,h=s.width,v=s.height;n=Math.min(n,c-h/2),r=Math.max(r,c+h/2),t=Math.min(t,l-v/2),i=Math.max(i,l+v/2)}f(e.nodes(),function(s){d(e.node(s))}),f(e.edges(),function(s){var c=e.edge(s);Object.prototype.hasOwnProperty.call(c,"x")&&d(c)}),n-=a,t-=u,f(e.nodes(),function(s){var c=e.node(s);c.x-=n,c.y-=t}),f(e.edges(),function(s){var c=e.edge(s);f(c.points,function(l){l.x-=n,l.y-=t}),Object.prototype.hasOwnProperty.call(c,"x")&&(c.x-=n),Object.prototype.hasOwnProperty.call(c,"y")&&(c.y-=t)}),o.width=r-n+a,o.height=i-t+u}function Lt(e){f(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),i=e.node(n.w),o,a;r.points?(o=r.points[0],a=r.points[r.points.length-1]):(r.points=[],o=i,a=t),r.points.unshift(ae(t,o)),r.points.push(ae(i,a))})}function Pt(e){f(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function _t(e){f(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ct(e){f(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),i=e.node(r.borderBottom),o=e.node(F(r.borderLeft)),a=e.node(F(r.borderRight));r.width=Math.abs(a.x-o.x),r.height=Math.abs(i.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),f(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function It(e){f(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Rt(e){var n=G(e);f(n,function(r){var t=0;f(r,function(i,o){var a=e.node(i);a.order=o+t,f(a.selfEdges,function(u){N(e,"selfedge",{width:u.label.width,height:u.label.height,rank:a.rank,order:o+ ++t,e:u.e,label:u.label},"_se")}),delete a.selfEdges})})}function Tt(e){f(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),i=t.x+t.width/2,o=t.y,a=r.x-i,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],r.label.x=r.x,r.label.y=r.y}})}function q(e,n){return j(A(e,n),Number)}function W(e){var n={};return f(e,function(r,t){n[t.toLowerCase()]=r}),n}export{Bt as l};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aL as j,aM as p,aN as w,aO as k,aP as q}from"./mermaid.core-
|
|
1
|
+
import{aL as j,aM as p,aN as w,aO as k,aP as q}from"./mermaid.core-BZI8AtwT.js";import{i as D}from"./init-Gi6I4Gst.js";import{e as M,f as F,a as P,b as z}from"./defaultLocale-DX6XiGOO.js";function g(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function B(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=g,t=(o,c)=>g(n(o),c),e=(o,c)=>n(o)-c):(r=n===g||n===B?n:I,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function I(){return 0}function O(n){return n===null?NaN:+n}const V=R(g),$=V.right;R(O).center;const x=Math.sqrt(50),L=Math.sqrt(10),T=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=x?10:f>=L?5:f>=T?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function E(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function G(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function H(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function J(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function K(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=w(r))?(r=e,k):q:r instanceof w?k:r instanceof Date?K:H(r)?G:Array.isArray(r)?J:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-M(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(M(r)/3)))*3-M(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,M(r)-M(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=$(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=E(n,r,t),f;switch(e=F(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),P(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return z(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},D.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{av as He,aw as Pe,E as Ge,ax as Oe,X as We,ay as ee,h as Be,w as Ye,az as Te,aA as Ue,aB as Xe,aC as Qe,j as Je,k as he,a2 as Re,Q as Ze,aD as je,l as F,m as q,q as le,t as Ae,T as et,I as tt,N as xe,O as Le,_ as Fe,L as Me,p as Ke,V as $e,y as te,aE as rt}from"./index-CaPWFEmi.js";function nt(...r){return He(it,r,at)}var it=(r,h)=>r.flatMap(h),at=r=>(h,M,B)=>{let E=r(h,M,B);return Array.isArray(E)?{done:!1,hasNext:!0,hasMany:!0,next:E}:{done:!1,hasNext:!0,next:E}},Ce={exports:{}},lt=Ce.exports,Ee;function st(){return Ee||(Ee=1,(function(r){((h,M)=>{r.exports?r.exports=M():h.fuzzysort=M()})(lt,h=>{var M=(t,e)=>{if(!t||!e)return _;var n=se(t);d(e)||(e=p(e));var s=n.bitflags;return(s&e._bitflags)!==s?_:ne(n,e)},B=(t,e,n)=>{if(!t)return n?.all?re(e,n):Q;var s=se(t),c=s.bitflags,l=s.containsSpace,i=X(n?.threshold||0),v=n?.limit||D,f=0,S=0,k=e.length;function U(ge){f<v?(N.add(ge),++f):(++S,ge._score>N.peek()._score&&N.replaceTop(ge))}if(n?.key)for(var H=n.key,$=0;$<k;++$){var G=e[$],I=o(G,H);if(I&&(d(I)||(I=p(I)),(c&I._bitflags)===c)){var L=ne(s,I);L!==_&&(L._score<i||(L.obj=G,U(L)))}}else if(n?.keys){var ue=n.keys,j=ue.length;e:for(var $=0;$<k;++$){var G=e[$];{for(var P=0,b=0;b<j;++b){var H=ue[b],I=o(G,H);if(!I){a[b]=ae;continue}d(I)||(I=p(I)),a[b]=I,P|=I._bitflags}if((c&P)!==c)continue}if(l)for(let A=0;A<s.spaceSearches.length;A++)ie[A]=x;for(var b=0;b<j;++b){if(I=a[b],I===ae){g[b]=ae;continue}if(g[b]=ne(s,I,!1,l),g[b]===_){g[b]=ae;continue}if(l)for(let K=0;K<s.spaceSearches.length;K++){if(oe[K]>-1e3&&ie[K]>x){var R=(ie[K]+oe[K])/4;R>ie[K]&&(ie[K]=R)}oe[K]>ie[K]&&(ie[K]=oe[K])}}if(l){for(let A=0;A<s.spaceSearches.length;A++)if(ie[A]===x)continue e}else{var y=!1;for(let A=0;A<j;A++)if(g[A]._score!==x){y=!0;break}if(!y)continue}var J=new w(j);for(let A=0;A<j;A++)J[A]=g[A];if(l){var z=0;for(let A=0;A<s.spaceSearches.length;A++)z+=ie[A]}else{var z=x;for(let K=0;K<j;K++){var L=J[K];if(L._score>-1e3&&z>x){var R=(z+L._score)/4;R>z&&(z=R)}L._score>z&&(z=L._score)}}if(J.obj=G,J._score=z,n?.scoreFn){if(z=n.scoreFn(J),!z)continue;z=X(z),J._score=z}z<i||U(J)}}else for(var $=0;$<k;++$){var I=e[$];if(I&&(d(I)||(I=p(I)),(c&I._bitflags)===c)){var L=ne(s,I);L!==_&&(L._score<i||U(L))}}if(f===0)return Q;for(var ve=new Array(f),$=f-1;$>=0;--$)ve[$]=N.poll();return ve.total=f+S,ve},E=(t,e="<b>",n="</b>")=>{for(var s=typeof e=="function"?e:void 0,c=t.target,l=c.length,i=t.indexes,v="",f=0,S=0,k=!1,U=[],H=0;H<l;++H){var $=c[H];if(i[S]===H){if(++S,k||(k=!0,s?(U.push(v),v=""):v+=e),S===i.length){s?(v+=$,U.push(s(v,f++)),v="",U.push(c.substr(H+1))):v+=$+n+c.substr(H+1);break}}else k&&(k=!1,s?(U.push(s(v,f++)),v=""):v+=n);v+=$}return s?U:v},O=t=>{typeof t=="number"?t=""+t:typeof t!="string"&&(t="");var e=Y(t);return C(t,{_targetLower:e._lower,_targetLowerCodes:e.lowerCodes,_bitflags:e.bitflags})},V=()=>{we.clear(),ye.clear()};class m{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((e,n)=>e-n)}set indexes(e){return this._indexes=e}highlight(e,n){return E(this,e,n)}get score(){return W(this._score)}set score(e){this._score=X(e)}}class w extends Array{get score(){return W(this._score)}set score(e){this._score=X(e)}}var C=(t,e)=>{const n=new m;return n.target=t,n.obj=e.obj??_,n._score=e._score??x,n._indexes=e._indexes??[],n._targetLower=e._targetLower??"",n._targetLowerCodes=e._targetLowerCodes??_,n._nextBeginningIndexes=e._nextBeginningIndexes??_,n._bitflags=e._bitflags??0,n},W=t=>t===x?0:t>1?t:Math.E**(((-t+1)**.04307-1)*-2),X=t=>t===0?x:t>1?t:1-Math.pow(Math.log(t)/-2+1,1/.04307),u=t=>{typeof t=="number"?t=""+t:typeof t!="string"&&(t=""),t=t.trim();var e=Y(t),n=[];if(e.containsSpace){var s=t.split(/\s+/);s=[...new Set(s)];for(var c=0;c<s.length;c++)if(s[c]!==""){var l=Y(s[c]);n.push({lowerCodes:l.lowerCodes,_lower:s[c].toLowerCase(),containsSpace:!1})}}return{lowerCodes:e.lowerCodes,_lower:e._lower,containsSpace:e.containsSpace,bitflags:e.bitflags,spaceSearches:n}},p=t=>{if(t.length>999)return O(t);var e=we.get(t);return e!==void 0||(e=O(t),we.set(t,e)),e},se=t=>{if(t.length>999)return u(t);var e=ye.get(t);return e!==void 0||(e=u(t),ye.set(t,e)),e},re=(t,e)=>{var n=[];n.total=t.length;var s=e?.limit||D;if(e?.key)for(var c=0;c<t.length;c++){var l=t[c],i=o(l,e.key);if(i!=_){d(i)||(i=p(i));var v=C(i.target,{_score:i._score,obj:l});if(n.push(v),n.length>=s)return n}}else if(e?.keys)for(var c=0;c<t.length;c++){for(var l=t[c],f=new w(e.keys.length),S=e.keys.length-1;S>=0;--S){var i=o(l,e.keys[S]);if(!i){f[S]=ae;continue}d(i)||(i=p(i)),i._score=x,i._indexes.len=0,f[S]=i}if(f.obj=l,f._score=x,n.push(f),n.length>=s)return n}else for(var c=0;c<t.length;c++){var i=t[c];if(i!=_&&(d(i)||(i=p(i)),i._score=x,i._indexes.len=0,n.push(i),n.length>=s))return n}return n},ne=(t,e,n=!1,s=!1)=>{if(n===!1&&t.containsSpace)return me(t,e,s);for(var c=t._lower,l=t.lowerCodes,i=l[0],v=e._targetLowerCodes,f=l.length,S=v.length,$=0,k=0,U=0;;){var H=i===v[k];if(H){if(Z[U++]=k,++$,$===f)break;i=l[$]}if(++k,k>=S)return _}var $=0,G=!1,I=0,L=e._nextBeginningIndexes;L===_&&(L=e._nextBeginningIndexes=_e(e.target)),k=Z[0]===0?0:L[Z[0]-1];var ue=0;if(k!==S)for(;;)if(k>=S){if($<=0||(++ue,ue>200))break;--$;var j=fe[--I];k=L[j]}else{var H=l[$]===v[k];if(H){if(fe[I++]=k,++$,$===f){G=!0;break}++k}else k=L[k]}var P=f<=1?-1:e._targetLower.indexOf(c,Z[0]),b=!!~P,R=b?P===0||e._nextBeginningIndexes[P-1]===P:!1;if(b&&!R){for(var y=0;y<L.length;y=L[y])if(!(y<=P)){for(var J=0;J<f&&l[J]===e._targetLowerCodes[y+J];J++);if(J===f){P=y,R=!0;break}}}var z=A=>{for(var K=0,De=0,ce=1;ce<f;++ce)A[ce]-A[ce-1]!==1&&(K-=A[ce],++De);var Ve=A[f-1]-A[0]-(f-1);if(K-=(12+Ve)*De,A[0]!==0&&(K-=A[0]*A[0]*.2),!G)K*=1e3;else{for(var Ie=1,ce=L[0];ce<S;ce=L[ce])++Ie;Ie>24&&(K*=(Ie-24)*10)}return K-=(S-f)/2,b&&(K/=1+f*f*1),R&&(K/=1+f*f*1),K-=(S-f)/2,K};if(G)if(R){for(var y=0;y<f;++y)Z[y]=P+y;var ve=Z,ge=z(Z)}else var ve=fe,ge=z(fe);else{if(b)for(var y=0;y<f;++y)Z[y]=P+y;var ve=Z,ge=z(ve)}e._score=ge;for(var y=0;y<f;++y)e._indexes[y]=ve[y];e._indexes.len=f;const Se=new m;return Se.target=e.target,Se._score=e._score,Se._indexes=e._indexes,Se},me=(t,e,n)=>{for(var s=new Set,c=0,l=_,i=0,v=t.spaceSearches,f=v.length,S=0,k=()=>{for(let R=S-1;R>=0;R--)e._nextBeginningIndexes[de[R*2+0]]=de[R*2+1]},U=!1,b=0;b<f;++b){oe[b]=x;var H=v[b];if(l=ne(H,e),n){if(l===_)continue;U=!0}else if(l===_)return k(),_;var $=b===f-1;if(!$){var G=l._indexes,I=!0;for(let y=0;y<G.len-1;y++)if(G[y+1]-G[y]!==1){I=!1;break}if(I){var L=G[G.len-1]+1,ue=e._nextBeginningIndexes[L-1];for(let y=L-1;y>=0&&ue===e._nextBeginningIndexes[y];y--)e._nextBeginningIndexes[y]=L,de[S*2+0]=y,de[S*2+1]=ue,S++}}c+=l._score/f,oe[b]=l._score/f,l._indexes[0]<i&&(c-=(i-l._indexes[0])*2),i=l._indexes[0];for(var j=0;j<l._indexes.len;++j)s.add(l._indexes[j])}if(n&&!U)return _;k();var P=ne(t,e,!0);if(P!==_&&P._score>c){if(n)for(var b=0;b<f;++b)oe[b]=P._score/f;return P}n&&(l=e),l._score=c;var b=0;for(let R of s)l._indexes[b++]=R;return l._indexes.len=b,l},T=t=>t.replace(/\p{Script=Latin}+/gu,e=>e.normalize("NFD")).replace(/[\u0300-\u036f]/g,""),Y=t=>{t=T(t);for(var e=t.length,n=t.toLowerCase(),s=[],c=0,l=!1,i=0;i<e;++i){var v=s[i]=n.charCodeAt(i);if(v===32){l=!0;continue}var f=v>=97&&v<=122?v-97:v>=48&&v<=57?26:v<=127?30:31;c|=1<<f}return{lowerCodes:s,bitflags:c,containsSpace:l,_lower:n}},ke=t=>{for(var e=t.length,n=[],s=0,c=!1,l=!1,i=0;i<e;++i){var v=t.charCodeAt(i),f=v>=65&&v<=90,S=f||v>=97&&v<=122||v>=48&&v<=57,k=f&&!c||!l||!S;c=f,l=S,k&&(n[s++]=i)}return n},_e=t=>{t=T(t);for(var e=t.length,n=ke(t),s=[],c=n[0],l=0,i=0;i<e;++i)c>i?s[i]=c:(c=n[++l],s[i]=c===void 0?e:c);return s},we=new Map,ye=new Map,Z=[],fe=[],de=[],ie=[],oe=[],a=[],g=[],o=(t,e)=>{var n=t[e];if(n!==void 0)return n;if(typeof e=="function")return e(t);var s=e;Array.isArray(e)||(s=e.split("."));for(var c=s.length,l=-1;t&&++l<c;)t=t[s[l]];return t},d=t=>typeof t=="object"&&typeof t._bitflags=="number",D=1/0,x=-D,Q=[];Q.total=0;var _=null,ae=O(""),be=t=>{var e=[],n=0,s={},c=l=>{for(var i=0,v=e[i],f=1;f<n;){var S=f+1;i=f,S<n&&e[S]._score<e[f]._score&&(i=S),e[i-1>>1]=e[i],f=1+(i<<1)}for(var k=i-1>>1;i>0&&v._score<e[k]._score;k=(i=k)-1>>1)e[i]=e[k];e[i]=v};return s.add=(l=>{var i=n;e[n++]=l;for(var v=i-1>>1;i>0&&l._score<e[v]._score;v=(i=v)-1>>1)e[i]=e[v];e[i]=l}),s.poll=(l=>{if(n!==0){var i=e[0];return e[0]=e[--n],c(),i}}),s.peek=(l=>{if(n!==0)return e[0]}),s.replaceTop=(l=>{e[0]=l,c()}),s},N=be();return{single:M,go:B,prepare:O,cleanup:V}})})(Ce)),Ce.exports}var ot=st();const pe=Pe(ot);function ct(r){const[h,M]=Ge(r.initialValue),B=()=>r.value?.()!==void 0,E=()=>B()?r.value?.():h();return[E,V=>Oe(()=>{let m;return typeof V=="function"?m=V(E()):m=V,Object.is(m,E())||(B()||M(m),r.onChange?.(m)),m})]}var ft=ct,ut=r=>{const h=We({initialActive:null,orientation:"vertical",loop:!0,textDirection:"ltr",handleTab:!0,vimMode:!1,vimKeys:{up:"k",down:"j",right:"l",left:"h"}},r),[M,B]=ft({initialValue:h.initialActive,onChange:h.onActiveChange}),E=()=>{const m=ee(h.vimKeys);let w,C;return ee(h.orientation)==="vertical"?(w="arrowdown",C=m.down):ee(h.textDirection)==="ltr"?(w="arrowright",C=m.right):(w="arrowleft",C=m.left),ee(h.vimMode)?[w,C]:[w]},O=()=>{const m=ee(h.vimKeys);let w,C;return ee(h.orientation)==="vertical"?(w="arrowup",C=m.up):ee(h.textDirection)==="ltr"?(w="arrowleft",C=m.left):(w="arrowright",C=m.right),ee(h.vimMode)?[w,C]:[w]};return{active:M,setActive:B,onKeyDown:m=>{const w=m.key.toLowerCase(),C=ee(h.items);if(C.length===0)return;const W=C.length,X=M(),u=X!==null?C.indexOf(X):null;E().includes(w)?(m.preventDefault(),u===W-1?ee(h.loop)&&B(()=>C[0]):B(()=>C[u!==null?u+1:0])):O().includes(w)?(m.preventDefault(),u===0?ee(h.loop)&&B(()=>C[W-1]):B(()=>C[u!==null?u-1:W-1])):w==="home"?(m.preventDefault(),B(()=>C[0])):w==="end"?(m.preventDefault(),B(()=>C[W-1])):ee(h.handleTab)&&u!==null&&(w==="tab"&&!m.shiftKey&&u<W-1&&(m.preventDefault(),B(()=>C[u+1])),w==="tab"&&m.shiftKey&&u>0&&(m.preventDefault(),B(()=>C[u-1])))}}},vt=ut;function dt(r){const[h,M]=Be({filter:""}),B=[],[E,{refetch:O}]=Ye(()=>({filter:h.filter,items:typeof r.items=="function"?r.items(h.filter):r.items}),async({filter:u,items:p})=>{const re=(u??"").toLowerCase(),ne=await Promise.resolve(p)||[];return Te(ne,T=>re?!r.filterKeys&&Array.isArray(T)&&T.every(Y=>typeof Y=="string")?pe.go(re,T).map(Y=>Y.target):pe.go(re,T,{keys:r.filterKeys}).map(Y=>Y.obj):T,Qe(T=>r.groupBy?r.groupBy(T):""),Xe(),Ue(([T,Y])=>({category:T,items:r.sortBy?Y.sort(r.sortBy):Y})),T=>r.sortGroupsBy?T.sort(r.sortGroupsBy):T)},{initialValue:B}),V=Je(()=>Te(E.latest||[],nt(u=>u.items)));function m(){if(r.noInitialSelection)return"";if(r.current)return r.key(r.current);const u=V();return u.length===0?"":r.key(u[0])}const w=vt({items:()=>V().map(r.key),initialActive:m(),loop:!0}),C=()=>{if(r.noInitialSelection){w.setActive("");return}const u=V();u.length!==0&&w.setActive(r.key(u[0]))},W=u=>{if(u.key==="Enter"&&!u.isComposing){u.preventDefault();const p=V().findIndex(re=>r.key(re)===w.active()),se=V()[p];se&&r.onSelect?.(se,p)}else if(u.ctrlKey&&!u.metaKey&&!u.altKey&&!u.shiftKey){if(u.key==="n"||u.key==="p"){u.preventDefault();const p=new KeyboardEvent("keydown",{key:u.key==="n"?"ArrowDown":"ArrowUp",bubbles:!0});w.onKeyDown(p)}}else{if(u.altKey||u.metaKey)return;w.onKeyDown(u)}};return he(Re(E,()=>{C()})),{grouped:E,filter:()=>h.filter,flat:V,reset:C,refetch:O,clear:()=>M("filter",""),onKeyDown:W,onInput:u=>{M("filter",u)},active:w.active,setActive:w.setActive}}var gt=te("<div data-slot=list-item-add>"),ht=te("<div data-slot=list-header>"),ze=te("<span>"),_t=te("<span data-slot=list-filter>"<!>""),yt=te("<div data-slot=list-search-wrapper><div data-slot=list-search><div data-slot=list-search-container>"),qe=te("<div data-slot=list-group><div data-slot=list-items>"),mt=te("<div data-component=list><div data-slot=list-scroll>"),wt=te("<div data-slot=list-empty-state><div data-slot=list-message>"),xt=te("<span data-slot=list-item-selected-icon>"),kt=te("<button data-slot=list-item type=button>"),bt=te("<span data-slot=list-item-active-icon>"),St=te("<span data-slot=list-item-divider>");function Ne(r,h){const M=r.querySelectorAll('[data-slot="list-item"][data-key]');for(const B of M)if(B.getAttribute("data-key")===h)return B}function Ct(r){const h=je();let M;const[B,E]=Be({mouseActive:!1,scrollRef:void 0,internalFilter:""}),O=()=>B.scrollRef,V=a=>E("scrollRef",a),m=()=>B.internalFilter,w=a=>E("internalFilter",a),C=(a,g,o)=>{const d=a.getBoundingClientRect(),D=g.getBoundingClientRect(),x=D.top-d.top+a.scrollTop;x+D.height,a.scrollTop+a.clientHeight;const _=x-a.clientHeight/2+D.height/2,ae=Math.max(0,a.scrollHeight-a.clientHeight);a.scrollTop=Math.max(0,Math.min(_,ae))},{filter:W,grouped:X,flat:u,active:p,setActive:se,onKeyDown:re,onInput:ne,refetch:me}=dt(r),T=()=>typeof r.search=="object"?r.search:{},Y=()=>T().action,ke=()=>r.add,_e=()=>!!ke(),we=a=>a.movementX!==0||a.movementY!==0,ye=(a,g)=>{const o=W();if(w(a),ne(a),r.onFilter?.(a),!!g?.ref){if(o===a){me();return}queueMicrotask(()=>me())}};he(()=>{r.filter!==void 0&&r.filter!==m()&&(w(r.filter),ne(r.filter))}),he(Re(W,()=>{O()?.scrollTo(0,0)},{defer:!0})),he(()=>{const a=O();if(!a||!r.current)return;const g=r.key(r.current);requestAnimationFrame(()=>{const o=Ne(a,g);o&&C(a,o)})}),he(()=>{const a=u();if(B.mouseActive||a.length===0)return;const g=O();if(!g)return;if(p()===r.key(a[0])){g.scrollTo(0,0);return}const o=p();if(!o)return;const d=Ne(g,o);d&&C(g,d)}),he(()=>{const a=u(),g=p(),o=a.find(d=>r.key(d)===g);r.onMove?.(o)});const Z=(a,g)=>{r.onSelect?.(a,g)},fe=a=>{if(E("mouseActive",!1),a.key==="Escape")return;const g=u(),o=g.find(D=>r.key(D)===p()),d=o?g.indexOf(o):-1;if(r.onKeyEvent?.(a,o),!a.defaultPrevented)if(a.key==="Enter"&&!a.isComposing)a.preventDefault(),o&&Z(o,d);else if(r.search){if(a.ctrlKey&&!a.metaKey&&!a.altKey&&!a.shiftKey&&(a.key==="n"||a.key==="p")){re(a);return}(a.key==="ArrowDown"||a.key==="ArrowUp")&&re(a)}else re(a)};r.ref?.({onKeyDown:fe,setScrollRef:V,setFilter:a=>ye(a,{ref:!0})});const de=()=>{const a=ke();return a?(()=>{var g=gt();return F(g,()=>a.render()),xe(o=>Le(g,{[a.class??""]:!!a.class},o)),g})():null};function ie(a){const[g,o]=Be({stuck:!1,header:void 0});return he(()=>{const d=O(),D=g.header;if(!d||!D)return;const x=()=>{const Q=D.getBoundingClientRect(),_=d.getBoundingClientRect();o("stuck",Q.top<=_.top+1&&d.scrollTop>0)};rt(d,"scroll",x,{passive:!0}),x()}),(()=>{var d=ht();return Fe(D=>o("header",D),d),F(d,()=>r.groupHeader?.(a.group)??a.group.category),xe(()=>$e(d,"data-stuck",g.stuck)),d})()}const oe=()=>{if(X.loading)return r.loadingMessage??h.t("ui.list.loading");if(r.emptyMessage)return r.emptyMessage;const a=W();if(!a)return h.t("ui.list.empty");const g=h.t("ui.list.emptyWithFilter.suffix");return[(()=>{var o=ze();return F(o,()=>h.t("ui.list.emptyWithFilter.prefix")),o})(),(()=>{var o=_t(),d=o.firstChild,D=d.nextSibling;return D.nextSibling,F(o,a,D),o})(),q(le,{when:g,get children(){var o=ze();return F(o,g),o}})]};return(()=>{var a=mt(),g=a.firstChild;return F(a,q(le,{get when(){return!!r.search},get children(){var o=yt(),d=o.firstChild,D=d.firstChild;return d.$$pointerdown=x=>{const Q=x.currentTarget;if(!(Q instanceof HTMLElement))return;const _=Q.querySelector("input, textarea");(_ instanceof HTMLInputElement||_ instanceof HTMLTextAreaElement?_:M)?.focus(),x.stopPropagation()},F(D,q(le,{get when(){return!T().hideIcon},get children(){return q(Ae,{name:"magnifying-glass"})}}),null),F(D,q(et,{get autofocus(){return T().autofocus},variant:"ghost","data-slot":"list-search-input",type:"text",ref:x=>{M=x},get value(){return m()},onChange:x=>ye(x),onKeyDown:fe,get placeholder(){return T().placeholder},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off"}),null),F(d,q(le,{get when(){return m()},get children(){return q(tt,{icon:"circle-x",variant:"ghost",onClick:()=>{w(""),queueMicrotask(()=>M?.focus())},get"aria-label"(){return h.t("ui.list.clearFilter")}})}}),null),F(o,Y,null),xe(x=>Le(d,{[T().class??""]:!!T().class},x)),o}}),g),Fe(V,g),F(g,q(le,{get when(){return u().length>0||_e()},get fallback(){return(()=>{var o=wt(),d=o.firstChild;return F(d,oe),o})()},get children(){return[q(Me,{get each(){return X.latest},children:(o,d)=>{const D=()=>d()===X.latest.length-1;return(()=>{var x=qe(),Q=x.firstChild;return F(x,q(le,{get when(){return o.category},get children(){return q(ie,{group:o})}}),Q),F(Q,q(Me,{get each(){return o.items},children:(_,ae)=>{const be=(()=>{var N=kt();return N.addEventListener("mouseleave",()=>{B.mouseActive&&se(null)}),N.$$mousemove=t=>{we(t)&&(E("mouseActive",!0),se(r.key(_)))},N.$$keydown=fe,N.$$click=()=>Z(_,ae()),F(N,()=>r.children(_),null),F(N,q(le,{get when(){return _===r.current},get children(){var t=xt();return F(t,q(Ae,{name:"check-small"})),t}}),null),F(N,q(le,{get when(){return r.activeIcon},keyed:!0,children:t=>(()=>{var e=bt();return F(e,q(Ae,{name:t})),e})()}),null),F(N,(()=>{var t=Ke(()=>!!(r.divider&&(ae()!==o.items.length-1||_e()&&D())));return()=>t()&&St()})(),null),xe(t=>{var e=r.key(_),n=r.key(_)===p(),s=_===r.current;return e!==t.e&&$e(N,"data-key",t.e=e),n!==t.t&&$e(N,"data-active",t.t=n),s!==t.a&&$e(N,"data-selected",t.a=s),t},{e:void 0,t:void 0,a:void 0}),N})();return r.itemWrapper?r.itemWrapper(_,be):be}}),null),F(Q,q(le,{get when(){return Ke(()=>!!_e())()&&D()},get children(){return de()}}),null),x})()}}),q(le,{get when(){return Ke(()=>X.latest.length===0)()&&_e()},get children(){var o=qe(),d=o.firstChild;return F(d,de),o}})]}})),xe(o=>Le(a,{[r.class??""]:!!r.class},o)),a})()}Ze(["pointerdown","click","keydown","mousemove"]);export{Ct as L,pe as f,dt as u};
|
|
1
|
+
import{av as He,aw as Pe,E as Ge,ax as Oe,X as We,ay as ee,h as Be,w as Ye,az as Te,aA as Ue,aB as Xe,aC as Qe,j as Je,k as he,a2 as Re,Q as Ze,aD as je,l as F,m as q,q as le,t as Ae,T as et,I as tt,N as xe,O as Le,_ as Fe,L as Me,p as Ke,V as $e,y as te,aE as rt}from"./index-B3MnqBGf.js";function nt(...r){return He(it,r,at)}var it=(r,h)=>r.flatMap(h),at=r=>(h,M,B)=>{let E=r(h,M,B);return Array.isArray(E)?{done:!1,hasNext:!0,hasMany:!0,next:E}:{done:!1,hasNext:!0,next:E}},Ce={exports:{}},lt=Ce.exports,Ee;function st(){return Ee||(Ee=1,(function(r){((h,M)=>{r.exports?r.exports=M():h.fuzzysort=M()})(lt,h=>{var M=(t,e)=>{if(!t||!e)return _;var n=se(t);d(e)||(e=p(e));var s=n.bitflags;return(s&e._bitflags)!==s?_:ne(n,e)},B=(t,e,n)=>{if(!t)return n?.all?re(e,n):Q;var s=se(t),c=s.bitflags,l=s.containsSpace,i=X(n?.threshold||0),v=n?.limit||D,f=0,S=0,k=e.length;function U(ge){f<v?(N.add(ge),++f):(++S,ge._score>N.peek()._score&&N.replaceTop(ge))}if(n?.key)for(var H=n.key,$=0;$<k;++$){var G=e[$],I=o(G,H);if(I&&(d(I)||(I=p(I)),(c&I._bitflags)===c)){var L=ne(s,I);L!==_&&(L._score<i||(L.obj=G,U(L)))}}else if(n?.keys){var ue=n.keys,j=ue.length;e:for(var $=0;$<k;++$){var G=e[$];{for(var P=0,b=0;b<j;++b){var H=ue[b],I=o(G,H);if(!I){a[b]=ae;continue}d(I)||(I=p(I)),a[b]=I,P|=I._bitflags}if((c&P)!==c)continue}if(l)for(let A=0;A<s.spaceSearches.length;A++)ie[A]=x;for(var b=0;b<j;++b){if(I=a[b],I===ae){g[b]=ae;continue}if(g[b]=ne(s,I,!1,l),g[b]===_){g[b]=ae;continue}if(l)for(let K=0;K<s.spaceSearches.length;K++){if(oe[K]>-1e3&&ie[K]>x){var R=(ie[K]+oe[K])/4;R>ie[K]&&(ie[K]=R)}oe[K]>ie[K]&&(ie[K]=oe[K])}}if(l){for(let A=0;A<s.spaceSearches.length;A++)if(ie[A]===x)continue e}else{var y=!1;for(let A=0;A<j;A++)if(g[A]._score!==x){y=!0;break}if(!y)continue}var J=new w(j);for(let A=0;A<j;A++)J[A]=g[A];if(l){var z=0;for(let A=0;A<s.spaceSearches.length;A++)z+=ie[A]}else{var z=x;for(let K=0;K<j;K++){var L=J[K];if(L._score>-1e3&&z>x){var R=(z+L._score)/4;R>z&&(z=R)}L._score>z&&(z=L._score)}}if(J.obj=G,J._score=z,n?.scoreFn){if(z=n.scoreFn(J),!z)continue;z=X(z),J._score=z}z<i||U(J)}}else for(var $=0;$<k;++$){var I=e[$];if(I&&(d(I)||(I=p(I)),(c&I._bitflags)===c)){var L=ne(s,I);L!==_&&(L._score<i||U(L))}}if(f===0)return Q;for(var ve=new Array(f),$=f-1;$>=0;--$)ve[$]=N.poll();return ve.total=f+S,ve},E=(t,e="<b>",n="</b>")=>{for(var s=typeof e=="function"?e:void 0,c=t.target,l=c.length,i=t.indexes,v="",f=0,S=0,k=!1,U=[],H=0;H<l;++H){var $=c[H];if(i[S]===H){if(++S,k||(k=!0,s?(U.push(v),v=""):v+=e),S===i.length){s?(v+=$,U.push(s(v,f++)),v="",U.push(c.substr(H+1))):v+=$+n+c.substr(H+1);break}}else k&&(k=!1,s?(U.push(s(v,f++)),v=""):v+=n);v+=$}return s?U:v},O=t=>{typeof t=="number"?t=""+t:typeof t!="string"&&(t="");var e=Y(t);return C(t,{_targetLower:e._lower,_targetLowerCodes:e.lowerCodes,_bitflags:e.bitflags})},V=()=>{we.clear(),ye.clear()};class m{get indexes(){return this._indexes.slice(0,this._indexes.len).sort((e,n)=>e-n)}set indexes(e){return this._indexes=e}highlight(e,n){return E(this,e,n)}get score(){return W(this._score)}set score(e){this._score=X(e)}}class w extends Array{get score(){return W(this._score)}set score(e){this._score=X(e)}}var C=(t,e)=>{const n=new m;return n.target=t,n.obj=e.obj??_,n._score=e._score??x,n._indexes=e._indexes??[],n._targetLower=e._targetLower??"",n._targetLowerCodes=e._targetLowerCodes??_,n._nextBeginningIndexes=e._nextBeginningIndexes??_,n._bitflags=e._bitflags??0,n},W=t=>t===x?0:t>1?t:Math.E**(((-t+1)**.04307-1)*-2),X=t=>t===0?x:t>1?t:1-Math.pow(Math.log(t)/-2+1,1/.04307),u=t=>{typeof t=="number"?t=""+t:typeof t!="string"&&(t=""),t=t.trim();var e=Y(t),n=[];if(e.containsSpace){var s=t.split(/\s+/);s=[...new Set(s)];for(var c=0;c<s.length;c++)if(s[c]!==""){var l=Y(s[c]);n.push({lowerCodes:l.lowerCodes,_lower:s[c].toLowerCase(),containsSpace:!1})}}return{lowerCodes:e.lowerCodes,_lower:e._lower,containsSpace:e.containsSpace,bitflags:e.bitflags,spaceSearches:n}},p=t=>{if(t.length>999)return O(t);var e=we.get(t);return e!==void 0||(e=O(t),we.set(t,e)),e},se=t=>{if(t.length>999)return u(t);var e=ye.get(t);return e!==void 0||(e=u(t),ye.set(t,e)),e},re=(t,e)=>{var n=[];n.total=t.length;var s=e?.limit||D;if(e?.key)for(var c=0;c<t.length;c++){var l=t[c],i=o(l,e.key);if(i!=_){d(i)||(i=p(i));var v=C(i.target,{_score:i._score,obj:l});if(n.push(v),n.length>=s)return n}}else if(e?.keys)for(var c=0;c<t.length;c++){for(var l=t[c],f=new w(e.keys.length),S=e.keys.length-1;S>=0;--S){var i=o(l,e.keys[S]);if(!i){f[S]=ae;continue}d(i)||(i=p(i)),i._score=x,i._indexes.len=0,f[S]=i}if(f.obj=l,f._score=x,n.push(f),n.length>=s)return n}else for(var c=0;c<t.length;c++){var i=t[c];if(i!=_&&(d(i)||(i=p(i)),i._score=x,i._indexes.len=0,n.push(i),n.length>=s))return n}return n},ne=(t,e,n=!1,s=!1)=>{if(n===!1&&t.containsSpace)return me(t,e,s);for(var c=t._lower,l=t.lowerCodes,i=l[0],v=e._targetLowerCodes,f=l.length,S=v.length,$=0,k=0,U=0;;){var H=i===v[k];if(H){if(Z[U++]=k,++$,$===f)break;i=l[$]}if(++k,k>=S)return _}var $=0,G=!1,I=0,L=e._nextBeginningIndexes;L===_&&(L=e._nextBeginningIndexes=_e(e.target)),k=Z[0]===0?0:L[Z[0]-1];var ue=0;if(k!==S)for(;;)if(k>=S){if($<=0||(++ue,ue>200))break;--$;var j=fe[--I];k=L[j]}else{var H=l[$]===v[k];if(H){if(fe[I++]=k,++$,$===f){G=!0;break}++k}else k=L[k]}var P=f<=1?-1:e._targetLower.indexOf(c,Z[0]),b=!!~P,R=b?P===0||e._nextBeginningIndexes[P-1]===P:!1;if(b&&!R){for(var y=0;y<L.length;y=L[y])if(!(y<=P)){for(var J=0;J<f&&l[J]===e._targetLowerCodes[y+J];J++);if(J===f){P=y,R=!0;break}}}var z=A=>{for(var K=0,De=0,ce=1;ce<f;++ce)A[ce]-A[ce-1]!==1&&(K-=A[ce],++De);var Ve=A[f-1]-A[0]-(f-1);if(K-=(12+Ve)*De,A[0]!==0&&(K-=A[0]*A[0]*.2),!G)K*=1e3;else{for(var Ie=1,ce=L[0];ce<S;ce=L[ce])++Ie;Ie>24&&(K*=(Ie-24)*10)}return K-=(S-f)/2,b&&(K/=1+f*f*1),R&&(K/=1+f*f*1),K-=(S-f)/2,K};if(G)if(R){for(var y=0;y<f;++y)Z[y]=P+y;var ve=Z,ge=z(Z)}else var ve=fe,ge=z(fe);else{if(b)for(var y=0;y<f;++y)Z[y]=P+y;var ve=Z,ge=z(ve)}e._score=ge;for(var y=0;y<f;++y)e._indexes[y]=ve[y];e._indexes.len=f;const Se=new m;return Se.target=e.target,Se._score=e._score,Se._indexes=e._indexes,Se},me=(t,e,n)=>{for(var s=new Set,c=0,l=_,i=0,v=t.spaceSearches,f=v.length,S=0,k=()=>{for(let R=S-1;R>=0;R--)e._nextBeginningIndexes[de[R*2+0]]=de[R*2+1]},U=!1,b=0;b<f;++b){oe[b]=x;var H=v[b];if(l=ne(H,e),n){if(l===_)continue;U=!0}else if(l===_)return k(),_;var $=b===f-1;if(!$){var G=l._indexes,I=!0;for(let y=0;y<G.len-1;y++)if(G[y+1]-G[y]!==1){I=!1;break}if(I){var L=G[G.len-1]+1,ue=e._nextBeginningIndexes[L-1];for(let y=L-1;y>=0&&ue===e._nextBeginningIndexes[y];y--)e._nextBeginningIndexes[y]=L,de[S*2+0]=y,de[S*2+1]=ue,S++}}c+=l._score/f,oe[b]=l._score/f,l._indexes[0]<i&&(c-=(i-l._indexes[0])*2),i=l._indexes[0];for(var j=0;j<l._indexes.len;++j)s.add(l._indexes[j])}if(n&&!U)return _;k();var P=ne(t,e,!0);if(P!==_&&P._score>c){if(n)for(var b=0;b<f;++b)oe[b]=P._score/f;return P}n&&(l=e),l._score=c;var b=0;for(let R of s)l._indexes[b++]=R;return l._indexes.len=b,l},T=t=>t.replace(/\p{Script=Latin}+/gu,e=>e.normalize("NFD")).replace(/[\u0300-\u036f]/g,""),Y=t=>{t=T(t);for(var e=t.length,n=t.toLowerCase(),s=[],c=0,l=!1,i=0;i<e;++i){var v=s[i]=n.charCodeAt(i);if(v===32){l=!0;continue}var f=v>=97&&v<=122?v-97:v>=48&&v<=57?26:v<=127?30:31;c|=1<<f}return{lowerCodes:s,bitflags:c,containsSpace:l,_lower:n}},ke=t=>{for(var e=t.length,n=[],s=0,c=!1,l=!1,i=0;i<e;++i){var v=t.charCodeAt(i),f=v>=65&&v<=90,S=f||v>=97&&v<=122||v>=48&&v<=57,k=f&&!c||!l||!S;c=f,l=S,k&&(n[s++]=i)}return n},_e=t=>{t=T(t);for(var e=t.length,n=ke(t),s=[],c=n[0],l=0,i=0;i<e;++i)c>i?s[i]=c:(c=n[++l],s[i]=c===void 0?e:c);return s},we=new Map,ye=new Map,Z=[],fe=[],de=[],ie=[],oe=[],a=[],g=[],o=(t,e)=>{var n=t[e];if(n!==void 0)return n;if(typeof e=="function")return e(t);var s=e;Array.isArray(e)||(s=e.split("."));for(var c=s.length,l=-1;t&&++l<c;)t=t[s[l]];return t},d=t=>typeof t=="object"&&typeof t._bitflags=="number",D=1/0,x=-D,Q=[];Q.total=0;var _=null,ae=O(""),be=t=>{var e=[],n=0,s={},c=l=>{for(var i=0,v=e[i],f=1;f<n;){var S=f+1;i=f,S<n&&e[S]._score<e[f]._score&&(i=S),e[i-1>>1]=e[i],f=1+(i<<1)}for(var k=i-1>>1;i>0&&v._score<e[k]._score;k=(i=k)-1>>1)e[i]=e[k];e[i]=v};return s.add=(l=>{var i=n;e[n++]=l;for(var v=i-1>>1;i>0&&l._score<e[v]._score;v=(i=v)-1>>1)e[i]=e[v];e[i]=l}),s.poll=(l=>{if(n!==0){var i=e[0];return e[0]=e[--n],c(),i}}),s.peek=(l=>{if(n!==0)return e[0]}),s.replaceTop=(l=>{e[0]=l,c()}),s},N=be();return{single:M,go:B,prepare:O,cleanup:V}})})(Ce)),Ce.exports}var ot=st();const pe=Pe(ot);function ct(r){const[h,M]=Ge(r.initialValue),B=()=>r.value?.()!==void 0,E=()=>B()?r.value?.():h();return[E,V=>Oe(()=>{let m;return typeof V=="function"?m=V(E()):m=V,Object.is(m,E())||(B()||M(m),r.onChange?.(m)),m})]}var ft=ct,ut=r=>{const h=We({initialActive:null,orientation:"vertical",loop:!0,textDirection:"ltr",handleTab:!0,vimMode:!1,vimKeys:{up:"k",down:"j",right:"l",left:"h"}},r),[M,B]=ft({initialValue:h.initialActive,onChange:h.onActiveChange}),E=()=>{const m=ee(h.vimKeys);let w,C;return ee(h.orientation)==="vertical"?(w="arrowdown",C=m.down):ee(h.textDirection)==="ltr"?(w="arrowright",C=m.right):(w="arrowleft",C=m.left),ee(h.vimMode)?[w,C]:[w]},O=()=>{const m=ee(h.vimKeys);let w,C;return ee(h.orientation)==="vertical"?(w="arrowup",C=m.up):ee(h.textDirection)==="ltr"?(w="arrowleft",C=m.left):(w="arrowright",C=m.right),ee(h.vimMode)?[w,C]:[w]};return{active:M,setActive:B,onKeyDown:m=>{const w=m.key.toLowerCase(),C=ee(h.items);if(C.length===0)return;const W=C.length,X=M(),u=X!==null?C.indexOf(X):null;E().includes(w)?(m.preventDefault(),u===W-1?ee(h.loop)&&B(()=>C[0]):B(()=>C[u!==null?u+1:0])):O().includes(w)?(m.preventDefault(),u===0?ee(h.loop)&&B(()=>C[W-1]):B(()=>C[u!==null?u-1:W-1])):w==="home"?(m.preventDefault(),B(()=>C[0])):w==="end"?(m.preventDefault(),B(()=>C[W-1])):ee(h.handleTab)&&u!==null&&(w==="tab"&&!m.shiftKey&&u<W-1&&(m.preventDefault(),B(()=>C[u+1])),w==="tab"&&m.shiftKey&&u>0&&(m.preventDefault(),B(()=>C[u-1])))}}},vt=ut;function dt(r){const[h,M]=Be({filter:""}),B=[],[E,{refetch:O}]=Ye(()=>({filter:h.filter,items:typeof r.items=="function"?r.items(h.filter):r.items}),async({filter:u,items:p})=>{const re=(u??"").toLowerCase(),ne=await Promise.resolve(p)||[];return Te(ne,T=>re?!r.filterKeys&&Array.isArray(T)&&T.every(Y=>typeof Y=="string")?pe.go(re,T).map(Y=>Y.target):pe.go(re,T,{keys:r.filterKeys}).map(Y=>Y.obj):T,Qe(T=>r.groupBy?r.groupBy(T):""),Xe(),Ue(([T,Y])=>({category:T,items:r.sortBy?Y.sort(r.sortBy):Y})),T=>r.sortGroupsBy?T.sort(r.sortGroupsBy):T)},{initialValue:B}),V=Je(()=>Te(E.latest||[],nt(u=>u.items)));function m(){if(r.noInitialSelection)return"";if(r.current)return r.key(r.current);const u=V();return u.length===0?"":r.key(u[0])}const w=vt({items:()=>V().map(r.key),initialActive:m(),loop:!0}),C=()=>{if(r.noInitialSelection){w.setActive("");return}const u=V();u.length!==0&&w.setActive(r.key(u[0]))},W=u=>{if(u.key==="Enter"&&!u.isComposing){u.preventDefault();const p=V().findIndex(re=>r.key(re)===w.active()),se=V()[p];se&&r.onSelect?.(se,p)}else if(u.ctrlKey&&!u.metaKey&&!u.altKey&&!u.shiftKey){if(u.key==="n"||u.key==="p"){u.preventDefault();const p=new KeyboardEvent("keydown",{key:u.key==="n"?"ArrowDown":"ArrowUp",bubbles:!0});w.onKeyDown(p)}}else{if(u.altKey||u.metaKey)return;w.onKeyDown(u)}};return he(Re(E,()=>{C()})),{grouped:E,filter:()=>h.filter,flat:V,reset:C,refetch:O,clear:()=>M("filter",""),onKeyDown:W,onInput:u=>{M("filter",u)},active:w.active,setActive:w.setActive}}var gt=te("<div data-slot=list-item-add>"),ht=te("<div data-slot=list-header>"),ze=te("<span>"),_t=te("<span data-slot=list-filter>"<!>""),yt=te("<div data-slot=list-search-wrapper><div data-slot=list-search><div data-slot=list-search-container>"),qe=te("<div data-slot=list-group><div data-slot=list-items>"),mt=te("<div data-component=list><div data-slot=list-scroll>"),wt=te("<div data-slot=list-empty-state><div data-slot=list-message>"),xt=te("<span data-slot=list-item-selected-icon>"),kt=te("<button data-slot=list-item type=button>"),bt=te("<span data-slot=list-item-active-icon>"),St=te("<span data-slot=list-item-divider>");function Ne(r,h){const M=r.querySelectorAll('[data-slot="list-item"][data-key]');for(const B of M)if(B.getAttribute("data-key")===h)return B}function Ct(r){const h=je();let M;const[B,E]=Be({mouseActive:!1,scrollRef:void 0,internalFilter:""}),O=()=>B.scrollRef,V=a=>E("scrollRef",a),m=()=>B.internalFilter,w=a=>E("internalFilter",a),C=(a,g,o)=>{const d=a.getBoundingClientRect(),D=g.getBoundingClientRect(),x=D.top-d.top+a.scrollTop;x+D.height,a.scrollTop+a.clientHeight;const _=x-a.clientHeight/2+D.height/2,ae=Math.max(0,a.scrollHeight-a.clientHeight);a.scrollTop=Math.max(0,Math.min(_,ae))},{filter:W,grouped:X,flat:u,active:p,setActive:se,onKeyDown:re,onInput:ne,refetch:me}=dt(r),T=()=>typeof r.search=="object"?r.search:{},Y=()=>T().action,ke=()=>r.add,_e=()=>!!ke(),we=a=>a.movementX!==0||a.movementY!==0,ye=(a,g)=>{const o=W();if(w(a),ne(a),r.onFilter?.(a),!!g?.ref){if(o===a){me();return}queueMicrotask(()=>me())}};he(()=>{r.filter!==void 0&&r.filter!==m()&&(w(r.filter),ne(r.filter))}),he(Re(W,()=>{O()?.scrollTo(0,0)},{defer:!0})),he(()=>{const a=O();if(!a||!r.current)return;const g=r.key(r.current);requestAnimationFrame(()=>{const o=Ne(a,g);o&&C(a,o)})}),he(()=>{const a=u();if(B.mouseActive||a.length===0)return;const g=O();if(!g)return;if(p()===r.key(a[0])){g.scrollTo(0,0);return}const o=p();if(!o)return;const d=Ne(g,o);d&&C(g,d)}),he(()=>{const a=u(),g=p(),o=a.find(d=>r.key(d)===g);r.onMove?.(o)});const Z=(a,g)=>{r.onSelect?.(a,g)},fe=a=>{if(E("mouseActive",!1),a.key==="Escape")return;const g=u(),o=g.find(D=>r.key(D)===p()),d=o?g.indexOf(o):-1;if(r.onKeyEvent?.(a,o),!a.defaultPrevented)if(a.key==="Enter"&&!a.isComposing)a.preventDefault(),o&&Z(o,d);else if(r.search){if(a.ctrlKey&&!a.metaKey&&!a.altKey&&!a.shiftKey&&(a.key==="n"||a.key==="p")){re(a);return}(a.key==="ArrowDown"||a.key==="ArrowUp")&&re(a)}else re(a)};r.ref?.({onKeyDown:fe,setScrollRef:V,setFilter:a=>ye(a,{ref:!0})});const de=()=>{const a=ke();return a?(()=>{var g=gt();return F(g,()=>a.render()),xe(o=>Le(g,{[a.class??""]:!!a.class},o)),g})():null};function ie(a){const[g,o]=Be({stuck:!1,header:void 0});return he(()=>{const d=O(),D=g.header;if(!d||!D)return;const x=()=>{const Q=D.getBoundingClientRect(),_=d.getBoundingClientRect();o("stuck",Q.top<=_.top+1&&d.scrollTop>0)};rt(d,"scroll",x,{passive:!0}),x()}),(()=>{var d=ht();return Fe(D=>o("header",D),d),F(d,()=>r.groupHeader?.(a.group)??a.group.category),xe(()=>$e(d,"data-stuck",g.stuck)),d})()}const oe=()=>{if(X.loading)return r.loadingMessage??h.t("ui.list.loading");if(r.emptyMessage)return r.emptyMessage;const a=W();if(!a)return h.t("ui.list.empty");const g=h.t("ui.list.emptyWithFilter.suffix");return[(()=>{var o=ze();return F(o,()=>h.t("ui.list.emptyWithFilter.prefix")),o})(),(()=>{var o=_t(),d=o.firstChild,D=d.nextSibling;return D.nextSibling,F(o,a,D),o})(),q(le,{when:g,get children(){var o=ze();return F(o,g),o}})]};return(()=>{var a=mt(),g=a.firstChild;return F(a,q(le,{get when(){return!!r.search},get children(){var o=yt(),d=o.firstChild,D=d.firstChild;return d.$$pointerdown=x=>{const Q=x.currentTarget;if(!(Q instanceof HTMLElement))return;const _=Q.querySelector("input, textarea");(_ instanceof HTMLInputElement||_ instanceof HTMLTextAreaElement?_:M)?.focus(),x.stopPropagation()},F(D,q(le,{get when(){return!T().hideIcon},get children(){return q(Ae,{name:"magnifying-glass"})}}),null),F(D,q(et,{get autofocus(){return T().autofocus},variant:"ghost","data-slot":"list-search-input",type:"text",ref:x=>{M=x},get value(){return m()},onChange:x=>ye(x),onKeyDown:fe,get placeholder(){return T().placeholder},spellcheck:!1,autocorrect:"off",autocomplete:"off",autocapitalize:"off"}),null),F(d,q(le,{get when(){return m()},get children(){return q(tt,{icon:"circle-x",variant:"ghost",onClick:()=>{w(""),queueMicrotask(()=>M?.focus())},get"aria-label"(){return h.t("ui.list.clearFilter")}})}}),null),F(o,Y,null),xe(x=>Le(d,{[T().class??""]:!!T().class},x)),o}}),g),Fe(V,g),F(g,q(le,{get when(){return u().length>0||_e()},get fallback(){return(()=>{var o=wt(),d=o.firstChild;return F(d,oe),o})()},get children(){return[q(Me,{get each(){return X.latest},children:(o,d)=>{const D=()=>d()===X.latest.length-1;return(()=>{var x=qe(),Q=x.firstChild;return F(x,q(le,{get when(){return o.category},get children(){return q(ie,{group:o})}}),Q),F(Q,q(Me,{get each(){return o.items},children:(_,ae)=>{const be=(()=>{var N=kt();return N.addEventListener("mouseleave",()=>{B.mouseActive&&se(null)}),N.$$mousemove=t=>{we(t)&&(E("mouseActive",!0),se(r.key(_)))},N.$$keydown=fe,N.$$click=()=>Z(_,ae()),F(N,()=>r.children(_),null),F(N,q(le,{get when(){return _===r.current},get children(){var t=xt();return F(t,q(Ae,{name:"check-small"})),t}}),null),F(N,q(le,{get when(){return r.activeIcon},keyed:!0,children:t=>(()=>{var e=bt();return F(e,q(Ae,{name:t})),e})()}),null),F(N,(()=>{var t=Ke(()=>!!(r.divider&&(ae()!==o.items.length-1||_e()&&D())));return()=>t()&&St()})(),null),xe(t=>{var e=r.key(_),n=r.key(_)===p(),s=_===r.current;return e!==t.e&&$e(N,"data-key",t.e=e),n!==t.t&&$e(N,"data-active",t.t=n),s!==t.a&&$e(N,"data-selected",t.a=s),t},{e:void 0,t:void 0,a:void 0}),N})();return r.itemWrapper?r.itemWrapper(_,be):be}}),null),F(Q,q(le,{get when(){return Ke(()=>!!_e())()&&D()},get children(){return de()}}),null),x})()}}),q(le,{get when(){return Ke(()=>X.latest.length===0)()&&_e()},get children(){var o=qe(),d=o.firstChild;return F(d,de),o}})]}})),xe(o=>Le(a,{[r.class??""]:!!r.class},o)),a})()}Ze(["pointerdown","click","keydown","mousemove"]);export{Ct as L,pe as f,dt as u};
|