├── .editorconfig ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── README_CN.md ├── db └── schema.sql ├── package-lock.json ├── package.json ├── src ├── index.html ├── index.ts └── rpcEmail.ts ├── tsconfig.json ├── vitest.config.mts ├── worker-configuration.d.ts ├── wrangler.toml.example └── wrangler.toml.example.clear /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = tab 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.yml] 12 | indent_style = space 13 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Deploy Auth Inbox to Cloudflare Workers 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | workflow_dispatch: 8 | 9 | jobs: 10 | deploy: 11 | runs-on: ubuntu-latest 12 | permissions: 13 | contents: write 14 | name: Deploy Auth Inbox Worker 15 | steps: 16 | # 步骤 1: 检出代码 17 | - name: Checkout Repository 18 | uses: actions/checkout@v4 19 | 20 | # 步骤 2: 设置 Node.js 环境 21 | - name: Setup Node.js 22 | uses: actions/setup-node@v4 23 | with: 24 | node-version: '20' # 根据您的项目需求选择 Node.js 版本 25 | 26 | # 步骤 3: 安装依赖项 27 | - name: Install Dependencies 28 | run: npm install 29 | 30 | # 步骤 4: 部署 Worker 31 | - name: Deploy Backend for ${{ github.ref_name }} 32 | run: | 33 | 34 | # Write secrets.TOML to wrangler.toml file 35 | echo '${{ secrets.TOML }}' > wrangler.toml 36 | 37 | # Deploy the worker using Wrangler 38 | npx wrangler deploy 39 | env: 40 | CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} 41 | CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} 42 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | 3 | logs 4 | _.log 5 | npm-debug.log_ 6 | yarn-debug.log* 7 | yarn-error.log* 8 | lerna-debug.log* 9 | .pnpm-debug.log* 10 | 11 | # Diagnostic reports (https://nodejs.org/api/report.html) 12 | 13 | report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json 14 | 15 | # Runtime data 16 | 17 | pids 18 | _.pid 19 | _.seed 20 | \*.pid.lock 21 | 22 | # Directory for instrumented libs generated by jscoverage/JSCover 23 | 24 | lib-cov 25 | 26 | # Coverage directory used by tools like istanbul 27 | 28 | coverage 29 | \*.lcov 30 | 31 | # nyc test coverage 32 | 33 | .nyc_output 34 | 35 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 36 | 37 | .grunt 38 | 39 | # Bower dependency directory (https://bower.io/) 40 | 41 | bower_components 42 | 43 | # node-waf configuration 44 | 45 | .lock-wscript 46 | 47 | # Compiled binary addons (https://nodejs.org/api/addons.html) 48 | 49 | build/Release 50 | 51 | # Dependency directories 52 | 53 | node_modules/ 54 | jspm_packages/ 55 | 56 | # Snowpack dependency directory (https://snowpack.dev/) 57 | 58 | web_modules/ 59 | 60 | # TypeScript cache 61 | 62 | \*.tsbuildinfo 63 | 64 | # Optional npm cache directory 65 | 66 | .npm 67 | 68 | # Optional eslint cache 69 | 70 | .eslintcache 71 | 72 | # Optional stylelint cache 73 | 74 | .stylelintcache 75 | 76 | # Microbundle cache 77 | 78 | .rpt2_cache/ 79 | .rts2_cache_cjs/ 80 | .rts2_cache_es/ 81 | .rts2_cache_umd/ 82 | 83 | # Optional REPL history 84 | 85 | .node_repl_history 86 | 87 | # Output of 'npm pack' 88 | 89 | \*.tgz 90 | 91 | # Yarn Integrity file 92 | 93 | .yarn-integrity 94 | 95 | # dotenv environment variable files 96 | 97 | .env 98 | .env.development.local 99 | .env.test.local 100 | .env.production.local 101 | .env.local 102 | 103 | # parcel-bundler cache (https://parceljs.org/) 104 | 105 | .cache 106 | .parcel-cache 107 | 108 | # Next.js build output 109 | 110 | .next 111 | out 112 | 113 | # Nuxt.js build / generate output 114 | 115 | .nuxt 116 | dist 117 | 118 | # Gatsby files 119 | 120 | .cache/ 121 | 122 | # Comment in the public line in if your project uses Gatsby and not Next.js 123 | 124 | # https://nextjs.org/blog/next-9-1#public-directory-support 125 | 126 | # public 127 | 128 | # vuepress build output 129 | 130 | .vuepress/dist 131 | 132 | # vuepress v2.x temp and cache directory 133 | 134 | .temp 135 | .cache 136 | 137 | # Docusaurus cache and generated files 138 | 139 | .docusaurus 140 | 141 | # Serverless directories 142 | 143 | .serverless/ 144 | 145 | # FuseBox cache 146 | 147 | .fusebox/ 148 | 149 | # DynamoDB Local files 150 | 151 | .dynamodb/ 152 | 153 | # TernJS port file 154 | 155 | .tern-port 156 | 157 | # Stores VSCode versions used for testing VSCode extensions 158 | 159 | .vscode-test 160 | 161 | # yarn v2 162 | 163 | .yarn/cache 164 | .yarn/unplugged 165 | .yarn/build-state.yml 166 | .yarn/install-state.gz 167 | .pnp.\* 168 | 169 | # wrangler project 170 | 171 | .dev.vars 172 | .wrangler/ 173 | .wrangler 174 | wrangler.toml -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "singleQuote": true, 4 | "semi": true, 5 | "useTabs": true 6 | } 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Tony Chen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Auth Inbox 📬 2 | 3 | [English](https://github.com/TooonyChen/AuthInbox/blob/main/README.md) | [简体中文](https://github.com/TooonyChen/AuthInbox/blob/main/README_CN.md) 4 | 5 | **Auth Inbox** is an open-source project that securely receive and views authentication emails using [Cloudflare](https://cloudflare.com/)'s free serverless services. It automatically processes incoming emails, extracts verification codes or links, and stores them in a database. A user-friendly web interface is provided for administrators to easily review the extracted information. AuthInbox also supports real-time notifications via Bark, making it a comprehensive and hassle-free solution for email authentication management. 6 | 7 | Don't wanna receive ads and spams on your main email? Want a bunch of alternative email for register services and websites? Try this **secure**, **serverless**, **light** service! 8 | 9 | 10 | [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/TooonyChen/AuthInbox) 11 | 12 | ![Framework](https://github.com/user-attachments/assets/fb5a0204-85fd-4663-9f9d-cd90a4a1fa96) 13 | 14 | --- 15 | 16 | ## Table of Contents 📑 17 | 18 | - [Features](#features) 19 | - [Technologies Used](#technologies-used) 20 | - [Installation](#installation) 21 | - [License](#license) 22 | - [Screenshots](#Screenshots) 23 | 24 | --- 25 | 26 | ## Features ✨ 27 | 28 | - **Email Processing**: Automatically captures and stores incoming emails. 29 | - **Code Extraction**: Utilizes AI to extract verification codes, links, and organization names from emails. 30 | - **Secure Front-End**: Provides a web interface protected by Basic Access Authentication for viewing extracted codes. 31 | - **Real-Time Notifications**: Optionally sends notifications via Bark when new codes are extracted. 32 | - **Database Integration**: Stores raw and processed email data in a Cloudflare D1 Database. 33 | 34 | --- 35 | 36 | ## Technologies Used 🛠️ 37 | 38 | - **Cloudflare Workers**: Serverless platform for handling email processing and web requests. 39 | - **Cloudflare D1**: Cloudflare's serverless SQL database for storing email data. 40 | - **TypeScript**: Strongly typed programming language for robust and maintainable code. 41 | - **Google AI Studio API**: Utilized for extracting relevant information from emails with optimized AI prompts to enhance data accuracy and reliability. 42 | - **AI Prompt Optimization**: Custom-crafted prompts ensure precise extraction of titles, codes, and topics from varied email formats. 43 | - **Bark API**: Optional integration for sending real-time notifications. 44 | - **HTML/CSS**: Front-end interface with responsive and modern design. 45 | 46 | --- 47 | 48 | ## AI Prompt Optimization 🧠 49 | 50 | To ensure accurate extraction of information from incoming emails, we've implemented AI prompt optimization using the Google AI Studio API. By crafting precise and context-aware prompts, the AI can reliably identify and extract key elements such as: 51 | 52 | - **Organization Name (Title)**: Identifies the sender's organization or company. 53 | - **Verification Code/Link**: Extracts codes, links, or passwords necessary for account verification. 54 | - **Email Topic**: Summarizes the main purpose of the email, such as 'account verification' or 'password reset'. 55 | 56 | **Prompt:** 57 | ```plaintext 58 | Email content: [Insert raw email content here]. 59 | 60 | Please read the email and extract the following information: 61 | 1. Code/Link/Password from the email (if available). 62 | 2. Organization name (title) from which the email is sent. 63 | 3. A brief summary of the email's topic (e.g., 'account verification'). 64 | 65 | Format the output as JSON with this structure: 66 | { 67 | "title": "The organization or company that sent the verification code (e.g., 'Netflix')", 68 | "code": "The extracted verification code, link, or password (e.g., '123456' or 'https://example.com/verify?code=123456')", 69 | "topic": "A brief summary of the email's topic (e.g., 'account verification')", 70 | "codeExist": 1 71 | } 72 | 73 | If both a code and a link are present, include both in the 'code' field like this: 74 | "code": "code, link" 75 | 76 | If there is no code, clickable link, or this is an advertisement email, return: 77 | { 78 | "codeExist": 0 79 | } 80 | ``` 81 | 82 | --- 83 | 84 | ## Installation ⚙️ 85 | 0. **Prerequisites** 86 | 87 | - Create a [Google AI Studio API](https://aistudio.google.com/) 88 | 89 | - Bind a domain to your [Cloudflare](https://dash.cloudflare.com/) account 90 | 91 | - Get Your Cloudflare Account ID from [here](https://dash.cloudflare.com/profile) 92 | 93 | - Generate a Cloudflare Workers API Token from [here](https://dash.cloudflare.com/profile/api-tokens) 94 | 95 | - (Optional) Download the [Bark App](https://bark.day.app/) and get a Bark Token from the App 96 | 97 | 1. **Install using Github Pages** 98 | 99 | 1. **Creating D1 Database** 100 | 101 | 1. Go to [Cloudflare Dashboard](https://dash.cloudflare.com/) -> `Workers & Pages` -> `D1 SQL Database` -> `Create` 102 | 103 | 2. Input Name `inbox-d1` and click `Create` 104 | 105 | 3. After Creating `inbox-d1`, click in to it and find `Console` 106 | 107 | 4. Execute the following SQL command from [db/schema.sql](https://github.com/TooonyChen/AuthInbox/blob/main/db/schema.sql) in the console, just copy, paste and execute it. 108 | 109 | 5. Copy the `database_id` and `database_name` for the next step when you configure the `TOML` file 110 | 111 | 2. **Deploy the Cloudflare Worker** 112 | 113 | [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/TooonyChen/AuthInbox) 114 | 115 | 1. Click the button on the top to fork this repository or directly fork this repository. 116 | 117 | 2. Open the repository that you fork, find the `Actions` page, find `Deploy Auth Inbox to Cloudflare Workers`, and click `enable workflow` to activate the workflows. 118 | 119 | 3. Then, in the repository page, navigate to `Settings` -> `Secrets and variables` -> `Actions` -> `Repository secrets` and add the following secrets: 120 | - `CLOUDFLARE_ACCOUNT_ID`: Cloudflare account ID. 121 | - `CLOUDFLARE_API_TOKEN`: Cloudflare API Token. 122 | - `TOML`: Configuration file, refer to [wrangler.toml with comments](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example). **Please use the [version without comments](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example.clear) in adding the secret in case of unknown errors.** 123 | 124 | 4. Back to `Action` Page in your repository, find `Deploy Auth Inbox to Cloudflare Workers` and press `Run workflow` to deploy the worker. If you can't find the `Run workflow` button, you can trigger GitHub Actions automatically by making a small edit to the `readme.md` file in your repository. 125 | 126 | 5. After the deployment is successful, you can find the URL of your worker in the `Deploy Auth Inbox to Cloudflare Workers` workflow log. 127 | 128 | 6. Find the `delete all logs` button in the upper-right corner of the workflow logs page. Delete the logs to avoid data leakage. 129 | 130 | 7. Done! ✅ Jump to step 3: Set Email Forwarding. 131 | 132 | 133 | 2. **Install using command-line** 134 | 135 | 1. **Initialization** 136 | 137 | ```bash 138 | npm install wrangler -g # install wrangler 139 | git clone https://github.com/TooonyChen/AuthInbox.git # clone the repository 140 | cd AuthInbox # change directory 141 | npm install # install dependencies 142 | ``` 143 | 144 | 2. **create d1 database** 145 | 146 | When you execute the [Wrangler](https://developers.cloudflare.com/workers/wrangler/get-started/) login command for the first time, you will be prompted to log in. Just follow the prompts. 147 | 148 | ```bash 149 | npx wrangler d1 create inbox-d1 # creating a d1 database called 'inbox-d1' 150 | npx wrangler d1 execute inbox-d1 --remote --file=./db/schema.sql # write the schema.sql to the database 151 | ``` 152 | you will get the result like this: 153 | ```bash 154 | ✅ Successfully created DB 'inbox-d1' 155 | 156 | [[d1_databases]] 157 | binding = "DB" # available in your Worker on env.DB 158 | database_name = "inbox-d1" 159 | database_id = "" 160 | ``` 161 | please copy the result from your terminal, you will use them in the next step 162 | 163 | 3. **Configure Environment Variables** 164 | 165 | Use `wrangler.toml` file in the project root with the necessary environment variables: 166 | 167 | ```toml 168 | name = "auth-inbox" 169 | type = "typescript" 170 | 171 | [vars] 172 | UseBark = "true" # set 'true' to use or 'false' to not use 173 | barkUrl = "https://api.day.app" 174 | barkTokens = "[token1, token2]" # set to your bark tokens on your iOS device, download it from https://bark.day.app/, you can use multiple tokens, if you only use one, then set it to '[token1]' 175 | FrontEndAdminID = "admin" # your login 176 | FrontEndAdminPassword = "password" # your password 177 | GoogleAPIKey = "xxxxxxxxxxx" # your google api, go to https://aistudio.google.com/ to generate one if u dont have 178 | 179 | [[d1_databases]] # Copy the lines obtained from step 2 from your terminal. 180 | binding = "DB" 181 | database_name = "inbox-d1" # Copy from step 2 182 | database_id = "" # Copy from step 2 183 | ``` 184 | 185 | 4. **Deploy your own worker** 🌐 186 | Deploy your Worker to make your project accessible on the Internet. Run: 187 | ```bash 188 | npx wrangler deploy 189 | ``` 190 | You will get output like this: 191 | ``` 192 | Outputs: https://auth-inbox..workers.dev 193 | ``` 194 | You can now visit the URL for your newly depolyed Auth Inbox for checking the email results. 195 | 196 | 3. **Set Email Forwarding** ✉️ 197 | 198 | Go to [Cloudflare Dashboard](https://dash.cloudflare.com/) -> `Websites` -> `` -> `Email` -> `Email-Routing` -> `Routing Rules` 199 | 200 | if you want to use `catch-all address`: 201 | ![image](https://github.com/user-attachments/assets/53e5a939-6b03-4ca6-826a-7a5f02f361ac) 202 | 203 | if you want to use `custom address`: 204 | ![image](https://github.com/user-attachments/assets/b0d0ab94-c2ad-4870-ac08-d53e64b2c880) 205 | 206 | 4. **Enjoy!** 🎉 207 | 208 | All set! ✅ You can now receive and view your authentication emails securely and efficiently using Auth Inbox! 209 | 210 | --- 211 | 212 | ## License 📜 213 | 214 | This project is licensed under the [MIT License](LICENSE). 215 | 216 | --- 217 | 218 | ## Screenshots 📸 219 | 220 | ![image](https://github.com/user-attachments/assets/ec14d226-ae82-4689-b44d-22850002c34c) 221 | 222 | 223 | --- 224 | 225 | ## Acknowledgements 🙏 226 | 227 | - **Cloudflare Workers** for providing a powerful serverless platform. 228 | - **Google Gemini AI** for enabling intelligent email content extraction. 229 | - **Bark** for real-time notification capabilities. 230 | - **Open Source Community** for inspiring and supporting projects like AuthInbox. 231 | - **ChatGPT** for helping me writing some of the code. 232 | 233 | --- 234 | 235 | ## TODO 📝 236 | 237 | - [x] **Github Pages Deployment**: Automatically deploy to Cloudflare Workers via Github Actions. 238 | - [ ] **Regular Expressions**: Using regular expressions instead of Google Gemini AI for privacy, make Gemini AI to an optional function. 239 | - [ ] **Multi-User Support**: Add functionality to manage multiple users for increased flexibility and broader usage. 240 | - [ ] **Enhance Front-End Design**: Improve the UI/UX of the web interface for a more modern and user-friendly experience. 241 | - [ ] **API**: Add API functionality. 242 | - [ ] **Sending Email**: Add the ability to send emails. 243 | - [ ] **More Notification Methods**: Support additional notification methods such as email, Slack, etc. 244 | 245 | --- 246 | -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- 1 | # Auth Inbox 验证邮局 📬 2 | 3 | [English](https://github.com/TooonyChen/AuthInbox/blob/main/README.md) | [简体中文](https://github.com/TooonyChen/AuthInbox/blob/main/README_CN.md) 4 | 5 | **Auth Inbox** 是一个自建的开源多邮箱验证码的接码平台,基于 [Cloudflare](https://cloudflare.com/) 的免费服务。它可以自动处理收到的邮件,提取验证码或链接,并将其存储在数据库中。管理员可以通过一个用户友好的网页界面轻松查看提取的信息。AuthInbox 还支持通过 Bark 进行实时通知,使其成为一个全面且省心的邮件认证管理解决方案。 6 | 7 | 不想在主邮箱中收到广告和垃圾邮件?想要多个备用邮箱用于注册服务和网站?试试这个吧! 8 | 9 | ![框架](https://github.com/user-attachments/assets/f2ea1ef1-b500-4e47-88ba-a00d19f99595) 10 | 11 | --- 12 | 13 | ## 目录 📑 14 | 15 | - [功能](#features) 16 | - [使用的技术](#technologies-used) 17 | - [安装](#installation) 18 | - [许可证](#license) 19 | - [截图](#Screenshots) 20 | 21 | --- 22 | 23 | ## 功能 ✨ 24 | 25 | - **邮件处理**:自动捕获和存储收到的邮件。 26 | - **验证码提取**:利用 AI 从邮件中提取验证码、链接和组织名称。 27 | - **安全前端**:提供受 Basic Access Authentication 保护的网页界面,用于查看提取的验证码。 28 | - **实时通知**:当提取到新的验证码时,可选通过 Bark 发送通知。 29 | - **数据库集成**:将原始和处理过的邮件数据存储在 D1Database 中。 30 | 31 | --- 32 | 33 | ## 使用的技术 🛠️ 34 | 35 | - **Cloudflare Workers**: 无服务器平台,用于处理邮件处理和Web请求。 36 | - **Cloudflare D1**: Cloudflare的无服务器SQL数据库,用于存储邮件数据。 37 | - **TypeScript**: 强类型编程语言,确保代码的稳健性和可维护性。 38 | - **AI 提示词优化**: 定制的提示确保从多种邮件格式中精确提取标题、代码和主题。 39 | - **Google AI Studio API**: 利用优化的AI提示从邮件中提取相关信息,以提升数据的准确性和可靠性。 40 | - **Bark API**: 可选集成,用于发送实时通知。 41 | - **HTML/CSS**: 前端界面,具有响应式和现代化设计。 42 | - **Google Fonts**: 通过一致的排版增强Web界面的视觉吸引力。 43 | 44 | 45 | --- 46 | 47 | ## AI 提示词优化 🧠 48 | 49 | 为了确保从收到的电子邮件中准确提取信息,我们使用Google AI Studio API实施了AI提示优化。通过设计精确且具有上下文意识的提示,AI可以可靠地识别和提取关键要素,如: 50 | 51 | - **组织名称(标题)**: 识别发件人的组织或公司。 52 | - **验证码/链接**: 提取账户验证所需的代码、链接或密码。 53 | - **电子邮件主题**: 总结电子邮件的主要目的,例如“账户验证”或“密码重置”。 54 | 55 | **提示词如下:** 56 | ```plaintext 57 | Email content: [Insert raw email content here]. 58 | 59 | Please read the email and extract the following information: 60 | 1. Code/Link/Password from the email (if available). 61 | 2. Organization name (title) from which the email is sent. 62 | 3. A brief summary of the email's topic (e.g., 'account verification'). 63 | 64 | Format the output as JSON with this structure: 65 | { 66 | "title": "The organization or company that sent the verification code (e.g., 'Netflix')", 67 | "code": "The extracted verification code, link, or password (e.g., '123456' or 'https://example.com/verify?code=123456')", 68 | "topic": "A brief summary of the email's topic (e.g., 'account verification')", 69 | "codeExist": 1 70 | } 71 | 72 | If both a code and a link are present, include both in the 'code' field like this: 73 | "code": "code, link" 74 | 75 | If there is no code, clickable link, or this is an advertisement email, return: 76 | { 77 | "codeExist": 0 78 | } 79 | 80 | ``` 81 | 82 | --- 83 | 84 | ## 安装 ⚙️ 85 | 0. **先决条件** 86 | 87 | - 创建一个 [Google AI Studio API](https://aistudio.google.com/) 88 | 89 | - 在你的 [Cloudflare](https://dash.cloudflare.com/) 账户上绑定一个域名 90 | 91 | - 获取你的Cloudflare 账户 ID, 可在 [Cloudflare API Tokens](https://dash.cloudflare.com/profile/api-tokens) 中找到 92 | 93 | - 获取你的 Cloudflare API Token,可在 [Cloudflare API Tokens](https://dash.cloudflare.com/profile/api-tokens) 中找到 94 | 95 | - (可选)下载[Bark App](https://bark.day.app/),在App中获得一个Bark Token 96 | 97 | 1. **使用 Github Pages 进行安装** 98 | 99 | 1. **创建 D1 数据库** 100 | 101 | 1. 进入 [Cloudflare 仪表盘](https://dash.cloudflare.com/) -> `Workers & Pages` -> `D1 SQL Database` -> `Create` 102 | 103 | 2. 输入名称 `inbox-d1` 并点击 `Create` 104 | 105 | 3. 创建 `inbox-d1` 后,点击进入并找到 `Console` 106 | 107 | 4. 在控制台中执行 [db/schema.sql](https://github.com/TooonyChen/AuthInbox/blob/main/db/schema.sql) 中的 SQL 命令,直接复制、粘贴并执行它。 108 | 109 | 5. 复制 `database_id` 和 `database_name`,用于下一步配置 `TOML` 文件时使用 110 | 111 | 2. **部署 Cloudflare Worker** 112 | 113 | [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/TooonyChen/AuthInbox) 114 | 115 | 1. 点击上方按钮 fork 此仓库,或直接 fork 此仓库。 116 | 117 | 2. 打开你 fork 的仓库,找到 `Actions` 页面,找到 `Deploy Auth Inbox to Cloudflare Workers`,并点击 `enable workflow` 激活 workflow。 118 | 119 | 3. 然后,在仓库页面中,导航到 `Settings` -> `Secrets and variables` -> `Actions` -> `Repository secrets`,并添加以下 secrets: 120 | - `CLOUDFLARE_ACCOUNT_ID`: Cloudflare 账户 ID。 121 | - `CLOUDFLARE_API_TOKEN`: Cloudflare API Token。 122 | - `TOML`: 配置文件,参考 [带有注释的wrangler.toml](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example)。**添加至secrets时,请使用[不带注释的版本](https://github.com/TooonyChen/AuthInbox/blob/main/wrangler.toml.example.clear)来避免奇怪的报错。** 123 | 124 | 4. 返回你仓库的 `Actions` 页面,找到 `Deploy Auth Inbox to Cloudflare Workers`,并按 `Run workflow` 来部署 worker。如果没找到 `Run workflow` 按钮,请你随便修改一下repo中的`readme.md`文件,让Github Actions自动运行。 125 | 126 | 5. 部署成功后,你可以在 `Deploy Auth Inbox to Cloudflare Workers` 的 workflow 日志中找到你的 worker URL。 127 | 128 | 6. 在 workflow 日志页面的右上角找到 `delete all logs` 来删除日志,删除它来避免数据外泄。 129 | 130 | 7. 完成!✅ 请前往第三步:设置邮件转发。 131 | 132 | 2. **使用 Wrangler 命令行部署到 Cloudflare Workers** 133 | 134 | 1. **初始化** 135 | 136 | ```bash 137 | npm install wrangler -g # 安装 wrangler 138 | git clone https://github.com/TooonyChen/AuthInbox.git # 克隆仓库 139 | cd AuthInbox # 切换目录 140 | npm install # 安装依赖 141 | ``` 142 | 143 | 2. **创建 d1 数据库** 144 | 145 | 当你第一次执行 [Wrangler](https://developers.cloudflare.com/workers/wrangler/get-started/) 登录命令时,系统会提示你登录。按提示操作即可。 146 | 147 | ```bash 148 | npx wrangler d1 create inbox-d1 # 创建名为 'inbox-d1' 的 d1 数据库 149 | npx wrangler d1 execute inbox-d1 --remote --file=./db/schema.sql # 执行 schema.sql 文件 150 | ``` 151 | 你将会看到如下结果: 152 | ```bash 153 | ✅ Successfully created DB 'inbox-d1' 154 | 155 | [[d1_databases]] 156 | binding = "DB" # 在你的 Worker 中通过 env.DB 访问 157 | database_name = "inbox-d1" 158 | database_id = "<你的数据库的唯一ID>" 159 | ``` 160 | 请从终端复制结果,你将在下一步中使用它们。 161 | 162 | 3. **配置环境变量** 163 | 164 | 使用项目根目录下的 `wrangler.toml` 文件,并添加所需的环境变量: 165 | 166 | ```toml 167 | name = "auth-inbox" 168 | type = "typescript" 169 | 170 | [vars] 171 | UseBark = 'true' # 设置为 'true' 启用 Bark,设置为 'false' 禁用 172 | barkUrl = "https://api.day.app" 173 | barkTokens = "[token1, token2]" # 填写你 iOS 设备上的 Bark tokens,可从 https://bark.day.app/ 下载应用获取,可以填写多个。如果你只想用一个,那么填写 '[token1]' 174 | FrontEndAdminID = "admin" # 你的登录 ID 175 | FrontEndAdminPassword = "password" # 你的登录密码 176 | GoogleAPIKey = "xxxxxxxxxxx" # 你的 Google API key,如果没有可以前往 https://aistudio.google.com/ 生成一个 177 | 178 | [[d1_databases]] # 从步骤 2 的终端结果中复制这些行。 179 | binding = "DB" 180 | database_name = "inbox-d1" # 从步骤 2 中复制 181 | database_id = "<你的数据库的唯一ID>" # 从步骤 2 中复制 182 | ``` 183 | 184 | 4. **部署你的 worker** 🌐 185 | 186 | 部署你的 Worker 以使项目在互联网上可访问。运行以下命令: 187 | ```bash 188 | npx wrangler deploy 189 | ``` 190 | 你将看到如下输出: 191 | ``` 192 | output: https://auth-inbox.<你的子域名>.workers.dev 193 | ``` 194 | 你现在可以访问该 URL 来查看你部署的 Auth Inbox 的邮件面板。 195 | 196 | 3. **设置邮件转发** ✉️ 197 | 198 | 前往 [Cloudflare Dashboard](https://dash.cloudflare.com/) -> `Websites` -> `<你的域名>` -> `Email` -> `Email-Routing` -> `Routing Rules` 199 | 200 | 如果你想使用“接收所有地址”: 201 | ![image](https://github.com/user-attachments/assets/53e5a939-6b03-4ca6-826a-7a5f02f361ac) 202 | 203 | 如果你想使用“自定义地址”: 204 | ![image](https://github.com/user-attachments/assets/b0d0ab94-c2ad-4870-ac08-d53e64b2c880) 205 | 206 | 4. **完成!** ✅ 207 | 208 | 现在你可以访问你的新部署的 Auth Inbox URL,查看电子邮件结果。 209 | 210 | --- 211 | 212 | ## 许可证 📜 213 | 214 | 本项目基于 [MIT License](LICENSE) 许可证。 215 | 216 | --- 217 | 218 | ## 截图 📸 219 | 220 | ![image](https://github.com/user-attachments/assets/41db550c-8340-4315-ba87-85330abc5dfb) 221 | 222 | 223 | --- 224 | 225 | ## 鸣谢 🙏 226 | 227 | - 感谢 **Cloudflare Workers** 提供强大的无服务器平台。 228 | - 感谢 **Google Gemini AI** 提供智能的邮件内容提取功能。 229 | - 感谢 **Bark** 提供实时通知能力。 230 | - 感谢 **开源社区** 为像 Auth Inbox 这样的项目提供灵感和支持。 231 | - 感谢 **ChatGPT** 协助我写代码 232 | 233 | --- 234 | ## TODO 📝 235 | 236 | - [x] **Github Pages 部署**:通过 Github Actions 自动部署到 Cloudflare Workers。 237 | - [ ] **正则表达式**:使用正则表达式替代 Google Gemini AI 以保护隐私,并将使用 AI 作为一个可选功能。 238 | - [ ] **多用户支持**:增加管理多用户的功能,以提高灵活性并扩展使用范围。 239 | - [ ] **增强前端设计**:改进网页界面的UI/UX设计,使其更加现代化和用户友好。 240 | - [ ] **API**: 添加API接口。 241 | - [ ] **发送邮件**:添加发送邮件功能。 242 | - [ ] **更多通知方式**:支持更多通知方式,如邮件、Slack等。 243 | 244 | -------------------------------------------------------------------------------- /db/schema.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS raw_mails ( 2 | id INTEGER PRIMARY KEY, 3 | message_id TEXT UNIQUE, 4 | from_addr TEXT, 5 | to_addr TEXT, 6 | subject TEXT, 7 | raw TEXT, 8 | created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 9 | processed INTEGER DEFAULT 0 10 | ); 11 | 12 | CREATE TABLE IF NOT EXISTS code_mails ( 13 | id INTEGER PRIMARY KEY, 14 | message_id TEXT UNIQUE, 15 | from_addr TEXT, 16 | from_org TEXT, 17 | to_addr TEXT, 18 | topic TEXT, 19 | code TEXT, 20 | expires_at DATETIME, 21 | created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 22 | FOREIGN KEY (message_id) REFERENCES raw_mails(message_id) 23 | ); 24 | 25 | CREATE INDEX idx_raw_message_id ON raw_mails (message_id); 26 | CREATE INDEX idx_code_message_id ON code_mails (message_id); 27 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auth-inbox", 3 | "version": "0.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "auth-inbox", 9 | "version": "0.0.0", 10 | "devDependencies": { 11 | "@cloudflare/vitest-pool-workers": "^0.5.2", 12 | "@cloudflare/workers-types": "^4.20241004.0", 13 | "typescript": "^5.5.2", 14 | "vitest": "2.0.5", 15 | "wrangler": "^3.60.3" 16 | } 17 | }, 18 | "node_modules/@ampproject/remapping": { 19 | "version": "2.3.0", 20 | "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", 21 | "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", 22 | "dev": true, 23 | "dependencies": { 24 | "@jridgewell/gen-mapping": "^0.3.5", 25 | "@jridgewell/trace-mapping": "^0.3.24" 26 | }, 27 | "engines": { 28 | "node": ">=6.0.0" 29 | } 30 | }, 31 | "node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping": { 32 | "version": "0.3.25", 33 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 34 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 35 | "dev": true, 36 | "dependencies": { 37 | "@jridgewell/resolve-uri": "^3.1.0", 38 | "@jridgewell/sourcemap-codec": "^1.4.14" 39 | } 40 | }, 41 | "node_modules/@cloudflare/kv-asset-handler": { 42 | "version": "0.3.4", 43 | "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.3.4.tgz", 44 | "integrity": "sha512-YLPHc8yASwjNkmcDMQMY35yiWjoKAKnhUbPRszBRS0YgH+IXtsMp61j+yTcnCE3oO2DgP0U3iejLC8FTtKDC8Q==", 45 | "dev": true, 46 | "dependencies": { 47 | "mime": "^3.0.0" 48 | }, 49 | "engines": { 50 | "node": ">=16.13" 51 | } 52 | }, 53 | "node_modules/@cloudflare/vitest-pool-workers": { 54 | "version": "0.5.14", 55 | "resolved": "https://registry.npmjs.org/@cloudflare/vitest-pool-workers/-/vitest-pool-workers-0.5.14.tgz", 56 | "integrity": "sha512-5uGiWfHSU95l8fp7rX7RqdwznMmGmO65nGfmMb8zhoZhMRykSccJwia9aVe2gsIiG+NLo1J0XiFoj6LVcMWDpQ==", 57 | "dev": true, 58 | "dependencies": { 59 | "birpc": "0.2.14", 60 | "cjs-module-lexer": "^1.2.3", 61 | "devalue": "^4.3.0", 62 | "esbuild": "0.17.19", 63 | "miniflare": "3.20240925.0", 64 | "semver": "^7.5.1", 65 | "wrangler": "3.80.0", 66 | "zod": "^3.22.3" 67 | }, 68 | "peerDependencies": { 69 | "@vitest/runner": "2.0.x - 2.1.x", 70 | "@vitest/snapshot": "2.0.x - 2.1.x", 71 | "vitest": "2.0.x - 2.1.x" 72 | } 73 | }, 74 | "node_modules/@cloudflare/workerd-darwin-64": { 75 | "version": "1.20240925.0", 76 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20240925.0.tgz", 77 | "integrity": "sha512-KdLnSXuzB65CbqZPm+qYzk+zkQ1tUNPaaRGYVd/jPYAxwwtfTUQdQ+ahDPwVVs2tmQELKy7ZjQjf2apqSWUfjw==", 78 | "cpu": [ 79 | "x64" 80 | ], 81 | "dev": true, 82 | "optional": true, 83 | "os": [ 84 | "darwin" 85 | ], 86 | "engines": { 87 | "node": ">=16" 88 | } 89 | }, 90 | "node_modules/@cloudflare/workerd-darwin-arm64": { 91 | "version": "1.20240925.0", 92 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20240925.0.tgz", 93 | "integrity": "sha512-MiQ6uUmCXjsXgWNV+Ock2tp2/tYqNJGzjuaH6jFioeRF+//mz7Tv7J7EczOL4zq+TH8QFOh0/PUsLyazIWVGng==", 94 | "cpu": [ 95 | "arm64" 96 | ], 97 | "dev": true, 98 | "optional": true, 99 | "os": [ 100 | "darwin" 101 | ], 102 | "engines": { 103 | "node": ">=16" 104 | } 105 | }, 106 | "node_modules/@cloudflare/workerd-linux-64": { 107 | "version": "1.20240925.0", 108 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20240925.0.tgz", 109 | "integrity": "sha512-Rjix8jsJMfsInmq3Hm3fmiRQ+rwzuWRPV1pg/OWhMSfNP7Qp2RCU+RGkhgeR9Z5eNAje0Sn2BMrFq4RvF9/yRA==", 110 | "cpu": [ 111 | "x64" 112 | ], 113 | "dev": true, 114 | "optional": true, 115 | "os": [ 116 | "linux" 117 | ], 118 | "engines": { 119 | "node": ">=16" 120 | } 121 | }, 122 | "node_modules/@cloudflare/workerd-linux-arm64": { 123 | "version": "1.20240925.0", 124 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20240925.0.tgz", 125 | "integrity": "sha512-VYIPeMHQRtbwQoIjUwS/zULlywPxyDvo46XkTpIW5MScEChfqHvAYviQ7TzYGx6Q+gmZmN+DUB2KOMx+MEpCxA==", 126 | "cpu": [ 127 | "arm64" 128 | ], 129 | "dev": true, 130 | "optional": true, 131 | "os": [ 132 | "linux" 133 | ], 134 | "engines": { 135 | "node": ">=16" 136 | } 137 | }, 138 | "node_modules/@cloudflare/workerd-windows-64": { 139 | "version": "1.20240925.0", 140 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20240925.0.tgz", 141 | "integrity": "sha512-C8peGvaU5R51bIySi1VbyfRgwNSSRknqoFSnSbSBI3uTN3THTB3UnmRKy7GXJDmyjgXuT9Pcs1IgaWNubLtNtw==", 142 | "cpu": [ 143 | "x64" 144 | ], 145 | "dev": true, 146 | "optional": true, 147 | "os": [ 148 | "win32" 149 | ], 150 | "engines": { 151 | "node": ">=16" 152 | } 153 | }, 154 | "node_modules/@cloudflare/workers-shared": { 155 | "version": "0.5.4", 156 | "resolved": "https://registry.npmjs.org/@cloudflare/workers-shared/-/workers-shared-0.5.4.tgz", 157 | "integrity": "sha512-PNL/0TjKRdUHa1kwgVdqUNJVZ9ez4kacsi8omz+gv859EvJmsVuGiMAClY2YfJnC9LVKhKCcjqmFgKNXG9/IXA==", 158 | "dev": true, 159 | "dependencies": { 160 | "mime": "^3.0.0", 161 | "zod": "^3.22.3" 162 | }, 163 | "engines": { 164 | "node": ">=16.7.0" 165 | } 166 | }, 167 | "node_modules/@cloudflare/workers-types": { 168 | "version": "4.20241004.0", 169 | "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20241004.0.tgz", 170 | "integrity": "sha512-3LrPvtecs4umknOF1bTPNLHUG/ZjeSE6PYBQ/tbO7lwaVhjZTaTugiaCny2byrZupBlVNuubQVktcAgMfw0C1A==", 171 | "dev": true 172 | }, 173 | "node_modules/@cspotcode/source-map-support": { 174 | "version": "0.8.1", 175 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 176 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 177 | "dev": true, 178 | "dependencies": { 179 | "@jridgewell/trace-mapping": "0.3.9" 180 | }, 181 | "engines": { 182 | "node": ">=12" 183 | } 184 | }, 185 | "node_modules/@esbuild-plugins/node-globals-polyfill": { 186 | "version": "0.2.3", 187 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-globals-polyfill/-/node-globals-polyfill-0.2.3.tgz", 188 | "integrity": "sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==", 189 | "dev": true, 190 | "peerDependencies": { 191 | "esbuild": "*" 192 | } 193 | }, 194 | "node_modules/@esbuild-plugins/node-modules-polyfill": { 195 | "version": "0.2.2", 196 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-modules-polyfill/-/node-modules-polyfill-0.2.2.tgz", 197 | "integrity": "sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==", 198 | "dev": true, 199 | "dependencies": { 200 | "escape-string-regexp": "^4.0.0", 201 | "rollup-plugin-node-polyfills": "^0.2.1" 202 | }, 203 | "peerDependencies": { 204 | "esbuild": "*" 205 | } 206 | }, 207 | "node_modules/@esbuild/aix-ppc64": { 208 | "version": "0.21.5", 209 | "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", 210 | "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", 211 | "cpu": [ 212 | "ppc64" 213 | ], 214 | "dev": true, 215 | "optional": true, 216 | "os": [ 217 | "aix" 218 | ], 219 | "engines": { 220 | "node": ">=12" 221 | } 222 | }, 223 | "node_modules/@esbuild/android-arm": { 224 | "version": "0.17.19", 225 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", 226 | "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", 227 | "cpu": [ 228 | "arm" 229 | ], 230 | "dev": true, 231 | "optional": true, 232 | "os": [ 233 | "android" 234 | ], 235 | "engines": { 236 | "node": ">=12" 237 | } 238 | }, 239 | "node_modules/@esbuild/android-arm64": { 240 | "version": "0.17.19", 241 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", 242 | "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", 243 | "cpu": [ 244 | "arm64" 245 | ], 246 | "dev": true, 247 | "optional": true, 248 | "os": [ 249 | "android" 250 | ], 251 | "engines": { 252 | "node": ">=12" 253 | } 254 | }, 255 | "node_modules/@esbuild/android-x64": { 256 | "version": "0.17.19", 257 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", 258 | "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", 259 | "cpu": [ 260 | "x64" 261 | ], 262 | "dev": true, 263 | "optional": true, 264 | "os": [ 265 | "android" 266 | ], 267 | "engines": { 268 | "node": ">=12" 269 | } 270 | }, 271 | "node_modules/@esbuild/darwin-arm64": { 272 | "version": "0.17.19", 273 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", 274 | "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", 275 | "cpu": [ 276 | "arm64" 277 | ], 278 | "dev": true, 279 | "optional": true, 280 | "os": [ 281 | "darwin" 282 | ], 283 | "engines": { 284 | "node": ">=12" 285 | } 286 | }, 287 | "node_modules/@esbuild/darwin-x64": { 288 | "version": "0.17.19", 289 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", 290 | "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", 291 | "cpu": [ 292 | "x64" 293 | ], 294 | "dev": true, 295 | "optional": true, 296 | "os": [ 297 | "darwin" 298 | ], 299 | "engines": { 300 | "node": ">=12" 301 | } 302 | }, 303 | "node_modules/@esbuild/freebsd-arm64": { 304 | "version": "0.17.19", 305 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", 306 | "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", 307 | "cpu": [ 308 | "arm64" 309 | ], 310 | "dev": true, 311 | "optional": true, 312 | "os": [ 313 | "freebsd" 314 | ], 315 | "engines": { 316 | "node": ">=12" 317 | } 318 | }, 319 | "node_modules/@esbuild/freebsd-x64": { 320 | "version": "0.17.19", 321 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", 322 | "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", 323 | "cpu": [ 324 | "x64" 325 | ], 326 | "dev": true, 327 | "optional": true, 328 | "os": [ 329 | "freebsd" 330 | ], 331 | "engines": { 332 | "node": ">=12" 333 | } 334 | }, 335 | "node_modules/@esbuild/linux-arm": { 336 | "version": "0.17.19", 337 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", 338 | "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", 339 | "cpu": [ 340 | "arm" 341 | ], 342 | "dev": true, 343 | "optional": true, 344 | "os": [ 345 | "linux" 346 | ], 347 | "engines": { 348 | "node": ">=12" 349 | } 350 | }, 351 | "node_modules/@esbuild/linux-arm64": { 352 | "version": "0.17.19", 353 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", 354 | "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", 355 | "cpu": [ 356 | "arm64" 357 | ], 358 | "dev": true, 359 | "optional": true, 360 | "os": [ 361 | "linux" 362 | ], 363 | "engines": { 364 | "node": ">=12" 365 | } 366 | }, 367 | "node_modules/@esbuild/linux-ia32": { 368 | "version": "0.17.19", 369 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", 370 | "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", 371 | "cpu": [ 372 | "ia32" 373 | ], 374 | "dev": true, 375 | "optional": true, 376 | "os": [ 377 | "linux" 378 | ], 379 | "engines": { 380 | "node": ">=12" 381 | } 382 | }, 383 | "node_modules/@esbuild/linux-loong64": { 384 | "version": "0.17.19", 385 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", 386 | "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", 387 | "cpu": [ 388 | "loong64" 389 | ], 390 | "dev": true, 391 | "optional": true, 392 | "os": [ 393 | "linux" 394 | ], 395 | "engines": { 396 | "node": ">=12" 397 | } 398 | }, 399 | "node_modules/@esbuild/linux-mips64el": { 400 | "version": "0.17.19", 401 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", 402 | "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", 403 | "cpu": [ 404 | "mips64el" 405 | ], 406 | "dev": true, 407 | "optional": true, 408 | "os": [ 409 | "linux" 410 | ], 411 | "engines": { 412 | "node": ">=12" 413 | } 414 | }, 415 | "node_modules/@esbuild/linux-ppc64": { 416 | "version": "0.17.19", 417 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", 418 | "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", 419 | "cpu": [ 420 | "ppc64" 421 | ], 422 | "dev": true, 423 | "optional": true, 424 | "os": [ 425 | "linux" 426 | ], 427 | "engines": { 428 | "node": ">=12" 429 | } 430 | }, 431 | "node_modules/@esbuild/linux-riscv64": { 432 | "version": "0.17.19", 433 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", 434 | "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", 435 | "cpu": [ 436 | "riscv64" 437 | ], 438 | "dev": true, 439 | "optional": true, 440 | "os": [ 441 | "linux" 442 | ], 443 | "engines": { 444 | "node": ">=12" 445 | } 446 | }, 447 | "node_modules/@esbuild/linux-s390x": { 448 | "version": "0.17.19", 449 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", 450 | "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", 451 | "cpu": [ 452 | "s390x" 453 | ], 454 | "dev": true, 455 | "optional": true, 456 | "os": [ 457 | "linux" 458 | ], 459 | "engines": { 460 | "node": ">=12" 461 | } 462 | }, 463 | "node_modules/@esbuild/linux-x64": { 464 | "version": "0.17.19", 465 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", 466 | "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", 467 | "cpu": [ 468 | "x64" 469 | ], 470 | "dev": true, 471 | "optional": true, 472 | "os": [ 473 | "linux" 474 | ], 475 | "engines": { 476 | "node": ">=12" 477 | } 478 | }, 479 | "node_modules/@esbuild/netbsd-x64": { 480 | "version": "0.17.19", 481 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", 482 | "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", 483 | "cpu": [ 484 | "x64" 485 | ], 486 | "dev": true, 487 | "optional": true, 488 | "os": [ 489 | "netbsd" 490 | ], 491 | "engines": { 492 | "node": ">=12" 493 | } 494 | }, 495 | "node_modules/@esbuild/openbsd-x64": { 496 | "version": "0.17.19", 497 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", 498 | "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", 499 | "cpu": [ 500 | "x64" 501 | ], 502 | "dev": true, 503 | "optional": true, 504 | "os": [ 505 | "openbsd" 506 | ], 507 | "engines": { 508 | "node": ">=12" 509 | } 510 | }, 511 | "node_modules/@esbuild/sunos-x64": { 512 | "version": "0.17.19", 513 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", 514 | "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", 515 | "cpu": [ 516 | "x64" 517 | ], 518 | "dev": true, 519 | "optional": true, 520 | "os": [ 521 | "sunos" 522 | ], 523 | "engines": { 524 | "node": ">=12" 525 | } 526 | }, 527 | "node_modules/@esbuild/win32-arm64": { 528 | "version": "0.17.19", 529 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", 530 | "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", 531 | "cpu": [ 532 | "arm64" 533 | ], 534 | "dev": true, 535 | "optional": true, 536 | "os": [ 537 | "win32" 538 | ], 539 | "engines": { 540 | "node": ">=12" 541 | } 542 | }, 543 | "node_modules/@esbuild/win32-ia32": { 544 | "version": "0.17.19", 545 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", 546 | "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", 547 | "cpu": [ 548 | "ia32" 549 | ], 550 | "dev": true, 551 | "optional": true, 552 | "os": [ 553 | "win32" 554 | ], 555 | "engines": { 556 | "node": ">=12" 557 | } 558 | }, 559 | "node_modules/@esbuild/win32-x64": { 560 | "version": "0.17.19", 561 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", 562 | "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", 563 | "cpu": [ 564 | "x64" 565 | ], 566 | "dev": true, 567 | "optional": true, 568 | "os": [ 569 | "win32" 570 | ], 571 | "engines": { 572 | "node": ">=12" 573 | } 574 | }, 575 | "node_modules/@fastify/busboy": { 576 | "version": "2.1.1", 577 | "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", 578 | "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", 579 | "dev": true, 580 | "engines": { 581 | "node": ">=14" 582 | } 583 | }, 584 | "node_modules/@jridgewell/gen-mapping": { 585 | "version": "0.3.5", 586 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", 587 | "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", 588 | "dev": true, 589 | "dependencies": { 590 | "@jridgewell/set-array": "^1.2.1", 591 | "@jridgewell/sourcemap-codec": "^1.4.10", 592 | "@jridgewell/trace-mapping": "^0.3.24" 593 | }, 594 | "engines": { 595 | "node": ">=6.0.0" 596 | } 597 | }, 598 | "node_modules/@jridgewell/gen-mapping/node_modules/@jridgewell/trace-mapping": { 599 | "version": "0.3.25", 600 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 601 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 602 | "dev": true, 603 | "dependencies": { 604 | "@jridgewell/resolve-uri": "^3.1.0", 605 | "@jridgewell/sourcemap-codec": "^1.4.14" 606 | } 607 | }, 608 | "node_modules/@jridgewell/resolve-uri": { 609 | "version": "3.1.2", 610 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 611 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 612 | "dev": true, 613 | "engines": { 614 | "node": ">=6.0.0" 615 | } 616 | }, 617 | "node_modules/@jridgewell/set-array": { 618 | "version": "1.2.1", 619 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 620 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 621 | "dev": true, 622 | "engines": { 623 | "node": ">=6.0.0" 624 | } 625 | }, 626 | "node_modules/@jridgewell/sourcemap-codec": { 627 | "version": "1.5.0", 628 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 629 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 630 | "dev": true 631 | }, 632 | "node_modules/@jridgewell/trace-mapping": { 633 | "version": "0.3.9", 634 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 635 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 636 | "dev": true, 637 | "dependencies": { 638 | "@jridgewell/resolve-uri": "^3.0.3", 639 | "@jridgewell/sourcemap-codec": "^1.4.10" 640 | } 641 | }, 642 | "node_modules/@rollup/rollup-android-arm-eabi": { 643 | "version": "4.24.0", 644 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz", 645 | "integrity": "sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==", 646 | "cpu": [ 647 | "arm" 648 | ], 649 | "dev": true, 650 | "optional": true, 651 | "os": [ 652 | "android" 653 | ] 654 | }, 655 | "node_modules/@rollup/rollup-android-arm64": { 656 | "version": "4.24.0", 657 | "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz", 658 | "integrity": "sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==", 659 | "cpu": [ 660 | "arm64" 661 | ], 662 | "dev": true, 663 | "optional": true, 664 | "os": [ 665 | "android" 666 | ] 667 | }, 668 | "node_modules/@rollup/rollup-darwin-arm64": { 669 | "version": "4.24.0", 670 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz", 671 | "integrity": "sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==", 672 | "cpu": [ 673 | "arm64" 674 | ], 675 | "dev": true, 676 | "optional": true, 677 | "os": [ 678 | "darwin" 679 | ] 680 | }, 681 | "node_modules/@rollup/rollup-darwin-x64": { 682 | "version": "4.24.0", 683 | "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz", 684 | "integrity": "sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==", 685 | "cpu": [ 686 | "x64" 687 | ], 688 | "dev": true, 689 | "optional": true, 690 | "os": [ 691 | "darwin" 692 | ] 693 | }, 694 | "node_modules/@rollup/rollup-linux-arm-gnueabihf": { 695 | "version": "4.24.0", 696 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz", 697 | "integrity": "sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==", 698 | "cpu": [ 699 | "arm" 700 | ], 701 | "dev": true, 702 | "optional": true, 703 | "os": [ 704 | "linux" 705 | ] 706 | }, 707 | "node_modules/@rollup/rollup-linux-arm-musleabihf": { 708 | "version": "4.24.0", 709 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz", 710 | "integrity": "sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==", 711 | "cpu": [ 712 | "arm" 713 | ], 714 | "dev": true, 715 | "optional": true, 716 | "os": [ 717 | "linux" 718 | ] 719 | }, 720 | "node_modules/@rollup/rollup-linux-arm64-gnu": { 721 | "version": "4.24.0", 722 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz", 723 | "integrity": "sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==", 724 | "cpu": [ 725 | "arm64" 726 | ], 727 | "dev": true, 728 | "optional": true, 729 | "os": [ 730 | "linux" 731 | ] 732 | }, 733 | "node_modules/@rollup/rollup-linux-arm64-musl": { 734 | "version": "4.24.0", 735 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz", 736 | "integrity": "sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==", 737 | "cpu": [ 738 | "arm64" 739 | ], 740 | "dev": true, 741 | "optional": true, 742 | "os": [ 743 | "linux" 744 | ] 745 | }, 746 | "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { 747 | "version": "4.24.0", 748 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz", 749 | "integrity": "sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==", 750 | "cpu": [ 751 | "ppc64" 752 | ], 753 | "dev": true, 754 | "optional": true, 755 | "os": [ 756 | "linux" 757 | ] 758 | }, 759 | "node_modules/@rollup/rollup-linux-riscv64-gnu": { 760 | "version": "4.24.0", 761 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz", 762 | "integrity": "sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==", 763 | "cpu": [ 764 | "riscv64" 765 | ], 766 | "dev": true, 767 | "optional": true, 768 | "os": [ 769 | "linux" 770 | ] 771 | }, 772 | "node_modules/@rollup/rollup-linux-s390x-gnu": { 773 | "version": "4.24.0", 774 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz", 775 | "integrity": "sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==", 776 | "cpu": [ 777 | "s390x" 778 | ], 779 | "dev": true, 780 | "optional": true, 781 | "os": [ 782 | "linux" 783 | ] 784 | }, 785 | "node_modules/@rollup/rollup-linux-x64-gnu": { 786 | "version": "4.24.0", 787 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz", 788 | "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==", 789 | "cpu": [ 790 | "x64" 791 | ], 792 | "dev": true, 793 | "optional": true, 794 | "os": [ 795 | "linux" 796 | ] 797 | }, 798 | "node_modules/@rollup/rollup-linux-x64-musl": { 799 | "version": "4.24.0", 800 | "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz", 801 | "integrity": "sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==", 802 | "cpu": [ 803 | "x64" 804 | ], 805 | "dev": true, 806 | "optional": true, 807 | "os": [ 808 | "linux" 809 | ] 810 | }, 811 | "node_modules/@rollup/rollup-win32-arm64-msvc": { 812 | "version": "4.24.0", 813 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz", 814 | "integrity": "sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==", 815 | "cpu": [ 816 | "arm64" 817 | ], 818 | "dev": true, 819 | "optional": true, 820 | "os": [ 821 | "win32" 822 | ] 823 | }, 824 | "node_modules/@rollup/rollup-win32-ia32-msvc": { 825 | "version": "4.24.0", 826 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz", 827 | "integrity": "sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==", 828 | "cpu": [ 829 | "ia32" 830 | ], 831 | "dev": true, 832 | "optional": true, 833 | "os": [ 834 | "win32" 835 | ] 836 | }, 837 | "node_modules/@rollup/rollup-win32-x64-msvc": { 838 | "version": "4.24.0", 839 | "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz", 840 | "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==", 841 | "cpu": [ 842 | "x64" 843 | ], 844 | "dev": true, 845 | "optional": true, 846 | "os": [ 847 | "win32" 848 | ] 849 | }, 850 | "node_modules/@types/estree": { 851 | "version": "1.0.6", 852 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", 853 | "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", 854 | "dev": true 855 | }, 856 | "node_modules/@types/node": { 857 | "version": "22.7.4", 858 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.4.tgz", 859 | "integrity": "sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg==", 860 | "dev": true, 861 | "dependencies": { 862 | "undici-types": "~6.19.2" 863 | } 864 | }, 865 | "node_modules/@types/node-forge": { 866 | "version": "1.3.11", 867 | "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz", 868 | "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==", 869 | "dev": true, 870 | "dependencies": { 871 | "@types/node": "*" 872 | } 873 | }, 874 | "node_modules/@vitest/expect": { 875 | "version": "2.0.5", 876 | "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.5.tgz", 877 | "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==", 878 | "dev": true, 879 | "dependencies": { 880 | "@vitest/spy": "2.0.5", 881 | "@vitest/utils": "2.0.5", 882 | "chai": "^5.1.1", 883 | "tinyrainbow": "^1.2.0" 884 | }, 885 | "funding": { 886 | "url": "https://opencollective.com/vitest" 887 | } 888 | }, 889 | "node_modules/@vitest/expect/node_modules/@vitest/pretty-format": { 890 | "version": "2.0.5", 891 | "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", 892 | "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", 893 | "dev": true, 894 | "dependencies": { 895 | "tinyrainbow": "^1.2.0" 896 | }, 897 | "funding": { 898 | "url": "https://opencollective.com/vitest" 899 | } 900 | }, 901 | "node_modules/@vitest/expect/node_modules/@vitest/utils": { 902 | "version": "2.0.5", 903 | "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz", 904 | "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", 905 | "dev": true, 906 | "dependencies": { 907 | "@vitest/pretty-format": "2.0.5", 908 | "estree-walker": "^3.0.3", 909 | "loupe": "^3.1.1", 910 | "tinyrainbow": "^1.2.0" 911 | }, 912 | "funding": { 913 | "url": "https://opencollective.com/vitest" 914 | } 915 | }, 916 | "node_modules/@vitest/expect/node_modules/estree-walker": { 917 | "version": "3.0.3", 918 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", 919 | "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", 920 | "dev": true, 921 | "dependencies": { 922 | "@types/estree": "^1.0.0" 923 | } 924 | }, 925 | "node_modules/@vitest/pretty-format": { 926 | "version": "2.1.2", 927 | "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.2.tgz", 928 | "integrity": "sha512-FIoglbHrSUlOJPDGIrh2bjX1sNars5HbxlcsFKCtKzu4+5lpsRhOCVcuzp0fEhAGHkPZRIXVNzPcpSlkoZ3LuA==", 929 | "dev": true, 930 | "peer": true, 931 | "dependencies": { 932 | "tinyrainbow": "^1.2.0" 933 | }, 934 | "funding": { 935 | "url": "https://opencollective.com/vitest" 936 | } 937 | }, 938 | "node_modules/@vitest/runner": { 939 | "version": "2.1.2", 940 | "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.2.tgz", 941 | "integrity": "sha512-UCsPtvluHO3u7jdoONGjOSil+uON5SSvU9buQh3lP7GgUXHp78guN1wRmZDX4wGK6J10f9NUtP6pO+SFquoMlw==", 942 | "dev": true, 943 | "peer": true, 944 | "dependencies": { 945 | "@vitest/utils": "2.1.2", 946 | "pathe": "^1.1.2" 947 | }, 948 | "funding": { 949 | "url": "https://opencollective.com/vitest" 950 | } 951 | }, 952 | "node_modules/@vitest/snapshot": { 953 | "version": "2.1.2", 954 | "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.2.tgz", 955 | "integrity": "sha512-xtAeNsZ++aRIYIUsek7VHzry/9AcxeULlegBvsdLncLmNCR6tR8SRjn8BbDP4naxtccvzTqZ+L1ltZlRCfBZFA==", 956 | "dev": true, 957 | "peer": true, 958 | "dependencies": { 959 | "@vitest/pretty-format": "2.1.2", 960 | "magic-string": "^0.30.11", 961 | "pathe": "^1.1.2" 962 | }, 963 | "funding": { 964 | "url": "https://opencollective.com/vitest" 965 | } 966 | }, 967 | "node_modules/@vitest/spy": { 968 | "version": "2.0.5", 969 | "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.5.tgz", 970 | "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==", 971 | "dev": true, 972 | "dependencies": { 973 | "tinyspy": "^3.0.0" 974 | }, 975 | "funding": { 976 | "url": "https://opencollective.com/vitest" 977 | } 978 | }, 979 | "node_modules/@vitest/utils": { 980 | "version": "2.1.2", 981 | "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.2.tgz", 982 | "integrity": "sha512-zMO2KdYy6mx56btx9JvAqAZ6EyS3g49krMPPrgOp1yxGZiA93HumGk+bZ5jIZtOg5/VBYl5eBmGRQHqq4FG6uQ==", 983 | "dev": true, 984 | "peer": true, 985 | "dependencies": { 986 | "@vitest/pretty-format": "2.1.2", 987 | "loupe": "^3.1.1", 988 | "tinyrainbow": "^1.2.0" 989 | }, 990 | "funding": { 991 | "url": "https://opencollective.com/vitest" 992 | } 993 | }, 994 | "node_modules/acorn": { 995 | "version": "8.12.1", 996 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", 997 | "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", 998 | "dev": true, 999 | "bin": { 1000 | "acorn": "bin/acorn" 1001 | }, 1002 | "engines": { 1003 | "node": ">=0.4.0" 1004 | } 1005 | }, 1006 | "node_modules/acorn-walk": { 1007 | "version": "8.3.4", 1008 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", 1009 | "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", 1010 | "dev": true, 1011 | "dependencies": { 1012 | "acorn": "^8.11.0" 1013 | }, 1014 | "engines": { 1015 | "node": ">=0.4.0" 1016 | } 1017 | }, 1018 | "node_modules/anymatch": { 1019 | "version": "3.1.3", 1020 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 1021 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 1022 | "dev": true, 1023 | "dependencies": { 1024 | "normalize-path": "^3.0.0", 1025 | "picomatch": "^2.0.4" 1026 | }, 1027 | "engines": { 1028 | "node": ">= 8" 1029 | } 1030 | }, 1031 | "node_modules/as-table": { 1032 | "version": "1.0.55", 1033 | "resolved": "https://registry.npmjs.org/as-table/-/as-table-1.0.55.tgz", 1034 | "integrity": "sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==", 1035 | "dev": true, 1036 | "dependencies": { 1037 | "printable-characters": "^1.0.42" 1038 | } 1039 | }, 1040 | "node_modules/assertion-error": { 1041 | "version": "2.0.1", 1042 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", 1043 | "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", 1044 | "dev": true, 1045 | "engines": { 1046 | "node": ">=12" 1047 | } 1048 | }, 1049 | "node_modules/binary-extensions": { 1050 | "version": "2.3.0", 1051 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 1052 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 1053 | "dev": true, 1054 | "engines": { 1055 | "node": ">=8" 1056 | }, 1057 | "funding": { 1058 | "url": "https://github.com/sponsors/sindresorhus" 1059 | } 1060 | }, 1061 | "node_modules/birpc": { 1062 | "version": "0.2.14", 1063 | "resolved": "https://registry.npmjs.org/birpc/-/birpc-0.2.14.tgz", 1064 | "integrity": "sha512-37FHE8rqsYM5JEKCnXFyHpBCzvgHEExwVVTq+nUmloInU7l8ezD1TpOhKpS8oe1DTYFqEK27rFZVKG43oTqXRA==", 1065 | "dev": true, 1066 | "funding": { 1067 | "url": "https://github.com/sponsors/antfu" 1068 | } 1069 | }, 1070 | "node_modules/blake3-wasm": { 1071 | "version": "2.1.5", 1072 | "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz", 1073 | "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==", 1074 | "dev": true 1075 | }, 1076 | "node_modules/braces": { 1077 | "version": "3.0.3", 1078 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 1079 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 1080 | "dev": true, 1081 | "dependencies": { 1082 | "fill-range": "^7.1.1" 1083 | }, 1084 | "engines": { 1085 | "node": ">=8" 1086 | } 1087 | }, 1088 | "node_modules/cac": { 1089 | "version": "6.7.14", 1090 | "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", 1091 | "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", 1092 | "dev": true, 1093 | "engines": { 1094 | "node": ">=8" 1095 | } 1096 | }, 1097 | "node_modules/capnp-ts": { 1098 | "version": "0.7.0", 1099 | "resolved": "https://registry.npmjs.org/capnp-ts/-/capnp-ts-0.7.0.tgz", 1100 | "integrity": "sha512-XKxXAC3HVPv7r674zP0VC3RTXz+/JKhfyw94ljvF80yynK6VkTnqE3jMuN8b3dUVmmc43TjyxjW4KTsmB3c86g==", 1101 | "dev": true, 1102 | "dependencies": { 1103 | "debug": "^4.3.1", 1104 | "tslib": "^2.2.0" 1105 | } 1106 | }, 1107 | "node_modules/chai": { 1108 | "version": "5.1.1", 1109 | "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.1.tgz", 1110 | "integrity": "sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==", 1111 | "dev": true, 1112 | "dependencies": { 1113 | "assertion-error": "^2.0.1", 1114 | "check-error": "^2.1.1", 1115 | "deep-eql": "^5.0.1", 1116 | "loupe": "^3.1.0", 1117 | "pathval": "^2.0.0" 1118 | }, 1119 | "engines": { 1120 | "node": ">=12" 1121 | } 1122 | }, 1123 | "node_modules/check-error": { 1124 | "version": "2.1.1", 1125 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", 1126 | "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", 1127 | "dev": true, 1128 | "engines": { 1129 | "node": ">= 16" 1130 | } 1131 | }, 1132 | "node_modules/chokidar": { 1133 | "version": "3.6.0", 1134 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 1135 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 1136 | "dev": true, 1137 | "dependencies": { 1138 | "anymatch": "~3.1.2", 1139 | "braces": "~3.0.2", 1140 | "glob-parent": "~5.1.2", 1141 | "is-binary-path": "~2.1.0", 1142 | "is-glob": "~4.0.1", 1143 | "normalize-path": "~3.0.0", 1144 | "readdirp": "~3.6.0" 1145 | }, 1146 | "engines": { 1147 | "node": ">= 8.10.0" 1148 | }, 1149 | "funding": { 1150 | "url": "https://paulmillr.com/funding/" 1151 | }, 1152 | "optionalDependencies": { 1153 | "fsevents": "~2.3.2" 1154 | } 1155 | }, 1156 | "node_modules/cjs-module-lexer": { 1157 | "version": "1.4.1", 1158 | "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz", 1159 | "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==", 1160 | "dev": true 1161 | }, 1162 | "node_modules/cookie": { 1163 | "version": "0.7.2", 1164 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", 1165 | "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", 1166 | "dev": true, 1167 | "engines": { 1168 | "node": ">= 0.6" 1169 | } 1170 | }, 1171 | "node_modules/cross-spawn": { 1172 | "version": "7.0.3", 1173 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 1174 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 1175 | "dev": true, 1176 | "dependencies": { 1177 | "path-key": "^3.1.0", 1178 | "shebang-command": "^2.0.0", 1179 | "which": "^2.0.1" 1180 | }, 1181 | "engines": { 1182 | "node": ">= 8" 1183 | } 1184 | }, 1185 | "node_modules/data-uri-to-buffer": { 1186 | "version": "2.0.2", 1187 | "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz", 1188 | "integrity": "sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==", 1189 | "dev": true 1190 | }, 1191 | "node_modules/debug": { 1192 | "version": "4.3.7", 1193 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", 1194 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 1195 | "dev": true, 1196 | "dependencies": { 1197 | "ms": "^2.1.3" 1198 | }, 1199 | "engines": { 1200 | "node": ">=6.0" 1201 | }, 1202 | "peerDependenciesMeta": { 1203 | "supports-color": { 1204 | "optional": true 1205 | } 1206 | } 1207 | }, 1208 | "node_modules/deep-eql": { 1209 | "version": "5.0.2", 1210 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", 1211 | "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", 1212 | "dev": true, 1213 | "engines": { 1214 | "node": ">=6" 1215 | } 1216 | }, 1217 | "node_modules/defu": { 1218 | "version": "6.1.4", 1219 | "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", 1220 | "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", 1221 | "dev": true 1222 | }, 1223 | "node_modules/devalue": { 1224 | "version": "4.3.3", 1225 | "resolved": "https://registry.npmjs.org/devalue/-/devalue-4.3.3.tgz", 1226 | "integrity": "sha512-UH8EL6H2ifcY8TbD2QsxwCC/pr5xSwPvv85LrLXVihmHVC3T3YqTCIwnR5ak0yO1KYqlxrPVOA/JVZJYPy2ATg==", 1227 | "dev": true 1228 | }, 1229 | "node_modules/esbuild": { 1230 | "version": "0.17.19", 1231 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", 1232 | "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", 1233 | "dev": true, 1234 | "hasInstallScript": true, 1235 | "bin": { 1236 | "esbuild": "bin/esbuild" 1237 | }, 1238 | "engines": { 1239 | "node": ">=12" 1240 | }, 1241 | "optionalDependencies": { 1242 | "@esbuild/android-arm": "0.17.19", 1243 | "@esbuild/android-arm64": "0.17.19", 1244 | "@esbuild/android-x64": "0.17.19", 1245 | "@esbuild/darwin-arm64": "0.17.19", 1246 | "@esbuild/darwin-x64": "0.17.19", 1247 | "@esbuild/freebsd-arm64": "0.17.19", 1248 | "@esbuild/freebsd-x64": "0.17.19", 1249 | "@esbuild/linux-arm": "0.17.19", 1250 | "@esbuild/linux-arm64": "0.17.19", 1251 | "@esbuild/linux-ia32": "0.17.19", 1252 | "@esbuild/linux-loong64": "0.17.19", 1253 | "@esbuild/linux-mips64el": "0.17.19", 1254 | "@esbuild/linux-ppc64": "0.17.19", 1255 | "@esbuild/linux-riscv64": "0.17.19", 1256 | "@esbuild/linux-s390x": "0.17.19", 1257 | "@esbuild/linux-x64": "0.17.19", 1258 | "@esbuild/netbsd-x64": "0.17.19", 1259 | "@esbuild/openbsd-x64": "0.17.19", 1260 | "@esbuild/sunos-x64": "0.17.19", 1261 | "@esbuild/win32-arm64": "0.17.19", 1262 | "@esbuild/win32-ia32": "0.17.19", 1263 | "@esbuild/win32-x64": "0.17.19" 1264 | } 1265 | }, 1266 | "node_modules/escape-string-regexp": { 1267 | "version": "4.0.0", 1268 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1269 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1270 | "dev": true, 1271 | "engines": { 1272 | "node": ">=10" 1273 | }, 1274 | "funding": { 1275 | "url": "https://github.com/sponsors/sindresorhus" 1276 | } 1277 | }, 1278 | "node_modules/estree-walker": { 1279 | "version": "0.6.1", 1280 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", 1281 | "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", 1282 | "dev": true 1283 | }, 1284 | "node_modules/execa": { 1285 | "version": "8.0.1", 1286 | "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", 1287 | "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", 1288 | "dev": true, 1289 | "dependencies": { 1290 | "cross-spawn": "^7.0.3", 1291 | "get-stream": "^8.0.1", 1292 | "human-signals": "^5.0.0", 1293 | "is-stream": "^3.0.0", 1294 | "merge-stream": "^2.0.0", 1295 | "npm-run-path": "^5.1.0", 1296 | "onetime": "^6.0.0", 1297 | "signal-exit": "^4.1.0", 1298 | "strip-final-newline": "^3.0.0" 1299 | }, 1300 | "engines": { 1301 | "node": ">=16.17" 1302 | }, 1303 | "funding": { 1304 | "url": "https://github.com/sindresorhus/execa?sponsor=1" 1305 | } 1306 | }, 1307 | "node_modules/exit-hook": { 1308 | "version": "2.2.1", 1309 | "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz", 1310 | "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==", 1311 | "dev": true, 1312 | "engines": { 1313 | "node": ">=6" 1314 | }, 1315 | "funding": { 1316 | "url": "https://github.com/sponsors/sindresorhus" 1317 | } 1318 | }, 1319 | "node_modules/fill-range": { 1320 | "version": "7.1.1", 1321 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 1322 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1323 | "dev": true, 1324 | "dependencies": { 1325 | "to-regex-range": "^5.0.1" 1326 | }, 1327 | "engines": { 1328 | "node": ">=8" 1329 | } 1330 | }, 1331 | "node_modules/fsevents": { 1332 | "version": "2.3.3", 1333 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1334 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1335 | "dev": true, 1336 | "hasInstallScript": true, 1337 | "optional": true, 1338 | "os": [ 1339 | "darwin" 1340 | ], 1341 | "engines": { 1342 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1343 | } 1344 | }, 1345 | "node_modules/function-bind": { 1346 | "version": "1.1.2", 1347 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1348 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1349 | "dev": true, 1350 | "funding": { 1351 | "url": "https://github.com/sponsors/ljharb" 1352 | } 1353 | }, 1354 | "node_modules/get-func-name": { 1355 | "version": "2.0.2", 1356 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", 1357 | "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", 1358 | "dev": true, 1359 | "engines": { 1360 | "node": "*" 1361 | } 1362 | }, 1363 | "node_modules/get-source": { 1364 | "version": "2.0.12", 1365 | "resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz", 1366 | "integrity": "sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==", 1367 | "dev": true, 1368 | "dependencies": { 1369 | "data-uri-to-buffer": "^2.0.0", 1370 | "source-map": "^0.6.1" 1371 | } 1372 | }, 1373 | "node_modules/get-stream": { 1374 | "version": "8.0.1", 1375 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", 1376 | "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", 1377 | "dev": true, 1378 | "engines": { 1379 | "node": ">=16" 1380 | }, 1381 | "funding": { 1382 | "url": "https://github.com/sponsors/sindresorhus" 1383 | } 1384 | }, 1385 | "node_modules/glob-parent": { 1386 | "version": "5.1.2", 1387 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1388 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1389 | "dev": true, 1390 | "dependencies": { 1391 | "is-glob": "^4.0.1" 1392 | }, 1393 | "engines": { 1394 | "node": ">= 6" 1395 | } 1396 | }, 1397 | "node_modules/glob-to-regexp": { 1398 | "version": "0.4.1", 1399 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 1400 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", 1401 | "dev": true 1402 | }, 1403 | "node_modules/hasown": { 1404 | "version": "2.0.2", 1405 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1406 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1407 | "dev": true, 1408 | "dependencies": { 1409 | "function-bind": "^1.1.2" 1410 | }, 1411 | "engines": { 1412 | "node": ">= 0.4" 1413 | } 1414 | }, 1415 | "node_modules/human-signals": { 1416 | "version": "5.0.0", 1417 | "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", 1418 | "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", 1419 | "dev": true, 1420 | "engines": { 1421 | "node": ">=16.17.0" 1422 | } 1423 | }, 1424 | "node_modules/is-binary-path": { 1425 | "version": "2.1.0", 1426 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1427 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1428 | "dev": true, 1429 | "dependencies": { 1430 | "binary-extensions": "^2.0.0" 1431 | }, 1432 | "engines": { 1433 | "node": ">=8" 1434 | } 1435 | }, 1436 | "node_modules/is-core-module": { 1437 | "version": "2.15.1", 1438 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", 1439 | "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", 1440 | "dev": true, 1441 | "dependencies": { 1442 | "hasown": "^2.0.2" 1443 | }, 1444 | "engines": { 1445 | "node": ">= 0.4" 1446 | }, 1447 | "funding": { 1448 | "url": "https://github.com/sponsors/ljharb" 1449 | } 1450 | }, 1451 | "node_modules/is-extglob": { 1452 | "version": "2.1.1", 1453 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1454 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1455 | "dev": true, 1456 | "engines": { 1457 | "node": ">=0.10.0" 1458 | } 1459 | }, 1460 | "node_modules/is-glob": { 1461 | "version": "4.0.3", 1462 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1463 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1464 | "dev": true, 1465 | "dependencies": { 1466 | "is-extglob": "^2.1.1" 1467 | }, 1468 | "engines": { 1469 | "node": ">=0.10.0" 1470 | } 1471 | }, 1472 | "node_modules/is-number": { 1473 | "version": "7.0.0", 1474 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1475 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1476 | "dev": true, 1477 | "engines": { 1478 | "node": ">=0.12.0" 1479 | } 1480 | }, 1481 | "node_modules/is-stream": { 1482 | "version": "3.0.0", 1483 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", 1484 | "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", 1485 | "dev": true, 1486 | "engines": { 1487 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1488 | }, 1489 | "funding": { 1490 | "url": "https://github.com/sponsors/sindresorhus" 1491 | } 1492 | }, 1493 | "node_modules/isexe": { 1494 | "version": "2.0.0", 1495 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1496 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1497 | "dev": true 1498 | }, 1499 | "node_modules/loupe": { 1500 | "version": "3.1.1", 1501 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.1.tgz", 1502 | "integrity": "sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==", 1503 | "dev": true, 1504 | "dependencies": { 1505 | "get-func-name": "^2.0.1" 1506 | } 1507 | }, 1508 | "node_modules/magic-string": { 1509 | "version": "0.30.11", 1510 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.11.tgz", 1511 | "integrity": "sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==", 1512 | "dev": true, 1513 | "dependencies": { 1514 | "@jridgewell/sourcemap-codec": "^1.5.0" 1515 | } 1516 | }, 1517 | "node_modules/merge-stream": { 1518 | "version": "2.0.0", 1519 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", 1520 | "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", 1521 | "dev": true 1522 | }, 1523 | "node_modules/mime": { 1524 | "version": "3.0.0", 1525 | "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", 1526 | "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", 1527 | "dev": true, 1528 | "bin": { 1529 | "mime": "cli.js" 1530 | }, 1531 | "engines": { 1532 | "node": ">=10.0.0" 1533 | } 1534 | }, 1535 | "node_modules/mimic-fn": { 1536 | "version": "4.0.0", 1537 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", 1538 | "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", 1539 | "dev": true, 1540 | "engines": { 1541 | "node": ">=12" 1542 | }, 1543 | "funding": { 1544 | "url": "https://github.com/sponsors/sindresorhus" 1545 | } 1546 | }, 1547 | "node_modules/miniflare": { 1548 | "version": "3.20240925.0", 1549 | "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-3.20240925.0.tgz", 1550 | "integrity": "sha512-2LmQbKHf0n6ertUKhT+Iltixi53giqDH7P71+wCir3OnGyXIODqYwOECx1mSDNhYThpxM2dav8UdPn6SQiMoXw==", 1551 | "dev": true, 1552 | "dependencies": { 1553 | "@cspotcode/source-map-support": "0.8.1", 1554 | "acorn": "^8.8.0", 1555 | "acorn-walk": "^8.2.0", 1556 | "capnp-ts": "^0.7.0", 1557 | "exit-hook": "^2.2.1", 1558 | "glob-to-regexp": "^0.4.1", 1559 | "stoppable": "^1.1.0", 1560 | "undici": "^5.28.4", 1561 | "workerd": "1.20240925.0", 1562 | "ws": "^8.17.1", 1563 | "youch": "^3.2.2", 1564 | "zod": "^3.22.3" 1565 | }, 1566 | "bin": { 1567 | "miniflare": "bootstrap.js" 1568 | }, 1569 | "engines": { 1570 | "node": ">=16.13" 1571 | } 1572 | }, 1573 | "node_modules/ms": { 1574 | "version": "2.1.3", 1575 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1576 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1577 | "dev": true 1578 | }, 1579 | "node_modules/mustache": { 1580 | "version": "4.2.0", 1581 | "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", 1582 | "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", 1583 | "dev": true, 1584 | "bin": { 1585 | "mustache": "bin/mustache" 1586 | } 1587 | }, 1588 | "node_modules/nanoid": { 1589 | "version": "3.3.7", 1590 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", 1591 | "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", 1592 | "dev": true, 1593 | "funding": [ 1594 | { 1595 | "type": "github", 1596 | "url": "https://github.com/sponsors/ai" 1597 | } 1598 | ], 1599 | "bin": { 1600 | "nanoid": "bin/nanoid.cjs" 1601 | }, 1602 | "engines": { 1603 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1604 | } 1605 | }, 1606 | "node_modules/node-forge": { 1607 | "version": "1.3.1", 1608 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", 1609 | "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", 1610 | "dev": true, 1611 | "engines": { 1612 | "node": ">= 6.13.0" 1613 | } 1614 | }, 1615 | "node_modules/normalize-path": { 1616 | "version": "3.0.0", 1617 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1618 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1619 | "dev": true, 1620 | "engines": { 1621 | "node": ">=0.10.0" 1622 | } 1623 | }, 1624 | "node_modules/npm-run-path": { 1625 | "version": "5.3.0", 1626 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", 1627 | "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", 1628 | "dev": true, 1629 | "dependencies": { 1630 | "path-key": "^4.0.0" 1631 | }, 1632 | "engines": { 1633 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1634 | }, 1635 | "funding": { 1636 | "url": "https://github.com/sponsors/sindresorhus" 1637 | } 1638 | }, 1639 | "node_modules/npm-run-path/node_modules/path-key": { 1640 | "version": "4.0.0", 1641 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", 1642 | "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", 1643 | "dev": true, 1644 | "engines": { 1645 | "node": ">=12" 1646 | }, 1647 | "funding": { 1648 | "url": "https://github.com/sponsors/sindresorhus" 1649 | } 1650 | }, 1651 | "node_modules/ohash": { 1652 | "version": "1.1.4", 1653 | "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.4.tgz", 1654 | "integrity": "sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==", 1655 | "dev": true 1656 | }, 1657 | "node_modules/onetime": { 1658 | "version": "6.0.0", 1659 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", 1660 | "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", 1661 | "dev": true, 1662 | "dependencies": { 1663 | "mimic-fn": "^4.0.0" 1664 | }, 1665 | "engines": { 1666 | "node": ">=12" 1667 | }, 1668 | "funding": { 1669 | "url": "https://github.com/sponsors/sindresorhus" 1670 | } 1671 | }, 1672 | "node_modules/path-key": { 1673 | "version": "3.1.1", 1674 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1675 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1676 | "dev": true, 1677 | "engines": { 1678 | "node": ">=8" 1679 | } 1680 | }, 1681 | "node_modules/path-parse": { 1682 | "version": "1.0.7", 1683 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1684 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1685 | "dev": true 1686 | }, 1687 | "node_modules/path-to-regexp": { 1688 | "version": "6.3.0", 1689 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", 1690 | "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", 1691 | "dev": true 1692 | }, 1693 | "node_modules/pathe": { 1694 | "version": "1.1.2", 1695 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", 1696 | "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", 1697 | "dev": true 1698 | }, 1699 | "node_modules/pathval": { 1700 | "version": "2.0.0", 1701 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", 1702 | "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", 1703 | "dev": true, 1704 | "engines": { 1705 | "node": ">= 14.16" 1706 | } 1707 | }, 1708 | "node_modules/picocolors": { 1709 | "version": "1.1.0", 1710 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz", 1711 | "integrity": "sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==", 1712 | "dev": true 1713 | }, 1714 | "node_modules/picomatch": { 1715 | "version": "2.3.1", 1716 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1717 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1718 | "dev": true, 1719 | "engines": { 1720 | "node": ">=8.6" 1721 | }, 1722 | "funding": { 1723 | "url": "https://github.com/sponsors/jonschlinkert" 1724 | } 1725 | }, 1726 | "node_modules/postcss": { 1727 | "version": "8.4.47", 1728 | "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz", 1729 | "integrity": "sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ==", 1730 | "dev": true, 1731 | "funding": [ 1732 | { 1733 | "type": "opencollective", 1734 | "url": "https://opencollective.com/postcss/" 1735 | }, 1736 | { 1737 | "type": "tidelift", 1738 | "url": "https://tidelift.com/funding/github/npm/postcss" 1739 | }, 1740 | { 1741 | "type": "github", 1742 | "url": "https://github.com/sponsors/ai" 1743 | } 1744 | ], 1745 | "dependencies": { 1746 | "nanoid": "^3.3.7", 1747 | "picocolors": "^1.1.0", 1748 | "source-map-js": "^1.2.1" 1749 | }, 1750 | "engines": { 1751 | "node": "^10 || ^12 || >=14" 1752 | } 1753 | }, 1754 | "node_modules/printable-characters": { 1755 | "version": "1.0.42", 1756 | "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", 1757 | "integrity": "sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==", 1758 | "dev": true 1759 | }, 1760 | "node_modules/readdirp": { 1761 | "version": "3.6.0", 1762 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1763 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1764 | "dev": true, 1765 | "dependencies": { 1766 | "picomatch": "^2.2.1" 1767 | }, 1768 | "engines": { 1769 | "node": ">=8.10.0" 1770 | } 1771 | }, 1772 | "node_modules/resolve": { 1773 | "version": "1.22.8", 1774 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", 1775 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", 1776 | "dev": true, 1777 | "dependencies": { 1778 | "is-core-module": "^2.13.0", 1779 | "path-parse": "^1.0.7", 1780 | "supports-preserve-symlinks-flag": "^1.0.0" 1781 | }, 1782 | "bin": { 1783 | "resolve": "bin/resolve" 1784 | }, 1785 | "funding": { 1786 | "url": "https://github.com/sponsors/ljharb" 1787 | } 1788 | }, 1789 | "node_modules/resolve.exports": { 1790 | "version": "2.0.2", 1791 | "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", 1792 | "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", 1793 | "dev": true, 1794 | "engines": { 1795 | "node": ">=10" 1796 | } 1797 | }, 1798 | "node_modules/rollup": { 1799 | "version": "4.24.0", 1800 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz", 1801 | "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==", 1802 | "dev": true, 1803 | "dependencies": { 1804 | "@types/estree": "1.0.6" 1805 | }, 1806 | "bin": { 1807 | "rollup": "dist/bin/rollup" 1808 | }, 1809 | "engines": { 1810 | "node": ">=18.0.0", 1811 | "npm": ">=8.0.0" 1812 | }, 1813 | "optionalDependencies": { 1814 | "@rollup/rollup-android-arm-eabi": "4.24.0", 1815 | "@rollup/rollup-android-arm64": "4.24.0", 1816 | "@rollup/rollup-darwin-arm64": "4.24.0", 1817 | "@rollup/rollup-darwin-x64": "4.24.0", 1818 | "@rollup/rollup-linux-arm-gnueabihf": "4.24.0", 1819 | "@rollup/rollup-linux-arm-musleabihf": "4.24.0", 1820 | "@rollup/rollup-linux-arm64-gnu": "4.24.0", 1821 | "@rollup/rollup-linux-arm64-musl": "4.24.0", 1822 | "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0", 1823 | "@rollup/rollup-linux-riscv64-gnu": "4.24.0", 1824 | "@rollup/rollup-linux-s390x-gnu": "4.24.0", 1825 | "@rollup/rollup-linux-x64-gnu": "4.24.0", 1826 | "@rollup/rollup-linux-x64-musl": "4.24.0", 1827 | "@rollup/rollup-win32-arm64-msvc": "4.24.0", 1828 | "@rollup/rollup-win32-ia32-msvc": "4.24.0", 1829 | "@rollup/rollup-win32-x64-msvc": "4.24.0", 1830 | "fsevents": "~2.3.2" 1831 | } 1832 | }, 1833 | "node_modules/rollup-plugin-inject": { 1834 | "version": "3.0.2", 1835 | "resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz", 1836 | "integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==", 1837 | "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.", 1838 | "dev": true, 1839 | "dependencies": { 1840 | "estree-walker": "^0.6.1", 1841 | "magic-string": "^0.25.3", 1842 | "rollup-pluginutils": "^2.8.1" 1843 | } 1844 | }, 1845 | "node_modules/rollup-plugin-inject/node_modules/magic-string": { 1846 | "version": "0.25.9", 1847 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 1848 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 1849 | "dev": true, 1850 | "dependencies": { 1851 | "sourcemap-codec": "^1.4.8" 1852 | } 1853 | }, 1854 | "node_modules/rollup-plugin-node-polyfills": { 1855 | "version": "0.2.1", 1856 | "resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz", 1857 | "integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==", 1858 | "dev": true, 1859 | "dependencies": { 1860 | "rollup-plugin-inject": "^3.0.0" 1861 | } 1862 | }, 1863 | "node_modules/rollup-pluginutils": { 1864 | "version": "2.8.2", 1865 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", 1866 | "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", 1867 | "dev": true, 1868 | "dependencies": { 1869 | "estree-walker": "^0.6.1" 1870 | } 1871 | }, 1872 | "node_modules/selfsigned": { 1873 | "version": "2.4.1", 1874 | "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", 1875 | "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==", 1876 | "dev": true, 1877 | "dependencies": { 1878 | "@types/node-forge": "^1.3.0", 1879 | "node-forge": "^1" 1880 | }, 1881 | "engines": { 1882 | "node": ">=10" 1883 | } 1884 | }, 1885 | "node_modules/semver": { 1886 | "version": "7.6.3", 1887 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", 1888 | "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", 1889 | "dev": true, 1890 | "bin": { 1891 | "semver": "bin/semver.js" 1892 | }, 1893 | "engines": { 1894 | "node": ">=10" 1895 | } 1896 | }, 1897 | "node_modules/shebang-command": { 1898 | "version": "2.0.0", 1899 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1900 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1901 | "dev": true, 1902 | "dependencies": { 1903 | "shebang-regex": "^3.0.0" 1904 | }, 1905 | "engines": { 1906 | "node": ">=8" 1907 | } 1908 | }, 1909 | "node_modules/shebang-regex": { 1910 | "version": "3.0.0", 1911 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1912 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1913 | "dev": true, 1914 | "engines": { 1915 | "node": ">=8" 1916 | } 1917 | }, 1918 | "node_modules/siginfo": { 1919 | "version": "2.0.0", 1920 | "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", 1921 | "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", 1922 | "dev": true 1923 | }, 1924 | "node_modules/signal-exit": { 1925 | "version": "4.1.0", 1926 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 1927 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1928 | "dev": true, 1929 | "engines": { 1930 | "node": ">=14" 1931 | }, 1932 | "funding": { 1933 | "url": "https://github.com/sponsors/isaacs" 1934 | } 1935 | }, 1936 | "node_modules/source-map": { 1937 | "version": "0.6.1", 1938 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1939 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1940 | "dev": true, 1941 | "engines": { 1942 | "node": ">=0.10.0" 1943 | } 1944 | }, 1945 | "node_modules/source-map-js": { 1946 | "version": "1.2.1", 1947 | "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", 1948 | "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", 1949 | "dev": true, 1950 | "engines": { 1951 | "node": ">=0.10.0" 1952 | } 1953 | }, 1954 | "node_modules/sourcemap-codec": { 1955 | "version": "1.4.8", 1956 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1957 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", 1958 | "deprecated": "Please use @jridgewell/sourcemap-codec instead", 1959 | "dev": true 1960 | }, 1961 | "node_modules/stackback": { 1962 | "version": "0.0.2", 1963 | "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", 1964 | "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", 1965 | "dev": true 1966 | }, 1967 | "node_modules/stacktracey": { 1968 | "version": "2.1.8", 1969 | "resolved": "https://registry.npmjs.org/stacktracey/-/stacktracey-2.1.8.tgz", 1970 | "integrity": "sha512-Kpij9riA+UNg7TnphqjH7/CzctQ/owJGNbFkfEeve4Z4uxT5+JapVLFXcsurIfN34gnTWZNJ/f7NMG0E8JDzTw==", 1971 | "dev": true, 1972 | "dependencies": { 1973 | "as-table": "^1.0.36", 1974 | "get-source": "^2.0.12" 1975 | } 1976 | }, 1977 | "node_modules/std-env": { 1978 | "version": "3.7.0", 1979 | "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", 1980 | "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", 1981 | "dev": true 1982 | }, 1983 | "node_modules/stoppable": { 1984 | "version": "1.1.0", 1985 | "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", 1986 | "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", 1987 | "dev": true, 1988 | "engines": { 1989 | "node": ">=4", 1990 | "npm": ">=6" 1991 | } 1992 | }, 1993 | "node_modules/strip-final-newline": { 1994 | "version": "3.0.0", 1995 | "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", 1996 | "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", 1997 | "dev": true, 1998 | "engines": { 1999 | "node": ">=12" 2000 | }, 2001 | "funding": { 2002 | "url": "https://github.com/sponsors/sindresorhus" 2003 | } 2004 | }, 2005 | "node_modules/supports-preserve-symlinks-flag": { 2006 | "version": "1.0.0", 2007 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 2008 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 2009 | "dev": true, 2010 | "engines": { 2011 | "node": ">= 0.4" 2012 | }, 2013 | "funding": { 2014 | "url": "https://github.com/sponsors/ljharb" 2015 | } 2016 | }, 2017 | "node_modules/tinybench": { 2018 | "version": "2.9.0", 2019 | "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", 2020 | "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", 2021 | "dev": true 2022 | }, 2023 | "node_modules/tinypool": { 2024 | "version": "1.0.1", 2025 | "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.1.tgz", 2026 | "integrity": "sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==", 2027 | "dev": true, 2028 | "engines": { 2029 | "node": "^18.0.0 || >=20.0.0" 2030 | } 2031 | }, 2032 | "node_modules/tinyrainbow": { 2033 | "version": "1.2.0", 2034 | "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz", 2035 | "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==", 2036 | "dev": true, 2037 | "engines": { 2038 | "node": ">=14.0.0" 2039 | } 2040 | }, 2041 | "node_modules/tinyspy": { 2042 | "version": "3.0.2", 2043 | "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz", 2044 | "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==", 2045 | "dev": true, 2046 | "engines": { 2047 | "node": ">=14.0.0" 2048 | } 2049 | }, 2050 | "node_modules/to-regex-range": { 2051 | "version": "5.0.1", 2052 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2053 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2054 | "dev": true, 2055 | "dependencies": { 2056 | "is-number": "^7.0.0" 2057 | }, 2058 | "engines": { 2059 | "node": ">=8.0" 2060 | } 2061 | }, 2062 | "node_modules/tslib": { 2063 | "version": "2.7.0", 2064 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", 2065 | "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", 2066 | "dev": true 2067 | }, 2068 | "node_modules/typescript": { 2069 | "version": "5.6.2", 2070 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", 2071 | "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", 2072 | "dev": true, 2073 | "bin": { 2074 | "tsc": "bin/tsc", 2075 | "tsserver": "bin/tsserver" 2076 | }, 2077 | "engines": { 2078 | "node": ">=14.17" 2079 | } 2080 | }, 2081 | "node_modules/ufo": { 2082 | "version": "1.5.4", 2083 | "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", 2084 | "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==", 2085 | "dev": true 2086 | }, 2087 | "node_modules/undici": { 2088 | "version": "5.28.4", 2089 | "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz", 2090 | "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==", 2091 | "dev": true, 2092 | "dependencies": { 2093 | "@fastify/busboy": "^2.0.0" 2094 | }, 2095 | "engines": { 2096 | "node": ">=14.0" 2097 | } 2098 | }, 2099 | "node_modules/undici-types": { 2100 | "version": "6.19.8", 2101 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", 2102 | "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", 2103 | "dev": true 2104 | }, 2105 | "node_modules/unenv": { 2106 | "name": "unenv-nightly", 2107 | "version": "2.0.0-20240919-125358-9a64854", 2108 | "resolved": "https://registry.npmjs.org/unenv-nightly/-/unenv-nightly-2.0.0-20240919-125358-9a64854.tgz", 2109 | "integrity": "sha512-XjsgUTrTHR7iw+k/SRTNjh6EQgwpC9voygnoCJo5kh4hKqsSDHUW84MhL9EsHTNfLctvVBHaSw8e2k3R2fKXsQ==", 2110 | "dev": true, 2111 | "dependencies": { 2112 | "defu": "^6.1.4", 2113 | "ohash": "^1.1.4", 2114 | "pathe": "^1.1.2", 2115 | "ufo": "^1.5.4" 2116 | } 2117 | }, 2118 | "node_modules/vite": { 2119 | "version": "5.4.8", 2120 | "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz", 2121 | "integrity": "sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ==", 2122 | "dev": true, 2123 | "dependencies": { 2124 | "esbuild": "^0.21.3", 2125 | "postcss": "^8.4.43", 2126 | "rollup": "^4.20.0" 2127 | }, 2128 | "bin": { 2129 | "vite": "bin/vite.js" 2130 | }, 2131 | "engines": { 2132 | "node": "^18.0.0 || >=20.0.0" 2133 | }, 2134 | "funding": { 2135 | "url": "https://github.com/vitejs/vite?sponsor=1" 2136 | }, 2137 | "optionalDependencies": { 2138 | "fsevents": "~2.3.3" 2139 | }, 2140 | "peerDependencies": { 2141 | "@types/node": "^18.0.0 || >=20.0.0", 2142 | "less": "*", 2143 | "lightningcss": "^1.21.0", 2144 | "sass": "*", 2145 | "sass-embedded": "*", 2146 | "stylus": "*", 2147 | "sugarss": "*", 2148 | "terser": "^5.4.0" 2149 | }, 2150 | "peerDependenciesMeta": { 2151 | "@types/node": { 2152 | "optional": true 2153 | }, 2154 | "less": { 2155 | "optional": true 2156 | }, 2157 | "lightningcss": { 2158 | "optional": true 2159 | }, 2160 | "sass": { 2161 | "optional": true 2162 | }, 2163 | "sass-embedded": { 2164 | "optional": true 2165 | }, 2166 | "stylus": { 2167 | "optional": true 2168 | }, 2169 | "sugarss": { 2170 | "optional": true 2171 | }, 2172 | "terser": { 2173 | "optional": true 2174 | } 2175 | } 2176 | }, 2177 | "node_modules/vite-node": { 2178 | "version": "2.0.5", 2179 | "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.0.5.tgz", 2180 | "integrity": "sha512-LdsW4pxj0Ot69FAoXZ1yTnA9bjGohr2yNBU7QKRxpz8ITSkhuDl6h3zS/tvgz4qrNjeRnvrWeXQ8ZF7Um4W00Q==", 2181 | "dev": true, 2182 | "dependencies": { 2183 | "cac": "^6.7.14", 2184 | "debug": "^4.3.5", 2185 | "pathe": "^1.1.2", 2186 | "tinyrainbow": "^1.2.0", 2187 | "vite": "^5.0.0" 2188 | }, 2189 | "bin": { 2190 | "vite-node": "vite-node.mjs" 2191 | }, 2192 | "engines": { 2193 | "node": "^18.0.0 || >=20.0.0" 2194 | }, 2195 | "funding": { 2196 | "url": "https://opencollective.com/vitest" 2197 | } 2198 | }, 2199 | "node_modules/vite/node_modules/@esbuild/android-arm": { 2200 | "version": "0.21.5", 2201 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", 2202 | "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", 2203 | "cpu": [ 2204 | "arm" 2205 | ], 2206 | "dev": true, 2207 | "optional": true, 2208 | "os": [ 2209 | "android" 2210 | ], 2211 | "engines": { 2212 | "node": ">=12" 2213 | } 2214 | }, 2215 | "node_modules/vite/node_modules/@esbuild/android-arm64": { 2216 | "version": "0.21.5", 2217 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", 2218 | "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", 2219 | "cpu": [ 2220 | "arm64" 2221 | ], 2222 | "dev": true, 2223 | "optional": true, 2224 | "os": [ 2225 | "android" 2226 | ], 2227 | "engines": { 2228 | "node": ">=12" 2229 | } 2230 | }, 2231 | "node_modules/vite/node_modules/@esbuild/android-x64": { 2232 | "version": "0.21.5", 2233 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", 2234 | "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", 2235 | "cpu": [ 2236 | "x64" 2237 | ], 2238 | "dev": true, 2239 | "optional": true, 2240 | "os": [ 2241 | "android" 2242 | ], 2243 | "engines": { 2244 | "node": ">=12" 2245 | } 2246 | }, 2247 | "node_modules/vite/node_modules/@esbuild/darwin-arm64": { 2248 | "version": "0.21.5", 2249 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", 2250 | "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", 2251 | "cpu": [ 2252 | "arm64" 2253 | ], 2254 | "dev": true, 2255 | "optional": true, 2256 | "os": [ 2257 | "darwin" 2258 | ], 2259 | "engines": { 2260 | "node": ">=12" 2261 | } 2262 | }, 2263 | "node_modules/vite/node_modules/@esbuild/darwin-x64": { 2264 | "version": "0.21.5", 2265 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", 2266 | "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", 2267 | "cpu": [ 2268 | "x64" 2269 | ], 2270 | "dev": true, 2271 | "optional": true, 2272 | "os": [ 2273 | "darwin" 2274 | ], 2275 | "engines": { 2276 | "node": ">=12" 2277 | } 2278 | }, 2279 | "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { 2280 | "version": "0.21.5", 2281 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", 2282 | "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", 2283 | "cpu": [ 2284 | "arm64" 2285 | ], 2286 | "dev": true, 2287 | "optional": true, 2288 | "os": [ 2289 | "freebsd" 2290 | ], 2291 | "engines": { 2292 | "node": ">=12" 2293 | } 2294 | }, 2295 | "node_modules/vite/node_modules/@esbuild/freebsd-x64": { 2296 | "version": "0.21.5", 2297 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", 2298 | "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", 2299 | "cpu": [ 2300 | "x64" 2301 | ], 2302 | "dev": true, 2303 | "optional": true, 2304 | "os": [ 2305 | "freebsd" 2306 | ], 2307 | "engines": { 2308 | "node": ">=12" 2309 | } 2310 | }, 2311 | "node_modules/vite/node_modules/@esbuild/linux-arm": { 2312 | "version": "0.21.5", 2313 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", 2314 | "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", 2315 | "cpu": [ 2316 | "arm" 2317 | ], 2318 | "dev": true, 2319 | "optional": true, 2320 | "os": [ 2321 | "linux" 2322 | ], 2323 | "engines": { 2324 | "node": ">=12" 2325 | } 2326 | }, 2327 | "node_modules/vite/node_modules/@esbuild/linux-arm64": { 2328 | "version": "0.21.5", 2329 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", 2330 | "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", 2331 | "cpu": [ 2332 | "arm64" 2333 | ], 2334 | "dev": true, 2335 | "optional": true, 2336 | "os": [ 2337 | "linux" 2338 | ], 2339 | "engines": { 2340 | "node": ">=12" 2341 | } 2342 | }, 2343 | "node_modules/vite/node_modules/@esbuild/linux-ia32": { 2344 | "version": "0.21.5", 2345 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", 2346 | "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", 2347 | "cpu": [ 2348 | "ia32" 2349 | ], 2350 | "dev": true, 2351 | "optional": true, 2352 | "os": [ 2353 | "linux" 2354 | ], 2355 | "engines": { 2356 | "node": ">=12" 2357 | } 2358 | }, 2359 | "node_modules/vite/node_modules/@esbuild/linux-loong64": { 2360 | "version": "0.21.5", 2361 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", 2362 | "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", 2363 | "cpu": [ 2364 | "loong64" 2365 | ], 2366 | "dev": true, 2367 | "optional": true, 2368 | "os": [ 2369 | "linux" 2370 | ], 2371 | "engines": { 2372 | "node": ">=12" 2373 | } 2374 | }, 2375 | "node_modules/vite/node_modules/@esbuild/linux-mips64el": { 2376 | "version": "0.21.5", 2377 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", 2378 | "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", 2379 | "cpu": [ 2380 | "mips64el" 2381 | ], 2382 | "dev": true, 2383 | "optional": true, 2384 | "os": [ 2385 | "linux" 2386 | ], 2387 | "engines": { 2388 | "node": ">=12" 2389 | } 2390 | }, 2391 | "node_modules/vite/node_modules/@esbuild/linux-ppc64": { 2392 | "version": "0.21.5", 2393 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", 2394 | "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", 2395 | "cpu": [ 2396 | "ppc64" 2397 | ], 2398 | "dev": true, 2399 | "optional": true, 2400 | "os": [ 2401 | "linux" 2402 | ], 2403 | "engines": { 2404 | "node": ">=12" 2405 | } 2406 | }, 2407 | "node_modules/vite/node_modules/@esbuild/linux-riscv64": { 2408 | "version": "0.21.5", 2409 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", 2410 | "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", 2411 | "cpu": [ 2412 | "riscv64" 2413 | ], 2414 | "dev": true, 2415 | "optional": true, 2416 | "os": [ 2417 | "linux" 2418 | ], 2419 | "engines": { 2420 | "node": ">=12" 2421 | } 2422 | }, 2423 | "node_modules/vite/node_modules/@esbuild/linux-s390x": { 2424 | "version": "0.21.5", 2425 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", 2426 | "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", 2427 | "cpu": [ 2428 | "s390x" 2429 | ], 2430 | "dev": true, 2431 | "optional": true, 2432 | "os": [ 2433 | "linux" 2434 | ], 2435 | "engines": { 2436 | "node": ">=12" 2437 | } 2438 | }, 2439 | "node_modules/vite/node_modules/@esbuild/linux-x64": { 2440 | "version": "0.21.5", 2441 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", 2442 | "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", 2443 | "cpu": [ 2444 | "x64" 2445 | ], 2446 | "dev": true, 2447 | "optional": true, 2448 | "os": [ 2449 | "linux" 2450 | ], 2451 | "engines": { 2452 | "node": ">=12" 2453 | } 2454 | }, 2455 | "node_modules/vite/node_modules/@esbuild/netbsd-x64": { 2456 | "version": "0.21.5", 2457 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", 2458 | "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", 2459 | "cpu": [ 2460 | "x64" 2461 | ], 2462 | "dev": true, 2463 | "optional": true, 2464 | "os": [ 2465 | "netbsd" 2466 | ], 2467 | "engines": { 2468 | "node": ">=12" 2469 | } 2470 | }, 2471 | "node_modules/vite/node_modules/@esbuild/openbsd-x64": { 2472 | "version": "0.21.5", 2473 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", 2474 | "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", 2475 | "cpu": [ 2476 | "x64" 2477 | ], 2478 | "dev": true, 2479 | "optional": true, 2480 | "os": [ 2481 | "openbsd" 2482 | ], 2483 | "engines": { 2484 | "node": ">=12" 2485 | } 2486 | }, 2487 | "node_modules/vite/node_modules/@esbuild/sunos-x64": { 2488 | "version": "0.21.5", 2489 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", 2490 | "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", 2491 | "cpu": [ 2492 | "x64" 2493 | ], 2494 | "dev": true, 2495 | "optional": true, 2496 | "os": [ 2497 | "sunos" 2498 | ], 2499 | "engines": { 2500 | "node": ">=12" 2501 | } 2502 | }, 2503 | "node_modules/vite/node_modules/@esbuild/win32-arm64": { 2504 | "version": "0.21.5", 2505 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", 2506 | "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", 2507 | "cpu": [ 2508 | "arm64" 2509 | ], 2510 | "dev": true, 2511 | "optional": true, 2512 | "os": [ 2513 | "win32" 2514 | ], 2515 | "engines": { 2516 | "node": ">=12" 2517 | } 2518 | }, 2519 | "node_modules/vite/node_modules/@esbuild/win32-ia32": { 2520 | "version": "0.21.5", 2521 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", 2522 | "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", 2523 | "cpu": [ 2524 | "ia32" 2525 | ], 2526 | "dev": true, 2527 | "optional": true, 2528 | "os": [ 2529 | "win32" 2530 | ], 2531 | "engines": { 2532 | "node": ">=12" 2533 | } 2534 | }, 2535 | "node_modules/vite/node_modules/@esbuild/win32-x64": { 2536 | "version": "0.21.5", 2537 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", 2538 | "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", 2539 | "cpu": [ 2540 | "x64" 2541 | ], 2542 | "dev": true, 2543 | "optional": true, 2544 | "os": [ 2545 | "win32" 2546 | ], 2547 | "engines": { 2548 | "node": ">=12" 2549 | } 2550 | }, 2551 | "node_modules/vite/node_modules/esbuild": { 2552 | "version": "0.21.5", 2553 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", 2554 | "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", 2555 | "dev": true, 2556 | "hasInstallScript": true, 2557 | "bin": { 2558 | "esbuild": "bin/esbuild" 2559 | }, 2560 | "engines": { 2561 | "node": ">=12" 2562 | }, 2563 | "optionalDependencies": { 2564 | "@esbuild/aix-ppc64": "0.21.5", 2565 | "@esbuild/android-arm": "0.21.5", 2566 | "@esbuild/android-arm64": "0.21.5", 2567 | "@esbuild/android-x64": "0.21.5", 2568 | "@esbuild/darwin-arm64": "0.21.5", 2569 | "@esbuild/darwin-x64": "0.21.5", 2570 | "@esbuild/freebsd-arm64": "0.21.5", 2571 | "@esbuild/freebsd-x64": "0.21.5", 2572 | "@esbuild/linux-arm": "0.21.5", 2573 | "@esbuild/linux-arm64": "0.21.5", 2574 | "@esbuild/linux-ia32": "0.21.5", 2575 | "@esbuild/linux-loong64": "0.21.5", 2576 | "@esbuild/linux-mips64el": "0.21.5", 2577 | "@esbuild/linux-ppc64": "0.21.5", 2578 | "@esbuild/linux-riscv64": "0.21.5", 2579 | "@esbuild/linux-s390x": "0.21.5", 2580 | "@esbuild/linux-x64": "0.21.5", 2581 | "@esbuild/netbsd-x64": "0.21.5", 2582 | "@esbuild/openbsd-x64": "0.21.5", 2583 | "@esbuild/sunos-x64": "0.21.5", 2584 | "@esbuild/win32-arm64": "0.21.5", 2585 | "@esbuild/win32-ia32": "0.21.5", 2586 | "@esbuild/win32-x64": "0.21.5" 2587 | } 2588 | }, 2589 | "node_modules/vitest": { 2590 | "version": "2.0.5", 2591 | "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.0.5.tgz", 2592 | "integrity": "sha512-8GUxONfauuIdeSl5f9GTgVEpg5BTOlplET4WEDaeY2QBiN8wSm68vxN/tb5z405OwppfoCavnwXafiaYBC/xOA==", 2593 | "dev": true, 2594 | "dependencies": { 2595 | "@ampproject/remapping": "^2.3.0", 2596 | "@vitest/expect": "2.0.5", 2597 | "@vitest/pretty-format": "^2.0.5", 2598 | "@vitest/runner": "2.0.5", 2599 | "@vitest/snapshot": "2.0.5", 2600 | "@vitest/spy": "2.0.5", 2601 | "@vitest/utils": "2.0.5", 2602 | "chai": "^5.1.1", 2603 | "debug": "^4.3.5", 2604 | "execa": "^8.0.1", 2605 | "magic-string": "^0.30.10", 2606 | "pathe": "^1.1.2", 2607 | "std-env": "^3.7.0", 2608 | "tinybench": "^2.8.0", 2609 | "tinypool": "^1.0.0", 2610 | "tinyrainbow": "^1.2.0", 2611 | "vite": "^5.0.0", 2612 | "vite-node": "2.0.5", 2613 | "why-is-node-running": "^2.3.0" 2614 | }, 2615 | "bin": { 2616 | "vitest": "vitest.mjs" 2617 | }, 2618 | "engines": { 2619 | "node": "^18.0.0 || >=20.0.0" 2620 | }, 2621 | "funding": { 2622 | "url": "https://opencollective.com/vitest" 2623 | }, 2624 | "peerDependencies": { 2625 | "@edge-runtime/vm": "*", 2626 | "@types/node": "^18.0.0 || >=20.0.0", 2627 | "@vitest/browser": "2.0.5", 2628 | "@vitest/ui": "2.0.5", 2629 | "happy-dom": "*", 2630 | "jsdom": "*" 2631 | }, 2632 | "peerDependenciesMeta": { 2633 | "@edge-runtime/vm": { 2634 | "optional": true 2635 | }, 2636 | "@types/node": { 2637 | "optional": true 2638 | }, 2639 | "@vitest/browser": { 2640 | "optional": true 2641 | }, 2642 | "@vitest/ui": { 2643 | "optional": true 2644 | }, 2645 | "happy-dom": { 2646 | "optional": true 2647 | }, 2648 | "jsdom": { 2649 | "optional": true 2650 | } 2651 | } 2652 | }, 2653 | "node_modules/vitest/node_modules/@vitest/pretty-format": { 2654 | "version": "2.0.5", 2655 | "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz", 2656 | "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==", 2657 | "dev": true, 2658 | "dependencies": { 2659 | "tinyrainbow": "^1.2.0" 2660 | }, 2661 | "funding": { 2662 | "url": "https://opencollective.com/vitest" 2663 | } 2664 | }, 2665 | "node_modules/vitest/node_modules/@vitest/runner": { 2666 | "version": "2.0.5", 2667 | "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.0.5.tgz", 2668 | "integrity": "sha512-TfRfZa6Bkk9ky4tW0z20WKXFEwwvWhRY+84CnSEtq4+3ZvDlJyY32oNTJtM7AW9ihW90tX/1Q78cb6FjoAs+ig==", 2669 | "dev": true, 2670 | "dependencies": { 2671 | "@vitest/utils": "2.0.5", 2672 | "pathe": "^1.1.2" 2673 | }, 2674 | "funding": { 2675 | "url": "https://opencollective.com/vitest" 2676 | } 2677 | }, 2678 | "node_modules/vitest/node_modules/@vitest/snapshot": { 2679 | "version": "2.0.5", 2680 | "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.0.5.tgz", 2681 | "integrity": "sha512-SgCPUeDFLaM0mIUHfaArq8fD2WbaXG/zVXjRupthYfYGzc8ztbFbu6dUNOblBG7XLMR1kEhS/DNnfCZ2IhdDew==", 2682 | "dev": true, 2683 | "dependencies": { 2684 | "@vitest/pretty-format": "2.0.5", 2685 | "magic-string": "^0.30.10", 2686 | "pathe": "^1.1.2" 2687 | }, 2688 | "funding": { 2689 | "url": "https://opencollective.com/vitest" 2690 | } 2691 | }, 2692 | "node_modules/vitest/node_modules/@vitest/utils": { 2693 | "version": "2.0.5", 2694 | "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz", 2695 | "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==", 2696 | "dev": true, 2697 | "dependencies": { 2698 | "@vitest/pretty-format": "2.0.5", 2699 | "estree-walker": "^3.0.3", 2700 | "loupe": "^3.1.1", 2701 | "tinyrainbow": "^1.2.0" 2702 | }, 2703 | "funding": { 2704 | "url": "https://opencollective.com/vitest" 2705 | } 2706 | }, 2707 | "node_modules/vitest/node_modules/estree-walker": { 2708 | "version": "3.0.3", 2709 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", 2710 | "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", 2711 | "dev": true, 2712 | "dependencies": { 2713 | "@types/estree": "^1.0.0" 2714 | } 2715 | }, 2716 | "node_modules/which": { 2717 | "version": "2.0.2", 2718 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2719 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2720 | "dev": true, 2721 | "dependencies": { 2722 | "isexe": "^2.0.0" 2723 | }, 2724 | "bin": { 2725 | "node-which": "bin/node-which" 2726 | }, 2727 | "engines": { 2728 | "node": ">= 8" 2729 | } 2730 | }, 2731 | "node_modules/why-is-node-running": { 2732 | "version": "2.3.0", 2733 | "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", 2734 | "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", 2735 | "dev": true, 2736 | "dependencies": { 2737 | "siginfo": "^2.0.0", 2738 | "stackback": "0.0.2" 2739 | }, 2740 | "bin": { 2741 | "why-is-node-running": "cli.js" 2742 | }, 2743 | "engines": { 2744 | "node": ">=8" 2745 | } 2746 | }, 2747 | "node_modules/workerd": { 2748 | "version": "1.20240925.0", 2749 | "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20240925.0.tgz", 2750 | "integrity": "sha512-/Jj6+yLwfieZGEt3Kx4+5MoufuC3g/8iFaIh4MPBNGJOGYmdSKXvgCqz09m2+tVCYnysRfbq2zcbVxJRBfOCqQ==", 2751 | "dev": true, 2752 | "hasInstallScript": true, 2753 | "bin": { 2754 | "workerd": "bin/workerd" 2755 | }, 2756 | "engines": { 2757 | "node": ">=16" 2758 | }, 2759 | "optionalDependencies": { 2760 | "@cloudflare/workerd-darwin-64": "1.20240925.0", 2761 | "@cloudflare/workerd-darwin-arm64": "1.20240925.0", 2762 | "@cloudflare/workerd-linux-64": "1.20240925.0", 2763 | "@cloudflare/workerd-linux-arm64": "1.20240925.0", 2764 | "@cloudflare/workerd-windows-64": "1.20240925.0" 2765 | } 2766 | }, 2767 | "node_modules/wrangler": { 2768 | "version": "3.80.0", 2769 | "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-3.80.0.tgz", 2770 | "integrity": "sha512-c9aN7Buf7XgTPpQkw1d0VjNRI4qg3m35PTg70Tg4mOeHwHGjsd74PAsP1G8BjpdqDjfWtsua7tj1g4M3/5dYNQ==", 2771 | "dev": true, 2772 | "dependencies": { 2773 | "@cloudflare/kv-asset-handler": "0.3.4", 2774 | "@cloudflare/workers-shared": "0.5.4", 2775 | "@esbuild-plugins/node-globals-polyfill": "^0.2.3", 2776 | "@esbuild-plugins/node-modules-polyfill": "^0.2.2", 2777 | "blake3-wasm": "^2.1.5", 2778 | "chokidar": "^3.5.3", 2779 | "esbuild": "0.17.19", 2780 | "miniflare": "3.20240925.0", 2781 | "nanoid": "^3.3.3", 2782 | "path-to-regexp": "^6.3.0", 2783 | "resolve": "^1.22.8", 2784 | "resolve.exports": "^2.0.2", 2785 | "selfsigned": "^2.0.1", 2786 | "source-map": "^0.6.1", 2787 | "unenv": "npm:unenv-nightly@2.0.0-20240919-125358-9a64854", 2788 | "workerd": "1.20240925.0", 2789 | "xxhash-wasm": "^1.0.1" 2790 | }, 2791 | "bin": { 2792 | "wrangler": "bin/wrangler.js", 2793 | "wrangler2": "bin/wrangler.js" 2794 | }, 2795 | "engines": { 2796 | "node": ">=16.17.0" 2797 | }, 2798 | "optionalDependencies": { 2799 | "fsevents": "~2.3.2" 2800 | }, 2801 | "peerDependencies": { 2802 | "@cloudflare/workers-types": "^4.20240925.0" 2803 | }, 2804 | "peerDependenciesMeta": { 2805 | "@cloudflare/workers-types": { 2806 | "optional": true 2807 | } 2808 | } 2809 | }, 2810 | "node_modules/ws": { 2811 | "version": "8.18.0", 2812 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", 2813 | "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", 2814 | "dev": true, 2815 | "engines": { 2816 | "node": ">=10.0.0" 2817 | }, 2818 | "peerDependencies": { 2819 | "bufferutil": "^4.0.1", 2820 | "utf-8-validate": ">=5.0.2" 2821 | }, 2822 | "peerDependenciesMeta": { 2823 | "bufferutil": { 2824 | "optional": true 2825 | }, 2826 | "utf-8-validate": { 2827 | "optional": true 2828 | } 2829 | } 2830 | }, 2831 | "node_modules/xxhash-wasm": { 2832 | "version": "1.0.2", 2833 | "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.0.2.tgz", 2834 | "integrity": "sha512-ibF0Or+FivM9lNrg+HGJfVX8WJqgo+kCLDc4vx6xMeTce7Aj+DLttKbxxRR/gNLSAelRc1omAPlJ77N/Jem07A==", 2835 | "dev": true 2836 | }, 2837 | "node_modules/youch": { 2838 | "version": "3.3.4", 2839 | "resolved": "https://registry.npmjs.org/youch/-/youch-3.3.4.tgz", 2840 | "integrity": "sha512-UeVBXie8cA35DS6+nBkls68xaBBXCye0CNznrhszZjTbRVnJKQuNsyLKBTTL4ln1o1rh2PKtv35twV7irj5SEg==", 2841 | "dev": true, 2842 | "dependencies": { 2843 | "cookie": "^0.7.1", 2844 | "mustache": "^4.2.0", 2845 | "stacktracey": "^2.1.8" 2846 | } 2847 | }, 2848 | "node_modules/zod": { 2849 | "version": "3.23.8", 2850 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", 2851 | "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", 2852 | "dev": true, 2853 | "funding": { 2854 | "url": "https://github.com/sponsors/colinhacks" 2855 | } 2856 | } 2857 | } 2858 | } 2859 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "auth-inbox", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "deploy": "wrangler deploy", 7 | "dev": "wrangler dev", 8 | "start": "wrangler dev", 9 | "test": "vitest", 10 | "cf-typegen": "wrangler types" 11 | }, 12 | "devDependencies": { 13 | "@cloudflare/vitest-pool-workers": "^0.5.2", 14 | "@cloudflare/workers-types": "^4.20241004.0", 15 | "typescript": "^5.5.2", 16 | "vitest": "2.0.5", 17 | "wrangler": "^3.60.3" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Auth Inbox 7 | 8 | 76 | 77 | 78 |
79 |

