diff --git a/extensions/ios-apps/.eslintrc.json b/extensions/ios-apps/.eslintrc.json new file mode 100644 index 00000000000..62b27e8ca1c --- /dev/null +++ b/extensions/ios-apps/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "root": true, + "extends": [ + "@raycast/eslint-config" + ] +} \ No newline at end of file diff --git a/extensions/ios-apps/.gitignore b/extensions/ios-apps/.gitignore new file mode 100644 index 00000000000..80a66eece01 --- /dev/null +++ b/extensions/ios-apps/.gitignore @@ -0,0 +1,8 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules + +# misc +.DS_Store +.windsurfrules diff --git a/extensions/ios-apps/.prettierrc b/extensions/ios-apps/.prettierrc new file mode 100644 index 00000000000..fc0f5030683 --- /dev/null +++ b/extensions/ios-apps/.prettierrc @@ -0,0 +1,4 @@ +{ + "printWidth": 120, + "singleQuote": false +} diff --git a/extensions/ios-apps/CHANGELOG.md b/extensions/ios-apps/CHANGELOG.md new file mode 100644 index 00000000000..3c8c04d849a --- /dev/null +++ b/extensions/ios-apps/CHANGELOG.md @@ -0,0 +1,3 @@ +# iOS App Search Changelog + +## [Initial Version] - {PR_MERGE_DATE} diff --git a/extensions/ios-apps/README.md b/extensions/ios-apps/README.md new file mode 100644 index 00000000000..ae6a8fdcde5 --- /dev/null +++ b/extensions/ios-apps/README.md @@ -0,0 +1,125 @@ +# iOS App Search + +Search, download, and view iOS apps from the App Store. + + + + + + + +## Features + +- **Search**: Quickly search for iOS apps by name, developer, or bundle ID +- **Rich App Details**: View comprehensive app information including ratings, screenshots, and metadata +- **Download**: Download IPA files directly to your computer +- **Copy Actions**: Easily copy app metadata like bundle ID, version, and App Store URLs +- **Raycast AI Tools**: Use AI commands to search, get details, and download iOS apps + +## Requirements + +### ipatool + +This extension requires [ipatool](https://github.com/majd/ipatool), a command-line tool for interacting with Apple's App Store. You can install it via Homebrew: + +```bash +brew install ipatool +``` + +By default, the extension looks for ipatool at `/opt/homebrew/bin/ipatool`. If your installation is in a different location, you can specify the path in the extension preferences. + +## How It Works + +### App Search and Metadata + +The extension uses a dual-source approach to provide comprehensive app information: + +1. **ipatool**: Provides the core search functionality and app download capabilities +2. **iTunes API**: Enriches the search results with additional metadata such as: + - High-resolution app icons and screenshots + - Ratings and reviews information + - Detailed app descriptions + - Release dates and version history + - Developer information and links + +This combination ensures you get the most complete and up-to-date information about iOS apps. + +### Apple ID Authentication + +To download apps from the App Store, you need to authenticate with your Apple ID. The extension handles this securely through ipatool: + +- Your Apple ID credentials are never stored within the Raycast extension +- Authentication is handled directly by ipatool, which securely stores credentials in your system's keychain + +## Raycast AI Tools + +This extension provides several AI tools that can be used with Raycast AI to enhance your workflow: + +### Search iOS Apps + +Search for iOS apps on the App Store by name or keyword. + +``` +Search iOS Apps "Spotify" +``` + +Options: +- `query`: The search query for finding iOS apps (required) +- `limit`: Maximum number of results to return (optional, default: 10, max: 20) + +### Get iOS App Details + +Get detailed information about an iOS app by name or search term. + +``` +Get iOS App Details "Airbnb" +``` + +Options: +- `query`: The name or search term for the iOS app (required) + +### Download iOS App + +Download an iOS app directly to your computer. + +``` +Download iOS App "Instagram" +``` + +Options: +- `query`: The name or search term for the iOS app (required) + +The download tool will search for the app, retrieve its details, and download the IPA file to your specified download directory. + +### Authentication Features + +- Two-factor authentication is fully supported +- The extension automatically detects if you're already authenticated + +When you first attempt to search or download an app, you'll be prompted to authenticate if needed. After successful authentication, your session will be remembered for future operations. + +### App Downloads + +Downloaded apps are saved as IPA files to your specified downloads directory (defaults to ~/Downloads). The files are automatically renamed to a user-friendly format: `{App Name} {Version}.ipa`. + +## Privacy + +This extension: +- Does not collect or transmit any personal data +- Only communicates with Apple's servers via the ipatool CLI and iTunes API +- Stores no credentials within the extension itself + +## Troubleshooting + +### Common Issues + +- **Authentication Failures**: If you're having trouble authenticating, try running `ipatool auth login` directly in your terminal +- **Download Errors**: Make sure you have sufficient disk space and permissions to write to your downloads directory +- **Search Not Working**: Verify that ipatool is correctly installed and accessible from the path specified in preferences + +## Credits + +- [ipatool](https://github.com/majd/ipatool) by Majd Alfhaily +- [iTunes Search API](https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/iTuneSearchAPI/index.html) by Apple +- [Windsurf](https://codeium.com/refer?referral_code=650bebd9a5) by Codeium +- [Claude 3.7](https://claude.ai) by Anthropic \ No newline at end of file diff --git a/extensions/ios-apps/TODO.md b/extensions/ios-apps/TODO.md new file mode 100644 index 00000000000..8f81d9bfebe --- /dev/null +++ b/extensions/ios-apps/TODO.md @@ -0,0 +1,2 @@ +- [ ] Make ipatool use optional +- [ ] Allow app searching without triggering auth diff --git a/extensions/ios-apps/assets/extension-icon.png b/extensions/ios-apps/assets/extension-icon.png new file mode 100644 index 00000000000..3dd0f3933fc Binary files /dev/null and b/extensions/ios-apps/assets/extension-icon.png differ diff --git a/extensions/ios-apps/assets/no-view.png b/extensions/ios-apps/assets/no-view.png new file mode 100644 index 00000000000..40e78d7c443 Binary files /dev/null and b/extensions/ios-apps/assets/no-view.png differ diff --git a/extensions/ios-apps/assets/no-view@256.png b/extensions/ios-apps/assets/no-view@256.png new file mode 100644 index 00000000000..28ec839fe7e Binary files /dev/null and b/extensions/ios-apps/assets/no-view@256.png differ diff --git a/extensions/ios-apps/metadata/screenshot-1.png b/extensions/ios-apps/metadata/screenshot-1.png new file mode 100644 index 00000000000..5dccff8f04a Binary files /dev/null and b/extensions/ios-apps/metadata/screenshot-1.png differ diff --git a/extensions/ios-apps/metadata/screenshot-2.png b/extensions/ios-apps/metadata/screenshot-2.png new file mode 100644 index 00000000000..f5bf2e7ca1c Binary files /dev/null and b/extensions/ios-apps/metadata/screenshot-2.png differ diff --git a/extensions/ios-apps/metadata/screenshot-3.png b/extensions/ios-apps/metadata/screenshot-3.png new file mode 100644 index 00000000000..50f98196264 Binary files /dev/null and b/extensions/ios-apps/metadata/screenshot-3.png differ diff --git a/extensions/ios-apps/metadata/screenshot-4.png b/extensions/ios-apps/metadata/screenshot-4.png new file mode 100644 index 00000000000..38ee4ff8eb6 Binary files /dev/null and b/extensions/ios-apps/metadata/screenshot-4.png differ diff --git a/extensions/ios-apps/package-lock.json b/extensions/ios-apps/package-lock.json new file mode 100644 index 00000000000..4ac422b3cfe --- /dev/null +++ b/extensions/ios-apps/package-lock.json @@ -0,0 +1,3894 @@ +{ + "name": "ios-apps", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "ios-apps", + "license": "MIT", + "dependencies": { + "@raycast/api": "^1.93.1", + "@raycast/utils": "^1.17.0", + "@types/react-dom": "^19.1.2", + "@types/stream-json": "^1.7.8", + "lodash": "^4.17.21", + "node-fetch": "^3.3.2", + "react": "^19.1.0", + "react-dom": "^19.1.0", + "stream-chain": "^2.2.5", + "stream-json": "^1.9.1" + }, + "devDependencies": { + "@raycast/eslint-config": "^1.0.11", + "@types/lodash": "^4.17.16", + "@types/node": "^20.10.2", + "@types/node-fetch": "^2.6.12", + "@types/react": "^19.1.2", + "eslint": "^8.57.0", + "prettier": "^3.3.3", + "typescript": "^5.8.3" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz", + "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz", + "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz", + "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz", + "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz", + "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz", + "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz", + "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz", + "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz", + "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz", + "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz", + "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz", + "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz", + "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz", + "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz", + "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz", + "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz", + "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz", + "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz", + "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz", + "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz", + "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz", + "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz", + "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz", + "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz", + "integrity": "sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz", + "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@inquirer/checkbox": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.5.tgz", + "integrity": "sha512-swPczVU+at65xa5uPfNP9u3qx/alNwiaykiI/ExpsmMSQW55trmZcwhYWzw/7fj+n6Q8z1eENvR7vFfq9oPSAQ==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.6", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/confirm": { + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.9.tgz", + "integrity": "sha512-NgQCnHqFTjF7Ys2fsqK2WtnA8X1kHyInyG+nMIuHowVTIgIuS10T4AznI/PvbqSpJqjCUqNBlKGh1v3bwLFL4w==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/core": { + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.10.tgz", + "integrity": "sha512-roDaKeY1PYY0aCqhRmXihrHjoSW2A00pV3Ke5fTpMCkzcGF64R8e0lw3dK+eLEHwS4vB5RnW1wuQmvzoRul8Mw==", + "license": "MIT", + "dependencies": { + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.6", + "ansi-escapes": "^4.3.2", + "cli-width": "^4.1.0", + "mute-stream": "^2.0.0", + "signal-exit": "^4.1.0", + "wrap-ansi": "^6.2.0", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/core/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@inquirer/editor": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.10.tgz", + "integrity": "sha512-5GVWJ+qeI6BzR6TIInLP9SXhWCEcvgFQYmcRG6d6RIlhFjM5TyG18paTGBgRYyEouvCmzeco47x9zX9tQEofkw==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6", + "external-editor": "^3.1.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/expand": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.12.tgz", + "integrity": "sha512-jV8QoZE1fC0vPe6TnsOfig+qwu7Iza1pkXoUJ3SroRagrt2hxiL+RbM432YAihNR7m7XnU0HWl/WQ35RIGmXHw==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/figures": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz", + "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@inquirer/input": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.9.tgz", + "integrity": "sha512-mshNG24Ij5KqsQtOZMgj5TwEjIf+F2HOESk6bjMwGWgcH5UBe8UoljwzNFHqdMbGYbgAf6v2wU/X9CAdKJzgOA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/number": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.12.tgz", + "integrity": "sha512-7HRFHxbPCA4e4jMxTQglHJwP+v/kpFsCf2szzfBHy98Wlc3L08HL76UDiA87TOdX5fwj2HMOLWqRWv9Pnn+Z5Q==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/password": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.12.tgz", + "integrity": "sha512-FlOB0zvuELPEbnBYiPaOdJIaDzb2PmJ7ghi/SVwIHDDSQ2K4opGBkF+5kXOg6ucrtSUQdLhVVY5tycH0j0l+0g==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6", + "ansi-escapes": "^4.3.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/prompts": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.5.0.tgz", + "integrity": "sha512-tk8Bx7l5AX/CR0sVfGj3Xg6v7cYlFBkEahH+EgBB+cZib6Fc83dwerTbzj7f2+qKckjIUGsviWRI1d7lx6nqQA==", + "license": "MIT", + "dependencies": { + "@inquirer/checkbox": "^4.1.5", + "@inquirer/confirm": "^5.1.9", + "@inquirer/editor": "^4.2.10", + "@inquirer/expand": "^4.0.12", + "@inquirer/input": "^4.1.9", + "@inquirer/number": "^3.0.12", + "@inquirer/password": "^4.0.12", + "@inquirer/rawlist": "^4.1.0", + "@inquirer/search": "^3.0.12", + "@inquirer/select": "^4.2.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/rawlist": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.0.tgz", + "integrity": "sha512-6ob45Oh9pXmfprKqUiEeMz/tjtVTFQTgDDz1xAMKMrIvyrYjAmRbQZjMJfsictlL4phgjLhdLu27IkHNnNjB7g==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/type": "^3.0.6", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/search": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.12.tgz", + "integrity": "sha512-H/kDJA3kNlnNIjB8YsaXoQI0Qccgf0Na14K1h8ExWhNmUg2E941dyFPrZeugihEa9AZNW5NdsD/NcvUME83OPQ==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.6", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/select": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.2.0.tgz", + "integrity": "sha512-KkXQ4aSySWimpV4V/TUJWdB3tdfENZUU765GjOIZ0uPwdbGIG6jrxD4dDf1w68uP+DVtfNhr1A92B+0mbTZ8FA==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^10.1.10", + "@inquirer/figures": "^1.0.11", + "@inquirer/type": "^3.0.6", + "ansi-escapes": "^4.3.2", + "yoctocolors-cjs": "^2.1.2" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@inquirer/type": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.6.tgz", + "integrity": "sha512-/mKVCtVpyBu3IDarv0G+59KC4stsD5mDsGpYh+GKs1NZT88Jh52+cuoA1AtLk2Q0r/quNl+1cSUyLRHBFeD0XA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@types/node": ">=18" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@oclif/core": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/@oclif/core/-/core-4.2.10.tgz", + "integrity": "sha512-fAqcXgqkUm4v5FYy7qWP4w1HaOlVSVJveah+yVTo5Nm5kTiXhmD5mQQ7+knGeBaStyrtQy6WardoC2xSic9rlQ==", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.3.2", + "ansis": "^3.17.0", + "clean-stack": "^3.0.1", + "cli-spinners": "^2.9.2", + "debug": "^4.4.0", + "ejs": "^3.1.10", + "get-package-type": "^0.1.0", + "globby": "^11.1.0", + "indent-string": "^4.0.0", + "is-wsl": "^2.2.0", + "lilconfig": "^3.1.3", + "minimatch": "^9.0.5", + "semver": "^7.6.3", + "string-width": "^4.2.3", + "supports-color": "^8", + "widest-line": "^3.1.0", + "wordwrap": "^1.0.0", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-autocomplete": { + "version": "3.2.27", + "resolved": "https://registry.npmjs.org/@oclif/plugin-autocomplete/-/plugin-autocomplete-3.2.27.tgz", + "integrity": "sha512-Aywx0Vw36k0fQVBa2uLb8FKblGAP7ly1cQ5bdKqL4BmhJnUasy37tpyIDMUor93asOS+kKFQg+52pOxQgXHi1A==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4", + "ansis": "^3.16.0", + "debug": "^4.4.0", + "ejs": "^3.1.10" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-help": { + "version": "6.2.27", + "resolved": "https://registry.npmjs.org/@oclif/plugin-help/-/plugin-help-6.2.27.tgz", + "integrity": "sha512-RWSWtCFVObRmCwgxVOye3lsYbPHTnB7G4He5LEAg2tf600Sil5yXEOL/ULx1TqL/XOQxKqRvmLn/rLQOMT85YA==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@oclif/plugin-not-found": { + "version": "3.2.49", + "resolved": "https://registry.npmjs.org/@oclif/plugin-not-found/-/plugin-not-found-3.2.49.tgz", + "integrity": "sha512-3V74/O5aFAqTTCJ7+X04M6vmt59Dk8HimB2uOlGgJrR7yLMW9JsVWKpDZZ6fl1hfd5kK9Jn4oaEt/1LuwfW1wQ==", + "license": "MIT", + "dependencies": { + "@inquirer/prompts": "^7.4.1", + "@oclif/core": "^4", + "ansis": "^3.17.0", + "fast-levenshtein": "^3.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@raycast/api": { + "version": "1.96.1", + "resolved": "https://registry.npmjs.org/@raycast/api/-/api-1.96.1.tgz", + "integrity": "sha512-TVtKEPuoGWQiaHTJlbwxgelsclb0U8ALLyw0IeIOcFa83fafkJih+RwSVJx7iP6CF4edssFzMwYkhca0rrpk7A==", + "license": "MIT", + "dependencies": { + "@oclif/core": "^4.0.33", + "@oclif/plugin-autocomplete": "^3.2.10", + "@oclif/plugin-help": "^6.2.18", + "@oclif/plugin-not-found": "^3.2.28", + "@types/node": "22.13.10", + "@types/react": "19.0.10", + "esbuild": "^0.25.1", + "react": "19.0.0" + }, + "bin": { + "ray": "bin/run.js" + }, + "engines": { + "node": ">=22.14.0" + }, + "peerDependencies": { + "@types/node": "22.13.10", + "@types/react": "19.0.10", + "react-devtools": "6.1.1" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@types/react": { + "optional": true + }, + "react-devtools": { + "optional": true + } + } + }, + "node_modules/@raycast/api/node_modules/@types/node": { + "version": "22.13.10", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", + "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, + "node_modules/@raycast/api/node_modules/@types/react": { + "version": "19.0.10", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.10.tgz", + "integrity": "sha512-JuRQ9KXLEjaUNjTWpzuR231Z2WpIwczOkBEIvbHNCzQefFIT0L8IqE6NV6ULLyC1SI/i234JnDoMkfg+RjQj2g==", + "license": "MIT", + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@raycast/api/node_modules/react": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.0.0.tgz", + "integrity": "sha512-V8AVnmPIICiWpGfm6GLzCR/W5FXLchHop40W4nXBmdlEceh16rCN8O8LNWm5bh5XUX91fh7KpA+W0TgMKmgTpQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@raycast/api/node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "license": "MIT" + }, + "node_modules/@raycast/eslint-config": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@raycast/eslint-config/-/eslint-config-1.0.11.tgz", + "integrity": "sha512-I0Lt8bwahVGkANUBxripIxKptMBz1Ou+UXGwfqgFvKwo1gVLrnlEngxaspQJA8L5pvzQkQMwizVCSgNC3bddWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@raycast/eslint-plugin": "^1.0.11", + "@rushstack/eslint-patch": "^1.10.4", + "@typescript-eslint/eslint-plugin": "^6.8.0", + "@typescript-eslint/parser": "^6.8.0", + "eslint-config-prettier": "^9.1.0" + }, + "peerDependencies": { + "eslint": ">=7", + "prettier": ">=2", + "typescript": ">=4" + } + }, + "node_modules/@raycast/eslint-plugin": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@raycast/eslint-plugin/-/eslint-plugin-1.0.16.tgz", + "integrity": "sha512-OyFL/W75/4hlgdUUI80Eoes0HjpVrJ8I1kB/PBH2RLjbcK22TC6IwZPXvhBZ5jF962O1TqtOuHrTjySwDaa/cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^5.62.0" + }, + "peerDependencies": { + "eslint": ">=7" + } + }, + "node_modules/@raycast/utils": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/@raycast/utils/-/utils-1.19.1.tgz", + "integrity": "sha512-/udUGcTZCgZZwzesmjBkqG5naQZTD/ZLHbqRwkWcF+W97vf9tr9raxKyQjKsdZ17OVllw2T3sHBQsVUdEmCm2g==", + "license": "MIT", + "dependencies": { + "cross-fetch": "^3.1.6", + "dequal": "^2.0.3", + "object-hash": "^3.0.0", + "signal-exit": "^4.0.2", + "stream-chain": "^2.2.5", + "stream-json": "^1.8.0" + }, + "peerDependencies": { + "@raycast/api": ">=1.69.0" + } + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.11.0.tgz", + "integrity": "sha512-zxnHvoMQVqewTJr/W4pKjF0bMGiKJv1WX7bSrkl46Hg0QjESbzBROWK0Wg4RphzSOS5Jiy7eFimmM3UgMrMZbQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.16", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.16.tgz", + "integrity": "sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.17.31", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.17.31.tgz", + "integrity": "sha512-quODOCNXQAbNf1Q7V+fI8WyErOCh0D5Yd31vHnKu4GkSztGQ7rlltAaqXhHhLl33tlVyUXs2386MkANSwgDn6A==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.2" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/react": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.2.tgz", + "integrity": "sha512-oxLPMytKchWGbnQM9O7D67uPa9paTNxO7jVoNMXgkkErULBPhPARCfkKL9ytcIJJRGjbsVwW4ugJzyFFvm/Tiw==", + "license": "MIT", + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.1.2", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.2.tgz", + "integrity": "sha512-XGJkWF41Qq305SKWEILa1O8vzhb3aOo3ogBlSmiqNko/WmRb6QIaweuZCXjKygVDXpzXb5wyxKTSOsmkuqj+Qw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "node_modules/@types/semver": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.7.0.tgz", + "integrity": "sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/stream-chain": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/stream-chain/-/stream-chain-2.1.0.tgz", + "integrity": "sha512-guDyAl6s/CAzXUOWpGK2bHvdiopLIwpGu8v10+lb9hnQOyo4oj/ZUQFOvqFjKGsE3wJP1fpIesCcMvbXuWsqOg==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stream-json": { + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/@types/stream-json/-/stream-json-1.7.8.tgz", + "integrity": "sha512-MU1OB1eFLcYWd1LjwKXrxdoPtXSRzRmAnnxs4Js/ayB5O/NvHraWwuOaqMWIebpYwM6khFlsJOHEhI9xK/ab4Q==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/stream-chain": "*" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", + "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/type-utils": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", + "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", + "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", + "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.21.0.tgz", + "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", + "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", + "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.62.0", + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/typescript-estree": "5.62.0", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", + "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", + "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", + "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "@typescript-eslint/visitor-keys": "5.62.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "5.62.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", + "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.62.0", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", + "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ansis": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz", + "integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==", + "license": "ISC", + "engines": { + "node": ">=14" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "license": "MIT" + }, + "node_modules/clean-stack": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-3.0.1.tgz", + "integrity": "sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", + "license": "ISC", + "engines": { + "node": ">= 12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" + }, + "node_modules/cross-fetch": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.2.0.tgz", + "integrity": "sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.7.0" + } + }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", + "license": "MIT" + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz", + "integrity": "sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.3", + "@esbuild/android-arm": "0.25.3", + "@esbuild/android-arm64": "0.25.3", + "@esbuild/android-x64": "0.25.3", + "@esbuild/darwin-arm64": "0.25.3", + "@esbuild/darwin-x64": "0.25.3", + "@esbuild/freebsd-arm64": "0.25.3", + "@esbuild/freebsd-x64": "0.25.3", + "@esbuild/linux-arm": "0.25.3", + "@esbuild/linux-arm64": "0.25.3", + "@esbuild/linux-ia32": "0.25.3", + "@esbuild/linux-loong64": "0.25.3", + "@esbuild/linux-mips64el": "0.25.3", + "@esbuild/linux-ppc64": "0.25.3", + "@esbuild/linux-riscv64": "0.25.3", + "@esbuild/linux-s390x": "0.25.3", + "@esbuild/linux-x64": "0.25.3", + "@esbuild/netbsd-arm64": "0.25.3", + "@esbuild/netbsd-x64": "0.25.3", + "@esbuild/openbsd-arm64": "0.25.3", + "@esbuild/openbsd-x64": "0.25.3", + "@esbuild/sunos-x64": "0.25.3", + "@esbuild/win32-arm64": "0.25.3", + "@esbuild/win32-ia32": "0.25.3", + "@esbuild/win32-x64": "0.25.3" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "dev": true, + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/external-editor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", + "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", + "license": "MIT", + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz", + "integrity": "sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ==", + "license": "MIT", + "dependencies": { + "fastest-levenshtein": "^1.0.7" + } + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/form-data": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", + "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globals/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jake/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mute-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz", + "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==", + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/optionator/node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", + "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", + "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.26.0" + }, + "peerDependencies": { + "react": "^19.1.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", + "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/stream-chain": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz", + "integrity": "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA==", + "license": "BSD-3-Clause" + }, + "node_modules/stream-json": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/stream-json/-/stream-json-1.9.1.tgz", + "integrity": "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw==", + "license": "BSD-3-Clause", + "dependencies": { + "stream-chain": "^2.2.5" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "license": "MIT", + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true, + "license": "0BSD" + }, + "node_modules/tsutils": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", + "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "license": "MIT" + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "license": "MIT", + "dependencies": { + "string-width": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yoctocolors-cjs": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz", + "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/extensions/ios-apps/package.json b/extensions/ios-apps/package.json new file mode 100644 index 00000000000..84cd20a3009 --- /dev/null +++ b/extensions/ios-apps/package.json @@ -0,0 +1,195 @@ +{ + "$schema": "https://www.raycast.com/schemas/extension.json", + "name": "ios-apps", + "title": "iOS App Search", + "description": "Search, download, and view iOS apps from the App Store.", + "icon": "extension-icon.png", + "author": "chrismessina", + "categories": [ + "Developer Tools" + ], + "license": "MIT", + "commands": [ + { + "name": "search", + "title": "Search Apps", + "subtitle": "iOS App Search", + "description": "Search for iOS apps on the App Store", + "mode": "view" + } + ], + "tools": [ + { + "name": "search-apps", + "title": "Search iOS Apps", + "description": "Search for iOS apps on the App Store by name or keyword", + "path": "./src/tools/search-apps.ts", + "arguments": [ + { + "name": "query", + "type": "string", + "description": "The search query for finding iOS apps", + "required": true + }, + { + "name": "limit", + "type": "number", + "description": "Maximum number of results to return (default: 10, max: 20)", + "required": false + } + ] + }, + { + "name": "get-app-details", + "title": "Get iOS App Details", + "description": "Get detailed information about an iOS app by name or search term", + "path": "./src/tools/get-app-details.ts", + "arguments": [ + { + "name": "query", + "type": "string", + "description": "The name or search term for the iOS app", + "required": true + }, + { + "name": "bundleId", + "type": "string", + "description": "Optional bundle ID if known (will skip search step)", + "required": false + } + ] + }, + { + "name": "download-app", + "title": "Download iOS App", + "description": "Download an iOS app", + "path": "./src/tools/download-app.ts", + "arguments": [ + { + "name": "query", + "type": "string", + "description": "The name or search term for the iOS app", + "required": true + } + ] + } + ], + "preferences": [ + { + "name": "appleId", + "title": "Apple ID", + "description": "Your Apple ID email for authentication", + "type": "textfield", + "required": true + }, + { + "name": "password", + "title": "Password", + "description": "Your Apple ID password", + "type": "password", + "required": true + }, + { + "name": "downloadPath", + "title": "Download Path", + "description": "Path to download app files", + "type": "directory", + "default": "~/Downloads", + "required": false + }, + { + "name": "homebrewPath", + "title": "Homebrew Path", + "description": "Path to the Homebrew executable. You can enter `which brew` in terminal to find its path.", + "type": "textfield", + "default": "/opt/homebrew/bin/brew", + "required": false + }, + { + "name": "ipatoolPath", + "title": "ipatool Path", + "description": "Path to the ipatool executable. You can enter `which ipatool` in terminal to find its path.", + "type": "textfield", + "default": "/opt/homebrew/bin/ipatool", + "required": false + } + ], + "ai": { + "evals": [ + { + "input": "@ios-apps search for Twitter", + "mocks": { + "search-apps": "Here are iOS apps matching \"Twitter\":\n\n- **X**\n Developer: X Corp.\n Category: Social Networking\n Rating: 4.5/5 (2.3M reviews)\n Price: Free\n [View on App Store](https://apps.apple.com/us/app/x/id333903271)\n\n- **Threads**\n Developer: Instagram, Inc.\n Category: Social Networking\n Rating: 4.2/5 (245K reviews)\n Price: Free\n [View on App Store](https://apps.apple.com/us/app/threads/id6446901002)\n\n- **Bluesky Social**\n Developer: Bluesky PBC\n Category: Social Networking\n Rating: 4.6/5 (42K reviews)\n Price: Free\n [View on App Store](https://apps.apple.com/us/app/bluesky-social/id6444370199)" + }, + "expected": [ + { + "callsTool": "search-apps" + } + ] + }, + { + "input": "@ios-apps tell me about Minecraft", + "mocks": { + "get-app-details": "# Minecraft\n\n**Developer**: Mojang\n**Category**: Games\n**Size**: 456.8 MB\n**Age Rating**: 9+\n**Price**: $6.99\n**Rating**: ★★★★★ (4.8) based on 1.2M reviews\n\n**Version**: 1.20.51\n**Last Updated**: March 5, 2025\n\n**Description**:\nExplore infinite worlds and build everything from the simplest of homes to the grandest of castles. Create, explore and survive alone or with friends on mobile devices or Windows 10.\n\n**What's New in the Latest Version**:\n- Added new biomes: Cherry Grove and Bamboo Jungle\n- New mobs: Camels and Sniffers\n- Performance improvements and bug fixes\n\n**Screenshots**:\n[View Screenshots on App Store]\n\n**Links**:\n- [View on App Store](https://apps.apple.com/us/app/minecraft/id479516143)\n- [Developer Website](https://www.minecraft.net/)" + }, + "expected": [ + { + "callsTool": "get-app-details" + } + ] + }, + { + "input": "@ios-apps download Spotify", + "mocks": { + "download-app": "Downloading Spotify...\n\nApp found: Spotify - Music and Podcasts\nDeveloper: Spotify AB\nBundle ID: com.spotify.client\n\nDownload started to ~/Downloads/Spotify.ipa\nDownload completed successfully!\n\nYou can install this app using:\n1. Sideloadly (https://sideloadly.io/)\n2. AltStore (https://altstore.io/)\n3. Apple Configurator 2 (for developers)\n\nThe IPA file is located at: ~/Downloads/Spotify.ipa" + }, + "expected": [ + { + "callsTool": "download-app" + } + ] + }, + { + "input": "@ios-apps search for games with limit 5", + "mocks": { + "search-apps": "Here are top iOS games:\n\n- **Roblox**\n Developer: Roblox Corporation\n Category: Games\n Rating: 4.4/5 (3.8M reviews)\n Price: Free (In-App Purchases)\n [View on App Store](https://apps.apple.com/us/app/roblox/id431946152)\n\n- **Minecraft**\n Developer: Mojang\n Category: Games\n Rating: 4.8/5 (1.2M reviews)\n Price: $6.99\n [View on App Store](https://apps.apple.com/us/app/minecraft/id479516143)\n\n- **Genshin Impact**\n Developer: miHoYo Limited\n Category: Games\n Rating: 4.7/5 (278K reviews)\n Price: Free (In-App Purchases)\n [View on App Store](https://apps.apple.com/us/app/genshin-impact/id1517783697)\n\n- **Candy Crush Saga**\n Developer: King\n Category: Games\n Rating: 4.7/5 (1.5M reviews)\n Price: Free (In-App Purchases)\n [View on App Store](https://apps.apple.com/us/app/candy-crush-saga/id553834731)\n\n- **Among Us!**\n Developer: InnerSloth LLC\n Category: Games\n Rating: 4.3/5 (635K reviews)\n Price: Free (In-App Purchases)\n [View on App Store](https://apps.apple.com/us/app/among-us/id1351168404)" + }, + "expected": [ + { + "callsTool": "search-apps" + } + ] + } + ] + }, + "dependencies": { + "@raycast/api": "^1.93.1", + "@raycast/utils": "^1.17.0", + "@types/react-dom": "^19.1.2", + "@types/stream-json": "^1.7.8", + "lodash": "^4.17.21", + "node-fetch": "^3.3.2", + "react": "^19.1.0", + "react-dom": "^19.1.0", + "stream-chain": "^2.2.5", + "stream-json": "^1.9.1" + }, + "devDependencies": { + "@raycast/eslint-config": "^1.0.11", + "@types/lodash": "^4.17.16", + "@types/node": "^20.10.2", + "@types/node-fetch": "^2.6.12", + "@types/react": "^19.1.2", + "eslint": "^8.57.0", + "prettier": "^3.3.3", + "typescript": "^5.8.3" + }, + "scripts": { + "build": "ray build", + "dev": "ray develop", + "fix-lint": "ray lint --fix", + "lint": "ray lint", + "prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1", + "publish": "npx @raycast/api@latest publish" + } +} diff --git a/extensions/ios-apps/src/app-detail-view.tsx b/extensions/ios-apps/src/app-detail-view.tsx new file mode 100644 index 00000000000..f457653673d --- /dev/null +++ b/extensions/ios-apps/src/app-detail-view.tsx @@ -0,0 +1,145 @@ +// src/app-detail-view.tsx - Detail view for an app +// Displays comprehensive information about an iOS app with metadata and actions +import { Detail, Color, Icon } from "@raycast/api"; +import { AppDetails } from "./types"; +import { formatPrice } from "./utils/paths"; +import { renderStarRating, formatDate } from "./utils/common"; +import { AppActionPanel } from "./components/app-action-panel"; +import { useAppDetails, useAppDownload } from "./hooks"; + +interface AppDetailViewProps { + app: AppDetails; +} + +export default function AppDetailView({ app: initialApp }: AppDetailViewProps) { + // Use the custom hooks + const { app, isLoading } = useAppDetails(initialApp); + const { downloadApp } = useAppDownload(); + + // Function to format file size to human-readable format (e.g., KB, MB, GB) + // Handles string or number input and provides fallbacks for invalid values + function formatFileSize(bytes: number | string): string { + if (!bytes || bytes === 0 || bytes === "0") return "Unknown"; + + // Convert string to number if needed + const bytesNum = typeof bytes === "string" ? parseInt(bytes, 10) : bytes; + + if (isNaN(bytesNum) || bytesNum === 0) return "Unknown"; + + const k = 1024; + const sizes = ["Bytes", "KB", "MB", "GB", "TB"]; + const i = Math.floor(Math.log(bytesNum) / Math.log(k)); + return parseFloat((bytesNum / Math.pow(k, i)).toFixed(2)) + " " + sizes[i]; + } + + // Get the app icon URL with fallbacks (prioritizing higher resolution) + // Uses artworkUrl512 first, then falls back to artworkUrl60, then iconUrl + const iconUrl = app.artworkUrl512 || app.artworkUrl60 || app.iconUrl || ""; + console.log(`[AppDetailView] Rendering app: ${app.name}, version: ${app.version}, bundleID: ${app.bundleId}`); + console.log("[AppDetailView] Using icon URL:", iconUrl); + + // Create a fallback App Store URL if trackViewUrl is not available + const appStoreUrl = app.trackViewUrl || `https://apps.apple.com/app/id${app.id}`; + console.log("[AppDetailView] Using App Store URL:", appStoreUrl); + + // Get the app rating + const rating = app.averageUserRatingForCurrentVersion || app.averageUserRating; + const ratingCount = app.userRatingCountForCurrentVersion || app.userRatingCount; + const ratingText = rating ? `${rating.toFixed(1)} ${renderStarRating(rating)}` : "No Rating"; + + // Format rating count with K/M suffix for thousands/millions + let ratingCountText = "No Ratings"; + if (ratingCount) { + if (ratingCount >= 1000000) { + ratingCountText = `${(ratingCount / 1000000).toFixed(1)}M Ratings`; + } else if (ratingCount >= 1000) { + ratingCountText = `${(ratingCount / 1000).toFixed(1)}K Ratings`; + } else { + ratingCountText = `${ratingCount} Ratings`; + } + } + + // Format release dates + const releaseDate = formatDate(app.releaseDate); + const currentVersionReleaseDate = formatDate(app.currentVersionReleaseDate); + + // Debug information - helps troubleshoot missing or incorrect data + console.log("[AppDetailView] App genres:", app.genres); + console.log("[AppDetailView] App sellerName:", app.sellerName); + console.log("[AppDetailView] App price:", app.price, "formatted as:", formatPrice(app.price)); + console.log("[AppDetailView] App size:", app.size, "formatted as:", formatFileSize(app.size)); + // Log the full app object for comprehensive debugging (only in development) + if (process.env.NODE_ENV === "development") { + console.log("[AppDetailView] Full app object:", JSON.stringify(app, null, 2)); + } + + return ( + 0 + ? ` +### Screenshots + +${app.screenshotUrls.map((url, index) => `![Screenshot ${index + 1}](${url}?raycast-width=128)`).join(" ")} +` + : "" +} + `} + metadata={ + + + {app.genres && app.genres.length > 0 ? ( + app.genres.map((genre, index) => ( + + )) + ) : ( + + )} + + + + + {app.price !== "0" && ( + + )} + + + + + + + + + + + + + + + + + + {app.artistViewUrl && ( + + )} + + } + actions={ + downloadApp(app.bundleId, app.name, app.version, app.price, true)} + showViewDetails={false} + /> + } + /> + ); +} diff --git a/extensions/ios-apps/src/components/app-action-panel.tsx b/extensions/ios-apps/src/components/app-action-panel.tsx new file mode 100644 index 00000000000..4b88d30183c --- /dev/null +++ b/extensions/ios-apps/src/components/app-action-panel.tsx @@ -0,0 +1,24 @@ +import { ActionPanel, Action, Icon } from "@raycast/api"; +import { AppDetails } from "../types"; +import { AppActions } from "./app-actions"; +import { CopyActions } from "./copy-actions"; +import AppDetailView from "../app-detail-view"; + +interface AppActionPanelProps { + app: AppDetails; + onDownload?: (app: AppDetails) => Promise; + showViewDetails?: boolean; +} + +/** + * Reusable ActionPanel component for app-related actions + */ +export function AppActionPanel({ app, onDownload, showViewDetails = true }: AppActionPanelProps) { + return ( + + {showViewDetails && } />} + + + + ); +} diff --git a/extensions/ios-apps/src/components/app-actions.tsx b/extensions/ios-apps/src/components/app-actions.tsx new file mode 100644 index 00000000000..328f499727e --- /dev/null +++ b/extensions/ios-apps/src/components/app-actions.tsx @@ -0,0 +1,59 @@ +import { ActionPanel, Action, Icon } from "@raycast/api"; +import { showFailureToast } from "@raycast/utils"; +import { AppDetails } from "../types"; +import { downloadIPA } from "../ipatool"; +import { downloadScreenshots } from "../utils/itunes-api"; + +interface AppActionsProps { + app: AppDetails; + onDownload?: (app: AppDetails) => Promise; + onDownloadScreenshots?: (app: AppDetails) => Promise; +} + +/** + * Reusable component for app-related actions + */ +export function AppActions({ app, onDownload, onDownloadScreenshots }: AppActionsProps) { + // Create a fallback App Store URL if trackViewUrl is not available + const appStoreUrl = app.trackViewUrl || (app.id ? `https://apps.apple.com/app/id${app.id}` : undefined); + + // Default download handler if none provided + const handleDownload = async () => { + try { + if (onDownload) { + return await onDownload(app); + } + + // Fall back to direct download if no handler provided + return await downloadIPA(app.bundleId, app.name, app.version, app.price); + } catch (error) { + console.error("Error downloading app:", error); + showFailureToast({ title: "Error downloading app", message: String(error) }); + return null; + } + }; + + const handleDownloadScreenshots = async () => { + try { + if (onDownloadScreenshots) { + return await onDownloadScreenshots(app); + } + + // Fall back to direct download if no handler provided + return await downloadScreenshots(app.bundleId, app.name, app.version, app.price); + } catch (error) { + console.error("Error downloading screenshots:", error); + showFailureToast({ title: "Error downloading screenshots", message: String(error) }); + return null; + } + }; + + return ( + + + + {appStoreUrl && } + {app.artistViewUrl && } + + ); +} diff --git a/extensions/ios-apps/src/components/copy-actions.tsx b/extensions/ios-apps/src/components/copy-actions.tsx new file mode 100644 index 00000000000..b5a6620d112 --- /dev/null +++ b/extensions/ios-apps/src/components/copy-actions.tsx @@ -0,0 +1,63 @@ +import { ActionPanel, Action, Icon, Clipboard, showToast, Toast } from "@raycast/api"; +import { AppDetails } from "../types"; + +interface CopyActionsProps { + app: AppDetails; +} + +/** + * Reusable component for copy-related actions + */ +export function CopyActions({ app }: CopyActionsProps) { + // Function to copy text to clipboard + async function copyToClipboard(text: string, toastTitle: string) { + await Clipboard.copy(text); + showToast(Toast.Style.Success, toastTitle, "Copied to clipboard"); + } + + // Create a fallback App Store URL if trackViewUrl is not available + const appStoreUrl = app.trackViewUrl || `https://apps.apple.com/app/id${app.id}`; + + return ( + + copyToClipboard(app.name, "App Name")} + /> + {app.version && ( + copyToClipboard(app.version, "App Version")} + /> + )} + copyToClipboard(app.bundleId, "Bundle Id")} + /> + copyToClipboard(app.sellerName || "Unknown Developer", "Developer")} + /> + copyToClipboard(appStoreUrl, "App Store URL")} + /> + {app.artistViewUrl && ( + copyToClipboard(app.artistViewUrl!, "Developer URL")} + /> + )} + + ); +} diff --git a/extensions/ios-apps/src/hooks/index.ts b/extensions/ios-apps/src/hooks/index.ts new file mode 100644 index 00000000000..be3dd3ac0e9 --- /dev/null +++ b/extensions/ios-apps/src/hooks/index.ts @@ -0,0 +1,4 @@ +export * from "./use-app-search"; +export * from "./use-app-download"; +export * from "./use-app-details"; +export * from "./use-clipboard"; diff --git a/extensions/ios-apps/src/hooks/use-app-details.ts b/extensions/ios-apps/src/hooks/use-app-details.ts new file mode 100644 index 00000000000..19a88028564 --- /dev/null +++ b/extensions/ios-apps/src/hooks/use-app-details.ts @@ -0,0 +1,45 @@ +import { useState, useEffect } from "react"; +import { AppDetails } from "../types"; +import { enrichAppDetails } from "../utils/itunes-api"; + +interface UseAppDetailsResult { + app: AppDetails; + isLoading: boolean; + error: string | null; +} + +/** + * Hook for loading and enriching app details + * @param initialApp The initial app details to enrich + * @returns Object with enriched app details and loading state + */ +export function useAppDetails(initialApp: AppDetails): UseAppDetailsResult { + const [app, setApp] = useState(initialApp); + const [isLoading, setIsLoading] = useState(true); + const [error, setError] = useState(null); + + useEffect(() => { + async function loadEnrichedAppDetails() { + setIsLoading(true); + setError(null); + + try { + const enrichedApp = await enrichAppDetails(initialApp); + setApp(enrichedApp); + } catch (error) { + console.error("Error loading enriched app details:", error); + setError(`Error: ${error}`); + } finally { + setIsLoading(false); + } + } + + loadEnrichedAppDetails(); + }, [initialApp.bundleId]); + + return { + app, + isLoading, + error, + }; +} diff --git a/extensions/ios-apps/src/hooks/use-app-download.ts b/extensions/ios-apps/src/hooks/use-app-download.ts new file mode 100644 index 00000000000..08ea32e2e99 --- /dev/null +++ b/extensions/ios-apps/src/hooks/use-app-download.ts @@ -0,0 +1,74 @@ +import { useState } from "react"; +import { showToast, Toast, showHUD } from "@raycast/api"; +import { downloadIPA } from "../ipatool"; + +/** + * Hook for downloading an app + * @returns Object with download function and loading state + */ +export function useAppDownload() { + const [isLoading, setIsLoading] = useState(false); + + /** + * Download an app using ipatool + * @param bundleId The bundle ID of the app to download + * @param name The name of the app + * @param version The version of the app + * @param price The price of the app + * @param showHudMessages Whether to show HUD messages during download + * @returns The path to the downloaded file or undefined if download failed + */ + const downloadApp = async ( + bundleId: string, + name: string, + version: string, + price: string, + showHudMessages = true, + ): Promise => { + try { + setIsLoading(true); + + if (showHudMessages) { + await showHUD(`Downloading ${name}...`, { clearRootSearch: true }); + } + + const filePath = await downloadIPA(bundleId, name, version, price); + + if (filePath) { + if (showHudMessages) { + await showHUD("Download complete", { clearRootSearch: true }); + } + + showToast(Toast.Style.Success, "Download Complete", `${name} saved to ${filePath}`); + + return filePath; + } else { + if (showHudMessages) { + await showHUD("Download failed", { clearRootSearch: true }); + } + + showToast(Toast.Style.Failure, "Download Failed", "Could not determine file path"); + return undefined; + } + } catch (error) { + if (showHudMessages) { + await showHUD("Download failed", { clearRootSearch: true }); + } + + showToast( + Toast.Style.Failure, + "Download Failed", + `Error: ${error instanceof Error ? error.message : String(error)}`, + ); + + return undefined; + } finally { + setIsLoading(false); + } + }; + + return { + downloadApp, + isLoading, + }; +} diff --git a/extensions/ios-apps/src/hooks/use-app-screenshots.ts b/extensions/ios-apps/src/hooks/use-app-screenshots.ts new file mode 100644 index 00000000000..1124883b558 --- /dev/null +++ b/extensions/ios-apps/src/hooks/use-app-screenshots.ts @@ -0,0 +1,69 @@ +import { useState, useCallback } from "react"; +import { showFailureToast } from "@raycast/utils"; +import { AppDetails } from "../types"; +import { downloadScreenshots } from "../utils/itunes-api"; + +/** + * Interface for the screenshot download state + */ +export interface ScreenshotDownloadState { + isLoading: boolean; + error: Error | null; + downloadPath: string | null; +} + +/** + * React hook for downloading app screenshots + * @returns A hook with state and download function + */ +export function useAppScreenshots() { + const [state, setState] = useState({ + isLoading: false, + error: null, + downloadPath: null, + }); + + /** + * Download screenshots for an app + * @param app The app details object + * @returns Path to the downloaded screenshots directory or null if failed + */ + const downloadAppScreenshots = useCallback(async (app: AppDetails): Promise => { + // Reset state + setState({ + isLoading: true, + error: null, + downloadPath: null, + }); + + try { + // Use the downloadScreenshots function from itunes-api.ts + const downloadPath = await downloadScreenshots(app.bundleId, app.name, app.version, app.price); + + if (downloadPath) { + setState({ + isLoading: false, + error: null, + downloadPath, + }); + return downloadPath; + } else { + throw new Error("Failed to download screenshots"); + } + } catch (error) { + console.error("Error in useAppScreenshots hook:", error); + setState({ + isLoading: false, + error: error instanceof Error ? error : new Error(String(error)), + downloadPath: null, + }); + await showFailureToast(error, { title: "Failed to download screenshots" }); + return null; + } + }, []); + + return { + ...state, + downloadAppScreenshots, + }; +} diff --git a/extensions/ios-apps/src/hooks/use-app-search.ts b/extensions/ios-apps/src/hooks/use-app-search.ts new file mode 100644 index 00000000000..1c508ed9203 --- /dev/null +++ b/extensions/ios-apps/src/hooks/use-app-search.ts @@ -0,0 +1,149 @@ +import { useState, useEffect, useCallback } from "react"; +import { showToast, Toast } from "@raycast/api"; +import { exec } from "child_process"; +import { promisify } from "util"; +import { debounce } from "lodash"; +import { AppDetails } from "../types"; +import { IpaToolSearchApp } from "../types"; +import { IPATOOL_PATH } from "../utils/paths"; +import { ensureAuthenticated } from "../utils/common"; +import { enrichAppDetails } from "../utils/itunes-api"; + +const execAsync = promisify(exec); + +interface UseAppSearchResult { + apps: AppDetails[]; + isLoading: boolean; + error: string | null; + totalResults: number; + setSearchText: (text: string) => void; +} + +/** + * Hook for searching apps with debounced input + * @param initialSearchText Initial search text + * @param debounceMs Debounce time in milliseconds + * @param limit Maximum number of results to return + * @returns Object with search results and state + */ +export function useAppSearch(initialSearchText = "", debounceMs = 500, limit = 20): UseAppSearchResult { + const [searchText, setSearchText] = useState(initialSearchText); + const [isLoading, setIsLoading] = useState(false); + const [apps, setApps] = useState([]); + const [error, setError] = useState(null); + const [totalResults, setTotalResults] = useState(0); + + // Define the search function + const performSearch = async (query: string) => { + if (!query) { + setApps([]); + setError(null); + return; + } + + setIsLoading(true); + setError(null); + + try { + // Ensure the user is authenticated + await ensureAuthenticated(); + + // Search for apps - using the correct flag --format json + const { stdout, stderr } = await execAsync( + `${IPATOOL_PATH} search "${query}" --limit ${limit} --format json --non-interactive`, + ); + + if (stderr) { + console.error("ipatool search stderr:", stderr); + } + + // Parse the JSON response + const searchResult = JSON.parse(stdout); + + // Extract the apps array and count from the search result + // Note: ipatool returns an object with 'apps' array and 'count' field + const ipaApps: IpaToolSearchApp[] = searchResult.apps || []; + const count = searchResult.count || 0; + + // Map the ipatool apps to our AppDetails interface + const mappedApps: AppDetails[] = ipaApps.map((app) => ({ + id: app.id.toString(), + name: app.name, + bundleId: app.bundleID.toLowerCase(), // Use lowercase bundleId as per AppDetails interface + version: app.version, + price: app.price.toString(), + artistName: app.developer, + // Required fields from AppDetails interface + artworkUrl60: undefined, + iconUrl: "", + sellerName: app.developer, + size: "", + contentRating: "", + // Add placeholder values for fields that will be enriched later + description: "", + genres: [], + releaseDate: "", + currentVersionReleaseDate: "", + averageUserRating: 0, + userRatingCount: 0, + artworkUrl512: "", + screenshotUrls: [], + trackViewUrl: "", + artistViewUrl: "", + isGameCenterEnabled: false, + })); + + // Enrich the app details with iTunes API data + const enrichedApps = await Promise.all( + mappedApps.map(async (app) => { + try { + return await enrichAppDetails(app); + } catch (error) { + console.error(`Error enriching app ${app.name}:`, error); + return app; + } + }), + ); + + setApps(enrichedApps); + setTotalResults(count); + } catch (error) { + console.error("Error searching for apps:", error); + setError(`Error: ${error instanceof Error ? error.message : String(error)}`); + showToast(Toast.Style.Failure, "Search Failed", String(error)); + } finally { + setIsLoading(false); + } + }; + + // Create a debounced version of the search function + const debouncedSearch = useCallback( + debounce((query: string) => { + performSearch(query); + }, debounceMs), + [], + ); + + // Update search when text changes + useEffect(() => { + if (searchText) { + debouncedSearch(searchText); + } else { + setApps([]); + setTotalResults(0); + } + + // Cleanup function to cancel any pending debounced calls + return () => { + debouncedSearch.cancel(); + }; + }, [searchText, debouncedSearch]); + + return { + apps, + isLoading, + error, + totalResults, + setSearchText, + }; +} diff --git a/extensions/ios-apps/src/hooks/use-clipboard.ts b/extensions/ios-apps/src/hooks/use-clipboard.ts new file mode 100644 index 00000000000..b273b2d6c23 --- /dev/null +++ b/extensions/ios-apps/src/hooks/use-clipboard.ts @@ -0,0 +1,22 @@ +import { Clipboard, showToast, Toast } from "@raycast/api"; + +/** + * Hook for clipboard operations + * @returns Object with clipboard functions + */ +export function useClipboard() { + /** + * Copy text to clipboard and show a toast notification + * @param text Text to copy + * @param toastTitle Title for the toast notification + * @param toastMessage Optional message for the toast notification + */ + const copyToClipboard = async (text: string, toastTitle: string, toastMessage = "Copied to clipboard") => { + await Clipboard.copy(text); + showToast(Toast.Style.Success, toastTitle, toastMessage); + }; + + return { + copyToClipboard, + }; +} diff --git a/extensions/ios-apps/src/ipatool.ts b/extensions/ios-apps/src/ipatool.ts new file mode 100644 index 00000000000..cdd5305653f --- /dev/null +++ b/extensions/ios-apps/src/ipatool.ts @@ -0,0 +1,464 @@ +import { promisify } from "util"; +import { showToast, Toast, showHUD } from "@raycast/api"; +import { IPATOOL_PATH, getDownloadsDirectory } from "./utils/paths"; +import { ensureAuthenticated, safeJsonParse, extractFilePath } from "./utils/common"; +import { fetchITunesAppDetails, convertITunesResultToAppDetails } from "./utils/itunes-api"; +import path from "path"; +import fs from "fs"; +import { exec, spawn } from "child_process"; +import { AppDetails, IpaToolSearchApp, IpaToolSearchResponse } from "./types"; + +// Retry configuration for handling transient network errors +const MAX_RETRIES = 3; // Maximum number of retry attempts +const INITIAL_RETRY_DELAY = 2000; // Initial delay between retries (2 seconds) + +const execAsync = promisify(exec); + +/** + * Search for iOS apps using ipatool + * @param query Search query + * @param limit Maximum number of results + * @returns Array of app results + */ +export async function searchApps(query: string, limit = 20): Promise { + try { + console.log(`[ipatool] Searching for apps with query: "${query}", limit: ${limit}`); + + // Ensure we're authenticated before proceeding + const isAuthenticated = await ensureAuthenticated(); + if (!isAuthenticated) { + console.error("[ipatool] Authentication failed during app search"); + showToast(Toast.Style.Failure, "Authentication failed", "Please check your Apple ID credentials"); + return []; + } + + // Execute the search command with proper formatting and non-interactive mode + const searchCommand = `${IPATOOL_PATH} search "${query}" -l ${limit} --format json --non-interactive`; + console.log(`[ipatool] Executing search command: ${searchCommand}`); + const { stdout } = await execAsync(searchCommand); + + // Parse the JSON output with fallback to empty response if parsing fails + console.log(`[ipatool] Received search response, parsing JSON...`); + const searchResponse = safeJsonParse(stdout, { count: 0, apps: [] }); + console.log(`[ipatool] Found ${searchResponse.apps?.length || 0} apps in search results`); + + return searchResponse.apps || []; + } catch (error) { + console.error("Error searching apps:", error); + showToast(Toast.Style.Failure, "Error searching apps", String(error)); + return []; + } +} + +/** + * Download an iOS app using ipatool + * @param bundleId Bundle ID of the app to download + * @param appName App name for file renaming + * @param appVersion App version for file renaming + * @param price App price to determine if it's paid (optional) + * @param retryCount Current retry attempt (used internally) + * @param retryDelay Delay before retry in ms (used internally) + * @returns Path to the downloaded file + */ +export async function downloadIPA( + bundleId: string, + appName = "", + appVersion = "", + price = "0", + retryCount = 0, + retryDelay = INITIAL_RETRY_DELAY, +) { + try { + console.log(`[ipatool] Starting download for bundleId: ${bundleId}, app: ${appName}, version: ${appVersion}`); + + // Ensure we're authenticated before proceeding with download + const isAuthenticated = await ensureAuthenticated(); + if (!isAuthenticated) { + console.error("[ipatool] Authentication failed during app download"); + showToast(Toast.Style.Failure, "Authentication failed", "Please check your Apple ID credentials"); + return null; + } + + // Get the downloads directory from preferences + const downloadsDir = getDownloadsDirectory(); + + // Show initial HUD with retry information if applicable + const retryInfo = retryCount > 0 ? ` (Attempt ${retryCount + 1}/${MAX_RETRIES + 1})` : ""; + await showHUD(`Downloading ${appName || bundleId}${retryInfo}...`, { clearRootSearch: true }); + + // Check if the app is paid based on price value + const isPaid = price !== "0" && price !== ""; + console.log(`[ipatool] Downloading app: ${appName || bundleId}, isPaid: ${isPaid}, price: ${price}${retryInfo}`); + + // Use spawn instead of exec to get real-time output + return new Promise((resolve, reject) => { + // Prepare the command and arguments + const args = [ + "download", + "-b", + bundleId, + "-o", + downloadsDir, + "--format", + "json", + "--non-interactive", + "--verbose", + ]; + + // Add purchase flag for paid apps + if (isPaid) { + console.log("Adding --purchase flag for paid app"); + args.push("--purchase"); + } + + console.log(`[ipatool] Executing download command: ${IPATOOL_PATH} ${args.join(" ")}`); + + // Spawn the process + const child = spawn(IPATOOL_PATH, args); + + let stdout = ""; + let stderr = ""; + let lastProgress = 0; + + // Collect stdout data + child.stdout.on("data", (data) => { + const chunk = data.toString(); + stdout += chunk; + console.log(`[ipatool] stdout: ${chunk.trim()}`); + + // Log any authentication or purchase confirmation prompts for debugging + if (chunk.includes("password") || chunk.includes("authentication") || chunk.includes("purchase")) { + console.log(`[ipatool] Authentication/Purchase prompt detected: ${chunk.trim()}`); + } + + // Try to extract progress information + const progressMatch = chunk.match(/downloading\s+(\d+)%/); + if (progressMatch && progressMatch[1]) { + const progress = parseInt(progressMatch[1], 10) / 100; + if (progress > lastProgress) { + lastProgress = progress; + showHUD(`Downloading ${appName || bundleId}... ${Math.round(progress * 100)}%`, { clearRootSearch: true }); + } + } + }); + + // Collect stderr data + child.stderr.on("data", (data) => { + const chunk = data.toString(); + stderr += chunk; + console.error(`[ipatool] stderr: ${chunk.trim()}`); + + // Log specific error types for better debugging + if (chunk.includes("network") || chunk.includes("connection") || chunk.includes("tls")) { + console.error(`[ipatool] Network-related error detected: ${chunk.trim()}`); + } else if (chunk.includes("authentication") || chunk.includes("login")) { + console.error(`[ipatool] Authentication error detected: ${chunk.trim()}`); + } + }); + + // Handle process completion + child.on("close", async (code) => { + console.log(`[ipatool] Download process exited with code ${code}`); + + // Only log full output in development or when there's an error + if (process.env.NODE_ENV === "development" || code !== 0) { + console.log(`[ipatool] Full stdout: ${stdout}`); + console.log(`[ipatool] Full stderr: ${stderr}`); + } + + if (code !== 0) { + console.error(`[ipatool] Download failed with code ${code}. Error: ${stderr}`); + + // Log specific error information for troubleshooting + if (stderr.includes("not found") || stderr.includes("no app")) { + console.error(`[ipatool] App not found error detected for bundleId: ${bundleId}`); + } else if (stderr.includes("permission") || stderr.includes("access")) { + console.error(`[ipatool] Permission error detected, check file system permissions`); + } + + // Check if this is a TLS error or other network error that might be transient + const isTlsError = + stdout.includes("tls: bad record MAC") || + stderr.includes("tls: bad record MAC") || + stdout.includes("network error") || + stderr.includes("network error") || + stdout.includes("connection reset") || + stderr.includes("connection reset"); + + // If we have retries left and it's a TLS error, retry with backoff + if (isTlsError && retryCount < MAX_RETRIES) { + const nextRetryCount = retryCount + 1; + const nextRetryDelay = retryDelay * 1.5; // Exponential backoff + + console.log( + `[ipatool] TLS/Network error detected. Retrying in ${retryDelay}ms (Attempt ${nextRetryCount}/${MAX_RETRIES})`, + ); + await showHUD(`Network error. Retrying in ${Math.round(retryDelay / 1000)}s...`, { clearRootSearch: true }); + console.log(`[ipatool] Waiting ${retryDelay}ms before retry attempt ${nextRetryCount}/${MAX_RETRIES}`); + + // Wait for the retry delay + setTimeout(async () => { + try { + // Retry the download + const result = await downloadIPA(bundleId, appName, appVersion, price, nextRetryCount, nextRetryDelay); + resolve(result); + } catch (retryError) { + reject(retryError); + } + }, retryDelay); + return; + } + + // If we're out of retries or it's not a TLS error, fail normally + await showHUD("Download failed", { clearRootSearch: true }); + showToast(Toast.Style.Failure, "Download Failed", `Process exited with code ${code}`); + reject(new Error(`Process exited with code ${code}`)); + return; + } + + // Show complete HUD + await showHUD("Download complete", { clearRootSearch: true }); + + // Try to find a JSON object in the output + let filePath = ""; + + // Look for JSON object in the output + const lines = stdout.trim().split("\n"); + for (let i = lines.length - 1; i >= 0; i--) { + const line = lines[i].trim(); + if (line.startsWith("{") && line.endsWith("}")) { + try { + const jsonOutput = safeJsonParse<{ output: string }>(line, { output: "" }); + if (jsonOutput.output) { + filePath = jsonOutput.output; + console.log(`[ipatool] Found file path in JSON output: ${filePath}`); + break; + } + } catch (e) { + console.error("Error parsing JSON line:", e); + // Continue to next line if this one fails + } + } + } + + // If no filePath found in JSON, try to extract it from the stdout + if (!filePath) { + console.log("[ipatool] No JSON output found, trying to extract file path from stdout using regex patterns"); + filePath = extractFilePath(stdout, ""); + + // If still no file path, try a fallback approach + if (!filePath) { + // Try to find the file in the downloads directory with the bundle ID + const defaultPath = path.join(downloadsDir, `${bundleId}.ipa`); + if (fs.existsSync(defaultPath)) { + filePath = defaultPath; + console.log(`[ipatool] Using default file path based on bundleId: ${filePath}`); + } else { + // Try to find any recently created .ipa file in the downloads directory + try { + const files = fs + .readdirSync(downloadsDir) + .filter((file) => file.endsWith(".ipa") && file.includes(bundleId)) + .map((file) => ({ + name: file, + path: path.join(downloadsDir, file), + mtime: fs.statSync(path.join(downloadsDir, file)).mtime, + })) + .sort((a, b) => b.mtime.getTime() - a.mtime.getTime()); + + if (files.length > 0) { + filePath = files[0].path; + console.log(`[ipatool] Found most recent .ipa file in downloads directory: ${filePath}`); + } + } catch (e) { + console.error("Error finding .ipa files:", e); + } + } + } + } + + console.log(`[ipatool] Original downloaded file path: ${filePath}`); + + // Rename the file if we have app name and version and the file exists + if (filePath && fs.existsSync(filePath) && appName && appVersion) { + const directory = path.dirname(filePath); + // Replace invalid filename characters with a dash + const sanitizedAppName = appName.replace(/[/\\?%*:|"<>]/g, "-"); + const newFileName = `${sanitizedAppName} ${appVersion}.ipa`; + const newFilePath = path.join(directory, newFileName); + + console.log(`[ipatool] Attempting to rename file to: ${newFilePath}`); + + try { + fs.renameSync(filePath, newFilePath); + console.log(`[ipatool] Successfully renamed file to: ${newFilePath}`); + console.log(`[ipatool] Download and rename complete for ${appName} v${appVersion}`); + filePath = newFilePath; + } catch (e) { + console.error("Error renaming file:", e); + // Continue with the original file path if rename fails + } + } + + resolve(filePath); + }); + + // Handle process errors + child.on("error", async (error) => { + console.error(`[ipatool] Process error during download: ${error.message}`); + + // Check if this is a TLS error or other network error that might be transient + const isTlsError = + error.message.includes("tls: bad record MAC") || + error.message.includes("network error") || + error.message.includes("connection reset"); + + // If we have retries left and it's a TLS error, retry with backoff + if (isTlsError && retryCount < MAX_RETRIES) { + const nextRetryCount = retryCount + 1; + const nextRetryDelay = retryDelay * 1.5; // Exponential backoff + + console.log( + `[ipatool] TLS/Network error detected in process error handler. Retrying in ${retryDelay}ms (Attempt ${nextRetryCount}/${MAX_RETRIES})`, + ); + await showHUD(`Network error. Retrying in ${Math.round(retryDelay / 1000)}s...`, { clearRootSearch: true }); + console.log(`[ipatool] Waiting ${retryDelay}ms before retry attempt ${nextRetryCount}/${MAX_RETRIES}`); + + // Wait for the retry delay + setTimeout(async () => { + try { + // Retry the download + const result = await downloadIPA(bundleId, appName, appVersion, price, nextRetryCount, nextRetryDelay); + resolve(result); + } catch (retryError) { + reject(retryError); + } + }, retryDelay); + return; + } + + // If we're out of retries or it's not a TLS error, fail normally + await showHUD("Download failed", { clearRootSearch: true }); + showToast(Toast.Style.Failure, "Download Failed", error.message); + reject(error); + }); + }); + } catch (error) { + console.error(`[ipatool] Unhandled download error: ${error}`); + console.error(`[ipatool] Error stack: ${(error as Error).stack || "No stack trace available"}`); + await showHUD("Download failed", { clearRootSearch: true }); + showToast(Toast.Style.Failure, "Download Failed", String(error)); + return null; + } +} + +/** + * Get detailed information about an app + * @param bundleId Bundle ID of the app + * @returns App details object + */ +export async function getAppDetails(bundleId: string) { + try { + console.log(`[ipatool] Getting app details for bundleId: ${bundleId}`); + + // Ensure we're authenticated before proceeding + const isAuthenticated = await ensureAuthenticated(); + if (!isAuthenticated) { + console.error("[ipatool] Authentication failed during app details lookup"); + showToast(Toast.Style.Failure, "Authentication failed", "Please check your Apple ID credentials"); + return null; + } + + // Try to get details directly from iTunes API first + console.log(`[ipatool] Trying to fetch details directly from iTunes API for ${bundleId}`); + const itunesDetails = await fetchITunesAppDetails(bundleId); + + if (itunesDetails) { + console.log(`[ipatool] Successfully retrieved details from iTunes API for ${bundleId}`); + + // Use the utility function to convert iTunes data to AppDetails + const result = convertITunesResultToAppDetails(itunesDetails); + + console.log(`[ipatool] Successfully parsed app details from iTunes API for ${bundleId}`); + return result; + } + + // If iTunes API fails, fall back to ipatool search + console.log(`[ipatool] iTunes API lookup failed, falling back to ipatool search for ${bundleId}`); + + // Try a more general search if the bundle ID is very specific + // This helps with cases where the exact bundle ID doesn't yield results + let searchTerm = bundleId; + if (bundleId.split(".").length > 2) { + // Extract the app name part from the bundle ID (usually the last part) + const bundleParts = bundleId.split("."); + const possibleAppName = bundleParts[bundleParts.length - 1]; + if (possibleAppName && possibleAppName.length > 3) { + searchTerm = possibleAppName; + console.log(`[ipatool] Using extracted app name from bundle ID: ${searchTerm}`); + } + } + + // Execute the search command + const searchCommand = `${IPATOOL_PATH} search "${searchTerm}" -l 20 --format json --non-interactive`; + console.log(`[ipatool] Executing search command: ${searchCommand}`); + const { stdout } = await execAsync(searchCommand); + + // Parse the JSON output with fallback to null if parsing fails + console.log(`[ipatool] Received search response, parsing JSON...`); + const searchResponse = safeJsonParse(stdout, { count: 0, apps: [] }); + + if (!searchResponse.apps || searchResponse.apps.length === 0) { + console.log(`[ipatool] No apps found for search term: ${searchTerm}`); + return null; + } + + // Find the exact bundle ID match in the search results + const exactMatch = searchResponse.apps.find((app) => app.bundleID === bundleId); + + // If no exact match is found, use the first result as a fallback + const app = exactMatch || searchResponse.apps[0]; + console.log( + `[ipatool] ${exactMatch ? "Found exact match" : "No exact match found, using first result"}: ${app.name} (${app.bundleID})`, + ); + + // Create a basic result with the data we have from ipatool search + let result: AppDetails = { + id: app.id.toString(), + name: app.name, + version: app.version, + bundleId: app.bundleID, + artworkUrl60: undefined, + description: "", + iconUrl: "", + sellerName: app.developer, + price: app.price.toString(), + genres: [], + size: "0", + contentRating: "", + }; + + // Try to fetch additional details from iTunes API for the app we found + if (app.bundleID !== bundleId) { + console.log(`[ipatool] Trying to fetch iTunes data for found app: ${app.bundleID}`); + const appItunesDetails = await fetchITunesAppDetails(app.bundleID); + + if (appItunesDetails) { + console.log(`[ipatool] Enriching app details with iTunes data for ${app.bundleID}`); + + // Use the utility function to convert iTunes data to AppDetails + result = convertITunesResultToAppDetails(appItunesDetails, result); + } else { + console.log(`[ipatool] Could not fetch iTunes data for ${app.bundleID}, using basic details only`); + } + } + + console.log(`[ipatool] Successfully parsed app details for ${bundleId}`); + return result; + } catch (error) { + console.error(`[ipatool] Error getting app details for ${bundleId}: ${error}`); + console.error(`[ipatool] Error stack: ${(error as Error).stack || "No stack trace available"}`); + showToast(Toast.Style.Failure, "Error getting app details", String(error)); + return null; + } +} diff --git a/extensions/ios-apps/src/search.tsx b/extensions/ios-apps/src/search.tsx new file mode 100644 index 00000000000..954f82226cb --- /dev/null +++ b/extensions/ios-apps/src/search.tsx @@ -0,0 +1,123 @@ +import { List, Icon } from "@raycast/api"; +import { useState } from "react"; +import { formatPrice } from "./utils/paths"; +import { renderStarRating, formatDate } from "./utils/common"; +import { AppActionPanel } from "./components/app-action-panel"; +import { useAppSearch, useAppDownload } from "./hooks"; + +export default function Search() { + const [searchText, setSearchText] = useState(""); + + // Use the custom hooks + const { apps, isLoading, error, totalResults, setSearchText: setSearchFromHook } = useAppSearch(searchText, 500); + const { downloadApp } = useAppDownload(); + + // If no search text has been entered yet, show a custom empty view + if (!searchText) { + return ( + { + setSearchText(text); + setSearchFromHook(text); + }} + isLoading={isLoading} + > + + + ); + } + + return ( + { + setSearchText(text); + setSearchFromHook(text); + }} + searchBarPlaceholder="Search for iOS apps..." + throttle + navigationTitle="Search iOS Apps" + > + {error ? ( + + ) : apps.length === 0 && searchText ? ( + + ) : ( + 0 ? `Results (${totalResults})` : ""}> + {apps.map((app) => { + // Get the app rating + const rating = app.averageUserRatingForCurrentVersion || app.averageUserRating; + const ratingText = rating ? renderStarRating(rating) : ""; + + // Format release date + const releaseDate = formatDate(app.currentVersionReleaseDate || app.releaseDate); + + // Get app icon + const iconUrl = app.artworkUrl60 || app.artworkUrl512 || app.iconUrl; + + return ( + + + + + + + + + + } + /> + } + actions={ + downloadApp(app.bundleId, app.name, app.version, app.price, true)} + showViewDetails={true} + /> + } + /> + ); + })} + + )} + + ); +} diff --git a/extensions/ios-apps/src/tools/download-app.ts b/extensions/ios-apps/src/tools/download-app.ts new file mode 100644 index 00000000000..c443cea76ce --- /dev/null +++ b/extensions/ios-apps/src/tools/download-app.ts @@ -0,0 +1,62 @@ +import { downloadIPA, searchApps } from "../ipatool"; +import path from "path"; + +// No initial confirmation - we'll confirm only during the actual download process + +type Input = { + /** + * The name or search term for the iOS app + */ + query: string; +}; + +/** + * Download an iOS app by name or bundle ID + */ +export default async function downloadIosApp(input: Input) { + console.log(`[download-app tool] Starting download for app: "${input.query}"`); + + try { + let bundleId = ""; + let appName = ""; + let appVersion = ""; + let price = "0"; + + // Search for the app by name + console.log(`[download-app tool] Searching for app: "${input.query}"`); + const searchResults = await searchApps(input.query, 1); + + if (searchResults.length === 0) { + throw new Error(`No apps found matching "${input.query}"`); + } + + const app = searchResults[0]; + bundleId = app.bundleID; + appName = app.name; + appVersion = app.version; + price = app.price.toString(); + console.log(`[download-app tool] Found app: ${appName} (${bundleId}) version ${appVersion}`); + + // Download the app + console.log(`[download-app tool] Starting download for ${appName} (${bundleId})`); + const filePath = await downloadIPA(bundleId, appName, appVersion, price); + + if (!filePath) { + throw new Error(`Failed to download app "${appName}"`); + } + + console.log(`[download-app tool] Successfully downloaded app to: ${filePath}`); + + // Return the result + return { + filePath, + fileName: path.basename(filePath), + appName, + bundleId, + version: appVersion, + }; + } catch (error) { + console.error(`[download-app tool] Error: ${error}`); + throw new Error(`Failed to download app: ${error}`); + } +} diff --git a/extensions/ios-apps/src/tools/get-app-details.ts b/extensions/ios-apps/src/tools/get-app-details.ts new file mode 100644 index 00000000000..66860aae0f8 --- /dev/null +++ b/extensions/ios-apps/src/tools/get-app-details.ts @@ -0,0 +1,78 @@ +import { getAppDetails, searchApps } from "../ipatool"; +import { formatPrice } from "../utils/paths"; +import { formatDate } from "../utils/common"; + +// No initial confirmation - details lookup will execute immediately + +type Input = { + /** + * The name or search term for the iOS app + */ + query: string; + + /** + * Optional bundle ID if known (will skip search step) + */ + bundleId?: string; +}; + +/** + * Get detailed information about an iOS app by name or bundle ID + */ +export default async function getIosAppDetails(input: Input) { + console.log(`[get-app-details tool] Getting details for app: "${input.query}"`); + + try { + // Will store the app details + let bundleId = input.bundleId; + + // If no bundle ID is provided, search for the app first + if (!bundleId) { + console.log(`[get-app-details tool] No bundle ID provided, searching for app: "${input.query}"`); + const searchResults = await searchApps(input.query, 1); + + if (searchResults.length === 0) { + throw new Error(`No apps found matching "${input.query}"`); + } + + bundleId = searchResults[0].bundleID; + console.log(`[get-app-details tool] Found app with bundle ID: ${bundleId}`); + } + + // Get app details using ipatool + const appDetails = await getAppDetails(bundleId); + + if (!appDetails) { + throw new Error(`App details not found for "${input.query}"`); + } + + console.log(`[get-app-details tool] Successfully retrieved details for ${appDetails.name}`); + + // Format the app details for better readability + const formattedDetails = { + id: appDetails.id, + bundleId: appDetails.bundleId, + name: appDetails.name, + version: appDetails.version, + developer: appDetails.sellerName, + price: formatPrice(appDetails.price), + description: appDetails.description, + icon: appDetails.artworkUrl512 || appDetails.artworkUrl60 || appDetails.iconUrl, + rating: appDetails.averageUserRating, + ratingCount: appDetails.userRatingCount, + size: appDetails.size, + contentRating: appDetails.contentRating, + releaseDate: appDetails.releaseDate ? formatDate(appDetails.releaseDate) : undefined, + lastUpdated: appDetails.currentVersionReleaseDate ? formatDate(appDetails.currentVersionReleaseDate) : undefined, + genres: appDetails.genres, + appStoreUrl: appDetails.trackViewUrl || `https://apps.apple.com/app/id${appDetails.id}`, + developerUrl: appDetails.artistViewUrl, + screenshots: appDetails.screenshotUrls, + }; + + return { app: formattedDetails }; + } catch (error) { + console.error(`[get-app-details tool] Error: ${error}`); + throw new Error(`Failed to get app details: ${error}`); + } +} diff --git a/extensions/ios-apps/src/tools/search-apps.ts b/extensions/ios-apps/src/tools/search-apps.ts new file mode 100644 index 00000000000..bfd0adb7700 --- /dev/null +++ b/extensions/ios-apps/src/tools/search-apps.ts @@ -0,0 +1,84 @@ +import { searchApps } from "../ipatool"; +import { enrichAppDetails } from "../utils/itunes-api"; + +// No initial confirmation - search will execute immediately + +type Input = { + /** + * The search query for finding iOS apps + */ + query: string; + /** + * Maximum number of results to return (default: 10, max: 20) + */ + limit?: number; +}; + +/** + * Search for iOS apps by name or keyword + */ +export default async function searchIosApps(input: Input) { + console.log(`[search-apps tool] Searching for apps with query: "${input.query}", limit: ${input.limit || 10}`); + + // Ensure limit is within bounds + const validLimit = Math.min(Math.max(1, Number(input.limit) || 10), 20); + + try { + // Search for apps using ipatool + const apps = await searchApps(input.query, validLimit); + console.log(`[search-apps tool] Found ${apps.length} apps`); + + // Map the results to a more user-friendly format + const formattedApps = await Promise.all( + apps.map(async (app) => { + // Convert from ipatool format to AppDetails format + const appDetails = { + id: String(app.id), + bundleId: app.bundleID, + name: app.name, + version: app.version, + price: String(app.price), + // Default values for required fields + artworkUrl60: undefined, + description: "", + iconUrl: "", + sellerName: "", + genres: [], + size: "0", + contentRating: "", + }; + + // Try to enrich with additional details from iTunes API + try { + const enriched = await enrichAppDetails(appDetails); + return { + id: enriched.id, + bundleId: enriched.bundleId, + name: enriched.name, + version: enriched.version, + price: enriched.price, + developer: enriched.sellerName, + icon: enriched.artworkUrl512 || enriched.artworkUrl60 || enriched.iconUrl, + rating: enriched.averageUserRating, + description: enriched.description?.substring(0, 200) + (enriched.description?.length > 200 ? "..." : ""), + }; + } catch (error) { + console.error(`[search-apps tool] Error enriching app details: ${error}`); + // Return basic info if enrichment fails + return { + id: appDetails.id, + bundleId: appDetails.bundleId, + name: appDetails.name, + version: appDetails.version, + price: appDetails.price, + }; + } + }), + ); + + return { apps: formattedApps }; + } catch (error) { + console.error(`[search-apps tool] Error: ${error}`); + throw new Error(`Failed to search for apps: ${error}`); + } +} diff --git a/extensions/ios-apps/src/types.ts b/extensions/ios-apps/src/types.ts new file mode 100644 index 00000000000..e522ded2157 --- /dev/null +++ b/extensions/ios-apps/src/types.ts @@ -0,0 +1,104 @@ +// src/types.ts - Type definitions for the extension +export interface AppDetails { + artworkUrl60: string | undefined; + id: string; + bundleId: string; + name: string; + description: string; + iconUrl: string; + sellerName: string; + version: string; + price: string; + genres: string[]; + size: string; + contentRating: string; + // iTunes API additional fields + artworkUrl512?: string; + averageUserRating?: number; + averageUserRatingForCurrentVersion?: number; + userRatingCount?: number; + userRatingCountForCurrentVersion?: number; + releaseDate?: string; + currentVersionReleaseDate?: string; + trackViewUrl?: string; + artistViewUrl?: string; + screenshotUrls?: string[]; + ipadScreenshotUrls?: string[]; + appletvScreenshotUrls?: string[]; +} + +export interface VersionHistoryItem { + version: string; + releaseDate: string; + releaseNotes: string; +} + +export interface ExtensionPreferences { + appleId: string; + password: string; + downloadPath?: string; + homebrewPath?: string; + ipatoolPath?: string; +} + +export interface ITunesResponse { + resultCount: number; + results: ITunesResult[]; +} + +export interface ITunesResult { + artistId: number; + artistName: string; + artistViewUrl: string; + artworkUrl60: string; + artworkUrl100: string; + artworkUrl512: string; + averageUserRating: number; + averageUserRatingForCurrentVersion: number; + bundleId: string; + contentAdvisoryRating: string; + currency: string; + currentVersionReleaseDate: string; + description: string; + features: string[]; + fileSizeBytes: string; + formattedPrice: string; + genreIds: string[]; + genres: string[]; + ipadScreenshotUrls: string[]; + isGameCenterEnabled: boolean; + kind: string; + languageCodesISO2A: string[]; + minimumOsVersion: string; + price: number; + primaryGenreName: string; + releaseDate: string; + releaseNotes: string; + screenshotUrls: string[]; + sellerName: string; + sellerUrl: string; + trackCensoredName: string; + trackContentRating: string; + trackId: number; + trackName: string; + trackViewUrl: string; + userRatingCount: number; + userRatingCountForCurrentVersion: number; + version: string; + wrapperType: string; +} + +// Interface for ipatool search results +export interface IpaToolSearchApp { + id: number; + bundleID: string; + name: string; + version: string; + price: number; + developer: string; +} + +export interface IpaToolSearchResponse { + count: number; + apps: IpaToolSearchApp[]; +} diff --git a/extensions/ios-apps/src/utils/common.ts b/extensions/ios-apps/src/utils/common.ts new file mode 100644 index 00000000000..26bd30416f3 --- /dev/null +++ b/extensions/ios-apps/src/utils/common.ts @@ -0,0 +1,141 @@ +import { showToast, Toast } from "@raycast/api"; +import { exec } from "child_process"; +import { promisify } from "util"; +import { IPATOOL_PATH, preferences } from "./paths"; +// Import iTunes API functions from dedicated module + +const execAsync = promisify(exec); + +/** + * Logs in to Apple ID using ipatool and user preferences. + */ +async function loginToAppleId(): Promise { + await execAsync( + `${IPATOOL_PATH} auth login -e "${preferences.appleId}" -p "${preferences.password}" --format json --non-interactive`, + ); + console.log("Successfully authenticated with Apple ID"); +} + +/** + * Ensures the user is authenticated with Apple ID + */ +export async function ensureAuthenticated(): Promise { + try { + // Check if we're already authenticated + // Add --format json to get JSON output + const { stdout } = await execAsync(`${IPATOOL_PATH} auth info --format json --non-interactive`); + + try { + // Try to parse as JSON + const status = JSON.parse(stdout); + + if (!status.authenticated) { + // If not authenticated, login + await loginToAppleId(); + return true; + } + return true; + } catch (parseError) { + // If we can't parse as JSON, check if it contains "Not authenticated" + if (stdout.includes("Not authenticated")) { + // If not authenticated, login + await loginToAppleId(); + return true; + } + return false; // Force re-authentication if we can't determine status + } + } catch (error) { + console.error("Authentication error:", error); + // Try to login anyway + try { + await loginToAppleId(); + return true; + } catch (loginError) { + console.error("Login error:", loginError); + showToast(Toast.Style.Failure, "Authentication failed", String(loginError)); + return false; + } + } +} + +/** + * Safely parses JSON with error handling + */ +export function safeJsonParse(jsonString: string, defaultValue: T): T { + try { + return JSON.parse(jsonString) as T; + } catch (error) { + console.error("Error parsing JSON:", error); + return defaultValue; + } +} + +/** + * Extracts a file path from a string using regex + */ +export function extractFilePath(text: string, defaultPath: string): string { + // Try to find "saved to" pattern first + const savedToMatch = text.match(/saved to (.*\.ipa)/i); + if (savedToMatch && savedToMatch[1]) { + return savedToMatch[1]; + } + + // Try to find "output:" pattern + const outputMatch = text.match(/"output":"([^"]*\.ipa)"/); + if (outputMatch && outputMatch[1]) { + return outputMatch[1]; + } + + // Try to find any path ending with .ipa + const ipaPathMatch = text.match(/([/\\][^/\\]*\.ipa)/); + if (ipaPathMatch && ipaPathMatch[1]) { + // This might be a partial path, so we need to find the full path + const pathParts = text.split(ipaPathMatch[1]); + if (pathParts.length > 0) { + // Look for the part that contains a valid path + for (let i = 0; i < pathParts.length; i++) { + const part = pathParts[i]; + if (part.includes("/")) { + const lastSlashIndex = part.lastIndexOf("/"); + const possiblePath = part.substring(lastSlashIndex) + ipaPathMatch[1]; + if (possiblePath.startsWith("/")) { + return possiblePath; + } + } + } + } + } + + // If all else fails, return the default path + return defaultPath; +} + +/** + * Renders star rating as text (e.g., "★★★★☆" for 4.0) + */ +export function renderStarRating(rating: number | undefined): string { + if (rating === undefined) return "No Rating"; + + const boundedRating = Math.min(Math.max(rating, 0), 5); + const fullStars = Math.floor(boundedRating); + const halfStar = boundedRating % 1 >= 0.5; + const emptyStars = 5 - fullStars - (halfStar ? 1 : 0); + + return "★".repeat(fullStars) + (halfStar ? "½" : "") + "☆".repeat(emptyStars); +} + +/** + * Formats a date string to a more readable format + */ +export function formatDate(dateString: string | undefined): string { + if (!dateString) return "Unknown"; + + const date = new Date(dateString); + if (isNaN(date.getTime())) return "Invalid Date"; + + return date.toLocaleDateString(undefined, { + year: "numeric", + month: "long", + day: "numeric", + }); +} diff --git a/extensions/ios-apps/src/utils/itunes-api.ts b/extensions/ios-apps/src/utils/itunes-api.ts new file mode 100644 index 00000000000..6eb34c23d44 --- /dev/null +++ b/extensions/ios-apps/src/utils/itunes-api.ts @@ -0,0 +1,379 @@ +// iTunes API utility functions +import nodeFetch from "node-fetch"; +import fs from "fs"; +import path from "path"; +import { promisify } from "util"; +import { showFailureToast } from "@raycast/utils"; +import { showToast, Toast, showHUD } from "@raycast/api"; +import { AppDetails, ITunesResponse, ITunesResult } from "../types"; +import { getDownloadsDirectory } from "./paths"; +import { scrapeAppStoreScreenshots, getHighestResolutionUrl, ScreenshotInfo } from "./scraper"; + +// Handle both ESM and CommonJS versions of node-fetch +const fetch = nodeFetch; +const writeFileAsync = promisify(fs.writeFile); +const mkdirAsync = promisify(fs.mkdir); + +/** + * Convert iTunes API result to AppDetails format + * @param itunesData iTunes API result + * @param baseDetails Optional base details to merge with + * @returns Formatted AppDetails object + */ +export function convertITunesResultToAppDetails( + itunesData: ITunesResult, + baseDetails?: Partial, +): AppDetails { + // Start with base details or empty object + const base = baseDetails || {}; + + return { + // Use base details as fallback + id: itunesData.trackId?.toString() || base.id || "", + name: itunesData.trackName || base.name || "", + version: itunesData.version || base.version || "", + bundleId: itunesData.bundleId || base.bundleId || "", + description: itunesData.description || base.description || "", + // Set the iconUrl as a fallback using the highest resolution available + iconUrl: itunesData.artworkUrl512 || itunesData.artworkUrl100 || itunesData.artworkUrl60 || base.iconUrl || "", + sellerName: itunesData.sellerName || base.sellerName || "Unknown Developer", + price: itunesData.price?.toString() || base.price || "0", + genres: itunesData.genres && itunesData.genres.length > 0 ? itunesData.genres : base.genres || [], + size: itunesData.fileSizeBytes || base.size || "0", + contentRating: itunesData.contentAdvisoryRating || base.contentRating || "", + // Set the artwork URLs from iTunes API + artworkUrl60: itunesData.artworkUrl60 || base.artworkUrl60, + artworkUrl512: itunesData.artworkUrl512 || base.artworkUrl512, + // Additional iTunes-specific fields + averageUserRating: itunesData.averageUserRating || base.averageUserRating, + averageUserRatingForCurrentVersion: + itunesData.averageUserRatingForCurrentVersion || base.averageUserRatingForCurrentVersion, + userRatingCount: itunesData.userRatingCount || base.userRatingCount, + userRatingCountForCurrentVersion: + itunesData.userRatingCountForCurrentVersion || base.userRatingCountForCurrentVersion, + releaseDate: itunesData.releaseDate || base.releaseDate, + currentVersionReleaseDate: itunesData.currentVersionReleaseDate || base.currentVersionReleaseDate, + trackViewUrl: itunesData.trackViewUrl || base.trackViewUrl, + artistViewUrl: itunesData.artistViewUrl || base.artistViewUrl, + screenshotUrls: itunesData.screenshotUrls || base.screenshotUrls, + }; +} + +/** + * Fetch app details from iTunes Search API + * @param bundleId Bundle ID of the app + * @returns iTunes app details or null if not found + */ +export async function fetchITunesAppDetails(bundleId: string): Promise { + try { + console.log(`[iTunes API] Fetching app details for bundleId: ${bundleId}`); + const url = `https://itunes.apple.com/lookup?bundleId=${encodeURIComponent(bundleId)}&country=us&entity=software`; + + const response = await fetch(url); + if (!response.ok) { + const errorMsg = `[iTunes API] Request failed with status: ${response.status}`; + console.error(errorMsg); + showFailureToast({ title: "Failed to fetch app details", message: errorMsg }); + return null; + } + + const data = (await response.json()) as ITunesResponse; + + if (data.resultCount === 0 || !data.results || data.results.length === 0) { + console.log(`[iTunes API] No results found for bundleId: ${bundleId}`); + return null; + } + + console.log(`[iTunes API] Successfully retrieved details for ${bundleId}`); + return data.results[0]; + } catch (error) { + console.error(`[iTunes API] Error fetching details: ${error}`); + return null; + } +} + +/** + * Search for apps using iTunes Search API + * @param term Search term + * @param limit Maximum number of results to return + * @returns Array of iTunes search results + */ +export async function searchITunesApps(term: string, limit = 20): Promise { + try { + console.log(`[iTunes API] Searching for apps with term: "${term}", limit: ${limit}`); + const url = `https://itunes.apple.com/search?term=${encodeURIComponent(term)}&country=us&entity=software&limit=${limit}`; + + const response = await fetch(url); + if (!response.ok) { + const errorMsg = `[iTunes API] Search request failed with status: ${response.status}`; + console.error(errorMsg); + showFailureToast({ title: "Failed to search apps", message: errorMsg }); + return []; + } + + const data = (await response.json()) as ITunesResponse; + + if (data.resultCount === 0 || !data.results || data.results.length === 0) { + console.log(`[iTunes API] No search results found for term: "${term}"`); + return []; + } + + console.log(`[iTunes API] Found ${data.resultCount} results for term: "${term}"`); + return data.results; + } catch (error) { + console.error(`[iTunes API] Error searching apps: ${error}`); + return []; + } +} + +/** + * Enriches app details with data from iTunes API + */ +export async function enrichAppDetails(app: AppDetails): Promise { + try { + console.log(`[iTunes API] Enriching app details for bundleId: ${app.bundleId}`); + const itunesData = await fetchITunesAppDetails(app.bundleId); + + if (itunesData) { + console.log(`[iTunes API] Successfully retrieved iTunes data for ${app.bundleId}`); + // Use the utility function to convert iTunes data to AppDetails + return convertITunesResultToAppDetails(itunesData, app); + } + + console.log(`[iTunes API] No iTunes data found for ${app.bundleId}, using basic details only`); + // If no iTunes data, ensure genres is at least an empty array and iconUrl is set + return { + ...app, + genres: app.genres || [], + sellerName: app.sellerName || "Unknown Developer", + // Ensure iconUrl is set even if empty + iconUrl: app.iconUrl || "", + }; + } catch (error) { + console.error("[iTunes API] Error enriching app details:", error); + // Ensure genres is at least an empty array and iconUrl is set + return { + ...app, + genres: app.genres || [], + sellerName: app.sellerName || "Unknown Developer", + // Ensure iconUrl is set even if empty + iconUrl: app.iconUrl || "", + }; + } +} + +/** + * Download app screenshots from App Store website + * @param bundleId Bundle ID of the app + * @param appName App name for folder naming + * @param appVersion App version for folder naming + * @param price App price for folder naming + * @returns Path to the downloaded screenshots directory or null if failed + */ +export async function downloadScreenshots( + bundleId: string, + appName = "", + appVersion = "", + price = "0", +): Promise { + try { + console.log( + `[Screenshot Downloader] Starting screenshot download for bundleId: ${bundleId}, app: ${appName}, version: ${appVersion}`, + ); + + // Show initial HUD + await showHUD(`Downloading screenshots for ${appName || bundleId}...`, { clearRootSearch: true }); + + // First, get basic app details if we don't have them already + let appDetails: AppDetails | null = null; + + // Try to get app details from iTunes API + console.log(`[Screenshot Downloader] Fetching app details for ${bundleId}`); + const itunesData = await fetchITunesAppDetails(bundleId); + + if (itunesData) { + // Convert iTunes data to AppDetails + appDetails = convertITunesResultToAppDetails(itunesData); + } else if (appName) { + // If we couldn't get details by bundleId but have an app name, try searching + console.log(`[Screenshot Downloader] Trying to find app by name: ${appName}`); + const searchResults = await searchITunesApps(appName, 10); + + // Find the exact match or use the first result + const matchingApp = searchResults.find((app) => app.bundleId === bundleId) || searchResults[0]; + + if (matchingApp) { + appDetails = convertITunesResultToAppDetails(matchingApp); + } + } + + // If we still don't have app details, create a minimal object + if (!appDetails) { + console.log(`[Screenshot Downloader] Creating minimal app details for ${bundleId}`); + appDetails = { + id: "", + bundleId, + name: appName || bundleId, + version: appVersion, + description: "", + iconUrl: "", + sellerName: "", + price: price, + genres: [], + size: "", + contentRating: "", + artworkUrl60: undefined, + }; + } + + // Now use the scraper to get high-resolution screenshots from the App Store website + console.log(`[Screenshot Downloader] Scraping App Store website for high-resolution screenshots`); + const screenshots = await scrapeAppStoreScreenshots(appDetails); + + if (screenshots.length === 0) { + console.error(`[Screenshot Downloader] No screenshots found for ${bundleId}`); + await showToast( + Toast.Style.Failure, + "No screenshots found", + `No screenshots available for ${appName || bundleId}`, + ); + return null; + } + + console.log(`[Screenshot Downloader] Found ${screenshots.length} screenshots for ${bundleId}`); + + // Create a directory for the screenshots + const downloadsDir = getDownloadsDirectory(); + const sanitizedAppName = (appName || bundleId).replace(/[/\\?%*:|"<>]/g, "-"); + const sanitizedVersion = appVersion.replace(/[/\\?%*:|"<>]/g, "-"); + const priceLabel = price === "0" ? "free" : `${price}usd`; + const folderName = `${sanitizedAppName}_${sanitizedVersion}_${priceLabel}_screenshots_hires`; + const screenshotsDir = path.join(downloadsDir, folderName); + + // Create the directory if it doesn't exist + if (!fs.existsSync(screenshotsDir)) { + console.log(`[Screenshot Downloader] Creating screenshots directory: ${screenshotsDir}`); + await mkdirAsync(screenshotsDir, { recursive: true }); + } + + // Create device-specific directories + const deviceDirs: { [key: string]: string } = { + iPhone: path.join(screenshotsDir, "iPhone"), + iPad: path.join(screenshotsDir, "iPad"), + Mac: path.join(screenshotsDir, "Mac"), + AppleTV: path.join(screenshotsDir, "AppleTV"), + }; + + // Group screenshots by device type to avoid creating empty directories + const screenshotsByType: Record = {}; + + // Initialize the device type groups + for (const screenshot of screenshots) { + if (!screenshotsByType[screenshot.type]) { + screenshotsByType[screenshot.type] = []; + } + screenshotsByType[screenshot.type].push(screenshot); + } + + // Only create directories for device types that have screenshots + for (const [deviceType, deviceScreenshots] of Object.entries(screenshotsByType)) { + if (deviceScreenshots.length > 0) { + const dir = deviceDirs[deviceType as keyof typeof deviceDirs]; + if (dir && !fs.existsSync(dir)) { + await mkdirAsync(dir, { recursive: true }); + } + } + } + + // Download each screenshot + await showHUD(`Downloading ${screenshots.length} high-resolution screenshots...`); + + const downloadPromises = screenshots.map(async (screenshot) => { + try { + // Get the highest resolution URL + const highResUrl = getHighestResolutionUrl(screenshot.url); + console.log( + `[Screenshot Downloader] Downloading ${screenshot.type} screenshot ${screenshot.index + 1}: ${highResUrl}`, + ); + + // Fetch the image + const response = await fetch(highResUrl); + if (!response.ok) { + console.error(`[Screenshot Downloader] Failed to download screenshot: HTTP ${response.status}`); + return false; + } + + // Get the image data as buffer + const imageBuffer = await response.buffer(); + + // Always use PNG for consistency and best quality + const fileExtension = "png"; + + // Save the image to the appropriate device directory + const deviceDir = deviceDirs[screenshot.type]; + const fileName = `${screenshot.type.toLowerCase()}_${screenshot.index + 1}.${fileExtension}`; + const filePath = path.join(deviceDir, fileName); + + await writeFileAsync(filePath, imageBuffer); + console.log( + `[Screenshot Downloader] Saved ${screenshot.type} screenshot ${screenshot.index + 1} to ${filePath}`, + ); + return true; + } catch (error) { + console.error(`[Screenshot Downloader] Error downloading screenshot:`, error); + return false; + } + }); + + // Wait for all downloads to complete + const results = await Promise.all(downloadPromises); + const successCount = results.filter((result) => result).length; + + if (successCount === 0) { + console.error(`[Screenshot Downloader] Failed to download any screenshots for ${bundleId}`); + await showToast(Toast.Style.Failure, "Download failed", "Failed to download any screenshots"); + return null; + } + + // Create a README file with information about the app and screenshots + const readmePath = path.join(screenshotsDir, "README.txt"); + const readmeContent = [ + `App Store Screenshots (High Resolution)`, + `=====================================`, + ``, + `App Name: ${appDetails.name}`, + `Bundle ID: ${appDetails.bundleId}`, + `App ID: ${appDetails.id}`, + `Version: ${appDetails.version}`, + ``, + `Downloaded on: ${new Date().toISOString()}`, + ``, + `Organization:`, + ...Object.entries(screenshotsByType) + .filter(([, screenshots]) => screenshots.length > 0) + .map( + ([deviceType, screenshots]) => `- ${deviceType}/: Contains ${screenshots.length} ${deviceType} screenshots`, + ), + ``, + `These screenshots were obtained at the highest available resolution from the App Store.`, + `They may be used for reference purposes only and are subject to Apple's copyright.`, + ].join("\n"); + + await writeFileAsync(readmePath, readmeContent); + + console.log( + `[Screenshot Downloader] Successfully downloaded ${successCount}/${screenshots.length} screenshots for ${bundleId}`, + ); + await showToast( + Toast.Style.Success, + "High-resolution screenshots downloaded", + `${successCount} screenshots saved to ${folderName}`, + ); + + return screenshotsDir; + } catch (error) { + console.error(`[Screenshot Downloader] Error downloading screenshots for ${bundleId}:`, error); + await showToast(Toast.Style.Failure, "Error downloading screenshots", String(error)); + return null; + } +} diff --git a/extensions/ios-apps/src/utils/paths.ts b/extensions/ios-apps/src/utils/paths.ts new file mode 100644 index 00000000000..fc251d84c60 --- /dev/null +++ b/extensions/ios-apps/src/utils/paths.ts @@ -0,0 +1,27 @@ +import { homedir } from "os"; +import { getPreferenceValues } from "@raycast/api"; +import { ExtensionPreferences } from "../types"; + +// Get preferences +export const preferences = getPreferenceValues(); + +// Define the path to ipatool, using the preference if available +export const IPATOOL_PATH = preferences.ipatoolPath || "/opt/homebrew/bin/ipatool"; + +// Get the downloads directory path from preferences or default to ~/Downloads +export function getDownloadsDirectory(): string { + if (preferences.downloadPath) { + // Replace ~ with the actual home directory if present + if (preferences.downloadPath.startsWith("~")) { + return preferences.downloadPath.replace("~", homedir()); + } + return preferences.downloadPath; + } + + return `${homedir()}/Downloads`; +} + +// Format price to display "Free" instead of "0" +export function formatPrice(price: string): string { + return price === "0" ? "Free" : `$${price}`; +} diff --git a/extensions/ios-apps/src/utils/scraper.ts b/extensions/ios-apps/src/utils/scraper.ts new file mode 100644 index 00000000000..46e8beac431 --- /dev/null +++ b/extensions/ios-apps/src/utils/scraper.ts @@ -0,0 +1,392 @@ +// App Store web scraper utility functions +import nodeFetch from "node-fetch"; +import { AppDetails } from "../types"; + +/** + * Screenshot information + */ +export interface ScreenshotInfo { + url: string; + type: "iPhone" | "iPad" | "Mac" | "AppleTV"; + index: number; +} + +/** + * Get the App Store URL for an app + * @param app App details + * @returns App Store URL + */ +export function getAppStoreUrl(app: AppDetails): string { + // Use the trackViewUrl if available, otherwise construct from app ID + return app.trackViewUrl || `https://apps.apple.com/us/app/id${app.id}`; +} + +/** + * Extract high-resolution screenshot URLs from App Store website + * @param app App details + * @returns Array of screenshot information objects + */ +export async function scrapeAppStoreScreenshots(app: AppDetails): Promise { + try { + console.log(`[Scraper] Scraping screenshots for ${app.name} (${app.bundleId})`); + const appStoreUrl = getAppStoreUrl(app); + + // Fetch the App Store page + console.log(`[Scraper] Fetching page: ${appStoreUrl}`); + const response = await nodeFetch(appStoreUrl); + + if (!response.ok) { + console.error(`[Scraper] Failed to fetch App Store page: ${response.status} ${response.statusText}`); + return []; + } + + const html = await response.text(); + + // Extract screenshot URLs using regex patterns + const screenshotsMap = new Map(); + + // First, try to find all we-artwork elements which contain the screenshots + // These are the actual screenshot images in the App Store page + console.log("[Scraper] Looking for we-artwork elements"); + const weArtworkRegex = /]*class="[^"]*we-artwork[^"]*"[^>]*>([\s\S]*?)<\/picture>/g; + let artworkMatch; + let index = 0; + + // Track which device type we're currently processing + let currentDeviceType: "iPhone" | "iPad" | "Mac" | "AppleTV" = "iPhone"; + + // Look for device type indicators in the HTML + if (html.includes("we-screenshot-viewer__screenshots--ipad")) { + currentDeviceType = "iPad"; + } else if (html.includes("we-screenshot-viewer__screenshots--mac")) { + currentDeviceType = "Mac"; + } else if (html.includes("we-screenshot-viewer__screenshots--apple-tv")) { + currentDeviceType = "AppleTV"; + } + + // Process all we-artwork elements + while ((artworkMatch = weArtworkRegex.exec(html)) !== null) { + const artworkHtml = artworkMatch[1]; + const srcsetMatch = artworkHtml.match(/srcset="([^"]+)"/i); + + if (srcsetMatch && srcsetMatch[1]) { + const srcset = srcsetMatch[1]; + const highResUrl = extractHighestResolutionUrl(srcset); + + // Check if this is a screenshot and not an icon + if (highResUrl && isAppStoreScreenshot(highResUrl)) { + const normalizedUrl = normalizeUrl(highResUrl); + + // Only add if we don't already have this screenshot + if (!screenshotsMap.has(normalizedUrl)) { + // Determine device type based on context or parent elements + let deviceType = currentDeviceType; + + // Check if we can determine device type from the HTML context + const contextHtml = html.substring( + Math.max(0, artworkMatch.index - 500), + Math.min(html.length, artworkMatch.index + 500), + ); + + if (contextHtml.includes("we-screenshot-viewer__screenshots--iphone")) { + deviceType = "iPhone"; + } else if (contextHtml.includes("we-screenshot-viewer__screenshots--ipad")) { + deviceType = "iPad"; + } else if (contextHtml.includes("we-screenshot-viewer__screenshots--mac")) { + deviceType = "Mac"; + } else if (contextHtml.includes("we-screenshot-viewer__screenshots--apple-tv")) { + deviceType = "AppleTV"; + } + + screenshotsMap.set(normalizedUrl, { + url: highResUrl, + type: deviceType, + index: index++, + }); + } + } + } + } + + // If we didn't find any screenshots with we-artwork, try the screenshot viewer approach + if (screenshotsMap.size === 0) { + console.log("[Scraper] No screenshots found with we-artwork, trying screenshot viewer section"); + + // Try to find the screenshot viewer section + const screenshotViewerRegex = /]*class="[^"]*we-screenshot-viewer[^"]*"[^>]*>([\s\S]*?)<\/section>/i; + const screenshotViewerMatch = screenshotViewerRegex.exec(html); + + if (screenshotViewerMatch && screenshotViewerMatch[1]) { + const screenshotViewerHtml = screenshotViewerMatch[1]; + console.log("[Scraper] Found screenshot viewer section"); + + // Find iPhone screenshots + const iphoneScreenshots = extractScreenshotsByRegex( + screenshotViewerHtml, + /we-screenshot-viewer__screenshots--iphone[^>]*>([\s\S]*?)(?:<\/div>|
]*>([\s\S]*?)(?:<\/div>|
]*>([\s\S]*?)(?:<\/div>|
]*>([\s\S]*?)(?:<\/div>|
]*class="[^"]*we-screenshot[^"]*"[^>]*>([\s\S]*?)<\/div>/g; + let match; + let index = 0; + + while ((match = weScreenshotRegex.exec(html)) !== null) { + const screenshotHtml = match[1]; + const srcsetMatch = screenshotHtml.match(/srcset="([^"]+)"/i); + + if (srcsetMatch && srcsetMatch[1]) { + const srcset = srcsetMatch[1]; + const highResUrl = extractHighestResolutionUrl(srcset); + + if (highResUrl && isAppStoreScreenshot(highResUrl)) { + const normalizedUrl = normalizeUrl(highResUrl); + + if (!screenshotsMap.has(normalizedUrl)) { + screenshotsMap.set(normalizedUrl, { + url: highResUrl, + type: "iPhone", // Default to iPhone if we can't determine the type + index: index++, + }); + } + } + } + } + } + + // Convert the Map values to an array + const uniqueScreenshots = Array.from(screenshotsMap.values()); + + // Reindex the screenshots to ensure sequential indices + const deviceTypes = ["iPhone", "iPad", "Mac", "AppleTV"]; + const reindexedScreenshots: ScreenshotInfo[] = []; + + // Process each device type separately to maintain device-specific indices + for (const deviceType of deviceTypes) { + const deviceScreenshots = uniqueScreenshots.filter((s) => s.type === deviceType); + deviceScreenshots.forEach((screenshot, idx) => { + reindexedScreenshots.push({ + ...screenshot, + index: idx, + }); + }); + } + + console.log( + `[Scraper] Found ${reindexedScreenshots.length} unique screenshots (filtered from ${uniqueScreenshots.length} total)`, + ); + return reindexedScreenshots; + } catch (error) { + console.error("[Scraper] Error scraping App Store:", error); + return []; + } +} + +/** + * Add unique screenshots to the map, avoiding duplicates + * @param screenshotsMap Map of normalized URLs to screenshot info + * @param newScreenshots Array of new screenshots to add + */ +function addUniqueScreenshots(screenshotsMap: Map, newScreenshots: ScreenshotInfo[]): void { + for (const screenshot of newScreenshots) { + // Generate a normalized URL for deduplication + const normalizedUrl = normalizeUrl(screenshot.url); + + // Only add if we don't already have this screenshot + if (!screenshotsMap.has(normalizedUrl)) { + screenshotsMap.set(normalizedUrl, screenshot); + } + } +} + +/** + * Normalize a URL for deduplication purposes + * @param url URL to normalize + * @returns Normalized URL string + */ +function normalizeUrl(url: string): string { + // Extract the base part of the URL (before the resolution) + const basePart = url.substring(0, url.lastIndexOf("/") + 1); + + // Remove any resolution and file extension info for comparison + // This helps identify duplicates even if they have different resolutions or formats + return basePart; +} + +/** + * Extract screenshots from HTML using regex + * @param html HTML content + * @param regex Regex pattern to match the section + * @param type Device type + * @returns Array of screenshot information objects + */ +function extractScreenshotsByRegex( + html: string, + regex: RegExp, + type: "iPhone" | "iPad" | "Mac" | "AppleTV", +): ScreenshotInfo[] { + const screenshots: ScreenshotInfo[] = []; + const sectionMatch = regex.exec(html); + + if (sectionMatch && sectionMatch[1]) { + const section = sectionMatch[1]; + const srcsetRegex = /srcset="([^"]+)"/g; + let match; + let index = 0; + + while ((match = srcsetRegex.exec(section)) !== null) { + const srcset = match[1]; + const highResUrl = extractHighestResolutionUrl(srcset); + + if (highResUrl && isAppStoreScreenshot(highResUrl)) { + screenshots.push({ + url: highResUrl, + type, + index: index++, + }); + } + } + + console.log(`[Scraper] Found ${screenshots.length} ${type} screenshots`); + } + + return screenshots; +} + +/** + * Check if a URL is likely an App Store screenshot + * @param url URL to check + * @returns True if the URL appears to be an App Store screenshot + */ +function isAppStoreScreenshot(url: string): boolean { + // App Store screenshots typically come from mzstatic.com domain + if (!url.includes("mzstatic.com") || !url.includes("image/thumb")) { + return false; + } + + // Filter out app icons (they typically have "app-icon" in the URL) + if (url.includes("app-icon") || url.includes("icon_")) { + return false; + } + + // Filter out promotional images that aren't screenshots + if (url.includes("landing-") || url.includes("poster-")) { + return false; + } + + // Filter out square logos/icons (they typically have dimensions like 512x512, 1024x1024) + if (url.includes("x0w.") === false && url.match(/\d+x\d+/)) { + const dimensions = url.match(/(\d+)x(\d+)/); + if (dimensions && dimensions[1] === dimensions[2]) { + // It's a square image, likely an icon or logo, not a screenshot + return false; + } + } + + // Accept images that look like screenshots + if (url.includes("/screenshot/") || url.includes("x0w.") || url.includes("x0h.")) { + return true; + } + + // For we-artwork elements, be more permissive but still filter out obvious non-screenshots + return !url.includes("1x1") && !url.includes("icon"); +} + +/** + * Extract the highest resolution URL from a srcset attribute + * @param srcset srcset attribute value + * @returns Highest resolution URL or null if none found + */ +function extractHighestResolutionUrl(srcset: string): string | null { + // If it's a simple URL without srcset format, return it directly + if (!srcset.includes(" ")) { + return srcset; + } + + // Parse the srcset format: "url1 1x, url2 2x, url3 3x" + const sources = srcset.split(",").map((src) => { + const [url, descriptor] = src.trim().split(" "); + // Extract the density multiplier (1x, 2x, 3x, etc.) + const density = descriptor ? parseFloat(descriptor.replace("x", "")) : 1; + return { url, density }; + }); + + // Sort by density in descending order and get the highest resolution URL + sources.sort((a, b) => b.density - a.density); + + // Convert to full URL if it's a relative path + let highResUrl = sources[0]?.url; + + // If the URL is relative, make it absolute + if (highResUrl && highResUrl.startsWith("/")) { + highResUrl = `https://apps.apple.com${highResUrl}`; + } + + return highResUrl || null; +} + +/** + * Transform App Store URLs to get original/highest resolution images + * @param url Screenshot URL from the App Store + * @returns URL to the highest resolution version + */ +export function getHighestResolutionUrl(url: string): string { + // The App Store often uses URLs like: + // https://is1-ssl.mzstatic.com/image/thumb/PurpleSource126/v4/aa/bb/cc/aabbcc-image.png/230x0w.webp + + // We want to transform it to: + // https://is1-ssl.mzstatic.com/image/thumb/PurpleSource126/v4/aa/bb/cc/aabbcc-image.png/2000x0w.png + + try { + // Check if this is an App Store image URL + if (url.includes("mzstatic.com/image/thumb/")) { + // Extract the base part of the URL (before the resolution) + const basePart = url.substring(0, url.lastIndexOf("/") + 1); + + // Always use PNG format for highest quality + // This prioritizes PNG over WebP as requested + const fileExt = "png"; + + // Return the URL with the highest resolution + return `${basePart}2000x0w.${fileExt}`; + } + + // If not an App Store URL or doesn't match the expected format, return as is + return url; + } catch (error) { + console.error("[Scraper] Error transforming URL:", error); + return url; + } +} diff --git a/extensions/ios-apps/tsconfig.json b/extensions/ios-apps/tsconfig.json new file mode 100644 index 00000000000..abb15806bec --- /dev/null +++ b/extensions/ios-apps/tsconfig.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json.schemastore.org/tsconfig", + "include": ["src/**/*", "raycast-env.d.ts"], + "compilerOptions": { + "lib": ["ES2023"], + "module": "commonjs", + "target": "ES2022", + "strict": true, + "isolatedModules": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react-jsx", + "resolveJsonModule": true + } +}