gitifact 0.8.3 → 0.8.4
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/README.md +4 -2
- package/dist/browser/assets/{HgiRefresh-UIdBFt6N.js → HgiRefresh-CAJ0Xdvi.js} +1 -1
- package/dist/browser/assets/{Markdown-CR_AHfxJ.js → Markdown-ev4hMr67.js} +1 -1
- package/dist/browser/assets/{Selector-CPFOT7Wj.js → Selector-CGOdL2eo.js} +1 -1
- package/dist/browser/assets/{Tab-DL11wx1W.js → Tab-BwJj0rUr.js} +1 -1
- package/dist/browser/assets/{Table-BK5793GP.js → Table-XuC9zK9w.js} +1 -1
- package/dist/browser/assets/{Token-BnQGlhSv.js → Token-BV_4bSkY.js} +1 -1
- package/dist/browser/assets/{about-3BiGgi3V.js → about-vlKWfG7J.js} +1 -1
- package/dist/browser/assets/{activity-timeline-CCrOFWbb.js → activity-timeline-Dmc-97N6.js} +1 -1
- package/dist/browser/assets/changelog-6QcNKW8u.js +1 -0
- package/dist/browser/assets/{commit-CMw0y1Oj.js → commit-BcdbBdP4.js} +1 -1
- package/dist/browser/assets/{contributor-Cg_cxulE.js → contributor-Bs3RWHQv.js} +1 -1
- package/dist/browser/assets/{contributors-ol5bZm_T.js → contributors-B_bVSY4J.js} +1 -1
- package/dist/browser/assets/{contributors._email-BoTYVUTP.js → contributors._email-BR9sLgCs.js} +1 -1
- package/dist/browser/assets/{contributors.index-DrdKDOYt.js → contributors.index-FoYwG7VE.js} +1 -1
- package/dist/browser/assets/dashboard.index-BFp6Hqsf.js +1 -0
- package/dist/browser/assets/{document-CteWuasx.js → document-DPtVyR5y.js} +1 -1
- package/dist/browser/assets/{document-C2htw6u5.js → document-Q3lvgyX8.js} +1 -1
- package/dist/browser/assets/{features-haTu80rD.js → features-CmvypKgf.js} +1 -1
- package/dist/browser/assets/{features._featureId-CHZA4Y9C.js → features._featureId-xxpihTEs.js} +1 -1
- package/dist/browser/assets/{features.index-BY8ScP1y.js → features.index-CO7APsrh.js} +1 -1
- package/dist/browser/assets/{getting-started-GU6t7LF-.js → getting-started-11zYPwlJ.js} +1 -1
- package/dist/browser/assets/git-CVY8qpaV.js +1 -0
- package/dist/browser/assets/{index-DaKOj2qL.js → index-BeeP8ZFW.js} +4 -4
- package/dist/browser/assets/{instructions-mU0nkIyN.js → instructions-D3-EfbZG.js} +1 -1
- package/dist/browser/assets/{instructions._instructionId-D-pztPg5.js → instructions._instructionId-Bp9u9xx9.js} +1 -1
- package/dist/browser/assets/instructions.agents-DvFHo8x8.js +1 -0
- package/dist/browser/assets/instructions.index-zHzGHq7D.js +1 -0
- package/dist/browser/assets/{lazyRouteComponent-DcCLQOpn.js → lazyRouteComponent-D4lq6X5s.js} +1 -1
- package/dist/browser/assets/{load-more-YVDkQmcp.js → load-more-CymfxLt7.js} +1 -1
- package/dist/browser/assets/{page-header-rHElc4Gv.js → page-header-CVCjLFQo.js} +2 -2
- package/dist/browser/assets/{records._recordId-CQAy7eOv.js → records._recordId-Be8aM0F-.js} +1 -1
- package/dist/browser/assets/{records.commits._commit-BP1KDLvt.js → records.commits._commit-Dm3gX-bQ.js} +1 -1
- package/dist/browser/assets/{records.index-CZ6iNU57.js → records.index-BgfJnGAl.js} +1 -1
- package/dist/browser/assets/{records.working-Bv9veUIm.js → records.working-Eeag2L5N.js} +1 -1
- package/dist/browser/assets/{settings-D2ZdL-Vu.js → settings-BNIy3TaP.js} +1 -1
- package/dist/browser/assets/{useInfiniteQuery-guh_cfSb.js → useInfiniteQuery-03AIcFvA.js} +1 -1
- package/dist/browser/assets/{useKeyboardHint-BD_Jlpwp.js → useKeyboardHint-DN1hAi8g.js} +1 -1
- package/dist/browser/index.html +20 -20
- package/dist/i18n/en/block.md +2 -2
- package/dist/i18n/en/changelog.md +7 -0
- package/dist/i18n/en/docs/workflow.md +4 -4
- package/dist/i18n/ko/block.md +2 -2
- package/dist/i18n/ko/changelog.md +7 -0
- package/dist/i18n/ko/docs/workflow.md +4 -4
- package/dist/main.js +8 -8
- package/package.json +1 -1
- package/dist/browser/assets/changelog-DMiOCVuF.js +0 -1
- package/dist/browser/assets/dashboard.index-BUzgcF91.js +0 -1
- package/dist/browser/assets/git-D2zVLj_w.js +0 -1
- package/dist/browser/assets/instructions.agents-WcmyZITb.js +0 -1
- package/dist/browser/assets/instructions.index-BEJLVyZD.js +0 -1
|
@@ -94,7 +94,7 @@ This document describes the product's purpose, principles, and scope. Feature re
|
|
|
94
94
|
## License
|
|
95
95
|
|
|
96
96
|
[MIT](https://github.com/dev-goraebap/gitifact/blob/main/LICENSE).
|
|
97
|
-
`,Ne="# Getting started\n\n[한국어](https://github.com/dev-goraebap/gitifact/blob/main/packages/intro/ko/getting-started.md)\n\n## Install and set up\n\nGive this prompt to the agent you use in your project:\n\n```text\nInstall Gitifact with npm install -g gitifact and run gitifact init in this project.\nRead the GITIFACT block that init adds to AGENTS.md or the relevant agent instructions file, and follow it from this session onward.\n```\n\n## Keep developing\n\nAfter setup, ask your agent to work as usual.\n\n```text\nLet users delete their posts.\n```\n\nThe agent organizes requirements and designs as the GITIFACT block instructs. When the work is ready, ask it to “Commit the changes.” It will include the relevant specifications and reasons along with the code.\n\nFor an existing project, you can start with the features you work on next. To document the whole product first, ask:\n\n```text\nDocument this project's requirements and designs.\n```\n\n## Write project instructions\n\nKeep development rules and architecture decisions as project instructions, one per kind of task. Decide with your agent which instructions to keep and when each should be read.\n\n```text\nWrite our project's development rules as project instructions.\n```\n\n## View documents and history\n\nTell your agent what you want to see. For example:\n\n- “I'd like to see the requirements.”\n- “Show me the product specifications.”\n- “Show me recent changes.”\n- “Open the Gitifact browser.”\n\nThe browser viewer includes:\n\n| Page | Contents |\n| :--- | :--- |\n| Dashboard | Project size and recent activity |\n| Features | Current requirements and designs by feature |\n| Project instructions | AGENTS.md and per-task instructions such as development rules and architecture decisions |\n| Decision records | Committed decision records and the before/after content of the documents they explain |\n| Contributors | Contributions by Git author |\n| Git status | Changed files in the working directory |\n\nRequirements, designs, and instructions show the working copy. Decision records show committed history.\n\n## Send feedback on Gitifact\n\nTo report a bug in Gitifact or suggest an improvement, tell your agent.\n\n```text\nReport this bug to Gitifact as an issue.\n```\n\nThe agent shows you the title and body first and sends the issue to the Gitifact repository once you confirm. If the GitHub CLI (`gh`) is signed in, the issue is created under your account; otherwise you get the new-issue page with everything filled in. Only the Gitifact, OS and Node versions are appended; no project files are sent.\n\n## Language\n\nChoose English, 한국어, or Browser default in the viewer's Settings. The selection is saved in that browser. Project documents stay in their original language.\n\nThe CLI follows your environment's language and uses English for unsupported languages. To choose explicitly, use `gitifact --lang en <command>` or `gitifact --lang ko <command>`. You can also set `GITIFACT_LANG` to `en` or `ko` for your shell. The language of the GITIFACT blocks is recorded as `language` in `.gitifact/config.json` and stays through updates unless you supply `--lang`.\n\n## Update\n\nWhen a newer version is out, or a teammate moves the project to one, gitifact commands print a one-line notice before their output. Your agent then asks whether to update now or later. You can also ask at any time:\n\n```text\nUpdate Gitifact.\n```\n\nTo update, install with `npm install -g gitifact@<new-version>` and run `gitifact update`. `update` moves the GITIFACT block in your agent instruction files and the project's version (`cli`) in `.gitifact/config.json` to the new version. Commit both, and teammates see the notice on their next command. To update later, `gitifact update --later` quiets that version's notice for 24 hours. If you use a project dependency, update it that way and run `update` with the updated installation. Restart the browser server with the new version.\n\n> [!IMPORTANT]\n> From 0.8.3, `.gitifact/config.json` records `cli` and `language`. CLI 0.8.2 and earlier cannot read it and stop with `INVALID_CONFIG`, so move everyone to 0.8.3 or later before updating.\n\nProjects recorded with 0.7 (storage schemaVersion 2) need a one-time move, because the document layout changed in 0.8.0. After an update your agent tells you so, and if you agree it moves the documents following `gitifact guide show migrate`, keeping their IDs and reasons.\n\n## Run commands yourself\n\nGitifact requires Node.js 24.x and Git. Install it globally and run commands inside the target Git repository.\n\n```sh\nnpm install -g gitifact\ngitifact init\ngitifact browser\n```\n\nOpen the local URL printed by `browser`. Press Ctrl+C in the terminal to stop the server.\n\nAgents use the global `gitifact`. If it is missing, they
|
|
97
|
+
`,Ne="# Getting started\n\n[한국어](https://github.com/dev-goraebap/gitifact/blob/main/packages/intro/ko/getting-started.md)\n\n## Install and set up\n\nGive this prompt to the agent you use in your project:\n\n```text\nInstall Gitifact with npm install -g gitifact and run gitifact init in this project.\nRead the GITIFACT block that init adds to AGENTS.md or the relevant agent instructions file, and follow it from this session onward.\n```\n\n## Keep developing\n\nAfter setup, ask your agent to work as usual.\n\n```text\nLet users delete their posts.\n```\n\nThe agent organizes requirements and designs as the GITIFACT block instructs. When the work is ready, ask it to “Commit the changes.” It will include the relevant specifications and reasons along with the code.\n\nFor an existing project, you can start with the features you work on next. To document the whole product first, ask:\n\n```text\nDocument this project's requirements and designs.\n```\n\n## Write project instructions\n\nKeep development rules and architecture decisions as project instructions, one per kind of task. Decide with your agent which instructions to keep and when each should be read.\n\n```text\nWrite our project's development rules as project instructions.\n```\n\n## View documents and history\n\nTell your agent what you want to see. For example:\n\n- “I'd like to see the requirements.”\n- “Show me the product specifications.”\n- “Show me recent changes.”\n- “Open the Gitifact browser.”\n\nThe browser viewer includes:\n\n| Page | Contents |\n| :--- | :--- |\n| Dashboard | Project size and recent activity |\n| Features | Current requirements and designs by feature |\n| Project instructions | AGENTS.md and per-task instructions such as development rules and architecture decisions |\n| Decision records | Committed decision records and the before/after content of the documents they explain |\n| Contributors | Contributions by Git author |\n| Git status | Changed files in the working directory |\n\nRequirements, designs, and instructions show the working copy. Decision records show committed history.\n\n## Send feedback on Gitifact\n\nTo report a bug in Gitifact or suggest an improvement, tell your agent.\n\n```text\nReport this bug to Gitifact as an issue.\n```\n\nThe agent shows you the title and body first and sends the issue to the Gitifact repository once you confirm. If the GitHub CLI (`gh`) is signed in, the issue is created under your account; otherwise you get the new-issue page with everything filled in. Only the Gitifact, OS and Node versions are appended; no project files are sent.\n\n## Language\n\nChoose English, 한국어, or Browser default in the viewer's Settings. The selection is saved in that browser. Project documents stay in their original language.\n\nThe CLI follows your environment's language and uses English for unsupported languages. To choose explicitly, use `gitifact --lang en <command>` or `gitifact --lang ko <command>`. You can also set `GITIFACT_LANG` to `en` or `ko` for your shell. The language of the GITIFACT blocks is recorded as `language` in `.gitifact/config.json` and stays through updates unless you supply `--lang`.\n\n## Update\n\nWhen a newer version is out, or a teammate moves the project to one, gitifact commands print a one-line notice before their output. Your agent then shows the install command and asks whether to update now or later, and once you allow it, runs the install and `gitifact update` itself. You can also ask at any time:\n\n```text\nUpdate Gitifact.\n```\n\nTo update, install with `npm install -g gitifact@<new-version>` and run `gitifact update`. `update` moves the GITIFACT block in your agent instruction files and the project's version (`cli`) in `.gitifact/config.json` to the new version. Commit both, and teammates see the notice on their next command. To update later, `gitifact update --later` quiets that version's notice for 24 hours. If you use a project dependency, update it that way and run `update` with the updated installation. Restart the browser server with the new version.\n\n> [!IMPORTANT]\n> From 0.8.3, `.gitifact/config.json` records `cli` and `language`. CLI 0.8.2 and earlier cannot read it and stop with `INVALID_CONFIG`, so move everyone to 0.8.3 or later before updating.\n\nProjects recorded with 0.7 (storage schemaVersion 2) need a one-time move, because the document layout changed in 0.8.0. After an update your agent tells you so, and if you agree it moves the documents following `gitifact guide show migrate`, keeping their IDs and reasons.\n\n## Run commands yourself\n\nGitifact requires Node.js 24.x and Git. Install it globally and run commands inside the target Git repository.\n\n```sh\nnpm install -g gitifact\ngitifact init\ngitifact browser\n```\n\nOpen the local URL printed by `browser`. Press Ctrl+C in the terminal to stop the server.\n\nAgents use the global `gitifact`. If it is missing, they ask whether to run `npm install -g gitifact@<version>` with the `cli` version in `.gitifact/config.json`, and install it themselves once you allow it. If the agent tool blocks the install, the agent points you to that tool's approval (a prompt or a permission setting).\n\nIf Windows PowerShell says `npm.ps1` cannot be loaded, running scripts is disabled. Use `npm.cmd install -g gitifact` and `gitifact.cmd` instead.\n\n> [!NOTE]\n> You can also run `npx gitifact@<version> <command>` without installing. Each call then takes about 1.7 seconds longer, and agents call the CLI often, so a global installation is recommended.\n\n### Install in a project\n\nIn a Node.js project, you can add Gitifact as a development dependency so the team shares a version. Use the project's existing package manager. For npm:\n\n```sh\nnpm install --save-dev --save-exact gitifact@latest\nnpx gitifact init\nnpx gitifact browser\n```\n\nThe version is recorded in `package.json` and the lockfile. Tell agents to use the project installation in AGENTS.md, outside the GITIFACT block.\n\n### Common commands\n\n| Command | Purpose |\n| :--- | :--- |\n| `gitifact init --dry-run` | Preview setup without changing files |\n| `gitifact init` | Set up Gitifact and install or refresh agent instructions |\n| `gitifact browser` | Start the browser viewer |\n| `gitifact update --check` | Check for a newer version without changing files |\n| `gitifact update` | Move the GITIFACT block and the project's version to the installed version |\n| `gitifact update --later` | Quiet the announced newer version for 24 hours |\n| `gitifact guide list` | List agent guide topics |\n| `gitifact guide show spec` | Requirement file format and writing rules |\n| `gitifact guide show design` | Feature design rules |\n| `gitifact guide show instructions` | Project instruction format and the AGENTS.md index |\n| `gitifact guide show records` | When to write a decision record and its format |\n| `gitifact guide show commit` | Commit changes with their records and related files |\n\n### Read documents and commit\n\nRequirements, designs and instructions are Markdown files under `.gitifact/` that you edit directly. New documents are created through the CLI, which issues their IDs.\n\n| Command | Purpose |\n| :--- | :--- |\n| `gitifact specs list` | Features, requirements and designs (IDs, titles, descriptions, no bodies); filter with `--uncovered`, `--changed-since`, `--q` and more |\n| `gitifact instructions list` | AGENTS.md and the project instructions |\n| `gitifact specs show <ID>` | A document's source and the designs pointing to it; `--ref <commit>` for past text |\n| `gitifact records list --doc <ID>` | Decision records and commits for a document |\n| `gitifact specs new requirement <feature>/<name>` | Create a document with an issued ID and a skeleton |\n| `gitifact check` | Check format, IDs and references across all documents |\n| `gitifact changes list` | Documents changed since HEAD, uncommitted records, and changes without a record |\n| `gitifact changes commit --file <input-file> --dry-run` | Preview the commit without changing files |\n| `gitifact changes commit --file <input-file>` | Commit the selected documents, records and related files |\n\nSee `gitifact guide show commit` for the input format.\n\n### Setup and runtime options\n\n| Option | Purpose |\n| :--- | :--- |\n| `gitifact init --agent codex` | Install instructions for a tool: `claude`, `cursor`, `codex`, `hermes`, or `all` |\n| `gitifact init --skip-agents` | Set up without changing agent instruction files |\n| `gitifact init --remove-agents` | Remove GITIFACT blocks from agent instructions |\n| `gitifact browser --port 4317` | Choose the browser server port |\n| `gitifact --lang en <command>` | Use English for output and any generated agent blocks |\n\n`--remove-agents` removes only GITIFACT blocks; it preserves project records.\n\nAdd `--help` to any command to see its options.\n",Pe=`<p align="center">
|
|
98
98
|
<img src="packages/intro/assets/gitifact-logo.svg" alt="GITIFACT" width="720" />
|
|
99
99
|
</p>
|
|
100
100
|
|
|
@@ -189,7 +189,7 @@ Markdown 요구사항·설계와 결정기록을 Git 커밋에 연결하고, 브
|
|
|
189
189
|
## 라이선스
|
|
190
190
|
|
|
191
191
|
[MIT](https://github.com/dev-goraebap/gitifact/blob/main/LICENSE).
|
|
192
|
-
`,Fe="# 시작하기\n\n## 설치와 도입\n\n프로젝트에서 사용하는 에이전트에게 아래 내용을 전달하세요.\n\n```text\nnpm install -g gitifact로 Gitifact를 설치하고 이 프로젝트에서 gitifact init을 실행하세요.\ninit이 AGENTS.md 등에 쓴 GITIFACT 블록을 읽고 이번 세션부터 따르세요.\n```\n\n## 개발 이어가기\n\n도입 후에는 평소처럼 에이전트에게 작업을 요청하세요.\n\n```text\n게시물을 삭제할 수 있게 해주세요.\n```\n\n에이전트가 GITIFACT 블록의 안내에 따라 요구사항과 설계를 정리합니다. 작업을 마친 뒤 “커밋해주세요”라고 요청하면 관련 명세와 변경 이유도 코드와 함께 기록합니다.\n\n기존 프로젝트는 앞으로 작업하는 기능부터 기록할 수 있습니다. 전체 요구사항을 먼저 정리하고 싶다면 이렇게 요청하세요.\n\n```text\n이 프로젝트의 요구사항과 설계를 정리해주세요.\n```\n\n## 프로젝트 지침 만들기\n\n개발 규칙이나 아키텍처 결정은 작업별 프로젝트 지침으로 관리할 수 있습니다. 어떤 지침을 둘지, 어떤 작업 때 읽을지도 에이전트와 대화하며 정하세요.\n\n```text\n우리 프로젝트의 개발 규칙을 프로젝트 지침으로 정리해주세요.\n```\n\n## 문서와 변경 이력 확인하기\n\n보고 싶은 내용을 에이전트에게 말하면 됩니다. 예를 들어 다음과 같이 요청할 수 있습니다.\n\n- “요구사항을 확인하고 싶어요.”\n- “제품 명세를 보고 싶어요.”\n- “최근 변경 이력을 보여주세요.”\n- “gitifact 브라우저를 열어주세요.”\n\n브라우저 뷰어에서 다음 내용을 확인할 수 있습니다.\n\n| 화면 | 확인할 내용 |\n| :--- | :--- |\n| 대시보드 | 프로젝트 규모와 최신 활동 |\n| 기능별 요구사항 | 현재 요구사항과 기능별 설계 |\n| 프로젝트 지침 | AGENTS.md와 개발 규칙·아키텍처 결정 등 작업별 지침 |\n| 결정기록 | 커밋된 결정기록과 그 기록이 설명하는 문서의 변경 전후 내용 |\n| 참여자 | Git 작성자별 참여 내역 |\n| Git 상태 | 현재 작업 폴더의 변경 파일 |\n\n요구사항·설계·지침에는 작업 중인 내용이, 결정기록에는 커밋된 이력이 보입니다.\n\n## Gitifact에 의견 보내기\n\nGitifact를 쓰다가 만난 버그나 바라는 개선은 에이전트에게 말하면 됩니다.\n\n```text\nGitifact에 이 버그를 이슈로 남겨주세요.\n```\n\n에이전트가 제목과 본문 초안을 보여 주고, 확인하면 Gitifact 저장소에 이슈를 보냅니다. GitHub CLI(`gh`)에 로그인되어 있으면 내 계정으로 바로 만들고, 아니면 내용을 채운 이슈 작성 페이지 주소를 알려 줍니다. 본문 끝에는 Gitifact·운영체제·Node 버전만 붙고 프로젝트 파일은 보내지 않습니다.\n\n## 언어 설정\n\n브라우저 설정에서 한국어, English, 브라우저 설정 중 하나를 고를 수 있습니다. 선택은 해당 브라우저에 저장되며 프로젝트 문서의 언어는 바꾸지 않습니다.\n\nCLI는 실행 환경의 언어를 따르고, 지원하지 않는 언어이면 영어를 사용합니다. 직접 지정하려면 `gitifact --lang ko <명령>` 또는 `gitifact --lang en <명령>`을 사용하세요. 셸의 `GITIFACT_LANG` 환경변수에 `ko`나 `en`을 지정할 수도 있습니다. GITIFACT 블록의 언어는 `.gitifact/config.json`의 `language`에 기록되며, `--lang`을 지정하지 않는 한 업데이트 후에도 유지됩니다.\n\n## 업데이트\n\n새 버전이 나오거나 팀원이 프로젝트를 새 버전으로 올리면 gitifact 명령의 출력 앞에 안내가 한 줄 나옵니다. 에이전트는 이 안내를 보면 지금 업데이트할지 나중에 할지 묻습니다. 원할 때 직접 요청해도 됩니다.\n\n```text\nGitifact를 업데이트해주세요.\n```\n\n업데이트는 `npm install -g gitifact@<새 버전>`으로 설치한 뒤 `gitifact update`를 실행합니다. `update`는 에이전트 지침의 GITIFACT 블록과 `.gitifact/config.json`의 프로젝트 기준 버전(`cli`)을 새 버전으로 바꿉니다. 이 두 파일을 커밋하면 팀원도 다음 명령에서 안내를 받습니다. 나중에 하려면 `gitifact update --later`로 그 버전의 안내를 24시간 쉴 수 있습니다. 프로젝트 의존성으로 관리한다면 같은 방식으로 버전을 올린 뒤 해당 설치본으로 `update`를 실행하세요. 브라우저 서버도 새 버전으로 다시 열면 됩니다.\n\n> [!IMPORTANT]\n> 0.8.3부터 `.gitifact/config.json`에 `cli`와 `language`를 적습니다. 0.8.2 이하 CLI는 이 설정을 읽지 못하고 `INVALID_CONFIG`로 멈추므로, 팀원 모두 0.8.3 이상으로 올린 뒤 업데이트하세요.\n\n0.7로 기록한 프로젝트(저장 규약 schemaVersion 2)는 0.8.0에서 문서 구조가 바뀌어 한 번 옮겨야 합니다. 업데이트하면 에이전트가 이를 알리고, 동의하면 `gitifact guide show migrate`의 절차로 기존 ID와 변경 이유를 그대로 둔 채 문서를 옮깁니다.\n\n## 직접 명령 실행하기\n\nNode.js 24.x와 Git이 설치된 환경에서 전역으로 설치하고, 대상 Git 저장소 안에서 실행하세요.\n\n```sh\nnpm install -g gitifact\ngitifact init\ngitifact browser\n```\n\n`browser`가 출력한 로컬 주소를 열면 됩니다. 서버는 터미널에서 Ctrl+C로 종료합니다.\n\n에이전트는 전역 `gitifact`를 씁니다. 명령이 없으면 `.gitifact/config.json`의 `cli` 버전으로 `npm install -g gitifact@<버전>` 설치를 제안합니다.\n\n> [!NOTE]\n> 설치하지 않고 `npx gitifact@<버전> <명령>`으로도 실행할 수 있습니다. 다만 호출마다 약 1.7초가 더 걸리고 에이전트는 명령을 자주 부르므로 전역 설치를 권장합니다.\n\n### 프로젝트에 설치하기\n\nNode.js 프로젝트에서 팀이 같은 버전을 관리하려면 개발 의존성으로 추가할 수 있습니다. 기존 프로젝트의 패키지 관리자를 사용하세요. npm을 쓴다면:\n\n```sh\nnpm install --save-dev --save-exact gitifact@latest\nnpx gitifact init\nnpx gitifact browser\n```\n\n`package.json`과 잠금 파일에 버전이 기록됩니다. 이후에는 프로젝트 설치본을 사용하도록 에이전트 지침에 적어두세요.\n\n### 자주 쓰는 명령\n\n| 명령 | 용도 |\n| :--- | :--- |\n| `gitifact init --dry-run` | 파일을 바꾸기 전에 도입 계획 확인 |\n| `gitifact init` | 프로젝트에 Gitifact 도입, 에이전트 지침 설치·갱신 |\n| `gitifact browser` | 브라우저 뷰어 실행 |\n| `gitifact update --check` | 파일 변경 없이 새 버전 확인 |\n| `gitifact update` | 설치한 버전으로 GITIFACT 블록과 프로젝트 기준 버전 갱신 |\n| `gitifact update --later` | 안내된 새 버전을 24시간 동안 안내하지 않음 |\n| `gitifact guide list` | 에이전트 작업 지침의 주제 목록 |\n| `gitifact guide show spec` | 요구사항 파일 형식과 작성 규칙 |\n| `gitifact guide show design` | 기능 설계 작성 규칙 |\n| `gitifact guide show instructions` | 프로젝트 지침 형식과 AGENTS.md 색인 |\n| `gitifact guide show records` | 결정기록을 쓰는 때와 형식 |\n| `gitifact guide show commit` | 결정기록과 관련 파일을 함께 커밋하는 방법 |\n\n### 문서 조회와 커밋\n\n요구사항·설계·지침은 `.gitifact/` 아래의 Markdown 파일이며 직접 고칩니다. 새 문서는 CLI로 만들어 ID를 받습니다.\n\n| 명령 | 용도 |\n| :--- | :--- |\n| `gitifact specs list` | 기능·요구사항·설계 목록(본문 없이 ID·제목·설명). `--uncovered`·`--changed-since`·`--q` 등으로 거른다 |\n| `gitifact instructions list` | AGENTS.md와 프로젝트 지침 목록 |\n| `gitifact specs show <ID>` | 문서 원문과 그 문서를 가리키는 설계. `--ref <커밋>`으로 과거 원문 |\n| `gitifact records list --doc <ID>` | 문서의 결정기록과 커밋 |\n| `gitifact specs new requirement <기능>/<이름>` | ID를 발급하고 뼈대를 채운 새 문서 생성 |\n| `gitifact check` | 모든 문서의 형식·ID·참조 검사 |\n| `gitifact changes list` | HEAD 이후 바뀐 문서, 커밋하지 않은 결정기록, 기록 없는 변경 |\n| `gitifact changes commit --file <입력 파일> --dry-run` | 파일을 바꾸지 않고 커밋 계획 확인 |\n| `gitifact changes commit --file <입력 파일>` | 고른 문서·결정기록·관련 파일 커밋 |\n\n커밋 입력 형식은 `gitifact guide show commit`에서 확인할 수 있습니다.\n\n### 도입과 실행 옵션\n\n| 옵션 | 용도 |\n| :--- | :--- |\n| `gitifact init --agent codex` | 특정 도구의 지침 파일에 설치. `claude`, `cursor`, `codex`, `hermes`, `all` 지원 |\n| `gitifact init --skip-agents` | 에이전트 지침 파일을 수정하지 않고 도입 |\n| `gitifact init --remove-agents` | 에이전트 지침의 GITIFACT 블록 제거 |\n| `gitifact browser --port 4317` | 브라우저 서버의 포트 지정 |\n\n`--remove-agents`는 에이전트 지침의 GITIFACT 블록만 제거하며, 프로젝트 기록은 유지합니다.\n\n각 명령에 `--help`를 붙이면 사용할 수 있는 옵션을 확인할 수 있습니다.\n",Ie={ko:ve,en:ye},Le={ko:{about:Pe,gettingStarted:Fe},en:{about:Me,gettingStarted:Ne}},Re=/\{(\w+)\}/g;function M(e,t={},n=Ee()){return Ie[n][e].replace(Re,(e,n)=>n in t?String(t[n]):e)}function ze(e,t,n=Ee()){return Ie[n][e].split(Re).map((e,n)=>n%2==0?e:(0,j.createElement)(j.Fragment,{key:n},e in t?t[e]:`{`+e+`}`))}function Be(e,t=Ee()){return Le[t][e]}var N=u();function Ve(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var He=[`button`,`a`,`input`,`select`,`textarea`,`[role="button"]`,`[role="link"]`,`[role="checkbox"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`,`[role="menuitem"]`,`[role="option"]`,`[role="combobox"]`,`[role="listbox"]`,`[role="slider"]`,`[role="spinbutton"]`,`[data-pressable-container]`].join(`,`),Ue=`[aria-readonly="true"]`;function We(e,t){let n=e;for(;n!=null&&n!==t&&n!==document.body;){if(n.matches(He)&&!n.matches(Ue))return!0;n=n.parentElement}return!1}function Ge(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function Ke({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return(0,j.useEffect)(()=>{let t=e.current;t&&t.setAttribute(`data-pressable-container`,`true`)},[e]),{onClick:(0,j.useCallback)(o=>{if(a)return;let s=e.current;if(!s||Ge(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&We(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,j.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&(i===t.currentTarget||!We(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a])}}var qe=(0,j.lazy)(async()=>he(()=>import(`./Tooltip-MoU3alsv.js`).then(e=>e.n).then(e=>({default:e.Tooltip})),__vite__mapDeps([0,1,2,3])));function Je(e){return e===`display-1`||e===`display-2`||e===`display-3`}var Ye={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`};function Xe({level:e,type:t,weight:n,accessibilityLevel:i,color:a=`primary`,display:o=`block`,maxLines:s=0,hasTruncateTooltip:c=!0,wordBreak:l,textWrap:u,justify:d=`start`,hasCapsize:p=!1,hasStrikethrough:m=!1,xstyle:h,className:g,style:_,children:v,ref:y,...b}){let x=Ye[e],T=i&&i!==e?{"aria-level":i}:{},le=l??(s===1?`break-all`:`break-word`),ue=s>0||p?`block`:o,O=t&&Je(t)?t:void 0,k=ee({maxLines:s}),pe=typeof c==`string`?c:`above`,A=s>0&&c!==!1&&k.isTruncated,he=(0,j.useRef)(null),ge=te(y,k.ref,he),_e=s>1?{WebkitLineClamp:s}:void 0;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x,{ref:ge,...S(f(`heading`,{level:e,color:a,type:t,weight:n}),r(fe[ce(a)],O?E[O]:oe[e],O&&de[O],n&&me[n],s===1?re.singleLine:s>1?re.multiLine:D[ue],s>0&&w[le],u&&ne[u],d!==`start`&&ie[d],p&&ae.enabled,m&&C.strikethrough,h),g,{..._,..._e}),...T,...b,children:v}),A&&(0,N.jsx)(j.Suspense,{fallback:null,children:(0,N.jsx)(qe,{anchorRef:he,content:(0,N.jsx)(`span`,{...r(se.content),children:k.fullText}),placement:pe})})]})}Xe.displayName=`Heading`;var Ze=j.use,Qe=j.useLayoutEffect;function $e(e,t,n){j.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!=`function`)return()=>t();let r=new IntersectionObserver(e=>{t(e.pop())},{rootMargin:`100px`});return r.observe(e.current),()=>{r.disconnect(),t()}},[t,n,e])}function et(e){let t=j.useRef(null);return j.useImperativeHandle(e,()=>t.current,[]),t}function tt(e){return e[e.length-1]}function nt(e,t){return typeof e==`function`?e(t):e}var rt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;function at(e){for(let t in e)if(rt.call(e,t))return!0;return!1}var ot=()=>Object.create(null),st=(e,t)=>ct(e,t,ot);function ct(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=ft(e)&&ft(i);if(!a&&!(ut(e)&&ut(i)))return i;let o=a?e:lt(e);if(!o)return i;let s=a?i:lt(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:rt.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=ct(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function lt(e){let t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(let r of n){if(!it.call(e,r))return!1;t.push(r)}return t}function ut(e){if(!dt(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!dt(n)||!n.hasOwnProperty(`isPrototypeOf`))}function dt(e){return Object.prototype.toString.call(e)===`[object Object]`}function ft(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pt(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!pt(e[r],t[r],n))return!1;return!0}if(ut(e)&&ut(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!pt(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!pt(e[o],t[o],n)))return!1;return i===a}return!1}function mt(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var ht=/[\x00-\x1f\x7f"<>`{}]/g;function gt(e){return e.replace(ht,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function _t(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return gt(t)}var vt=[`http:`,`https:`,`mailto:`,`tel:`];function yt(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var bt=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function xt(e,t){if(!e)return!1;if(bt.test(e))return!0;let n=yt(e);return n?!t.has(n):!1}function St(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=_t(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=_t(r?e.slice(r):e)}return t}function Ct(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function wt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Tt(){throw Error(`Invariant failed`)}function Et(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var Dt=4,Ot=5;function kt(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.indexOf(`{`),s;if(o!==-1&&o+1<a.length&&(s=a.indexOf(`}`,o))!==-1){let r=a.charCodeAt(o+1);if(r===45){if(o+2<a.length&&a.charCodeAt(o+2)===36){let e=o+3,r=s;if(e<r)return n[0]=3,n[1]=t+o,n[2]=t+e,n[3]=t+r,n[4]=t+s+1,n[5]=i,n}}else if(r===36){let r=o+1,a=o+2;return a===s?(n[0]=2,n[1]=t+o,n[2]=t+r,n[3]=t+a,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+a,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function At(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=kt(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=Mt(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c);u||(t=t.toLowerCase(),c=c.toLowerCase());let m=f===1?i.dynamic:f===3?i.optional:i.wildcard,h=f!==2&&!d&&m?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===t&&e.suffix===c);if(h)n=h;else{let e=Nt(f,r,p,t,c);n=e,e.parent=i,e.depth=a;let s;s=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],s.push(e),s.length===2&&o?.push(s)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Mt(r);e.kind=Ot,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=Mt(r);e.kind=Dt,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)At(e,t,r,c,i,a,o,s)}function jt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Mt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Nt(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Pt(e,t){let n=Mt(`/`),r=new Uint16Array(6),i=[];for(let t of e)At(!1,r,t,1,n,0,i);for(let e of i)e.sort(jt);t.masksTree=n,t.flatCache=Et(1e3)}function Ft(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Bt(e,t.masksTree);return t.flatCache.set(e,r),r}function It(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Mt(`/`),At(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Bt(r,o,n)}function Lt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Bt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ht(a.route)),t.matchCache.set(r,a),a}function Rt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function zt(e,t=!1,n){let r=Mt(e.fullPath),i=new Uint16Array(6),a=[],o={},s={},c=0;At(t,i,e,1,r,0,a,e=>{if(n?.(e,c),e.id in o&&Tt(),o[e.id]=e,c!==0&&e.path){let t=Rt(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++});for(let e of a)e.sort(jt);return{processedTree:{segmentTree:r,singleCache:Et(1e3),matchCache:Et(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function Bt(e,t,n=!1){let r=e.split(`/`),i=Wt(e,r,t,n);if(!i)return null;let[a]=Vt(e,r,i);return{route:i.node.route,rawParams:a}}function Vt(e,t,n){let r=Ut(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===Dt)break;if(u.kind===Ot){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length;if(e.charCodeAt(t)===123){let n=u.suffix.length,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length,r=u.suffix.length,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ht(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ut(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Wt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!tt(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Jt(l,n))continue;if(i.parse){if(!qt(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Dt&&Jt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Dt||i.kind===2)&&Jt(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(qt(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Kt(f,o))return n;Jt(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Gt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Gt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Gt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Gt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Gt(e,t){return 2**(e-t-1)}function Kt(e,t){return e===2**(t-1)-1}function qt(e,t,n){let r,i;try{[r,i]=Vt(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Jt(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Dt)>(e.node.kind===Dt)||t.node.kind===Dt==(e.node.kind===Dt)&&t.node.depth>e.node.depth)))}function Yt(e){return Xt(e.filter(e=>e!==void 0).join(`/`))}function Xt(e){return e.replace(/\/{2,}/g,`/`)}function Zt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Qt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function $t(e){return Qt(Zt(e))}function en(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function tn({base:e,to:t,trailingSlash:n=`never`,cache:r}){if(t.includes(`//`)&&(t=Xt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=Xt(e)),o=e.split(`/`);o.length>1&&tt(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(tt(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?Xt(s):s)||`/`;return a&&r&&r.set(a,c),c}function nn(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function rn(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>on(e,n)).join(`/`):on(r,n):r}function an({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=kt(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=rn(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=rn(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=rn(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function on(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var sn=`Error preloading route! ☝️`;function cn({children:e,fallback:t=null}){return(0,N.jsx)(j.Fragment,{children:ln()?e:t})}function ln(){return j.useSyncExternalStore(un,()=>!0,()=>!1)}function un(){return()=>{}}var dn=j.createContext(null);function fn(e){return j.useContext(dn)}var pn=t((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),mn=t(((e,t)=>{t.exports=pn()})),hn=t((e=>{var t=p(),n=mn();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),gn=t(((e,t)=>{t.exports=hn()}))();function _n(e,t){return e===t}function vn(e,t=e=>e,n){let r=n?.compare??_n,i=(0,j.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,j.useCallback)(()=>e.get(),[e]);return(0,gn.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function yn(e){let t=fn();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function bn(e){let t=j.useRef(e);return pt(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function xn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Sn(e,t){let n=typeof e==`string`&&yt(e);if(n)return t.has(n)?e:null}function Cn(e,t,n,r,i){let a=en(e.pathname,r),o=en(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!pt(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:!n?.includeHash||i&&e.hash===t.hash}function wn(e,t){let n=fn(),r=et(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:ee,ignoreBlocker:te,params:E,search:ne,hash:re,state:D,mask:ie,reloadDocument:ae,unsafeRelative:oe,from:se,_fromLocation:ce,...le}=e,ue=s,O=ln(),k=bn(e.search),de=bn(e.params),fe=bn(o),pe=j.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,k,de,e.state,e.mask,e.unsafeRelative]),A=j.useCallback(e=>{let t=Sn(ue,n.protocolAllowlist);if(t!==void 0)return[t??void 0];let r=n.buildLocation({_fromLocation:e,...pe}),i=Mn(r,n,v);return[i,!v&&(!i||yt(i))?void 0:Cn(e,r,fe,n.basepath,O)]},[fe,v,O,pe,n,ue]),[me,he]=vn(n.stores.location,A,{compare:xn}),ge=he===void 0?me:void 0,_e=v||me===void 0,ve=j.useRef(!1),ye=e.reloadDocument||ge||_e?!1:c??n.options.defaultPreload,be=l??n.options.defaultPreloadDelay??0,xe=j.useCallback(()=>{n.preloadRoute(pe).catch(e=>{console.warn(e),console.warn(sn)})},[n,pe]),Se=j.useCallback(e=>{if(!e){An(r);return}if(!(e.isIntersecting??ye===`intent`)){e.isIntersecting===!1&&An(r);return}if(!be){xe();return}kn.has(r)||kn.set(r,setTimeout(()=>{kn.delete(r),xe()},be))},[xe,r,ye,be]);if($e(r,Se,ye!==`viewport`),j.useEffect(()=>{ve.current||ye===`render`&&(xe(),ve.current=!0)},[xe,ye]),ge)return{...le,ref:r,href:ge,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...ee&&{onTouchStart:ee}};let Ce=nt(he?i:a,{})??(he?En:Tn),we=Ce.className,Te=b?we?`${b} ${we}`:b:we,Ee=Ce.style,De=y&&Ee?{...y,...Ee}:y||Ee,Oe=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;!_e&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0&&(e.preventDefault(),n.navigate({...pe,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:te}))},ke=()=>{ye===`intent`&&xe()},Ae=()=>{ye===`intent`&&An(r)};return{...le,...Ce,href:me,ref:r,onClick:jn(x,Oe),onBlur:jn(S,Ae),onFocus:jn(C,Se),onMouseEnter:jn(w,Se),onMouseLeave:jn(T,Ae),onTouchStart:jn(ee,ke),disabled:!!_e,target:_,...De&&{style:De},...Te&&{className:Te},..._e&&Dn,...he&&On}}var Tn={},En={className:`active`},Dn={role:`link`,"aria-disabled":!0},On={"data-status":`active`,"aria-current":`page`},kn=new WeakMap,An=e=>{clearTimeout(kn.get(e)),kn.delete(e)},jn=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Mn(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!xt(i,t.protocolAllowlist))return i}var Nn=j.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=wn(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;a=t}return j.createElement(n||`a`,a,o)});function Pn(e){return!e||typeof window>`u`?!1:window.getComputedStyle(e).direction===`rtl`}var Fn=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`]);function In(e){if(e.isContentEditable)return e;let t=e.closest(`[contenteditable]`);return t&&t.getAttribute(`contenteditable`)!==`false`?t:null}function Ln(e,t){if(!(e instanceof HTMLElement))return!1;let n=In(e);if(n){let e=typeof window<`u`?window.getSelection():null;return e&&e.rangeCount>0&&!e.isCollapsed?!0:(n.textContent??``).length>0}let r=e.tagName===`TEXTAREA`,i=e.tagName===`INPUT`&&Fn.has(e.type);if(!r&&!i)return!1;let{selectionStart:a,selectionEnd:o,value:s}=e;return a!==o||a==null?!0:t===`ArrowLeft`||t===`ArrowUp`||t===`Home`?a>0:t===`ArrowRight`||t===`ArrowDown`||t===`End`?a<s.length:!1}function Rn(e={}){let{itemSelector:t=`[role="menuitem"]`,boundarySelector:n,wrap:r=!0,onEscape:i,orientation:a=`vertical`,hasHomeEnd:o=!0,hasRovingTabIndex:s=!1,hasCaretGuard:c=!1}=e,l=(0,j.useRef)(null),u=(0,j.useCallback)(e=>e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0||e.hasAttribute(`disabled`),[]),d=(0,j.useCallback)(()=>{let e=l.current;if(!e)return[];let r=Array.from(e.querySelectorAll(t));return n?r.filter(t=>t.closest(n)===e):r},[t,n]),f=(0,j.useCallback)(e=>{let t=l.current;if(!t||!n)return!0;let r=e.target;return!r||r.closest(n)===t},[n]),p=(0,j.useCallback)((e,t,n,r)=>{let i=e.length;if(i===0)return-1;let a=t;for(let t=0;t<i;t++){if(a<0||a>=i){if(!r)return-1;a=(a+i)%i}let t=e[a];if(t&&!u(t))return a;a+=n}return-1},[u]),m=(0,j.useCallback)(()=>{let e=d(),t=document.activeElement;return e.findIndex(e=>e===t||e.contains(t))},[d]),h=(0,j.useCallback)((e,t)=>{e.getAttribute(`tabindex`)!==String(t)&&e.setAttribute(`tabindex`,String(t))},[]),g=(0,j.useCallback)(()=>{let e=d(),t=e.filter(e=>!u(e));if(t.length===0)return;let n=t.find(e=>e.getAttribute(`tabindex`)===`0`)??t[0];for(let t of e)h(t,t===n?0:-1)},[d,u,h]);x(()=>{s&&g()});let _=(0,j.useCallback)((e,t)=>{let n=e[t];if(n){if(s)for(let t of e)h(t,t===n?0:-1);n.focus()}},[s,h]),v=(0,j.useCallback)(e=>{let t=d();if(t.length===0)return;let n=Math.max(0,Math.min(e,t.length-1));_(t,n)},[d,_]),y=(0,j.useCallback)(()=>{let e=d(),t=p(e,0,1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),b=(0,j.useCallback)(()=>{let e=d(),t=p(e,e.length-1,-1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),S=(0,j.useCallback)(()=>{s&&g()},[s,g]);return{listRef:l,handleKeyDown:(0,j.useCallback)(e=>{if(e.ctrlKey||e.metaKey||e.altKey||!f(e))return;if(e.key===`Escape`){i&&(e.preventDefault(),i());return}let t=a===`horizontal`||a===`both`,n=a===`vertical`||a===`both`,s=[],u=[];if(t){let t=e.key===`ArrowLeft`||e.key===`ArrowRight`?Pn(l.current):!1;s.push(t?`ArrowLeft`:`ArrowRight`),u.push(t?`ArrowRight`:`ArrowLeft`)}n&&(s.push(`ArrowDown`),u.push(`ArrowUp`));let h=s.includes(e.key),g=u.includes(e.key),v=o&&e.key===`Home`,x=o&&e.key===`End`;if(!h&&!g&&!v&&!x||c&&(Ln(e.target,e.key)||Ln(document.activeElement,e.key)))return;let S=m(),C=d();if(h){let e=S===-1?0:S+1,t=p(C,e,1,r);t!==-1&&_(C,t)}else if(g){let e=S===-1?C.length-1:S-1,t=p(C,e,-1,r);t!==-1&&_(C,t)}else v?y():x&&b();e.preventDefault()},[m,d,r,a,o,c,p,_,y,b,i,f]),handleFocus:S,focusItem:v,focusFirst:y,focusLast:b,ownsEvent:f,getItems:d}}function zn(){if(typeof navigator>`u`)return!1;let e=`userAgentData`in navigator?navigator.userAgentData:null;if(e&&typeof e==`object`&&`platform`in e){let t=e.platform,n=typeof t==`string`?t.trim():``;if(n!==``&&n.toLowerCase()!==`unknown`)return/mac/i.test(n)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??``)}var Bn={esc:`escape`,space:` `,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`,return:`enter`,plus:`+`};function Vn(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`}function Hn(e,t,n){let r=e.toLowerCase().split(`+`).map(e=>e.trim()).filter(Boolean);if(r.length===0)return!1;let i=r[r.length-1],a=new Set(r.slice(0,-1)),o=a.has(`mod`),s=a.has(`ctrl`)||o&&!n,c=a.has(`meta`)||o&&n,l=a.has(`alt`),u=a.has(`shift`);if(t.ctrlKey!==s||t.metaKey!==c||t.altKey!==l||u&&!t.shiftKey)return!1;let d=Bn[i]??i;return t.key.toLowerCase()===d}function Un(e){let t=(0,j.useRef)(e);(0,j.useEffect)(()=>{t.current=e}),(0,j.useEffect)(()=>{let e=zn(),n=n=>{if(n.defaultPrevented)return;let r=Vn(n.target);for(let i of t.current)if(!i.isDisabled&&(!r||i.allowInInputs)&&Hn(i.keys,n,e)){n.preventDefault(),i.onPress(n);return}};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[])}var Wn={wrapper:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,kmuXW:`x2lah0s`,$$css:!0}},Gn={ctrl:`⌃`,alt:`⌥`,shift:`⇧`,enter:`↵`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,up:`↑`,down:`↓`,left:`←`,right:`→`,plus:`+`};function Kn(e,t){return e===`mod`?t?`⌘`:`Ctrl`:Gn[e]??e.toUpperCase()}var qn={ctrl:`Control`,alt:`Alt`,shift:`Shift`,enter:`Enter`,backspace:`Backspace`,escape:`Escape`,tab:`Tab`,up:`Up arrow`,down:`Down arrow`,left:`Left arrow`,right:`Right arrow`,plus:`Plus`};function Jn(e,t){return e===`mod`?t?`Command`:`Control`:qn[e]??e.toUpperCase()}function Yn(){return()=>{}}function Xn(){return!1}function Zn({keys:e,ref:t,xstyle:n,className:i,style:a,...o}){let s=(0,j.useSyncExternalStore)(Yn,zn,Xn),c=e.split(`+`).map(e=>e.trim().toLowerCase()),l=c.map(e=>Jn(e,s)).join(` + `);return(0,N.jsx)(`span`,{...o,ref:t,role:`img`,"aria-label":l,...S(f(`kbd`),r(Wn.wrapper,n),i,a),children:c.map(e=>(0,N.jsx)(`kbd`,{"aria-hidden":`true`,className:`x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle xv1l7n4 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o`,children:Kn(e,s)},e))})}Zn.displayName=`Kbd`;var Qn={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k9WMMc:`x2b8uid`,kOIVth:`x18g69wz`,k8WAf4:`xmfvnks`,kg3NbH:`xm7rs69`,$$css:!0},containerCompact:{kOIVth:`x1txdalj`,k8WAf4:`x1na6nto`,kg3NbH:`x1pzlopt`,$$css:!0}};function $n({title:e,description:t,icon:n,actions:i,headingLevel:a=3,isCompact:o=!1,xstyle:s,className:c,style:l,ref:u,...d}){let p=`h${a}`;return(0,N.jsxs)(`div`,{ref:u,...d,role:`status`,...S(f(`empty-state`,{variant:o?`compact`:null}),r(Qn.container,o&&Qn.containerCompact,s),c,l),children:[n!=null&&(0,N.jsx)(`div`,{"aria-hidden":`true`,children:n}),(0,N.jsxs)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 xxc7z9f`,children:[(0,j.createElement)(p,S(f(`empty-state-title`,{variant:o?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0`},1:{className:`x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib`}}[!!o<<0]),e),t!=null&&(0,N.jsx)(`div`,{...S(f(`empty-state-description`,{variant:o?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4`},1:{className:`x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d`}}[!!o<<0]),children:t})]}),i!=null&&(0,N.jsx)(`div`,{...{0:{className:`x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d`},1:{className:`x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf`}}[!!o<<0],children:i})]})}$n.displayName=`EmptyState`;var er={center:{kGNEyG:`x6s0dn4`,$$css:!0},end:{kGNEyG:`xuk3077`,$$css:!0},start:{kGNEyG:`x1cy8zhl`,$$css:!0},stretch:{kGNEyG:`x1qjc9v5`,$$css:!0}},tr={start:{kjj79g:`x1nhvcw1`,$$css:!0},center:{kjj79g:`xl56j7k`,$$css:!0},end:{kjj79g:`x13a6bvl`,$$css:!0},between:{kjj79g:`x1qughib`,$$css:!0},around:{kjj79g:`x1l1ennw`,$$css:!0},evenly:{kjj79g:`xaw8158`,$$css:!0}},nr={horizontal:{kXwgrk:`x1q0g3np`,$$css:!0},vertical:{kXwgrk:`xdt5ytf`,$$css:!0}},rr={nowrap:{kwnvtZ:`xozqiw3`,$$css:!0},wrap:{kwnvtZ:`x1a02dak`,$$css:!0},"wrap-reverse":{kwnvtZ:`x8hhl5t`,$$css:!0}},ir={stack:{k1xSpc:`x78zum5`,$$css:!0}},ar={0:{k1C7PZ:`x1o57wo1`,khm7nJ:`x6yxi7o`,$$css:!0},1:{k1C7PZ:`x1lfs0n9`,khm7nJ:`x1ngg2t4`,$$css:!0},2:{k1C7PZ:`xak3so`,khm7nJ:`x1x7z4sm`,$$css:!0},3:{k1C7PZ:`xewh9hi`,khm7nJ:`x4olc9o`,$$css:!0},4:{k1C7PZ:`xty4p9g`,khm7nJ:`xtx9w7w`,$$css:!0},5:{k1C7PZ:`x1eqhezk`,khm7nJ:`x1iu6piu`,$$css:!0},6:{k1C7PZ:`x3qlgwd`,khm7nJ:`xczp1bk`,$$css:!0},8:{k1C7PZ:`xicv188`,khm7nJ:`xgx0vcf`,$$css:!0},10:{k1C7PZ:`x1p37tyl`,khm7nJ:`x1xpicb7`,$$css:!0},"0.5":{k1C7PZ:`x1kihgfc`,khm7nJ:`x1tw44j4`,$$css:!0},"1.5":{k1C7PZ:`x1thn6ci`,khm7nJ:`xhq53yo`,$$css:!0}};function or({crossAlign:e,direction:t,gap:n,mainAlign:r,wrap:i}){return[ir.stack,nr[t],n!=null&&ar[n],e!=null&&er[e],r!=null&&tr[r],i!=null&&rr[i]]}var sr={scrollable:{kVQacm:`xysyzu8`,$$css:!0}};function cr({direction:e=`vertical`,hAlign:t,vAlign:n,justify:a,align:o,gap:s,padding:c,paddingInline:l,paddingInlineStart:u,paddingInlineEnd:d,paddingBlock:p,paddingBlockStart:m,paddingBlockEnd:g,isScrollable:y,width:b,height:x,maxWidth:C,minHeight:w,wrap:T,as:ee=`div`,xstyle:te,className:E,style:ne,children:re,ref:D,...ie}){let ae=t??(e===`horizontal`?a:o),oe=n??(e===`horizontal`?o:a),se=e===`horizontal`?ae:oe,ce=e===`horizontal`?oe:ae,le=u??l??c,ue=d??l??c,O=m??p??c,k=g??p??c,de=r(...or({direction:e,crossAlign:ce,mainAlign:se,gap:s,wrap:T}),le!=null&&i[le],ue!=null&&_[ue],O!=null&&v[O],k!=null&&h[k],y&&sr.scrollable,te),fe={...b!=null&&{width:typeof b==`number`?`${b}px`:b},...x!=null&&{height:typeof x==`number`?`${x}px`:x},...C!=null&&{maxWidth:typeof C==`number`?`${C}px`:C},...w!=null&&{minHeight:typeof w==`number`?`${w}px`:w}};return(0,j.createElement)(ee,{ref:D,...S(f(`stack`,{direction:e,gap:s,wrap:T}),de,E,{...ne,...fe}),...ie},re)}cr.displayName=`Stack`;function lr({ref:e,justify:t,align:n,hAlign:r,vAlign:i,...a}){return(0,N.jsx)(cr,{...a,direction:`vertical`,hAlign:r??n,vAlign:i??t,ref:e})}lr.displayName=`VStack`;function ur({ref:e,justify:t,align:n,hAlign:r,vAlign:i,...a}){return(0,N.jsx)(cr,{...a,direction:`horizontal`,hAlign:r??t,vAlign:i??n,ref:e})}ur.displayName=`HStack`;function dr({data:e,size:t}){return(0,N.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`${t/16}rem`,height:`${t/16}rem`,style:{flexShrink:0},fill:`none`,"aria-hidden":`true`,focusable:`false`,children:e.map(([e,t],n)=>(0,j.createElement)(e,{...t,key:n}))})}var fr=j.createContext(void 0),pr=e=>{let t=j.useContext(fr);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},mr=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(fr.Provider,{value:e,children:t})),hr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gr=new class{#e=hr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function _r(e){setTimeout(e,0)}var vr=typeof window>`u`||`Deno`in globalThis;function yr(){}function br(e,t){return typeof e==`function`?e(t):e}function xr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Sr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function P(e,t){return typeof e==`function`?e(t):e}function Cr(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Tr(o,t.options))return!1}else if(!Dr(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function wr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Er(t.options.mutationKey)!==Er(a))return!1}else if(!Dr(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tr(e,t){return(t?.queryKeyHashFn||Er)(e)}function Er(e){return JSON.stringify(e,(e,t)=>Mr(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Dr(e[r],t[r]))return!1;return!0}return!1}var Or=Object.prototype.hasOwnProperty;function kr(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=jr(e)&&jr(t);if(!r&&!(Mr(e)&&Mr(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Or.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=kr(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Ar(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function jr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mr(e){if(!Nr(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Nr(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Nr(e){return Object.prototype.toString.call(e)===`[object Object]`}function Pr(e){return new Promise(t=>{gr.setTimeout(t,e)})}function Fr(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:kr(e,t)}function Ir(e){return e}function Lr(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Rr(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zr=Symbol();function Br(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zr?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vr(e,t){return typeof e==`function`?e(...t):!!e}function Hr(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Ur=()=>vr,Wr=()=>Ur(),Gr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kr=new class extends Gr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},qr=_r;function Jr(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=qr,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Yr=Jr(),Xr=new class extends Gr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Zr(e){return Math.min(1e3*2**e,3e4)}function Qr(e){return(e??`online`)!==`online`||Xr.isOnline()}var $r=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ei(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(yr);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new $r(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Kr.isFocused()&&(e.networkMode===`always`||Xr.isOnline())&&e.canRun(),p=()=>Qr(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(Wr()?0:3),a=e.retryDelay??Zr,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),Pr(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var ti=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xr(this.gcTime)&&(this.#e=gr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(gr.clearTimeout(this.#e),this.#e=void 0)}};function ni(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Hr(e,()=>t.signal,()=>n=!0)},u=Br(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Rr:Lr;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ii:ri,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ri(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function ri(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ii(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ai(e,t){return t?ri(e,t)!=null:!1}function oi(e,t){return!t||!e.getPreviousPageParam?!1:ii(e,t)!=null}var si=class extends ti{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ui(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ui(this.options);e.data!==void 0&&(this.setState(li(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Fr(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>P(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>P(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Sr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Br(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ni(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=ei({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof $r&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof $r){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ci(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...li(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Yr.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ci(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qr(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function li(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ui(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var di=class extends Gr{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),pi(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mi(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mi(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof P(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Ar(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&hi(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||P(this.options.staleTime,this.#t)!==P(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ar(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(yr)),t}#h(e){return!Wr()&&P(this.options.enabled,this.#t)!==!1&&xr(e)}#g(){this.#b();let e=P(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Sr(this.#r.dataUpdatedAt,e)+1;this.#u=gr.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=gr.setInterval(()=>{(this.options.refetchIntervalInBackground||Kr.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(gr.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(gr.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&pi(e,t),o=i&&hi(e,n,t,r);(a||o)&&(l={...l,...ci(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Fr(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Fr(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:gi(e,t),refetch:this.refetch,isEnabled:P(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Ar(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();Yr.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function fi(e,t){return P(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||P(t.retryOnMount,e)!==!1)}function pi(e,t){return fi(e,t)||e.state.data!==void 0&&mi(e,t,t.refetchOnMount)}function mi(e,t,n){if(P(t.enabled,e)!==!1&&P(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&gi(e,t)}return!1}function hi(e,t,n,r){return(e!==t||P(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&gi(e,n)}function gi(e,t){return P(t.enabled,e)!==!1&&e.isStaleByTime(P(t.staleTime,e))}var _i=j.createContext(!1),vi=()=>j.useContext(_i);_i.Provider;function yi(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bi=j.createContext(yi()),xi=()=>j.useContext(bi),Si=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Vr(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Ci=e=>{j.useEffect(()=>{e.clearReset()},[e])},wi=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Vr(n,[e.error,r])),Ti=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ei=(e,t)=>e?.suspense&&t.isPending,Di=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Oi(e,t,n){let r=vi(),i=xi(),a=pr(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ti(o),Si(o,i,s),Ci(i);let[l]=j.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(j.useSyncExternalStore(j.useCallback(e=>{let t=d?l.subscribe(Yr.batchCalls(e)):yr;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),j.useEffect(()=>{l.setOptions(o)},[o,l]),Ei(o,u))throw Di(o,l,i);if(wi({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function ki(e,t){return Oi(e,di,t)}function F(e){return e}function Ai(e){return e}var ji=(0,j.createContext)(null);ji.displayName=`LayoutAreaContext`;var Mi=(0,j.createContext)({hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1});Mi.displayName=`LayoutSlotsContext`;var Ni=(0,j.createContext)(null);Ni.displayName=`LayoutDividerContext`;var Pi={reset:{kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0}},Fi={center:{kSGwAc:`xamitd3`,$$css:!0},end:{kSGwAc:`xpvyfi4`,$$css:!0},start:{kSGwAc:`xqcrz7y`,$$css:!0},stretch:{kSGwAc:`xkh2ocl`,$$css:!0}},Ii={fill:{kzQI83:`x1iyjqo2`,$$css:!0},static:{kzQI83:`x1c4vz4f`,kmuXW:`x2lah0s`,$$css:!0}};function Li({crossAlignSelf:e,size:t}={}){return[Pi.reset,Ii[t??`static`],e!=null&&Fi[e]]}function Ri(e){if(e==null||typeof e==`number`)return!0;let t=e.trim().toLowerCase();return t.includes(`%`)?!1:t===`0`||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}var zi={layoutOuter:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,$$css:!0},layoutInner:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-content-width":`x15lplax`,"--layout-alignment-width":`x19kr0ht`,$$css:!0},fill:{kZKoxP:`x12qplqi`,kskxy:`xenllk4`,$$css:!0},auto:{kAzted:`x1us19tq`,$$css:!0},middle:{kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,$$css:!0},middleQuery:{k9g6sI:`xsw3flo`,$$css:!0},singleColumnContent:{kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xpgkkid`,kUOVxO:`xvueqy4`,$$css:!0},singlePanelMiddle:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xnpzo02`,kUOVxO:`xvueqy4 xb0m1lw`,$$css:!0},singleStartPanel:{kZCmMZ:`x1vvd0s7`,$$css:!0},singleEndPanel:{kwRFfy:`xxdn8bs`,$$css:!0},fullBleed:{"--layout-padding-outer-x":`x1wbjvqu`,"--layout-padding-outer-y":`xzxxx64`,$$css:!0}},Bi={kzqmXN:`xh8yej3`,kUOVxO:`xvueqy4`,$$css:!0},Vi={contentWidthVar:e=>[{"--layout-content-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x4906uf`,$$css:!0},{"--x---layout-content-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x1b1nz06`,$$css:!0},{"--x---layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentWidth:e=>[Bi,{ks0D6T:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xf68679`,$$css:!0},{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}]};function Hi({area:e,children:t}){return t==null?null:(0,N.jsx)(ji,{value:e,children:t})}var Ui={"x-default-marker":`x-default-marker`,$$css:!0};function Wi({children:e,content:t,contentWidth:n,defaultHasDividers:i,end:a,footer:o,header:s,height:u=`fill`,padding:d,ref:p,start:m,xstyle:h,className:g,style:_}){let v=u===`fill`,y=t??e,b=(0,j.useMemo)(()=>i==null?null:{defaultHasDividers:i},[i]),x=s!=null,C=o!=null,w=m!=null,T=a!=null,ee=w&&T,te=w!==T,E=n!=null&&Ri(n),ne=(0,j.useMemo)(()=>({hasHeader:x,hasFooter:C,hasStart:w,hasEnd:T}),[x,C,w,T]),re=(0,N.jsx)(Mi,{value:ne,children:(0,N.jsx)(`div`,{ref:p,...S(f(`layout`,{height:u}),r(zi.layoutOuter,v?zi.fill:zi.auto,h),g,_),children:(0,N.jsxs)(`div`,{...r(Ui,zi.layoutInner,...or({direction:`vertical`}),v?zi.fill:zi.auto,d===0&&zi.fullBleed,d!=null&&l[d],d!=null&&c[d],n!=null&&Vi.contentWidthVar(n),E&&Vi.contentAlignmentWidthVar(n)),children:[(0,N.jsx)(Hi,{area:`header`,children:s}),(0,N.jsxs)(`div`,{...r(...or({direction:`horizontal`}),zi.middle,n!=null&&(!E||ee)&&Vi.contentWidth(n),E&&!ee&&zi.middleQuery,E&&te&&zi.singlePanelMiddle,E&&w&&!T&&zi.singleStartPanel,E&&!w&&T&&zi.singleEndPanel),children:[(0,N.jsx)(Hi,{area:`start`,children:m}),(0,N.jsx)(`div`,{...r(...Li({size:`fill`}),E&&!w&&!T&&zi.singleColumnContent),children:(0,N.jsx)(Hi,{area:`content`,children:y})}),(0,N.jsx)(Hi,{area:`end`,children:a})]}),(0,N.jsx)(Hi,{area:`footer`,children:o})]})})});return b==null?re:(0,N.jsx)(Ni,{value:b,children:re})}Wi.displayName=`Layout`;var Gi={header:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`x81pis9`,kGO01o:`xg476vw`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xzz8v79`,"--container-padding-block-end":`xi9ns85`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0},divider:{kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},Ki={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function qi({children:e,hasDivider:t,height:n,label:i,padding:a,paddingBlockEnd:o,role:c,xstyle:l,className:u,style:p,ref:_,...v}){let y=(0,j.use)(Ni),b=t??y?.defaultHasDividers??!1,x=a===0;return(0,N.jsx)(`div`,{ref:_,role:c,"aria-label":i,"data-divider":b||void 0,...S(f(`layout-header`),r(Gi.header,Ki.sizing(n??null),b&&Gi.divider,l),u,p),...v,children:(0,N.jsx)(`div`,{...r(Gi.inner,x&&Gi.fullBleed,a!=null&&g[a],a!=null&&d[a],a!=null&&s[a],a!=null&&m[a],o!=null&&h[o],o!=null&&m[o]),children:e})})}qi.displayName=`LayoutHeader`;var Ji={content:{kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kVQacm:`x7giv3`,kZCmMZ:`xwjyata`,kwRFfy:`x1peupej`,kLKAdn:`xqty4a x1ioh5az`,kGO01o:`xg476vw xsg11nj`,"--container-padding-inline-start":`x408pgh`,"--container-padding-inline-end":`xikqloz`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`xi9ns85`,$$css:!0},noStart:{kZCmMZ:`x139j0dd`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,$$css:!0},noEnd:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,"--container-padding-block-start":`xzz8v79`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,"--container-padding-block-end":`x1xjq73n`,$$css:!0},scrollable:{kVQacm:`xysyzu8`,$$css:!0},constrainedNoPanelsStart:{kZCmMZ:`xhlv5e7`,$$css:!0},constrainedNoPanelsEnd:{kwRFfy:`x1ahicqp`,$$css:!0},constrainedSingleStartPanel:{kwRFfy:`xy07wb4`,$$css:!0},constrainedSingleEndPanel:{kZCmMZ:`xxjme2g`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0}};function Yi({children:e,isScrollable:t=!0,padding:n,label:i,role:a,xstyle:o,className:c,style:l,ref:u,...p}){let{hasHeader:h,hasFooter:_,hasStart:v,hasEnd:y}=(0,j.use)(Mi),b=n===0;return(0,N.jsx)(`div`,{ref:u,role:a,"aria-label":i,...S(f(`layout-content`),r(Ji.content,!v&&!b&&n==null&&Ji.noStart,!y&&!b&&n==null&&Ji.noEnd,!h&&!b&&n==null&&Ji.noHeader,!_&&!b&&n==null&&Ji.noFooter,t&&Ji.scrollable,b&&Ji.fullBleed,n!=null&&g[n],n!=null&&d[n],n!=null&&s[n],n!=null&&m[n],!v&&!y&&!b&&Ji.constrainedNoPanelsStart,!v&&!y&&!b&&Ji.constrainedNoPanelsEnd,v&&!y&&!b&&Ji.constrainedSingleStartPanel,!v&&y&&!b&&Ji.constrainedSingleEndPanel,o),c,l),...p,children:e})}Yi.displayName=`LayoutContent`;function Xi(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Zi(e,t=`|`){return e.map(e=>Sa(e)).join(t)}function Qi(e,t){return typeof t==`bigint`?t.toString():t}var $i=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function ea(e){return new $i(e)}function ta(e){return e==null}function na(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ra(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function ia(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function aa(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function oa(e){return aa(e._zod.def)??e._zod.def.shape}function sa(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return ia(this,t,e),e},enumerable:!0,configurable:!0})}function ca(e,t,n){t in e?ia(e,t,n):e[t]=n}function la(e,t,n,r){let i=oa(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?sa(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):ca(e,a,r?r(n.value,a):n.value))}}function ua(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?sa(e,n,()=>t[n]):ca(e,n,r.value))}}function da(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function fa(e){return JSON.stringify(e)}function pa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ma=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ha(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ga=ea(()=>{if(uo.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function _a(e){if(ha(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ha(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function va(e){return _a(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ya=new Set([`string`,`number`,`symbol`]);function ba(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function xa(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function I(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Sa(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Ca(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var wa={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ta={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function Ea(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return la(i,e,Da(e,t)),xa(e,da(n,{shape:i,checks:[]}))}function Da(e,t){let n=oa(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function Oa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(Da(e,t)),a={};return la(a,e,Reflect.ownKeys(oa(e)).filter(e=>!i.has(e))),xa(e,da(n,{shape:a,checks:[]}))}function ka(e,t){if(!_a(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=oa(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return xa(e,da(e._zod.def,{shape:Aa(e,t)}))}function Aa(e,t){let n={};return la(n,e,Reflect.ownKeys(oa(e))),ua(n,t),n}function ja(e,t){if(!_a(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return xa(e,da(e._zod.def,{shape:Aa(e,t)}))}function Ma(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return la(n,e,Reflect.ownKeys(oa(e))),la(n,t,Reflect.ownKeys(oa(t))),xa(e,da(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Na(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Da(t,n)):void 0,o={};return la(o,t,Reflect.ownKeys(oa(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),xa(t,da(t._zod.def,{shape:o,checks:[]}))}function Pa(e,t,n){let r=n?new Set(Da(t,n)):void 0,i={};return la(i,t,Reflect.ownKeys(oa(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),xa(t,da(t._zod.def,{shape:i}))}function Fa(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ia(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function La(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ra(e){return typeof e==`string`?e:e?.message}function za(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ba(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Ra(e.inst?._zod.def?.error?.(e))??Ra(a?.(e))??Ra(t?.error?.(e))??Ra(n.customError?.(e))??Ra(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Va=/[\uD800-\uDBFF]/;function Ha(e){let t=e.length;if(!Va.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Ua(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Wa(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ga(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ka(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Xa(e,n,r.value)}}function qa(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ja(e,t,n){return qa(e,t,n,!1)}function Ya(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return qa(this,n,r(this))},set(e){qa(this,n,e)}})}return t}function Xa(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:qa(this,t,n.bind(this))},set(e){qa(this,t,e)}})}function Za(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Qa,$a=!1,eo={configurable:!0,get(){$a=!0}};function L(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Qa!==e._zod){Qa=void 0;return}Qa=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,eo);let e=$a;$a=!1;try{let r=n(this);return $a?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),$a||=e,r}catch(n){throw delete this[t],$a||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function to(e,t,n,r){let i=Za(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var no=`~constantCatch`;function ro(e){let t=()=>e;return t[no]=!0,t}var io,ao={value:void 0,enumerable:!1},oo=`captureStackTrace`in Error?Error:null;function so(e){let t=oo;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return oo=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function R(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){ao.value=new a(r);try{Object.defineProperty(n,"_zod",ao)}finally{ao.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Ka(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?so(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var co=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},lo=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(io=globalThis).__zod_globalConfig??(io.__zod_globalConfig={});var uo=globalThis.__zod_globalConfig;function fo(e){return e&&Object.assign(uo,e),uo}function po(){let e=this._zod;return e.message??=JSON.stringify(e.def,Qi,2),e.message}function mo(e){this._zod.message=e}var ho={get:po,set:mo,enumerable:!0,configurable:!0},go={value:void 0,enumerable:!1},_o=new WeakSet([Object.prototype,Error.prototype]),vo=(e,t)=>{e.name=`$ZodError`,go.value=t,Object.defineProperty(e,"issues",go),go.value=void 0,Object.defineProperty(e,"message",ho);let n=Object.getPrototypeOf(e);_o.has(n)||(_o.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},yo=R(`$ZodError`,vo);R(`$ZodError`,vo,void 0,{Parent:Error});function bo(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function xo(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?bo(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function So(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Co(e,t){return{callee:t?.callee??e,Err:t?.Err}}var wo=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new co;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Ba(e,o,fo())));throw ma(n,a?.callee??t),n}return s.value};return t},To=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Ba(e,o,fo())));throw ma(n,a?.callee??t),n}return s.value};return t},Eo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new co;return a.issues.length?Do(e,a.issues,i):{success:!0,data:a.value}};function Do(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Ba(e,n,fo()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Oo=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Do(e,a.issues,i):{success:!0,data:a.value}},ko=Symbol.for(`zod.compile.invalid`),Ao=Symbol.for(`zod.compile.fallback`),jo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ko)return!0;if(r.definite===!0&&n===void 0)return!1}return Mo(e,t,n)});function Mo(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Ao]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new co;return a.issues.length===0}var No=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Po=e=>{let t=wo(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Co(n,a))};return n},Fo=e=>{let t=wo(e),n=(e,r,i,a)=>t(e,r,i,Co(n,a));return n},Io=e=>{let t=To(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Co(n,a))};return n},Lo=e=>{let t=To(e),n=async(e,r,i,a)=>await t(e,r,i,Co(n,a));return n},Ro=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Eo(e)(t,n,i)},zo=e=>(t,n,r)=>Eo(e)(t,n,r),Bo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Oo(e)(t,n,i)},Vo=e=>async(t,n,r)=>Oo(e)(t,n,r),Ho=/^[cC][0-9a-z]{6,}$/,Uo=/^[0-9a-z]+$/,Wo=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Go=/^[0-9a-vA-V]{20}$/,Ko=/^[A-Za-z0-9]{27}$/,qo=/^[a-zA-Z0-9_-]{21}$/;function Jo(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Yo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Zo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qo=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$o=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function es(){return new RegExp($o,`u`)}var ts=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ns=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rs=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,is=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,as=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,os=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,ss=/^https?$/,cs=/^\+[1-9]\d{6,14}$/,ls=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function us(e){return RegExp(`^${e}$`)}var ds=us(ls);function fs(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ps(e){return RegExp(`^${fs(e)}$`)}function ms(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${fs({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${fs({precision:e.precision})}`:n;return RegExp(`^${ls}T(?:${r})$`)}var hs=/^[\s\S]{0,}$/,gs=/^-?\d+(?:\.\d+)?$/,_s=/^(?:true|false)$/i,vs=/^null$/i,ys=/^[^A-Z]*$/,bs=/^[^a-z]*$/,xs=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ss=e=>{let t=e.value;return!ta(t)&&t.length!==void 0},Cs={number:`number`,bigint:`bigint`,object:`date`},ws=R(`$ZodCheckLessThan`,(e,t)=>{xs.init(e,t);let n=Cs[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Cs[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ts=R(`$ZodCheckGreaterThan`,(e,t)=>{xs.init(e,t);let n=Cs[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Cs[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Es=R(`$ZodCheckMultipleOf`,(e,t)=>{xs.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):ra(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ds=R(`$ZodCheckNumberFormat`,(e,t)=>{xs.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=wa[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Os=R(`$ZodCheckMaxLength`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Ha(r):i)<=t.maximum)return;let a=Ua(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ks=R(`$ZodCheckMinLength`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Ha(r):i)>=t.minimum)return;let a=Ua(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),As=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Ha(r):i;if(a===t.length)return;let o=Ua(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),js=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;xs.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ms=R(`$ZodCheckRegex`,(e,t)=>{js.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ns=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ys,js.init(e,t)}),Ps=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=bs,js.init(e,t)}),Fs=R(`$ZodCheckIncludes`,(e,t)=>{xs.init(e,t);let n=ba(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Is=R(`$ZodCheckStartsWith`,(e,t)=>{xs.init(e,t);let n=RegExp(`^${ba(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ls=R(`$ZodCheckEndsWith`,(e,t)=>{xs.init(e,t);let n=RegExp(`.*${ba(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Rs=R(`$ZodCheckOverwrite`,(e,t)=>{xs.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),zs=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
192
|
+
`,Fe="# 시작하기\n\n## 설치와 도입\n\n프로젝트에서 사용하는 에이전트에게 아래 내용을 전달하세요.\n\n```text\nnpm install -g gitifact로 Gitifact를 설치하고 이 프로젝트에서 gitifact init을 실행하세요.\ninit이 AGENTS.md 등에 쓴 GITIFACT 블록을 읽고 이번 세션부터 따르세요.\n```\n\n## 개발 이어가기\n\n도입 후에는 평소처럼 에이전트에게 작업을 요청하세요.\n\n```text\n게시물을 삭제할 수 있게 해주세요.\n```\n\n에이전트가 GITIFACT 블록의 안내에 따라 요구사항과 설계를 정리합니다. 작업을 마친 뒤 “커밋해주세요”라고 요청하면 관련 명세와 변경 이유도 코드와 함께 기록합니다.\n\n기존 프로젝트는 앞으로 작업하는 기능부터 기록할 수 있습니다. 전체 요구사항을 먼저 정리하고 싶다면 이렇게 요청하세요.\n\n```text\n이 프로젝트의 요구사항과 설계를 정리해주세요.\n```\n\n## 프로젝트 지침 만들기\n\n개발 규칙이나 아키텍처 결정은 작업별 프로젝트 지침으로 관리할 수 있습니다. 어떤 지침을 둘지, 어떤 작업 때 읽을지도 에이전트와 대화하며 정하세요.\n\n```text\n우리 프로젝트의 개발 규칙을 프로젝트 지침으로 정리해주세요.\n```\n\n## 문서와 변경 이력 확인하기\n\n보고 싶은 내용을 에이전트에게 말하면 됩니다. 예를 들어 다음과 같이 요청할 수 있습니다.\n\n- “요구사항을 확인하고 싶어요.”\n- “제품 명세를 보고 싶어요.”\n- “최근 변경 이력을 보여주세요.”\n- “gitifact 브라우저를 열어주세요.”\n\n브라우저 뷰어에서 다음 내용을 확인할 수 있습니다.\n\n| 화면 | 확인할 내용 |\n| :--- | :--- |\n| 대시보드 | 프로젝트 규모와 최신 활동 |\n| 기능별 요구사항 | 현재 요구사항과 기능별 설계 |\n| 프로젝트 지침 | AGENTS.md와 개발 규칙·아키텍처 결정 등 작업별 지침 |\n| 결정기록 | 커밋된 결정기록과 그 기록이 설명하는 문서의 변경 전후 내용 |\n| 참여자 | Git 작성자별 참여 내역 |\n| Git 상태 | 현재 작업 폴더의 변경 파일 |\n\n요구사항·설계·지침에는 작업 중인 내용이, 결정기록에는 커밋된 이력이 보입니다.\n\n## Gitifact에 의견 보내기\n\nGitifact를 쓰다가 만난 버그나 바라는 개선은 에이전트에게 말하면 됩니다.\n\n```text\nGitifact에 이 버그를 이슈로 남겨주세요.\n```\n\n에이전트가 제목과 본문 초안을 보여 주고, 확인하면 Gitifact 저장소에 이슈를 보냅니다. GitHub CLI(`gh`)에 로그인되어 있으면 내 계정으로 바로 만들고, 아니면 내용을 채운 이슈 작성 페이지 주소를 알려 줍니다. 본문 끝에는 Gitifact·운영체제·Node 버전만 붙고 프로젝트 파일은 보내지 않습니다.\n\n## 언어 설정\n\n브라우저 설정에서 한국어, English, 브라우저 설정 중 하나를 고를 수 있습니다. 선택은 해당 브라우저에 저장되며 프로젝트 문서의 언어는 바꾸지 않습니다.\n\nCLI는 실행 환경의 언어를 따르고, 지원하지 않는 언어이면 영어를 사용합니다. 직접 지정하려면 `gitifact --lang ko <명령>` 또는 `gitifact --lang en <명령>`을 사용하세요. 셸의 `GITIFACT_LANG` 환경변수에 `ko`나 `en`을 지정할 수도 있습니다. GITIFACT 블록의 언어는 `.gitifact/config.json`의 `language`에 기록되며, `--lang`을 지정하지 않는 한 업데이트 후에도 유지됩니다.\n\n## 업데이트\n\n새 버전이 나오거나 팀원이 프로젝트를 새 버전으로 올리면 gitifact 명령의 출력 앞에 안내가 한 줄 나옵니다. 에이전트는 이 안내를 보면 설치 명령을 보여 주며 지금 업데이트할지 나중에 할지 묻고, 허용하면 설치와 `gitifact update`를 직접 실행합니다. 원할 때 직접 요청해도 됩니다.\n\n```text\nGitifact를 업데이트해주세요.\n```\n\n업데이트는 `npm install -g gitifact@<새 버전>`으로 설치한 뒤 `gitifact update`를 실행합니다. `update`는 에이전트 지침의 GITIFACT 블록과 `.gitifact/config.json`의 프로젝트 기준 버전(`cli`)을 새 버전으로 바꿉니다. 이 두 파일을 커밋하면 팀원도 다음 명령에서 안내를 받습니다. 나중에 하려면 `gitifact update --later`로 그 버전의 안내를 24시간 쉴 수 있습니다. 프로젝트 의존성으로 관리한다면 같은 방식으로 버전을 올린 뒤 해당 설치본으로 `update`를 실행하세요. 브라우저 서버도 새 버전으로 다시 열면 됩니다.\n\n> [!IMPORTANT]\n> 0.8.3부터 `.gitifact/config.json`에 `cli`와 `language`를 적습니다. 0.8.2 이하 CLI는 이 설정을 읽지 못하고 `INVALID_CONFIG`로 멈추므로, 팀원 모두 0.8.3 이상으로 올린 뒤 업데이트하세요.\n\n0.7로 기록한 프로젝트(저장 규약 schemaVersion 2)는 0.8.0에서 문서 구조가 바뀌어 한 번 옮겨야 합니다. 업데이트하면 에이전트가 이를 알리고, 동의하면 `gitifact guide show migrate`의 절차로 기존 ID와 변경 이유를 그대로 둔 채 문서를 옮깁니다.\n\n## 직접 명령 실행하기\n\nNode.js 24.x와 Git이 설치된 환경에서 전역으로 설치하고, 대상 Git 저장소 안에서 실행하세요.\n\n```sh\nnpm install -g gitifact\ngitifact init\ngitifact browser\n```\n\n`browser`가 출력한 로컬 주소를 열면 됩니다. 서버는 터미널에서 Ctrl+C로 종료합니다.\n\n에이전트는 전역 `gitifact`를 씁니다. 명령이 없으면 `.gitifact/config.json`의 `cli` 버전으로 `npm install -g gitifact@<버전>`을 실행해도 되는지 묻고, 허용하면 직접 설치합니다. 에이전트 도구가 설치를 막으면 그 도구의 승인 방식(승인 창이나 권한 설정)을 안내합니다.\n\nWindows PowerShell에서 `npm.ps1`을 로드할 수 없다는 오류가 나면 스크립트 실행이 막힌 것입니다. `npm.cmd install -g gitifact`와 `gitifact.cmd`로 실행하세요.\n\n> [!NOTE]\n> 설치하지 않고 `npx gitifact@<버전> <명령>`으로도 실행할 수 있습니다. 다만 호출마다 약 1.7초가 더 걸리고 에이전트는 명령을 자주 부르므로 전역 설치를 권장합니다.\n\n### 프로젝트에 설치하기\n\nNode.js 프로젝트에서 팀이 같은 버전을 관리하려면 개발 의존성으로 추가할 수 있습니다. 기존 프로젝트의 패키지 관리자를 사용하세요. npm을 쓴다면:\n\n```sh\nnpm install --save-dev --save-exact gitifact@latest\nnpx gitifact init\nnpx gitifact browser\n```\n\n`package.json`과 잠금 파일에 버전이 기록됩니다. 이후에는 프로젝트 설치본을 사용하도록 에이전트 지침에 적어두세요.\n\n### 자주 쓰는 명령\n\n| 명령 | 용도 |\n| :--- | :--- |\n| `gitifact init --dry-run` | 파일을 바꾸기 전에 도입 계획 확인 |\n| `gitifact init` | 프로젝트에 Gitifact 도입, 에이전트 지침 설치·갱신 |\n| `gitifact browser` | 브라우저 뷰어 실행 |\n| `gitifact update --check` | 파일 변경 없이 새 버전 확인 |\n| `gitifact update` | 설치한 버전으로 GITIFACT 블록과 프로젝트 기준 버전 갱신 |\n| `gitifact update --later` | 안내된 새 버전을 24시간 동안 안내하지 않음 |\n| `gitifact guide list` | 에이전트 작업 지침의 주제 목록 |\n| `gitifact guide show spec` | 요구사항 파일 형식과 작성 규칙 |\n| `gitifact guide show design` | 기능 설계 작성 규칙 |\n| `gitifact guide show instructions` | 프로젝트 지침 형식과 AGENTS.md 색인 |\n| `gitifact guide show records` | 결정기록을 쓰는 때와 형식 |\n| `gitifact guide show commit` | 결정기록과 관련 파일을 함께 커밋하는 방법 |\n\n### 문서 조회와 커밋\n\n요구사항·설계·지침은 `.gitifact/` 아래의 Markdown 파일이며 직접 고칩니다. 새 문서는 CLI로 만들어 ID를 받습니다.\n\n| 명령 | 용도 |\n| :--- | :--- |\n| `gitifact specs list` | 기능·요구사항·설계 목록(본문 없이 ID·제목·설명). `--uncovered`·`--changed-since`·`--q` 등으로 거른다 |\n| `gitifact instructions list` | AGENTS.md와 프로젝트 지침 목록 |\n| `gitifact specs show <ID>` | 문서 원문과 그 문서를 가리키는 설계. `--ref <커밋>`으로 과거 원문 |\n| `gitifact records list --doc <ID>` | 문서의 결정기록과 커밋 |\n| `gitifact specs new requirement <기능>/<이름>` | ID를 발급하고 뼈대를 채운 새 문서 생성 |\n| `gitifact check` | 모든 문서의 형식·ID·참조 검사 |\n| `gitifact changes list` | HEAD 이후 바뀐 문서, 커밋하지 않은 결정기록, 기록 없는 변경 |\n| `gitifact changes commit --file <입력 파일> --dry-run` | 파일을 바꾸지 않고 커밋 계획 확인 |\n| `gitifact changes commit --file <입력 파일>` | 고른 문서·결정기록·관련 파일 커밋 |\n\n커밋 입력 형식은 `gitifact guide show commit`에서 확인할 수 있습니다.\n\n### 도입과 실행 옵션\n\n| 옵션 | 용도 |\n| :--- | :--- |\n| `gitifact init --agent codex` | 특정 도구의 지침 파일에 설치. `claude`, `cursor`, `codex`, `hermes`, `all` 지원 |\n| `gitifact init --skip-agents` | 에이전트 지침 파일을 수정하지 않고 도입 |\n| `gitifact init --remove-agents` | 에이전트 지침의 GITIFACT 블록 제거 |\n| `gitifact browser --port 4317` | 브라우저 서버의 포트 지정 |\n\n`--remove-agents`는 에이전트 지침의 GITIFACT 블록만 제거하며, 프로젝트 기록은 유지합니다.\n\n각 명령에 `--help`를 붙이면 사용할 수 있는 옵션을 확인할 수 있습니다.\n",Ie={ko:ve,en:ye},Le={ko:{about:Pe,gettingStarted:Fe},en:{about:Me,gettingStarted:Ne}},Re=/\{(\w+)\}/g;function M(e,t={},n=Ee()){return Ie[n][e].replace(Re,(e,n)=>n in t?String(t[n]):e)}function ze(e,t,n=Ee()){return Ie[n][e].split(Re).map((e,n)=>n%2==0?e:(0,j.createElement)(j.Fragment,{key:n},e in t?t[e]:`{`+e+`}`))}function Be(e,t=Ee()){return Le[t][e]}var N=u();function Ve(...e){return t=>{for(let n of e)if(n?.(t),t.defaultPrevented)return}}var He=[`button`,`a`,`input`,`select`,`textarea`,`[role="button"]`,`[role="link"]`,`[role="checkbox"]`,`[role="radio"]`,`[role="switch"]`,`[role="tab"]`,`[role="menuitem"]`,`[role="option"]`,`[role="combobox"]`,`[role="listbox"]`,`[role="slider"]`,`[role="spinbutton"]`,`[data-pressable-container]`].join(`,`),Ue=`[aria-readonly="true"]`;function We(e,t){let n=e;for(;n!=null&&n!==t&&n!==document.body;){if(n.matches(He)&&!n.matches(Ue))return!0;n=n.parentElement}return!1}function Ge(e){if(typeof document>`u`||!(`getSelection`in document))return!1;let t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function Ke({containerRef:e,interactiveRef:t,onClick:n,href:r,target:i,disabled:a=!1}){return(0,j.useEffect)(()=>{let t=e.current;t&&t.setAttribute(`data-pressable-container`,`true`)},[e]),{onClick:(0,j.useCallback)(o=>{if(a)return;let s=e.current;if(!s||Ge(s))return;let c=o.target;if(c instanceof Element&&!(c!==o.currentTarget&&We(c,s))&&(n?.(o),!o.defaultPrevented&&(r!=null&&(i===`_blank`||o.ctrlKey||o.metaKey?window.open(r,`_blank`,`noopener`):t?.current?t.current.click():window.location.href=r),r==null&&n==null&&t?.current))){let e=new MouseEvent(`click`,{bubbles:o.bubbles,cancelable:o.cancelable,ctrlKey:o.ctrlKey,metaKey:o.metaKey,shiftKey:o.shiftKey,altKey:o.altKey,button:o.button});t.current.dispatchEvent(e),o.stopPropagation()}},[e,t,n,r,i,a]),onMouseUp:(0,j.useCallback)(t=>{if(a)return;let n=e.current;if(!n)return;let i=t.target;i instanceof Element&&t.button===1&&r!=null&&(i===t.currentTarget||!We(i,n))&&window.open(r,`_blank`,`noopener`)},[e,r,a])}}var qe=(0,j.lazy)(async()=>he(()=>import(`./Tooltip-MoU3alsv.js`).then(e=>e.n).then(e=>({default:e.Tooltip})),__vite__mapDeps([0,1,2,3])));function Je(e){return e===`display-1`||e===`display-2`||e===`display-3`}var Ye={1:`h1`,2:`h2`,3:`h3`,4:`h4`,5:`h5`,6:`h6`};function Xe({level:e,type:t,weight:n,accessibilityLevel:i,color:a=`primary`,display:o=`block`,maxLines:s=0,hasTruncateTooltip:c=!0,wordBreak:l,textWrap:u,justify:d=`start`,hasCapsize:p=!1,hasStrikethrough:m=!1,xstyle:h,className:g,style:_,children:v,ref:y,...b}){let x=Ye[e],T=i&&i!==e?{"aria-level":i}:{},le=l??(s===1?`break-all`:`break-word`),ue=s>0||p?`block`:o,O=t&&Je(t)?t:void 0,k=ee({maxLines:s}),pe=typeof c==`string`?c:`above`,A=s>0&&c!==!1&&k.isTruncated,he=(0,j.useRef)(null),ge=te(y,k.ref,he),_e=s>1?{WebkitLineClamp:s}:void 0;return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x,{ref:ge,...S(f(`heading`,{level:e,color:a,type:t,weight:n}),r(fe[ce(a)],O?E[O]:oe[e],O&&de[O],n&&me[n],s===1?re.singleLine:s>1?re.multiLine:D[ue],s>0&&w[le],u&&ne[u],d!==`start`&&ie[d],p&&ae.enabled,m&&C.strikethrough,h),g,{..._,..._e}),...T,...b,children:v}),A&&(0,N.jsx)(j.Suspense,{fallback:null,children:(0,N.jsx)(qe,{anchorRef:he,content:(0,N.jsx)(`span`,{...r(se.content),children:k.fullText}),placement:pe})})]})}Xe.displayName=`Heading`;var Ze=j.use,Qe=j.useLayoutEffect;function $e(e,t,n){j.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!=`function`)return()=>t();let r=new IntersectionObserver(e=>{t(e.pop())},{rootMargin:`100px`});return r.observe(e.current),()=>{r.disconnect(),t()}},[t,n,e])}function et(e){let t=j.useRef(null);return j.useImperativeHandle(e,()=>t.current,[]),t}function tt(e){return e[e.length-1]}function nt(e,t){return typeof e==`function`?e(t):e}var rt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;function at(e){for(let t in e)if(rt.call(e,t))return!0;return!1}var ot=()=>Object.create(null),st=(e,t)=>ct(e,t,ot);function ct(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=ft(e)&&ft(i);if(!a&&!(ut(e)&&ut(i)))return i;let o=a?e:lt(e);if(!o)return i;let s=a?i:lt(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:rt.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=ct(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function lt(e){let t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(let r of n){if(!it.call(e,r))return!1;t.push(r)}return t}function ut(e){if(!dt(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!dt(n)||!n.hasOwnProperty(`isPrototypeOf`))}function dt(e){return Object.prototype.toString.call(e)===`[object Object]`}function ft(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pt(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!pt(e[r],t[r],n))return!1;return!0}if(ut(e)&&ut(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!pt(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!pt(e[o],t[o],n)))return!1;return i===a}return!1}function mt(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var ht=/[\x00-\x1f\x7f"<>`{}]/g;function gt(e){return e.replace(ht,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function _t(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return gt(t)}var vt=[`http:`,`https:`,`mailto:`,`tel:`];function yt(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var bt=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function xt(e,t){if(!e)return!1;if(bt.test(e))return!0;let n=yt(e);return n?!t.has(n):!1}function St(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=_t(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=_t(r?e.slice(r):e)}return t}function Ct(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function wt(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Tt(){throw Error(`Invariant failed`)}function Et(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var Dt=4,Ot=5;function kt(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.indexOf(`{`),s;if(o!==-1&&o+1<a.length&&(s=a.indexOf(`}`,o))!==-1){let r=a.charCodeAt(o+1);if(r===45){if(o+2<a.length&&a.charCodeAt(o+2)===36){let e=o+3,r=s;if(e<r)return n[0]=3,n[1]=t+o,n[2]=t+e,n[3]=t+r,n[4]=t+s+1,n[5]=i,n}}else if(r===36){let r=o+1,a=o+2;return a===s?(n[0]=2,n[1]=t+o,n[2]=t+r,n[3]=t+a,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+a,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function At(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=kt(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=Mt(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c);u||(t=t.toLowerCase(),c=c.toLowerCase());let m=f===1?i.dynamic:f===3?i.optional:i.wildcard,h=f!==2&&!d&&m?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===t&&e.suffix===c);if(h)n=h;else{let e=Nt(f,r,p,t,c);n=e,e.parent=i,e.depth=a;let s;s=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],s.push(e),s.length===2&&o?.push(s)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Mt(r);e.kind=Ot,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=Mt(r);e.kind=Dt,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)At(e,t,r,c,i,a,o,s)}function jt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Mt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Nt(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Pt(e,t){let n=Mt(`/`),r=new Uint16Array(6),i=[];for(let t of e)At(!1,r,t,1,n,0,i);for(let e of i)e.sort(jt);t.masksTree=n,t.flatCache=Et(1e3)}function Ft(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Bt(e,t.masksTree);return t.flatCache.set(e,r),r}function It(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Mt(`/`),At(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Bt(r,o,n)}function Lt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Bt(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ht(a.route)),t.matchCache.set(r,a),a}function Rt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function zt(e,t=!1,n){let r=Mt(e.fullPath),i=new Uint16Array(6),a=[],o={},s={},c=0;At(t,i,e,1,r,0,a,e=>{if(n?.(e,c),e.id in o&&Tt(),o[e.id]=e,c!==0&&e.path){let t=Rt(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++});for(let e of a)e.sort(jt);return{processedTree:{segmentTree:r,singleCache:Et(1e3),matchCache:Et(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function Bt(e,t,n=!1){let r=e.split(`/`),i=Wt(e,r,t,n);if(!i)return null;let[a]=Vt(e,r,i);return{route:i.node.route,rawParams:a}}function Vt(e,t,n){let r=Ut(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===Dt)break;if(u.kind===Ot){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length;if(e.charCodeAt(t)===123){let n=u.suffix.length,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length,r=u.suffix.length,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ht(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ut(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Wt(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!tt(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Jt(l,n))continue;if(i.parse){if(!qt(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Dt&&Jt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Dt||i.kind===2)&&Jt(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(qt(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&Kt(f,o))return n;Jt(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Gt(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Gt(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Gt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Gt(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Gt(e,t){return 2**(e-t-1)}function Kt(e,t){return e===2**(t-1)-1}function qt(e,t,n){let r,i;try{[r,i]=Vt(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Jt(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Dt)>(e.node.kind===Dt)||t.node.kind===Dt==(e.node.kind===Dt)&&t.node.depth>e.node.depth)))}function Yt(e){return Xt(e.filter(e=>e!==void 0).join(`/`))}function Xt(e){return e.replace(/\/{2,}/g,`/`)}function Zt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function Qt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function $t(e){return Qt(Zt(e))}function en(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function tn({base:e,to:t,trailingSlash:n=`never`,cache:r}){if(t.includes(`//`)&&(t=Xt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=Xt(e)),o=e.split(`/`);o.length>1&&tt(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(tt(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?Xt(s):s)||`/`;return a&&r&&r.set(a,c),c}function nn(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function rn(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>on(e,n)).join(`/`):on(r,n):r}function an({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=kt(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=rn(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=rn(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=rn(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function on(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var sn=`Error preloading route! ☝️`;function cn({children:e,fallback:t=null}){return(0,N.jsx)(j.Fragment,{children:ln()?e:t})}function ln(){return j.useSyncExternalStore(un,()=>!0,()=>!1)}function un(){return()=>{}}var dn=j.createContext(null);function fn(e){return j.useContext(dn)}var pn=t((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),mn=t(((e,t)=>{t.exports=pn()})),hn=t((e=>{var t=p(),n=mn();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),gn=t(((e,t)=>{t.exports=hn()}))();function _n(e,t){return e===t}function vn(e,t=e=>e,n){let r=n?.compare??_n,i=(0,j.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,j.useCallback)(()=>e.get(),[e]);return(0,gn.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function yn(e){let t=fn();return j.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function bn(e){let t=j.useRef(e);return pt(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function xn(e,t){return e[0]===t[0]&&e[1]===t[1]}function Sn(e,t){let n=typeof e==`string`&&yt(e);if(n)return t.has(n)?e:null}function Cn(e,t,n,r,i){let a=en(e.pathname,r),o=en(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!pt(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:!n?.includeHash||i&&e.hash===t.hash}function wn(e,t){let n=fn(),r=et(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:b,onClick:x,onBlur:S,onFocus:C,onMouseEnter:w,onMouseLeave:T,onTouchStart:ee,ignoreBlocker:te,params:E,search:ne,hash:re,state:D,mask:ie,reloadDocument:ae,unsafeRelative:oe,from:se,_fromLocation:ce,...le}=e,ue=s,O=ln(),k=bn(e.search),de=bn(e.params),fe=bn(o),pe=j.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,k,de,e.state,e.mask,e.unsafeRelative]),A=j.useCallback(e=>{let t=Sn(ue,n.protocolAllowlist);if(t!==void 0)return[t??void 0];let r=n.buildLocation({_fromLocation:e,...pe}),i=Mn(r,n,v);return[i,!v&&(!i||yt(i))?void 0:Cn(e,r,fe,n.basepath,O)]},[fe,v,O,pe,n,ue]),[me,he]=vn(n.stores.location,A,{compare:xn}),ge=he===void 0?me:void 0,_e=v||me===void 0,ve=j.useRef(!1),ye=e.reloadDocument||ge||_e?!1:c??n.options.defaultPreload,be=l??n.options.defaultPreloadDelay??0,xe=j.useCallback(()=>{n.preloadRoute(pe).catch(e=>{console.warn(e),console.warn(sn)})},[n,pe]),Se=j.useCallback(e=>{if(!e){An(r);return}if(!(e.isIntersecting??ye===`intent`)){e.isIntersecting===!1&&An(r);return}if(!be){xe();return}kn.has(r)||kn.set(r,setTimeout(()=>{kn.delete(r),xe()},be))},[xe,r,ye,be]);if($e(r,Se,ye!==`viewport`),j.useEffect(()=>{ve.current||ye===`render`&&(xe(),ve.current=!0)},[xe,ye]),ge)return{...le,ref:r,href:ge,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...b&&{className:b},...x&&{onClick:x},...S&&{onBlur:S},...C&&{onFocus:C},...w&&{onMouseEnter:w},...T&&{onMouseLeave:T},...ee&&{onTouchStart:ee}};let Ce=nt(he?i:a,{})??(he?En:Tn),we=Ce.className,Te=b?we?`${b} ${we}`:b:we,Ee=Ce.style,De=y&&Ee?{...y,...Ee}:y||Ee,Oe=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;!_e&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0&&(e.preventDefault(),n.navigate({...pe,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:te}))},ke=()=>{ye===`intent`&&xe()},Ae=()=>{ye===`intent`&&An(r)};return{...le,...Ce,href:me,ref:r,onClick:jn(x,Oe),onBlur:jn(S,Ae),onFocus:jn(C,Se),onMouseEnter:jn(w,Se),onMouseLeave:jn(T,Ae),onTouchStart:jn(ee,ke),disabled:!!_e,target:_,...De&&{style:De},...Te&&{className:Te},..._e&&Dn,...he&&On}}var Tn={},En={className:`active`},Dn={role:`link`,"aria-disabled":!0},On={"data-status":`active`,"aria-current":`page`},kn=new WeakMap,An=e=>{clearTimeout(kn.get(e)),kn.delete(e)},jn=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Mn(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!xt(i,t.protocolAllowlist))return i}var Nn=j.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=wn(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;a=t}return j.createElement(n||`a`,a,o)});function Pn(e){return!e||typeof window>`u`?!1:window.getComputedStyle(e).direction===`rtl`}var Fn=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`]);function In(e){if(e.isContentEditable)return e;let t=e.closest(`[contenteditable]`);return t&&t.getAttribute(`contenteditable`)!==`false`?t:null}function Ln(e,t){if(!(e instanceof HTMLElement))return!1;let n=In(e);if(n){let e=typeof window<`u`?window.getSelection():null;return e&&e.rangeCount>0&&!e.isCollapsed?!0:(n.textContent??``).length>0}let r=e.tagName===`TEXTAREA`,i=e.tagName===`INPUT`&&Fn.has(e.type);if(!r&&!i)return!1;let{selectionStart:a,selectionEnd:o,value:s}=e;return a!==o||a==null?!0:t===`ArrowLeft`||t===`ArrowUp`||t===`Home`?a>0:t===`ArrowRight`||t===`ArrowDown`||t===`End`?a<s.length:!1}function Rn(e={}){let{itemSelector:t=`[role="menuitem"]`,boundarySelector:n,wrap:r=!0,onEscape:i,orientation:a=`vertical`,hasHomeEnd:o=!0,hasRovingTabIndex:s=!1,hasCaretGuard:c=!1}=e,l=(0,j.useRef)(null),u=(0,j.useCallback)(e=>e.getAttribute(`aria-disabled`)===`true`||e.disabled===!0||e.hasAttribute(`disabled`),[]),d=(0,j.useCallback)(()=>{let e=l.current;if(!e)return[];let r=Array.from(e.querySelectorAll(t));return n?r.filter(t=>t.closest(n)===e):r},[t,n]),f=(0,j.useCallback)(e=>{let t=l.current;if(!t||!n)return!0;let r=e.target;return!r||r.closest(n)===t},[n]),p=(0,j.useCallback)((e,t,n,r)=>{let i=e.length;if(i===0)return-1;let a=t;for(let t=0;t<i;t++){if(a<0||a>=i){if(!r)return-1;a=(a+i)%i}let t=e[a];if(t&&!u(t))return a;a+=n}return-1},[u]),m=(0,j.useCallback)(()=>{let e=d(),t=document.activeElement;return e.findIndex(e=>e===t||e.contains(t))},[d]),h=(0,j.useCallback)((e,t)=>{e.getAttribute(`tabindex`)!==String(t)&&e.setAttribute(`tabindex`,String(t))},[]),g=(0,j.useCallback)(()=>{let e=d(),t=e.filter(e=>!u(e));if(t.length===0)return;let n=t.find(e=>e.getAttribute(`tabindex`)===`0`)??t[0];for(let t of e)h(t,t===n?0:-1)},[d,u,h]);x(()=>{s&&g()});let _=(0,j.useCallback)((e,t)=>{let n=e[t];if(n){if(s)for(let t of e)h(t,t===n?0:-1);n.focus()}},[s,h]),v=(0,j.useCallback)(e=>{let t=d();if(t.length===0)return;let n=Math.max(0,Math.min(e,t.length-1));_(t,n)},[d,_]),y=(0,j.useCallback)(()=>{let e=d(),t=p(e,0,1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),b=(0,j.useCallback)(()=>{let e=d(),t=p(e,e.length-1,-1,!1);return t!==-1&&(_(e,t),!0)},[d,p,_]),S=(0,j.useCallback)(()=>{s&&g()},[s,g]);return{listRef:l,handleKeyDown:(0,j.useCallback)(e=>{if(e.ctrlKey||e.metaKey||e.altKey||!f(e))return;if(e.key===`Escape`){i&&(e.preventDefault(),i());return}let t=a===`horizontal`||a===`both`,n=a===`vertical`||a===`both`,s=[],u=[];if(t){let t=e.key===`ArrowLeft`||e.key===`ArrowRight`?Pn(l.current):!1;s.push(t?`ArrowLeft`:`ArrowRight`),u.push(t?`ArrowRight`:`ArrowLeft`)}n&&(s.push(`ArrowDown`),u.push(`ArrowUp`));let h=s.includes(e.key),g=u.includes(e.key),v=o&&e.key===`Home`,x=o&&e.key===`End`;if(!h&&!g&&!v&&!x||c&&(Ln(e.target,e.key)||Ln(document.activeElement,e.key)))return;let S=m(),C=d();if(h){let e=S===-1?0:S+1,t=p(C,e,1,r);t!==-1&&_(C,t)}else if(g){let e=S===-1?C.length-1:S-1,t=p(C,e,-1,r);t!==-1&&_(C,t)}else v?y():x&&b();e.preventDefault()},[m,d,r,a,o,c,p,_,y,b,i,f]),handleFocus:S,focusItem:v,focusFirst:y,focusLast:b,ownsEvent:f,getItems:d}}function zn(){if(typeof navigator>`u`)return!1;let e=`userAgentData`in navigator?navigator.userAgentData:null;if(e&&typeof e==`object`&&`platform`in e){let t=e.platform,n=typeof t==`string`?t.trim():``;if(n!==``&&n.toLowerCase()!==`unknown`)return/mac/i.test(n)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??``)}var Bn={esc:`escape`,space:` `,up:`arrowup`,down:`arrowdown`,left:`arrowleft`,right:`arrowright`,return:`enter`,plus:`+`};function Vn(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;let t=e.tagName;return t===`INPUT`||t===`TEXTAREA`||t===`SELECT`}function Hn(e,t,n){let r=e.toLowerCase().split(`+`).map(e=>e.trim()).filter(Boolean);if(r.length===0)return!1;let i=r[r.length-1],a=new Set(r.slice(0,-1)),o=a.has(`mod`),s=a.has(`ctrl`)||o&&!n,c=a.has(`meta`)||o&&n,l=a.has(`alt`),u=a.has(`shift`);if(t.ctrlKey!==s||t.metaKey!==c||t.altKey!==l||u&&!t.shiftKey)return!1;let d=Bn[i]??i;return t.key.toLowerCase()===d}function Un(e){let t=(0,j.useRef)(e);(0,j.useEffect)(()=>{t.current=e}),(0,j.useEffect)(()=>{let e=zn(),n=n=>{if(n.defaultPrevented)return;let r=Vn(n.target);for(let i of t.current)if(!i.isDisabled&&(!r||i.allowInInputs)&&Hn(i.keys,n,e)){n.preventDefault(),i.onPress(n);return}};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[])}var Wn={wrapper:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kOIVth:`xzye2dw`,kmuXW:`x2lah0s`,$$css:!0}},Gn={ctrl:`⌃`,alt:`⌥`,shift:`⇧`,enter:`↵`,backspace:`⌫`,escape:`Esc`,tab:`⇥`,up:`↑`,down:`↓`,left:`←`,right:`→`,plus:`+`};function Kn(e,t){return e===`mod`?t?`⌘`:`Ctrl`:Gn[e]??e.toUpperCase()}var qn={ctrl:`Control`,alt:`Alt`,shift:`Shift`,enter:`Enter`,backspace:`Backspace`,escape:`Escape`,tab:`Tab`,up:`Up arrow`,down:`Down arrow`,left:`Left arrow`,right:`Right arrow`,plus:`Plus`};function Jn(e,t){return e===`mod`?t?`Command`:`Control`:qn[e]??e.toUpperCase()}function Yn(){return()=>{}}function Xn(){return!1}function Zn({keys:e,ref:t,xstyle:n,className:i,style:a,...o}){let s=(0,j.useSyncExternalStore)(Yn,zn,Xn),c=e.split(`+`).map(e=>e.trim().toLowerCase()),l=c.map(e=>Jn(e,s)).join(` + `);return(0,N.jsx)(`span`,{...o,ref:t,role:`img`,"aria-label":l,...S(f(`kbd`),r(Wn.wrapper,n),i,a),children:c.map(e=>(0,N.jsx)(`kbd`,{"aria-hidden":`true`,className:`x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle xv1l7n4 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o`,children:Kn(e,s)},e))})}Zn.displayName=`Kbd`;var Qn={container:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,k9WMMc:`x2b8uid`,kOIVth:`x18g69wz`,k8WAf4:`xmfvnks`,kg3NbH:`xm7rs69`,$$css:!0},containerCompact:{kOIVth:`x1txdalj`,k8WAf4:`x1na6nto`,kg3NbH:`x1pzlopt`,$$css:!0}};function $n({title:e,description:t,icon:n,actions:i,headingLevel:a=3,isCompact:o=!1,xstyle:s,className:c,style:l,ref:u,...d}){let p=`h${a}`;return(0,N.jsxs)(`div`,{ref:u,...d,role:`status`,...S(f(`empty-state`,{variant:o?`compact`:null}),r(Qn.container,o&&Qn.containerCompact,s),c,l),children:[n!=null&&(0,N.jsx)(`div`,{"aria-hidden":`true`,children:n}),(0,N.jsxs)(`div`,{className:`x78zum5 xdt5ytf x6s0dn4 xxc7z9f`,children:[(0,j.createElement)(p,S(f(`empty-state-title`,{variant:o?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0`},1:{className:`x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib`}}[!!o<<0]),e),t!=null&&(0,N.jsx)(`div`,{...S(f(`empty-state-description`,{variant:o?`compact`:null}),{0:{className:`x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4`},1:{className:`x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d`}}[!!o<<0]),children:t})]}),i!=null&&(0,N.jsx)(`div`,{...{0:{className:`x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d`},1:{className:`x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf`}}[!!o<<0],children:i})]})}$n.displayName=`EmptyState`;var er={center:{kGNEyG:`x6s0dn4`,$$css:!0},end:{kGNEyG:`xuk3077`,$$css:!0},start:{kGNEyG:`x1cy8zhl`,$$css:!0},stretch:{kGNEyG:`x1qjc9v5`,$$css:!0}},tr={start:{kjj79g:`x1nhvcw1`,$$css:!0},center:{kjj79g:`xl56j7k`,$$css:!0},end:{kjj79g:`x13a6bvl`,$$css:!0},between:{kjj79g:`x1qughib`,$$css:!0},around:{kjj79g:`x1l1ennw`,$$css:!0},evenly:{kjj79g:`xaw8158`,$$css:!0}},nr={horizontal:{kXwgrk:`x1q0g3np`,$$css:!0},vertical:{kXwgrk:`xdt5ytf`,$$css:!0}},rr={nowrap:{kwnvtZ:`xozqiw3`,$$css:!0},wrap:{kwnvtZ:`x1a02dak`,$$css:!0},"wrap-reverse":{kwnvtZ:`x8hhl5t`,$$css:!0}},ir={stack:{k1xSpc:`x78zum5`,$$css:!0}},ar={0:{k1C7PZ:`x1o57wo1`,khm7nJ:`x6yxi7o`,$$css:!0},1:{k1C7PZ:`x1lfs0n9`,khm7nJ:`x1ngg2t4`,$$css:!0},2:{k1C7PZ:`xak3so`,khm7nJ:`x1x7z4sm`,$$css:!0},3:{k1C7PZ:`xewh9hi`,khm7nJ:`x4olc9o`,$$css:!0},4:{k1C7PZ:`xty4p9g`,khm7nJ:`xtx9w7w`,$$css:!0},5:{k1C7PZ:`x1eqhezk`,khm7nJ:`x1iu6piu`,$$css:!0},6:{k1C7PZ:`x3qlgwd`,khm7nJ:`xczp1bk`,$$css:!0},8:{k1C7PZ:`xicv188`,khm7nJ:`xgx0vcf`,$$css:!0},10:{k1C7PZ:`x1p37tyl`,khm7nJ:`x1xpicb7`,$$css:!0},"0.5":{k1C7PZ:`x1kihgfc`,khm7nJ:`x1tw44j4`,$$css:!0},"1.5":{k1C7PZ:`x1thn6ci`,khm7nJ:`xhq53yo`,$$css:!0}};function or({crossAlign:e,direction:t,gap:n,mainAlign:r,wrap:i}){return[ir.stack,nr[t],n!=null&&ar[n],e!=null&&er[e],r!=null&&tr[r],i!=null&&rr[i]]}var sr={scrollable:{kVQacm:`xysyzu8`,$$css:!0}};function cr({direction:e=`vertical`,hAlign:t,vAlign:n,justify:a,align:o,gap:s,padding:c,paddingInline:l,paddingInlineStart:u,paddingInlineEnd:d,paddingBlock:p,paddingBlockStart:m,paddingBlockEnd:g,isScrollable:y,width:b,height:x,maxWidth:C,minHeight:w,wrap:T,as:ee=`div`,xstyle:te,className:E,style:ne,children:re,ref:D,...ie}){let ae=t??(e===`horizontal`?a:o),oe=n??(e===`horizontal`?o:a),se=e===`horizontal`?ae:oe,ce=e===`horizontal`?oe:ae,le=u??l??c,ue=d??l??c,O=m??p??c,k=g??p??c,de=r(...or({direction:e,crossAlign:ce,mainAlign:se,gap:s,wrap:T}),le!=null&&i[le],ue!=null&&_[ue],O!=null&&v[O],k!=null&&h[k],y&&sr.scrollable,te),fe={...b!=null&&{width:typeof b==`number`?`${b}px`:b},...x!=null&&{height:typeof x==`number`?`${x}px`:x},...C!=null&&{maxWidth:typeof C==`number`?`${C}px`:C},...w!=null&&{minHeight:typeof w==`number`?`${w}px`:w}};return(0,j.createElement)(ee,{ref:D,...S(f(`stack`,{direction:e,gap:s,wrap:T}),de,E,{...ne,...fe}),...ie},re)}cr.displayName=`Stack`;function lr({ref:e,justify:t,align:n,hAlign:r,vAlign:i,...a}){return(0,N.jsx)(cr,{...a,direction:`vertical`,hAlign:r??n,vAlign:i??t,ref:e})}lr.displayName=`VStack`;function ur({ref:e,justify:t,align:n,hAlign:r,vAlign:i,...a}){return(0,N.jsx)(cr,{...a,direction:`horizontal`,hAlign:r??t,vAlign:i??n,ref:e})}ur.displayName=`HStack`;function dr({data:e,size:t}){return(0,N.jsx)(`svg`,{viewBox:`0 0 24 24`,width:`${t/16}rem`,height:`${t/16}rem`,style:{flexShrink:0},fill:`none`,"aria-hidden":`true`,focusable:`false`,children:e.map(([e,t],n)=>(0,j.createElement)(e,{...t,key:n}))})}var fr=j.createContext(void 0),pr=e=>{let t=j.useContext(fr);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},mr=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,N.jsx)(fr.Provider,{value:e,children:t})),hr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gr=new class{#e=hr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function _r(e){setTimeout(e,0)}var vr=typeof window>`u`||`Deno`in globalThis;function yr(){}function br(e,t){return typeof e==`function`?e(t):e}function xr(e){return typeof e==`number`&&e>=0&&e!==1/0}function Sr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function P(e,t){return typeof e==`function`?e(t):e}function Cr(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Tr(o,t.options))return!1}else if(!Dr(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function wr(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Er(t.options.mutationKey)!==Er(a))return!1}else if(!Dr(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Tr(e,t){return(t?.queryKeyHashFn||Er)(e)}function Er(e){return JSON.stringify(e,(e,t)=>Mr(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function Dr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!Dr(e[r],t[r]))return!1;return!0}return!1}var Or=Object.prototype.hasOwnProperty;function kr(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=jr(e)&&jr(t);if(!r&&!(Mr(e)&&Mr(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:Or.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=kr(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function Ar(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function jr(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mr(e){if(!Nr(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Nr(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Nr(e){return Object.prototype.toString.call(e)===`[object Object]`}function Pr(e){return new Promise(t=>{gr.setTimeout(t,e)})}function Fr(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:kr(e,t)}function Ir(e){return e}function Lr(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Rr(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var zr=Symbol();function Br(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===zr?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vr(e,t){return typeof e==`function`?e(...t):!!e}function Hr(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Ur=()=>vr,Wr=()=>Ur(),Gr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Kr=new class extends Gr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},qr=_r;function Jr(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=qr,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Yr=Jr(),Xr=new class extends Gr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Zr(e){return Math.min(1e3*2**e,3e4)}function Qr(e){return(e??`online`)!==`online`||Xr.isOnline()}var $r=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ei(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(yr);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new $r(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>Kr.isFocused()&&(e.networkMode===`always`||Xr.isOnline())&&e.canRun(),p=()=>Qr(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(Wr()?0:3),a=e.retryDelay??Zr,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),Pr(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var ti=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),xr(this.gcTime)&&(this.#e=gr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(gr.clearTimeout(this.#e),this.#e=void 0)}};function ni(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Hr(e,()=>t.signal,()=>n=!0)},u=Br(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?Rr:Lr;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?ii:ri,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ri(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function ri(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ii(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ai(e,t){return t?ri(e,t)!=null:!1}function oi(e,t){return!t||!e.getPreviousPageParam?!1:ii(e,t)!=null}var si=class extends ti{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ui(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ui(this.options);e.data!==void 0&&(this.setState(li(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=Fr(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(yr).catch(yr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>P(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>P(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Sr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=Br(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ni(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=ei({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof $r&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof $r){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...ci(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...li(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Yr.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function ci(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Qr(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function li(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ui(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var di=class extends Gr{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),pi(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return mi(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return mi(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof P(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!Ar(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&hi(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||P(this.options.staleTime,this.#t)!==P(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||P(this.options.enabled,this.#t)!==P(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ar(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(yr)),t}#h(e){return!Wr()&&P(this.options.enabled,this.#t)!==!1&&xr(e)}#g(){this.#b();let e=P(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=Sr(this.#r.dataUpdatedAt,e)+1;this.#u=gr.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=gr.setInterval(()=>{(this.options.refetchIntervalInBackground||Kr.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(gr.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(gr.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&pi(e,t),o=i&&hi(e,n,t,r);(a||o)&&(l={...l,...ci(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=Fr(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=Fr(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:gi(e,t),refetch:this.refetch,isEnabled:P(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),Ar(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();Yr.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function fi(e,t){return P(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||P(t.retryOnMount,e)!==!1)}function pi(e,t){return fi(e,t)||e.state.data!==void 0&&mi(e,t,t.refetchOnMount)}function mi(e,t,n){if(P(t.enabled,e)!==!1&&P(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&gi(e,t)}return!1}function hi(e,t,n,r){return(e!==t||P(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&gi(e,n)}function gi(e,t){return P(t.enabled,e)!==!1&&e.isStaleByTime(P(t.staleTime,e))}var _i=j.createContext(!1),vi=()=>j.useContext(_i);_i.Provider;function yi(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var bi=j.createContext(yi()),xi=()=>j.useContext(bi),Si=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?Vr(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Ci=e=>{j.useEffect(()=>{e.clearReset()},[e])},wi=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Vr(n,[e.error,r])),Ti=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Ei=(e,t)=>e?.suspense&&t.isPending,Di=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Oi(e,t,n){let r=vi(),i=xi(),a=pr(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ti(o),Si(o,i,s),Ci(i);let[l]=j.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(j.useSyncExternalStore(j.useCallback(e=>{let t=d?l.subscribe(Yr.batchCalls(e)):yr;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),j.useEffect(()=>{l.setOptions(o)},[o,l]),Ei(o,u))throw Di(o,l,i);if(wi({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function ki(e,t){return Oi(e,di,t)}function F(e){return e}function Ai(e){return e}var ji=(0,j.createContext)(null);ji.displayName=`LayoutAreaContext`;var Mi=(0,j.createContext)({hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1});Mi.displayName=`LayoutSlotsContext`;var Ni=(0,j.createContext)(null);Ni.displayName=`LayoutDividerContext`;var Pi={reset:{kAzted:`x2lwn1j`,k7Eaqz:`xeuugli`,$$css:!0}},Fi={center:{kSGwAc:`xamitd3`,$$css:!0},end:{kSGwAc:`xpvyfi4`,$$css:!0},start:{kSGwAc:`xqcrz7y`,$$css:!0},stretch:{kSGwAc:`xkh2ocl`,$$css:!0}},Ii={fill:{kzQI83:`x1iyjqo2`,$$css:!0},static:{kzQI83:`x1c4vz4f`,kmuXW:`x2lah0s`,$$css:!0}};function Li({crossAlignSelf:e,size:t}={}){return[Pi.reset,Ii[t??`static`],e!=null&&Fi[e]]}function Ri(e){if(e==null||typeof e==`number`)return!0;let t=e.trim().toLowerCase();return t.includes(`%`)?!1:t===`0`||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}var zi={layoutOuter:{keTefX:`xojxgvx`,k71WvV:`x1fcf3bl`,keoZOQ:`x1sa9bsh`,k1K539:`x6h7pi7`,$$css:!0},layoutInner:{"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,"--layout-content-width":`x15lplax`,"--layout-alignment-width":`x19kr0ht`,$$css:!0},fill:{kZKoxP:`x12qplqi`,kskxy:`xenllk4`,$$css:!0},auto:{kAzted:`x1us19tq`,$$css:!0},middle:{kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,$$css:!0},middleQuery:{k9g6sI:`xsw3flo`,$$css:!0},singleColumnContent:{kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xpgkkid`,kUOVxO:`xvueqy4`,$$css:!0},singlePanelMiddle:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,ks0D6T:`xjl2t3p xnpzo02`,kUOVxO:`xvueqy4 xb0m1lw`,$$css:!0},singleStartPanel:{kZCmMZ:`x1vvd0s7`,$$css:!0},singleEndPanel:{kwRFfy:`xxdn8bs`,$$css:!0},fullBleed:{"--layout-padding-outer-x":`x1wbjvqu`,"--layout-padding-outer-y":`xzxxx64`,$$css:!0}},Bi={kzqmXN:`xh8yej3`,kUOVxO:`xvueqy4`,$$css:!0},Vi={contentWidthVar:e=>[{"--layout-content-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x4906uf`,$$css:!0},{"--x---layout-content-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`x1b1nz06`,$$css:!0},{"--x---layout-alignment-width":(typeof e==`number`?`${e}px`:e)==null?void 0:typeof e==`number`?`${e}px`:e}],contentWidth:e=>[Bi,{ks0D6T:(typeof e==`number`?`${e}px`:e)==null?typeof e==`number`?`${e}px`:e:`xf68679`,$$css:!0},{"--x-maxWidth":(e=>typeof e==`number`?e+`px`:e??void 0)(typeof e==`number`?`${e}px`:e)}]};function Hi({area:e,children:t}){return t==null?null:(0,N.jsx)(ji,{value:e,children:t})}var Ui={"x-default-marker":`x-default-marker`,$$css:!0};function Wi({children:e,content:t,contentWidth:n,defaultHasDividers:i,end:a,footer:o,header:s,height:u=`fill`,padding:d,ref:p,start:m,xstyle:h,className:g,style:_}){let v=u===`fill`,y=t??e,b=(0,j.useMemo)(()=>i==null?null:{defaultHasDividers:i},[i]),x=s!=null,C=o!=null,w=m!=null,T=a!=null,ee=w&&T,te=w!==T,E=n!=null&&Ri(n),ne=(0,j.useMemo)(()=>({hasHeader:x,hasFooter:C,hasStart:w,hasEnd:T}),[x,C,w,T]),re=(0,N.jsx)(Mi,{value:ne,children:(0,N.jsx)(`div`,{ref:p,...S(f(`layout`,{height:u}),r(zi.layoutOuter,v?zi.fill:zi.auto,h),g,_),children:(0,N.jsxs)(`div`,{...r(Ui,zi.layoutInner,...or({direction:`vertical`}),v?zi.fill:zi.auto,d===0&&zi.fullBleed,d!=null&&l[d],d!=null&&c[d],n!=null&&Vi.contentWidthVar(n),E&&Vi.contentAlignmentWidthVar(n)),children:[(0,N.jsx)(Hi,{area:`header`,children:s}),(0,N.jsxs)(`div`,{...r(...or({direction:`horizontal`}),zi.middle,n!=null&&(!E||ee)&&Vi.contentWidth(n),E&&!ee&&zi.middleQuery,E&&te&&zi.singlePanelMiddle,E&&w&&!T&&zi.singleStartPanel,E&&!w&&T&&zi.singleEndPanel),children:[(0,N.jsx)(Hi,{area:`start`,children:m}),(0,N.jsx)(`div`,{...r(...Li({size:`fill`}),E&&!w&&!T&&zi.singleColumnContent),children:(0,N.jsx)(Hi,{area:`content`,children:y})}),(0,N.jsx)(Hi,{area:`end`,children:a})]}),(0,N.jsx)(Hi,{area:`footer`,children:o})]})})});return b==null?re:(0,N.jsx)(Ni,{value:b,children:re})}Wi.displayName=`Layout`;var Gi={header:{kmuXW:`x2lah0s`,$$css:!0},inner:{kB7OPa:`x9f619`,ks0D6T:`xjl2t3p`,kUOVxO:`xvueqy4`,kZCmMZ:`x139j0dd`,kwRFfy:`xpc6k2p`,kLKAdn:`x81pis9`,kGO01o:`xg476vw`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,"--container-padding-block-start":`xzz8v79`,"--container-padding-block-end":`xi9ns85`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0},divider:{kt9PQ7:`xso031l`,kfdmCh:`x1q0q8m5`,kL6WhQ:`xw8gpjh`,$$css:!0}},Ki={sizing:e=>[{kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}]};function qi({children:e,hasDivider:t,height:n,label:i,padding:a,paddingBlockEnd:o,role:c,xstyle:l,className:u,style:p,ref:_,...v}){let y=(0,j.use)(Ni),b=t??y?.defaultHasDividers??!1,x=a===0;return(0,N.jsx)(`div`,{ref:_,role:c,"aria-label":i,"data-divider":b||void 0,...S(f(`layout-header`),r(Gi.header,Ki.sizing(n??null),b&&Gi.divider,l),u,p),...v,children:(0,N.jsx)(`div`,{...r(Gi.inner,x&&Gi.fullBleed,a!=null&&g[a],a!=null&&d[a],a!=null&&s[a],a!=null&&m[a],o!=null&&h[o],o!=null&&m[o]),children:e})})}qi.displayName=`LayoutHeader`;var Ji={content:{kB7OPa:`x9f619`,kZKoxP:`x5yr21d`,kUk6DE:`x98rzlu`,kAzted:`x2lwn1j`,kVQacm:`x7giv3`,kZCmMZ:`xwjyata`,kwRFfy:`x1peupej`,kLKAdn:`xqty4a x1ioh5az`,kGO01o:`xg476vw xsg11nj`,"--container-padding-inline-start":`x408pgh`,"--container-padding-inline-end":`xikqloz`,"--container-padding-block-start":`xjmgx01`,"--container-padding-block-end":`xi9ns85`,$$css:!0},noStart:{kZCmMZ:`x139j0dd`,"--container-padding-inline-start":`xdvaxxn`,"--container-padding-inline-end":`xqpvj4r`,$$css:!0},noEnd:{kwRFfy:`xpc6k2p`,$$css:!0},noHeader:{kLKAdn:`x81pis9`,"--container-padding-block-start":`xzz8v79`,$$css:!0},noFooter:{kGO01o:`xon7vh3`,"--container-padding-block-end":`x1xjq73n`,$$css:!0},scrollable:{kVQacm:`xysyzu8`,$$css:!0},constrainedNoPanelsStart:{kZCmMZ:`xhlv5e7`,$$css:!0},constrainedNoPanelsEnd:{kwRFfy:`x1ahicqp`,$$css:!0},constrainedSingleStartPanel:{kwRFfy:`xy07wb4`,$$css:!0},constrainedSingleEndPanel:{kZCmMZ:`xxjme2g`,$$css:!0},fullBleed:{kZCmMZ:`x1c1uobl`,kwRFfy:`xyri2b`,kLKAdn:`xexx8yu`,kGO01o:`x18d9i69`,"--container-padding-inline-start":`xrhngw9`,"--container-padding-inline-end":`xjsfl84`,"--container-padding-block-start":`x1047aw6`,"--container-padding-block-end":`xax9j7h`,$$css:!0}};function Yi({children:e,isScrollable:t=!0,padding:n,label:i,role:a,xstyle:o,className:c,style:l,ref:u,...p}){let{hasHeader:h,hasFooter:_,hasStart:v,hasEnd:y}=(0,j.use)(Mi),b=n===0;return(0,N.jsx)(`div`,{ref:u,role:a,"aria-label":i,...S(f(`layout-content`),r(Ji.content,!v&&!b&&n==null&&Ji.noStart,!y&&!b&&n==null&&Ji.noEnd,!h&&!b&&n==null&&Ji.noHeader,!_&&!b&&n==null&&Ji.noFooter,t&&Ji.scrollable,b&&Ji.fullBleed,n!=null&&g[n],n!=null&&d[n],n!=null&&s[n],n!=null&&m[n],!v&&!y&&!b&&Ji.constrainedNoPanelsStart,!v&&!y&&!b&&Ji.constrainedNoPanelsEnd,v&&!y&&!b&&Ji.constrainedSingleStartPanel,!v&&y&&!b&&Ji.constrainedSingleEndPanel,o),c,l),...p,children:e})}Yi.displayName=`LayoutContent`;function Xi(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function Zi(e,t=`|`){return e.map(e=>Sa(e)).join(t)}function Qi(e,t){return typeof t==`bigint`?t.toString():t}var $i=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function ea(e){return new $i(e)}function ta(e){return e==null}function na(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ra(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function ia(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function aa(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function oa(e){return aa(e._zod.def)??e._zod.def.shape}function sa(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return ia(this,t,e),e},enumerable:!0,configurable:!0})}function ca(e,t,n){t in e?ia(e,t,n):e[t]=n}function la(e,t,n,r){let i=oa(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?sa(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):ca(e,a,r?r(n.value,a):n.value))}}function ua(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?sa(e,n,()=>t[n]):ca(e,n,r.value))}}function da(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function fa(e){return JSON.stringify(e)}function pa(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var ma=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ha(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ga=ea(()=>{if(uo.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function _a(e){if(ha(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ha(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function va(e){return _a(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var ya=new Set([`string`,`number`,`symbol`]);function ba(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function xa(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function I(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Sa(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function Ca(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var wa={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ta={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]};function Ea(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return la(i,e,Da(e,t)),xa(e,da(n,{shape:i,checks:[]}))}function Da(e,t){let n=oa(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function Oa(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(Da(e,t)),a={};return la(a,e,Reflect.ownKeys(oa(e)).filter(e=>!i.has(e))),xa(e,da(n,{shape:a,checks:[]}))}function ka(e,t){if(!_a(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=oa(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return xa(e,da(e._zod.def,{shape:Aa(e,t)}))}function Aa(e,t){let n={};return la(n,e,Reflect.ownKeys(oa(e))),ua(n,t),n}function ja(e,t){if(!_a(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return xa(e,da(e._zod.def,{shape:Aa(e,t)}))}function Ma(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return la(n,e,Reflect.ownKeys(oa(e))),la(n,t,Reflect.ownKeys(oa(t))),xa(e,da(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Na(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Da(t,n)):void 0,o={};return la(o,t,Reflect.ownKeys(oa(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),xa(t,da(t._zod.def,{shape:o,checks:[]}))}function Pa(e,t,n){let r=n?new Set(Da(t,n)):void 0,i={};return la(i,t,Reflect.ownKeys(oa(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),xa(t,da(t._zod.def,{shape:i}))}function Fa(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Ia(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function La(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Ra(e){return typeof e==`string`?e:e?.message}function za(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ba(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Ra(e.inst?._zod.def?.error?.(e))??Ra(a?.(e))??Ra(t?.error?.(e))??Ra(n.customError?.(e))??Ra(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var Va=/[\uD800-\uDBFF]/;function Ha(e){let t=e.length;if(!Va.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Ua(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Wa(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ga(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Ka(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Xa(e,n,r.value)}}function qa(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ja(e,t,n){return qa(e,t,n,!1)}function Ya(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return qa(this,n,r(this))},set(e){qa(this,n,e)}})}return t}function Xa(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:qa(this,t,n.bind(this))},set(e){qa(this,t,e)}})}function Za(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var Qa,$a=!1,eo={configurable:!0,get(){$a=!0}};function L(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&Qa!==e._zod){Qa=void 0;return}Qa=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,eo);let e=$a;$a=!1;try{let r=n(this);return $a?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),$a||=e,r}catch(n){throw delete this[t],$a||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function to(e,t,n,r){let i=Za(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var no=`~constantCatch`;function ro(e){let t=()=>e;return t[no]=!0,t}var io,ao={value:void 0,enumerable:!1},oo=`captureStackTrace`in Error?Error:null;function so(e){let t=oo;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return oo=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function R(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=new Set}a.prototype=i;let o=n,s=o&&new WeakSet;function c(n,r){if(!n._zod){ao.value=new a(r);try{Object.defineProperty(n,"_zod",ao)}finally{ao.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Ka(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?so(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var co=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},lo=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(io=globalThis).__zod_globalConfig??(io.__zod_globalConfig={});var uo=globalThis.__zod_globalConfig;function fo(e){return e&&Object.assign(uo,e),uo}function po(){let e=this._zod;return e.message??=JSON.stringify(e.def,Qi,2),e.message}function mo(e){this._zod.message=e}var ho={get:po,set:mo,enumerable:!0,configurable:!0},go={value:void 0,enumerable:!1},_o=new WeakSet([Object.prototype,Error.prototype]),vo=(e,t)=>{e.name=`$ZodError`,go.value=t,Object.defineProperty(e,"issues",go),go.value=void 0,Object.defineProperty(e,"message",ho);let n=Object.getPrototypeOf(e);_o.has(n)||(_o.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},yo=R(`$ZodError`,vo);R(`$ZodError`,vo,void 0,{Parent:Error});function bo(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function xo(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?bo(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function So(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Co(e,t){return{callee:t?.callee??e,Err:t?.Err}}var wo=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new co;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Ba(e,o,fo())));throw ma(n,a?.callee??t),n}return s.value};return t},To=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Ba(e,o,fo())));throw ma(n,a?.callee??t),n}return s.value};return t},Eo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new co;return a.issues.length?Do(e,a.issues,i):{success:!0,data:a.value}};function Do(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Ba(e,n,fo()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Oo=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Do(e,a.issues,i):{success:!0,data:a.value}},ko=Symbol.for(`zod.compile.invalid`),Ao=Symbol.for(`zod.compile.fallback`),jo=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==ko)return!0;if(r.definite===!0&&n===void 0)return!1}return Mo(e,t,n)});function Mo(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Ao]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new co;return a.issues.length===0}var No=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Po=e=>{let t=wo(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Co(n,a))};return n},Fo=e=>{let t=wo(e),n=(e,r,i,a)=>t(e,r,i,Co(n,a));return n},Io=e=>{let t=To(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Co(n,a))};return n},Lo=e=>{let t=To(e),n=async(e,r,i,a)=>await t(e,r,i,Co(n,a));return n},Ro=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Eo(e)(t,n,i)},zo=e=>(t,n,r)=>Eo(e)(t,n,r),Bo=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Oo(e)(t,n,i)},Vo=e=>async(t,n,r)=>Oo(e)(t,n,r),Ho=/^[cC][0-9a-z]{6,}$/,Uo=/^[0-9a-z]+$/,Wo=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Go=/^[0-9a-vA-V]{20}$/,Ko=/^[A-Za-z0-9]{27}$/,qo=/^[a-zA-Z0-9_-]{21}$/;function Jo(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Yo=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xo=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Zo=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qo=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$o=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function es(){return new RegExp($o,`u`)}var ts=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ns=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rs=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,is=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,as=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,os=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,ss=/^https?$/,cs=/^\+[1-9]\d{6,14}$/,ls=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function us(e){return RegExp(`^${e}$`)}var ds=us(ls);function fs(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ps(e){return RegExp(`^${fs(e)}$`)}function ms(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${fs({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${fs({precision:e.precision})}`:n;return RegExp(`^${ls}T(?:${r})$`)}var hs=/^[\s\S]{0,}$/,gs=/^-?\d+(?:\.\d+)?$/,_s=/^(?:true|false)$/i,vs=/^null$/i,ys=/^[^A-Z]*$/,bs=/^[^a-z]*$/,xs=R(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Ss=e=>{let t=e.value;return!ta(t)&&t.length!==void 0},Cs={number:`number`,bigint:`bigint`,object:`date`},ws=R(`$ZodCheckLessThan`,(e,t)=>{xs.init(e,t);let n=Cs[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Cs[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ts=R(`$ZodCheckGreaterThan`,(e,t)=>{xs.init(e,t);let n=Cs[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Cs[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Es=R(`$ZodCheckMultipleOf`,(e,t)=>{xs.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):ra(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ds=R(`$ZodCheckNumberFormat`,(e,t)=>{xs.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=wa[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Os=R(`$ZodCheckMaxLength`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Ha(r):i)<=t.maximum)return;let a=Ua(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),ks=R(`$ZodCheckMinLength`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Ha(r):i)>=t.minimum)return;let a=Ua(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),As=R(`$ZodCheckLengthEquals`,(e,t)=>{var n;xs.init(e,t),(n=e._zod.def).when??(n.when=Ss),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Ha(r):i;if(a===t.length)return;let o=Ua(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),js=R(`$ZodCheckStringFormat`,(e,t)=>{var n,r;xs.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ms=R(`$ZodCheckRegex`,(e,t)=>{js.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ns=R(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=ys,js.init(e,t)}),Ps=R(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=bs,js.init(e,t)}),Fs=R(`$ZodCheckIncludes`,(e,t)=>{xs.init(e,t);let n=ba(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Is=R(`$ZodCheckStartsWith`,(e,t)=>{xs.init(e,t);let n=RegExp(`^${ba(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ls=R(`$ZodCheckEndsWith`,(e,t)=>{xs.init(e,t);let n=RegExp(`.*${ba(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Rs=R(`$ZodCheckOverwrite`,(e,t)=>{xs.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),zs=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
|
|
193
193
|
`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
|
|
194
194
|
`)}\n};`)(...Object.values(this.closed))}},Bs={major:4,minor:6,patch:4},z=R(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Bs;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=Fa(t),a;for(let o of n){if(o._zod.def.when){if(Ia(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new co;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(za(t.issues,n,e),i||=Fa(t,n))});else{if(t.issues.length===n)continue;za(t.issues,n,e),i||=Fa(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(Fa(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new co;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new co;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return Ja(this,`~standard`,Us(this))},set"~standard"(e){qa(this,`~standard`,e)}}),Vs=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Ba(e,t,fo()))}:{value:e.value};async function Hs(e,t){let n={async:!0};return Vs(await e._zod.run({value:t,issues:[]},n),n)}function Us(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Vs(r,n)}catch{}return Hs(e,t)},vendor:`zod`,version:1}}var Ws=R(`$ZodString`,(e,t)=>{z.init(e,t),e._zod.pattern=t.pattern??hs,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),B=R(`$ZodStringFormat`,(e,t)=>{js.init(e,t),Ws.init(e,t)}),Gs=R(`$ZodGUID`,(e,t)=>{t.pattern??=Xo,B.init(e,t)}),Ks=R(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Zo(e)}else t.pattern??=Zo();B.init(e,t)}),qs=R(`$ZodEmail`,(e,t)=>{t.pattern??=Qo,B.init(e,t)});function Js(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ys(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?Js(e)||2:Xs(e,t)}function Xs(e,t){if(!t.normalize&&t.protocol?.source===ss.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var Zs=/[\t\n\r]/g;function Qs(e){return e.replace(Zs,``)}function $s(e,t){return t.lastIndex=0,t.test(e.hostname)}function ec(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var tc=R(`$ZodURL`,(e,t)=>{B.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=Ys(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Qs(r);return}t.hostname&&!$s(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!ec(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Qs(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),nc=R(`$ZodEmoji`,(e,t)=>{t.pattern??=es(),B.init(e,t)}),rc=R(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?qo:Jo(t.length),B.init(e,t)}),ic=R(`$ZodCUID`,(e,t)=>{t.pattern??=Ho,B.init(e,t)}),ac=R(`$ZodCUID2`,(e,t)=>{t.pattern??=Uo,B.init(e,t)}),oc=R(`$ZodULID`,(e,t)=>{t.pattern??=Wo,B.init(e,t)}),sc=R(`$ZodXID`,(e,t)=>{t.pattern??=Go,B.init(e,t)}),cc=R(`$ZodKSUID`,(e,t)=>{t.pattern??=Ko,B.init(e,t)}),lc=R(`$ZodISODateTime`,(e,t)=>{t.pattern??=ms(t),B.init(e,t)}),uc=R(`$ZodISODate`,(e,t)=>{t.pattern??=ds,B.init(e,t)}),dc=R(`$ZodISOTime`,(e,t)=>{t.pattern??=ps(t),B.init(e,t)}),fc=R(`$ZodISODuration`,(e,t)=>{t.pattern??=Yo,B.init(e,t)}),pc=R(`$ZodIPv4`,(e,t)=>{t.pattern??=ts,B.init(e,t)}),mc=/^[0-9a-fA-F:.]+$/;function hc(e){return mc.test(e)?Js(`http://[${e}]`):!1}var gc=R(`$ZodIPv6`,(e,t)=>{t.pattern??=ns,B.init(e,t),e._zod.check=n=>{hc(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),_c=R(`$ZodCIDRv4`,(e,t)=>{t.pattern??=rs,B.init(e,t)});function vc(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:hc(n)}var yc=R(`$ZodCIDRv6`,(e,t)=>{t.pattern??=is,B.init(e,t),e._zod.check=n=>{vc(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function bc(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var xc=/^[0-9a-zA-Z+/]*={0,2}$/,Sc=R(`$ZodBase64`,(e,t)=>{t.pattern??=xc,B.init(e,t),e._zod.check=n=>{bc(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Cc=/^[A-Za-z0-9_-]*$/;function wc(e){if(!Cc.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return bc(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Tc=R(`$ZodBase64URL`,(e,t)=>{t.pattern??=Cc,B.init(e,t),e._zod.check=n=>{wc(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Ec=R(`$ZodE164`,(e,t)=>{t.pattern??=cs,B.init(e,t)});function Dc(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Oc=R(`$ZodJWT`,(e,t)=>{B.init(e,t),e._zod.check=n=>{Dc(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),kc=R(`$ZodNumber`,(e,t)=>{z.init(e,t),e._zod.pattern=gs,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ac=R(`$ZodNumberFormat`,(e,t)=>{Ds.init(e,t),kc.init(e,t)}),jc=R(`$ZodBoolean`,(e,t)=>{z.init(e,t),e._zod.pattern=_s,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Mc=R(`$ZodNull`,(e,t)=>{z.init(e,t),e._zod.pattern=vs,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Nc=R(`$ZodUnknown`,(e,t)=>{z.init(e,t),e._zod.parse=e=>e}),Pc=R(`$ZodNever`,(e,t)=>{z.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Fc(e,t,n){e.issues.length&&t.issues.push(...La(n,e.issues)),t.value[n]=e.value}var Ic=R(`$ZodArray`,(e,t)=>{z.init(e,t);let n=uo.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>Fc(t,r,e)));else if(Fc(c,r,e),s&&c.issues.length!==0&&Fa(c))break}return o.length?Promise.all(o).then(()=>r):r}});function Lc(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...La(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Rc=[];function zc(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Rc,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=Ca(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Bc(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(Fa(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Lc(e,n,i,t,d,f))):Lc(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Vc=R(`$ZodObject`,(e,t)=>{z.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=ea(()=>zc(t));L(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||ia(n,e,new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=ha,o=t.catchall,s,c=uo.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(Fa(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Lc(n,t,e,r,a,o))):Lc(s,t,e,r,a,o)}return o?Bc(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Hc=R(`$ZodObjectJIT`,(e,t)=>{Vc.init(e,t);let n=e._zod.parse,r=ea(()=>zc(t)),i=uo.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new zs([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
|
|
195
195
|
let ${e}_ab = false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./themeProps-CkLe5zXY.js";import{a as t}from"./commit-
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{a as t}from"./commit-BcdbBdP4.js";import{r as n}from"./index-BeeP8ZFW.js";var r=e();function i(){let{recordId:e}=n.useParams();return(0,r.jsx)(t,{recordId:e})}export{i as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./themeProps-CkLe5zXY.js";import{o as t}from"./commit-
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{o as t}from"./commit-BcdbBdP4.js";import{t as n}from"./index-BeeP8ZFW.js";var r=e();function i(){let{commit:e}=n.useParams(),i=n.useSearch();return(0,r.jsx)(t,{commit:e,search:i})}export{i as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./themeProps-CkLe5zXY.js";import{a as t,i as n}from"./index-
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{a as t,i as n}from"./index-BeeP8ZFW.js";var r=e();function i(){let e=n.useSearch(),i=n.useNavigate();return(0,r.jsx)(t,{search:e,change:(e,t)=>{i({search:e,replace:t??!1})}})}export{i as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./themeProps-CkLe5zXY.js";import{i as t}from"./commit-
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{i as t}from"./commit-BcdbBdP4.js";import{n}from"./index-BeeP8ZFW.js";var r=e();function i(){let e=n.useSearch();return(0,r.jsx)(t,{search:e})}export{i as component};
|