Auth Inbox

80 |
81 | 82 | {{TABLE_HEADERS}} 83 | {{DATA}} 84 |
85 |
86 |
87 | 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | index.ts 3 | This is the main file for the Auth Inbox Email Worker. 4 | created by: github@TooonyChen 5 | created on: 2024 Oct 07 6 | Last updated: 2024 Oct 07 7 | */ 8 | import { WorkerEntrypoint } from "cloudflare:workers"; 9 | import {RPCEmailMessage} from './rpcEmail'; 10 | 11 | import indexHtml from './index.html'; 12 | 13 | interface Env { 14 | // If you set another name in wrangler.toml as the value for 'binding', 15 | // replace "DB" with the variable name you defined. 16 | DB: D1Database; 17 | FrontEndAdminID: string; 18 | FrontEndAdminPassword: string; 19 | barkTokens: string; 20 | barkUrl: string; 21 | GoogleAPIKey: string; 22 | UseBark: string; 23 | } 24 | 25 | export default class extends WorkerEntrypoint { 26 | async fetch(request: Request): Promise { 27 | const env: Env = this.env; 28 | const ctx: ExecutionContext = this.ctx; 29 | // 将依赖 env 的常量移到函数内部 30 | const FrontEndAdminID = env.FrontEndAdminID; 31 | const FrontEndAdminPassword = env.FrontEndAdminPassword; 32 | 33 | // 提取 Authorization 头 34 | const authHeader = request.headers.get('Authorization'); 35 | 36 | // 如果没有 Authorization 头,提示进行身份验证 37 | if (!authHeader) { 38 | return new Response('Unauthorized', { 39 | status: 401, 40 | headers: { 41 | 'WWW-Authenticate': 'Basic realm="User Visible Realm"', 42 | }, 43 | }); 44 | } 45 | 46 | // 检查 Authorization 头是否使用 Basic 认证 47 | if (!authHeader.startsWith('Basic ')) { 48 | return new Response('Unauthorized', { 49 | status: 401, 50 | headers: { 51 | 'WWW-Authenticate': 'Basic realm="User Visible Realm"', 52 | }, 53 | }); 54 | } 55 | 56 | // 解码 base64 编码的凭据 57 | const base64Credentials = authHeader.substring('Basic '.length); 58 | const decodedCredentials = atob(base64Credentials); 59 | 60 | // 将凭据分割为用户名和密码 61 | const [username, password] = decodedCredentials.split(':'); 62 | 63 | // 验证凭据 64 | if ( 65 | username !== FrontEndAdminID || 66 | password !== FrontEndAdminPassword 67 | ) { 68 | return new Response('Unauthorized', { 69 | status: 401, 70 | headers: { 71 | 'WWW-Authenticate': 'Basic realm="User Visible Realm"', 72 | }, 73 | }); 74 | } 75 | 76 | try { 77 | const { results } = await env.DB.prepare( 78 | 'SELECT from_org, to_addr, topic, code, created_at FROM code_mails ORDER BY created_at DESC' 79 | ).all(); 80 | 81 | let dataHtml = ''; 82 | for (const row of results) { 83 | const codeLinkParts = row.code.split(','); 84 | let codeLinkContent; 85 | 86 | if (codeLinkParts.length > 1) { 87 | const [code, link] = codeLinkParts; 88 | codeLinkContent = `${code}
${row.topic}`; 89 | } else if (row.code.startsWith('http')) { 90 | codeLinkContent = `${row.topic}`; 91 | } else { 92 | codeLinkContent = row.code; 93 | } 94 | 95 | dataHtml += ` 96 | ${row.from_org} 97 | ${row.to_addr} 98 | ${row.topic} 99 | ${codeLinkContent} 100 | ${row.created_at} 101 | `; 102 | } 103 | 104 | let responseHtml = indexHtml 105 | .replace('{{TABLE_HEADERS}}', ` 106 | 107 | From 108 | To 109 | Topic 110 | Code/Link 111 | Receive Time (GMT) 112 | 113 | `) 114 | .replace('{{DATA}}', dataHtml); 115 | 116 | return new Response(responseHtml, { 117 | headers: { 118 | 'Content-Type': 'text/html', 119 | }, 120 | }); 121 | } catch (error) { 122 | console.error('Error querying database:', error); 123 | return new Response('Internal Server Error', { status: 500 }); 124 | } 125 | } 126 | 127 | // 主要功能 128 | async email(message: ForwardableEmailMessage): Promise { 129 | 130 | const env: Env = this.env; 131 | const useBark = env.UseBark.toLowerCase() === 'true'; // true or false 132 | const GoogleAPIKey = env.GoogleAPIKey; // "xxxxxxxxxxxxxxxxxxxxxxxx" 133 | 134 | const rawEmail = message instanceof RPCEmailMessage ? (message).rawEmail : await new Response(message.raw).text(); 135 | const message_id = message.headers.get("Message-ID"); 136 | 137 | // 将电子邮件保存到数据库 138 | const {success} = await env.DB.prepare( 139 | `INSERT INTO raw_mails (from_addr, to_addr, raw, message_id) VALUES (?, ?, ?, ?)` 140 | ).bind( 141 | message.from, message.to, rawEmail, message_id // 将电子邮件详细信息绑定到 SQL 语句 142 | ).run(); 143 | 144 | // 检查电子邮件是否成功保存 145 | if (!success) { 146 | message.setReject(`Failed to save message from ${message.from} to ${message.to}`); // 如果保存失败,则拒绝消息 147 | console.log(`Failed to save message from ${message.from} to ${message.to}`); // 记录保存失败 148 | } 149 | 150 | // 调用AI,让AI抓取验证码,让AI返回`title`和`code` 151 | // title: 邮件是哪个公司/组织发来的验证码, 比如'Netflix' 152 | // code: 验证码/链接/密码,比如'123456'or'https://example.com/verify?code=123456',如都有则返回'code, link' 153 | // topic: 邮件主题,比如'line register verification' 154 | const aiPrompt = ` 155 | Email content: ${rawEmail}. 156 | 157 | Please read the email and extract the following information: 158 | 1. Code/Link/Password from the email (if available). 159 | 2. Organization name (title) from which the email is sent. 160 | 3. A brief summary of the email's topic (e.g., 'line register verification'). 161 | 162 | Please provide the following information in JSON format: 163 | { 164 | "title": "The organization or company that sent the verification code (e.g., 'Netflix')", 165 | "code": "The extracted verification code, link, or password (e.g., '123456' or 'https://example.com/verify?code=123456')", 166 | "topic": "A brief summary of the email's topic (e.g., 'line register verification')", 167 | "codeExist": 1 168 | } 169 | 170 | 171 | If both a code and a link are present, include both in the 'code' field like this: 172 | "code": "code, link" 173 | 174 | If there is no code, clickable link, or this is an advertisement email, return: 175 | { 176 | "codeExist": 0 177 | } 178 | `; 179 | 180 | try { 181 | // 添加重试机制 182 | const maxRetries = 3; 183 | let retryCount = 0; 184 | let extractedData = null; 185 | 186 | while (retryCount < maxRetries && !extractedData) { 187 | // 调用 Google AI API 来获取 title, code, topic 188 | const aiResponse = await fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=${GoogleAPIKey}`, { 189 | method: 'POST', 190 | headers: { 191 | 'Content-Type': 'application/json' 192 | }, 193 | body: JSON.stringify({ 194 | "contents": [ 195 | { 196 | "parts": [ 197 | {"text": aiPrompt} 198 | ] 199 | } 200 | ] 201 | }) 202 | }); 203 | 204 | const aiData = await aiResponse.json(); 205 | console.log(`AI response attempt ${retryCount + 1}:`, aiData); 206 | // 检测ai返回格式是否正确 207 | if ( 208 | aiData && 209 | aiData.candidates && 210 | aiData.candidates[0] && 211 | aiData.candidates[0].content && 212 | aiData.candidates[0].content.parts && 213 | aiData.candidates[0].content.parts[0] 214 | ) { 215 | let extractedText = aiData.candidates[0].content.parts[0].text; 216 | console.log(`Extracted Text before parsing: "${extractedText}"`); 217 | 218 | // Use regex to extract JSON content from code blocks 219 | const jsonMatch = extractedText.match(/```json\s*([\s\S]*?)\s*```/); 220 | if (jsonMatch && jsonMatch[1]) { 221 | extractedText = jsonMatch[1].trim(); 222 | console.log(`Extracted JSON Text: "${extractedText}"`); 223 | } else { 224 | // If no code block, assume the entire text is JSON 225 | extractedText = extractedText.trim(); 226 | console.log(`Assuming entire text is JSON: "${extractedText}"`); 227 | } 228 | 229 | // Parse 230 | try { 231 | extractedData = JSON.parse(extractedText); 232 | console.log(`Parsed Extracted Data:`, extractedData); 233 | } catch (parseError) { 234 | console.error("JSON parsing error:", parseError); 235 | console.log(`Problematic JSON Text: "${extractedText}"`); 236 | } 237 | 238 | } else { 239 | console.error("AI response is missing expected data structure"); 240 | } 241 | 242 | if (!extractedData) { 243 | retryCount++; 244 | if (retryCount < maxRetries) { 245 | console.log("Retrying AI request..."); 246 | } else { 247 | console.error("Max retries reached. Unable to get valid AI response."); 248 | } 249 | } 250 | } 251 | 252 | // extract formatted data 253 | if (extractedData) { 254 | if (extractedData.codeExist === 1) { 255 | const title = extractedData.title || "Unknown Organization"; 256 | const code = extractedData.code || "No Code Found"; 257 | const topic = extractedData.topic || "No Topic Found"; 258 | 259 | // save extracted data to the database 260 | const { success: codeMailSuccess } = await env.DB.prepare( 261 | `INSERT INTO code_mails (from_addr, from_org, to_addr, code, topic, message_id) VALUES (?, ?, ?, ?, ?, ?)` 262 | ).bind( 263 | message.from, title, message.to, code, topic, message_id 264 | ).run(); 265 | 266 | if (!codeMailSuccess) { 267 | message.setReject(`Failed to save extracted code for message from ${message.from} to ${message.to}`); 268 | console.log(`Failed to save extracted code for message from ${message.from} to ${message.to}`); 269 | } 270 | 271 | // Send title and code to Bark using GET request for each token 272 | if (useBark) { 273 | const barkUrl = env.barkUrl; // "https://api.day.app" 274 | // [token1, token2] 275 | const barkTokens = env.barkTokens 276 | .replace(/^\[|\]$/g, '') 277 | .split(',') 278 | .map(token => token.trim()); 279 | 280 | const barkUrlEncodedTitle = encodeURIComponent(title); 281 | const barkUrlEncodedCode = encodeURIComponent(code); 282 | 283 | for (const token of barkTokens) { 284 | const barkRequestUrl = `${barkUrl}/${token}/${barkUrlEncodedTitle}/${barkUrlEncodedCode}`; 285 | 286 | const barkResponse = await fetch(barkRequestUrl, { 287 | method: "GET" 288 | }); 289 | 290 | if (barkResponse.ok) { 291 | console.log(`Successfully sent notification to Bark for token ${token} for message from ${message.from} to ${message.to}`); 292 | const responseData = await barkResponse.json(); 293 | console.log("Bark response:", responseData); 294 | } else { 295 | console.error(`Failed to send notification to Bark for token ${token}: ${barkResponse.status} ${barkResponse.statusText}`); 296 | } 297 | } 298 | } 299 | 300 | 301 | } else { 302 | console.log("No code found in this email, skipping Bark notification."); 303 | } 304 | } else { 305 | console.error("Failed to extract data from AI response after retries."); 306 | } 307 | } catch (e) { 308 | console.error("Error calling AI or saving to database:", e); 309 | } 310 | } 311 | 312 | // 暴露rpc接口,处理来自其他worker的邮件请求 313 | async rpcEmail(requestBody: string): Promise { 314 | console.log(`Received RPC email , request body: ${requestBody}`); 315 | const bodyObject =JSON.parse(requestBody); 316 | const headersObject = bodyObject.headers; 317 | const headers = new Headers(headersObject); 318 | const rpcEmailMessage: RPCEmailMessage = new RPCEmailMessage(bodyObject.from, bodyObject.to, bodyObject.rawEmail, headers); 319 | await this.email(rpcEmailMessage); 320 | } 321 | 322 | } -------------------------------------------------------------------------------- /src/rpcEmail.ts: -------------------------------------------------------------------------------- 1 | class RPCEmailMessage implements ForwardableEmailMessage { 2 | readonly from: string; 3 | readonly to: string; 4 | readonly rawEmail: String; 5 | readonly raw: ReadableStream; 6 | readonly headers: Headers; 7 | readonly rawSize: number; 8 | 9 | constructor(from: string, to: string, rawEmail: string, headers: Headers) { 10 | this.from = from; 11 | this.to = to; 12 | this.rawEmail = rawEmail; 13 | this.raw = RPCEmailMessage.stringToStream(rawEmail); 14 | this.rawSize = new TextEncoder().encode(rawEmail).length; 15 | this.headers = headers; 16 | } 17 | 18 | static stringToStream(str: string): ReadableStream { 19 | return new ReadableStream({ 20 | start(controller) { 21 | const encoder = new TextEncoder(); 22 | controller.enqueue(encoder.encode(str)); 23 | controller.close(); 24 | } 25 | }); 26 | } 27 | 28 | setReject(reason: string): void { 29 | console.log(`rpcEmail default implementation: Message rejected: ${reason}`); 30 | } 31 | 32 | async forward(rcptTo: string, headers: Headers = new Headers()): Promise { 33 | console.log(`rpcEmail default implementation: Forwarding message to: ${rcptTo}, with headers:`, headers); 34 | } 35 | 36 | async reply(message: EmailMessage): Promise { 37 | console.log(`rpcEmail default implementation: Replying to: ${message}`); 38 | } 39 | } 40 | 41 | export { RPCEmailMessage }; -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */ 4 | 5 | /* Projects */ 6 | // "incremental": true, /* Enable incremental compilation */ 7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ 8 | // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ 9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ 10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ 12 | 13 | /* Language and Environment */ 14 | "target": "es2021" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, 15 | "lib": ["es2021"] /* Specify a set of bundled library declaration files that describe the target runtime environment. */, 16 | "jsx": "react-jsx" /* Specify what JSX code is generated. */, 17 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ 20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ 22 | // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ 23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 25 | 26 | /* Modules */ 27 | "module": "es2022" /* Specify what module code is generated. */, 28 | // "rootDir": "./", /* Specify the root folder within your source files. */ 29 | "moduleResolution": "Bundler" /* Specify how TypeScript looks up a file from a given module specifier. */, 30 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 31 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 32 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 33 | // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ 34 | "types": [ 35 | "@cloudflare/workers-types/2023-07-01" 36 | ] /* Specify type package names to be included without being referenced in a source file. */, 37 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 38 | "resolveJsonModule": true /* Enable importing .json files */, 39 | // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */ 40 | 41 | /* JavaScript Support */ 42 | "allowJs": true /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */, 43 | "checkJs": false /* Enable error reporting in type-checked JavaScript files. */, 44 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ 45 | 46 | /* Emit */ 47 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 48 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ 49 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ 50 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ 51 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ 52 | // "outDir": "./", /* Specify an output folder for all emitted files. */ 53 | // "removeComments": true, /* Disable emitting comments. */ 54 | "noEmit": true /* Disable emitting files from a compilation. */, 55 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ 56 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ 57 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ 58 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ 59 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 60 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ 61 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ 62 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ 63 | // "newLine": "crlf", /* Set the newline character for emitting files. */ 64 | // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ 65 | // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ 66 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ 67 | // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ 68 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ 69 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ 70 | 71 | /* Interop Constraints */ 72 | "isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */, 73 | "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */, 74 | // "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, 75 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ 76 | "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, 77 | 78 | /* Type Checking */ 79 | "strict": true /* Enable all strict type-checking options. */, 80 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ 81 | // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ 82 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ 83 | // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ 84 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ 85 | // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ 86 | // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ 87 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ 88 | // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ 89 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ 90 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ 91 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ 92 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ 93 | // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ 94 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ 95 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ 96 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ 97 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ 98 | 99 | /* Completeness */ 100 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 101 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 102 | }, 103 | "exclude": ["test"], 104 | "include": ["worker-configuration.d.ts", 105 | "src/**/*.ts" 106 | ] 107 | } 108 | -------------------------------------------------------------------------------- /vitest.config.mts: -------------------------------------------------------------------------------- 1 | import { defineWorkersConfig } from '@cloudflare/vitest-pool-workers/config'; 2 | 3 | export default defineWorkersConfig({ 4 | test: { 5 | poolOptions: { 6 | workers: { 7 | wrangler: { configPath: './wrangler.toml' }, 8 | }, 9 | }, 10 | }, 11 | }); 12 | -------------------------------------------------------------------------------- /worker-configuration.d.ts: -------------------------------------------------------------------------------- 1 | // Generated by Wrangler 2 | // After adding bindings to `wrangler.toml`, regenerate this interface via `npm run cf-typegen` 3 | interface Env { 4 | } 5 | -------------------------------------------------------------------------------- /wrangler.toml.example: -------------------------------------------------------------------------------- 1 | #:schema node_modules/wrangler/config-schema.json 2 | name = "auth-inbox" 3 | # Your Cloudflare Worker Name 4 | # 你的 Cloudflare Worker 名称 5 | 6 | main = "src/index.ts" 7 | compatibility_date = "2024-10-04" 8 | compatibility_flags = ["nodejs_compat"] 9 | 10 | # If you want to use a custom domain, you need to add routes configuration. 11 | # 如果你想使用自定义域名,你需要添加 routes 配置 12 | #routes = [ 13 | # { pattern = "email.xxxxx.com", custom_domain = true }, 14 | #] 15 | 16 | # Workers Logs 17 | # Docs: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ 18 | # Configuration: https://developers.cloudflare.com/workers/observability/logs/workers-logs/#enable-workers-logs 19 | [observability] 20 | enabled = true 21 | 22 | # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables) 23 | # Docs: 24 | # - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables 25 | # Note: Use secrets to store sensitive data. 26 | # - https://developers.cloudflare.com/workers/configuration/secrets/ 27 | [vars] 28 | UseBark = "true" 29 | # UseBark: String 30 | # set to "true" to use bark, set to "false" to disable bark 31 | # 是否使用 bark 推送,设置为 "true" 以启用 bark 推送,设置为 "false" 以禁用 bark 推送 32 | 33 | barkUrl = "https://api.day.app" # set to your bark url, default is "https://api.day.app" 34 | # barkUrl: String 35 | # set to your bark url, default is "https://api.day.app" 36 | # 设定你的 bark 推送地址,默认为 "https://api.day.app" 37 | 38 | barkTokens = "[token1, token2]" 39 | # barkTokens: String 40 | # set to your bark tokens on your iOS device, download it from https://bark.day.app/, you can use multiple tokens, if you only use one, then set it to "[token1]" 41 | # if you dont use bark push, then no need to change 42 | # 设定你的 bark tokens,从 https://bark.day.app/ 下载iOS APP,你可以使用多个 tokens,如果你只使用一个 token,那么设置为 "[token1]" 43 | # 如果你不使用 bark 推送,那么无需改动 44 | 45 | FrontEndAdminID = "admin" 46 | # FrontEndAdminID: String 47 | # your login **Please change it to your own login** 48 | # 你的登录账号 **请更改为你自己的登录账号** 49 | 50 | FrontEndAdminPassword = "password" 51 | # FrontEndAdminPassword: String 52 | # your password **Please change it to your own password** 53 | # 你的登录密码 **请更改为你自己的登录密码** 54 | 55 | 56 | GoogleAPIKey = "xxxxxxxxxxx" 57 | # GoogleAPIKey: String 58 | # your google AI API, you can have one from https://aistudio.google.com 59 | # 你的谷歌AI API,你可以从 https://aistudio.google.com 获取 60 | 61 | 62 | # Bind a D1 database. D1 is Cloudflare’s native serverless SQL database. 63 | # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases 64 | [[d1_databases]] 65 | binding = "DB" 66 | database_name = "inbox-d1" 67 | database_id = "********-****-****-****-************" 68 | # database_id: String 69 | # replace with your database id 70 | # 请你替换为你的数据库 ID 71 | -------------------------------------------------------------------------------- /wrangler.toml.example.clear: -------------------------------------------------------------------------------- 1 | name = "auth-inbox" 2 | main = "src/index.ts" 3 | compatibility_date = "2024-10-04" 4 | compatibility_flags = ["nodejs_compat"] 5 | 6 | [observability] 7 | enabled = true 8 | 9 | [vars] 10 | UseBark = "true" 11 | barkUrl = "https://api.day.app" 12 | barkTokens = "[token1, token2]" 13 | FrontEndAdminID = "admin" 14 | FrontEndAdminPassword = "password" 15 | GoogleAPIKey = "xxxxxxxxxxx" 16 | 17 | [[d1_databases]] 18 | binding = "DB" 19 | database_name = "inbox-d1" 20 | database_id = "********-****-****-****-************" 21 | --------------------------------------------------------------------------------