diff --git a/mobile-web/README.md b/mobile-web/README.md new file mode 100644 index 0000000..d892c32 --- /dev/null +++ b/mobile-web/README.md @@ -0,0 +1,12 @@ +# PackService 手机网页 + +独立的 Vue 3 + TypeScript + WeUI 手机网页,开发端口默认为 `7303`,预览端口为 `7304`。 + +```powershell +npm install +npm run dev +``` + +开发服务器会将 `/api` 请求代理到 `http://127.0.0.1:7300`。可通过 `VITE_BACKEND` 更改后端地址,通过 `VITE_MOBILE_PORT` 更改开发端口。 + +执行 `npm run build` 生成 `dist/`。路由使用 HTML5 History 模式,生产部署时需将 `/login`、`/home`、`/profile` 等前端路径回退到 `index.html`,并将 `/api` 请求转发至后端。 diff --git a/mobile-web/index.html b/mobile-web/index.html new file mode 100644 index 0000000..0d1dadd --- /dev/null +++ b/mobile-web/index.html @@ -0,0 +1,13 @@ + + + + + + + PackService + + +
+ + + diff --git a/mobile-web/package-lock.json b/mobile-web/package-lock.json new file mode 100644 index 0000000..63ff178 --- /dev/null +++ b/mobile-web/package-lock.json @@ -0,0 +1,1723 @@ +{ + "name": "pack-service-mobile-web", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pack-service-mobile-web", + "version": "1.0.0", + "dependencies": { + "vue": "^3.5.44", + "vue-router": "^5.4.0", + "weui": "^2.6.20" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.10", + "typescript": "^5.9.3", + "vite": "^8.3.4", + "vue-tsc": "^3.3.13" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz", + "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.11" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.11", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", + "devOptional": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz", + "integrity": "sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.16.tgz", + "integrity": "sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.16.tgz", + "integrity": "sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.16.tgz", + "integrity": "sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.16.tgz", + "integrity": "sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.16.tgz", + "integrity": "sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.16.tgz", + "integrity": "sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.16.tgz", + "integrity": "sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.16.tgz", + "integrity": "sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==", + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.16.tgz", + "integrity": "sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==", + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.16.tgz", + "integrity": "sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.16.tgz", + "integrity": "sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.16.tgz", + "integrity": "sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.16.tgz", + "integrity": "sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.16.tgz", + "integrity": "sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.10.tgz", + "integrity": "sha512-b80aUQh3n+qEzzZm5oQp3rT2QImeCx58K6eFl/RkJ3d65KW0kTuv5lNsLRVAjbW9YRUpo/wzmvzMgV34bTAItA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "vue": "^3.2.25 || ^3.6.0-rc.10" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.30.tgz", + "integrity": "sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.30" + } + }, + "node_modules/@volar/language-service": { + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/language-service/-/language-service-2.4.30.tgz", + "integrity": "sha512-w/xDsASiqC71ggCOm7sTDXDNk/l72XEptodeRC68tgZ0e5QM4hM3zAqBGC7mBctvhrpYwKfMG+t9xcUo2hEFtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.30", + "vscode-languageserver-protocol": "^3.17.5", + "vscode-languageserver-textdocument": "^1.0.11", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.30.tgz", + "integrity": "sha512-zym1ob/KwDDyN+0jGVtxwbxJSRRnUvv5HspCtz3yEfVVdCG4/dzxJktMGPAgemqRuVs81O0o/y0q3qOUErR8kg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.30", + "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.30.tgz", + "integrity": "sha512-/DgA5tgYFPfrLFuSjIMXMGHk1LQv2+P8eny6+BhGNzFJELWIW7UZlc56ZLIRFhLsPpMfIFxM8/HvOPBggrjTZg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.30", + "@volar/language-service": "2.4.30", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + }, + "peerDependencies": { + "typescript": "<7" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@vue-macros/common": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/@vue-macros/common/-/common-3.1.4.tgz", + "integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.44.tgz", + "integrity": "sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.9", + "@vue/shared": "3.5.44", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.2" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.44.tgz", + "integrity": "sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.44.tgz", + "integrity": "sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.9", + "@vue/compiler-core": "3.5.44", + "@vue/compiler-dom": "3.5.44", + "@vue/compiler-ssr": "3.5.44", + "@vue/shared": "3.5.44", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.29", + "source-map-js": "^1.2.2" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.44.tgz", + "integrity": "sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/devtools-api": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-8.2.1.tgz", + "integrity": "sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.2.1" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-8.2.1.tgz", + "integrity": "sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.2.1", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-8.2.1.tgz", + "integrity": "sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==", + "license": "MIT" + }, + "node_modules/@vue/language-core": { + "version": "3.3.14", + "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-3.3.14.tgz", + "integrity": "sha512-kRB+3hHg0c+BdD1XLAvwjVMQd5pC05zijSlPDRI3ERvC/s04JlRs5upy2KjeMg/9m9oD5zuMVh9yVvkKfZqoJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.30", + "@vue/compiler-dom": "^3.5.0", + "@vue/shared": "^3.5.0", + "alien-signals": "^3.2.1", + "muggle-string": "^0.4.1", + "path-browserify": "^1.0.1", + "picomatch": "^4.0.4" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.44.tgz", + "integrity": "sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.44.tgz", + "integrity": "sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.44.tgz", + "integrity": "sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.44", + "@vue/runtime-core": "3.5.44", + "@vue/shared": "3.5.44", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.44.tgz", + "integrity": "sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.44", + "@vue/runtime-dom": "3.5.44", + "@vue/shared": "3.5.44" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", + "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==", + "license": "MIT" + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/alien-signals": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.2.1.tgz", + "integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==", + "dev": true, + "license": "MIT" + }, + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/ast-walker-scope/-/ast-walker-scope-0.10.0.tgz", + "integrity": "sha512-KzvoxDfXNz2Gm8KYLh47K3qcY3Zza3WKOuh2xoqa7LBu6MDKWAZLovJtU9DuAd/Er+rhQHCRn619lHS5U+qmhw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^8.0.0", + "@babel/types": "^8.0.0", + "ast-kit": "^3.0.0" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/helper-string-parser": { + "version": "8.0.8", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.8.tgz", + "integrity": "sha512-fVM+gSuKbdv9cpmyRNh5EvsDHUZCdxQH3FdnFKSkNYHpbsn95bbrxm+ES3MVeQjcqwi2O5ur/DjLfmTQaO60ng==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/helper-validator-identifier": { + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz", + "integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/parser": { + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.10.tgz", + "integrity": "sha512-h+ah2Kg0ne1Vii892dShj9gky9I5jPzkd8x4s/3xgN/P2bMWmHS3qq59tum3mCVjCBXI8uqfYyYtrfp1Mz6+1w==", + "license": "MIT", + "dependencies": { + "@babel/types": "^8.0.10" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/@babel/types": { + "version": "8.0.10", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.10.tgz", + "integrity": "sha512-KV8Y+teoRsmXeEPS4sCJY1kwV+hcPzHP1qQqgCxrjKOehLdBaxpsFBfoJ8MXWFV80y6Jw56+TM95wR0Per8dYw==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^8.0.8", + "@babel/helper-validator-identifier": "^8.0.6" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/ast-walker-scope/node_modules/ast-kit": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-3.0.0.tgz", + "integrity": "sha512-8OG92q3R35qjC/4i6BLBMg8IB+fClWu/1PEwg2Z9Rn+BuNaiEgJzpzn+pxWOdHJWDCAwu2JP0wCDTozAM4QirQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^8.0.0", + "estree-walker": "^3.0.3", + "pathe": "^2.0.3" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/confbox": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.2.tgz", + "integrity": "sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==", + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "devOptional": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/exsolve": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.2.0.tgz", + "integrity": "sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "license": "MIT" + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "devOptional": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/nostics": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/nostics/-/nostics-1.3.0.tgz", + "integrity": "sha512-wzRsrJwNlFbqIRQt8aCeL2WE8USip/uuvGSOZV1D02CxX8ABTMbw8IywKjH7yWHETMXbWJI4OBpihg9rmz2Vyg==", + "license": "MIT" + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz", + "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==", + "license": "MIT", + "dependencies": { + "confbox": "^0.3.1", + "exsolve": "^1.1.3", + "pathe": "^2.0.3" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/rolldown": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.16.tgz", + "integrity": "sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.16", + "@rolldown/binding-android-arm64": "1.2.16", + "@rolldown/binding-darwin-arm64": "1.2.16", + "@rolldown/binding-darwin-x64": "1.2.16", + "@rolldown/binding-freebsd-x64": "1.2.16", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.16", + "@rolldown/binding-linux-arm64-gnu": "1.2.16", + "@rolldown/binding-linux-arm64-musl": "1.2.16", + "@rolldown/binding-linux-ppc64-gnu": "1.2.16", + "@rolldown/binding-linux-s390x-gnu": "1.2.16", + "@rolldown/binding-linux-x64-gnu": "1.2.16", + "@rolldown/binding-linux-x64-musl": "1.2.16", + "@rolldown/binding-openharmony-arm64": "1.2.16", + "@rolldown/binding-win32-arm64-msvc": "1.2.16", + "@rolldown/binding-win32-x64-msvc": "1.2.16" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "license": "MIT" + }, + "node_modules/unplugin": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-3.7.0.tgz", + "integrity": "sha512-GrM2uq3DQo3hvLU2FjeYhooJ8BY9N6j1Fbzgx7Pta3VVJevsD3VP4dPjZkZOS0mLvN8w9zzr9OlP+31bSMyuLw==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "@rolldown/pluginutils": "^1.0.1", + "picomatch": "^4.0.7", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@farmfe/core": "*", + "@rsbuild/core": "*", + "@rspack/core": "*", + "bun-types-no-globals": "*", + "esbuild": "*", + "rolldown": "*", + "rollup": "*", + "unloader": "*", + "vite": "*", + "webpack": "*" + }, + "peerDependenciesMeta": { + "@farmfe/core": { + "optional": true + }, + "@rsbuild/core": { + "optional": true + }, + "@rspack/core": { + "optional": true + }, + "bun-types-no-globals": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + }, + "unloader": { + "optional": true + }, + "vite": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.2.tgz", + "integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/vite": { + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz", + "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.30", + "rolldown": "~1.2.14", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vscode-jsonrpc": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-10.0.0.tgz", + "integrity": "sha512-USSfxg0vDIpTQqlQBGxF3mBARyoS8cU7LHLpbYNh6dOJt32dlskxPWB0Irrh5TllTmyf7oNLAvqDqzklbwwnpA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.17.0" + } + }, + "node_modules/vscode-languageserver-protocol": { + "version": "3.18.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.18.5.tgz", + "integrity": "sha512-FW4fBMzZ99N8xeob4py0l050wgCoRgTpEq5Xcsb9lM1bc29UKGR/wSV+4knaqFxssFHajy7OzNiKP/m3U1ZEuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "vscode-jsonrpc": "10.0.0", + "vscode-languageserver-types": "3.18.5" + } + }, + "node_modules/vscode-languageserver-textdocument": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz", + "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-languageserver-types": { + "version": "3.18.5", + "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.18.5.tgz", + "integrity": "sha512-kPd6+JQNz3HMJvjKlqUxERSlZHAntl/aGpsk7ImwIh0ewDKDcjgAEyVSYciPiOJD3ftbK9IrfiqUeTZLSbCizw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vscode-uri": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz", + "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.44", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.44.tgz", + "integrity": "sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.44", + "@vue/compiler-sfc": "3.5.44", + "@vue/runtime-dom": "3.5.44", + "@vue/server-renderer": "3.5.44", + "@vue/shared": "3.5.44" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-5.4.0.tgz", + "integrity": "sha512-pFvcYcxinDHjZUlf7AzFBrT8r8Xqvv4uMHoJnjc+EqPawXQvHTkF8S4tfSmQLpriVHUGfkaKlI7Et0KRjTMTdw==", + "license": "MIT", + "dependencies": { + "@vue-macros/common": "^3.1.3", + "@vue/devtools-api": "^8.1.5", + "ast-walker-scope": "^0.10.0", + "chokidar": "^5.0.0", + "confbox": "^0.3.1", + "local-pkg": "^1.2.1", + "magic-string": "^1.4.3", + "mlly": "^1.8.2", + "muggle-string": "^0.4.1", + "nostics": "^1.3.0", + "pathe": "^2.0.3", + "picomatch": "^4.0.7", + "scule": "^1.3.0", + "tinyglobby": "^0.2.17", + "unplugin": "^3.4.0", + "unplugin-utils": "^0.3.2" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.34 || ^4.0.0", + "pinia": "^3.0.4 || ^4.0.2", + "vite": "^7.3.0 || ^8.0.0", + "vue": "^3.5.34 || ^4.0.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/vue-router/node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/vue-tsc": { + "version": "3.3.14", + "resolved": "https://registry.npmjs.org/vue-tsc/-/vue-tsc-3.3.14.tgz", + "integrity": "sha512-URAu2H9AuMZMg9GCgnqbaHHHd8pBZRAwNV2e2yYS8VDsoTVXHiOSo663OS6DkEvauQ2yixn5TPFJ9WV9QIspkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.30", + "@vue/language-core": "3.3.14" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/weui": { + "version": "2.6.26", + "resolved": "https://registry.npmjs.org/weui/-/weui-2.6.26.tgz", + "integrity": "sha512-V2s4HVNNc7vOFxzll9b13dz9IvsCdW+Dxv51ahcS2aBnX6LBhwJySJHBC3YoRspwO/oyltkjGri9TTyJ1FcAZg==", + "license": "MIT" + } + } +} diff --git a/mobile-web/package.json b/mobile-web/package.json new file mode 100644 index 0000000..ffe8853 --- /dev/null +++ b/mobile-web/package.json @@ -0,0 +1,23 @@ +{ + "name": "pack-service-mobile-web", + "version": "1.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "preview": "vite preview", + "typecheck": "vue-tsc --noEmit" + }, + "dependencies": { + "vue": "^3.5.44", + "vue-router": "^5.4.0", + "weui": "^2.6.20" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.10", + "typescript": "^5.9.3", + "vite": "^8.3.4", + "vue-tsc": "^3.3.13" + } +} diff --git a/mobile-web/src/App.vue b/mobile-web/src/App.vue new file mode 100644 index 0000000..7c2aa3f --- /dev/null +++ b/mobile-web/src/App.vue @@ -0,0 +1,3 @@ + diff --git a/mobile-web/src/components/BottomNav.vue b/mobile-web/src/components/BottomNav.vue new file mode 100644 index 0000000..cbcaccf --- /dev/null +++ b/mobile-web/src/components/BottomNav.vue @@ -0,0 +1,24 @@ + + + diff --git a/mobile-web/src/main.ts b/mobile-web/src/main.ts new file mode 100644 index 0000000..fd812da --- /dev/null +++ b/mobile-web/src/main.ts @@ -0,0 +1,7 @@ +import { createApp } from 'vue'; +import App from './App.vue'; +import { router } from './router'; +import 'weui/dist/style/weui.min.css'; +import './styles.css'; + +createApp(App).use(router).mount('#app'); diff --git a/mobile-web/src/router.ts b/mobile-web/src/router.ts new file mode 100644 index 0000000..a03e9d1 --- /dev/null +++ b/mobile-web/src/router.ts @@ -0,0 +1,42 @@ +import { createRouter, createWebHistory } from 'vue-router'; +import { getToken } from './types'; + +declare module 'vue-router' { + interface RouteMeta { + requiresAuth?: boolean; + guestOnly?: boolean; + } +} + +export const router = createRouter({ + history: createWebHistory(), + routes: [ + { path: '/', redirect: () => (getToken() ? '/home' : '/login') }, + { + path: '/login', + name: 'login', + component: () => import('./views/LoginView.vue'), + meta: { guestOnly: true }, + }, + { + path: '/home', + name: 'home', + component: () => import('./views/HomeView.vue'), + meta: { requiresAuth: true }, + }, + { + path: '/profile', + name: 'profile', + component: () => import('./views/ProfileView.vue'), + meta: { requiresAuth: true }, + }, + { path: '/:pathMatch(.*)*', redirect: '/' }, + ], +}); + +router.beforeEach((to) => { + const loggedIn = Boolean(getToken()); + if (to.meta.requiresAuth && !loggedIn) return { name: 'login' }; + if (to.meta.guestOnly && loggedIn) return { name: 'home' }; + return true; +}); diff --git a/mobile-web/src/styles.css b/mobile-web/src/styles.css new file mode 100644 index 0000000..962a38e --- /dev/null +++ b/mobile-web/src/styles.css @@ -0,0 +1,568 @@ +:root { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", + "Microsoft YaHei", sans-serif; + color: #17233b; + background: #f5f7fb; + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + font-weight: 400; +} + +* { + box-sizing: border-box; +} + +html, +body, +#app { + width: 100%; + min-width: 0; + min-height: 100%; + margin: 0; +} + +body { + min-height: 100vh; + min-height: 100dvh; + overflow-x: hidden; + background: #f5f7fb; +} + +button, +input { + font: inherit; +} + +button, +a { + -webkit-tap-highlight-color: transparent; +} + +a { + color: inherit; + text-decoration: none; +} + +.page-shell, +.app-page { + width: 100%; + max-width: 480px; + min-height: 100vh; + min-height: 100dvh; + margin: 0 auto; + overflow-x: clip; + background: #f5f7fb; +} + +.login-page { + display: flex; + flex-direction: column; + justify-content: center; + padding: 48px 24px max(32px, env(safe-area-inset-bottom)); + background: + radial-gradient(ellipse at 95% 4%, rgb(91 128 255 / 13%), transparent 42%), + #f5f7fb; +} + +.login-brand { + margin-bottom: 32px; +} + +.brand-mark { + display: grid; + width: 54px; + height: 54px; + place-items: center; + border-radius: 18px; + background: linear-gradient(140deg, #6e8eff, #4162e8); + box-shadow: 0 12px 24px rgb(65 98 232 / 25%); + color: #fff; + font-size: 28px; + font-weight: 800; +} + +.eyebrow { + margin: 0 0 10px; + color: #8490a8; + font-size: 10px; + font-weight: 700; + letter-spacing: 0.18em; +} + +.login-brand .eyebrow { + margin-top: 24px; +} + +.login-brand h1, +.home-header h1, +.page-title h1 { + margin: 0; + color: #182440; + font-size: 27px; + font-weight: 750; + letter-spacing: -0.04em; +} + +.muted { + margin: 9px 0 0; + color: #8993a8; + font-size: 14px; +} + +.login-card { + padding: 8px 18px 20px; + border: 1px solid #edf0f7; + border-radius: 20px; + background: #fff; + box-shadow: 0 14px 40px rgb(36 57 112 / 6%); +} + +.login-fields { + margin-top: 0; +} + +.login-fields::before, +.login-fields::after, +.login-fields .weui-cell::before { + border-color: #edf0f5; +} + +.login-fields .weui-cell { + min-height: 58px; + padding: 10px 0; +} + +.login-fields .weui-label { + width: 52px; + color: #424e67; + font-size: 14px; +} + +.login-fields .weui-input { + min-width: 0; + color: #17233b; + font-size: 14px; +} + +.login-fields .weui-input::placeholder { + color: #b0b7c5; +} + +.form-error { + margin: 12px 0 0; + color: #d94b4b; + font-size: 13px; + line-height: 1.5; +} + +.login-button { + height: 48px; + margin-top: 24px; + border-radius: 12px; + background: #4d6ff0; + font-size: 15px; + font-weight: 650; + line-height: 48px; +} + +.login-button:not(.weui-btn_disabled):active { + background: #3e5fdd; +} + +.login-footnote { + margin: 22px 0 0; + color: #a0a9ba; + font-size: 12px; + text-align: center; +} + +.app-page { + display: flex; + flex-direction: column; +} + +.page-content { + flex: 1; + min-width: 0; + padding: max(28px, env(safe-area-inset-top)) 20px 24px; +} + +.home-content { + padding-top: max(38px, env(safe-area-inset-top)); +} + +.home-header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + margin-bottom: 27px; +} + +.home-header h1 { + font-size: 23px; +} + +.home-header .muted { + font-size: 13px; +} + +.avatar-badge, +.profile-avatar { + display: grid; + flex: 0 0 auto; + place-items: center; + border-radius: 50%; + background: #e8edff; + color: #4e6be1; + font-weight: 700; +} + +.avatar-badge { + width: 48px; + height: 48px; + font-size: 20px; +} + +.welcome-card { + position: relative; + display: flex; + min-height: 172px; + align-items: center; + justify-content: space-between; + overflow: hidden; + padding: 24px 20px; + border-radius: 22px; + background: linear-gradient(120deg, #4968e9, #6687f6); + box-shadow: 0 16px 30px rgb(77 111 240 / 21%); + color: #fff; +} + +.welcome-copy { + position: relative; + z-index: 1; + max-width: 70%; +} + +.welcome-tag { + display: inline-block; + padding: 5px 9px; + border: 1px solid rgb(255 255 255 / 34%); + border-radius: 20px; + background: rgb(255 255 255 / 13%); + font-size: 10px; +} + +.welcome-copy h2 { + margin: 15px 0 6px; + font-size: 21px; + font-weight: 700; +} + +.welcome-copy p { + margin: 0; + color: rgb(255 255 255 / 78%); + font-size: 12px; + line-height: 1.6; +} + +.welcome-orbit { + position: absolute; + top: 50%; + right: -17px; + display: grid; + width: 132px; + height: 132px; + place-items: center; + transform: translateY(-50%); + border: 1px solid rgb(255 255 255 / 21%); + border-radius: 50%; + background: rgb(255 255 255 / 9%); +} + +.welcome-orbit::before { + position: absolute; + width: 92px; + height: 92px; + border: 1px solid rgb(255 255 255 / 25%); + border-radius: 50%; + content: ""; +} + +.welcome-orbit span { + color: rgb(255 255 255 / 48%); + font-size: 42px; + font-weight: 800; +} + +.section-block { + margin-top: 31px; +} + +.section-heading { + display: flex; + align-items: baseline; + justify-content: space-between; + margin-bottom: 14px; +} + +.section-heading h2 { + margin: 0; + font-size: 17px; + font-weight: 700; +} + +.section-heading span { + color: #a6afbf; + font-size: 9px; + font-weight: 700; + letter-spacing: 0.12em; +} + +.quick-card { + display: flex; + min-height: 78px; + align-items: center; + gap: 13px; + padding: 13px 15px; + border: 1px solid #edf0f7; + border-radius: 16px; + background: #fff; +} + +.quick-icon { + display: grid; + width: 44px; + height: 44px; + flex: 0 0 auto; + place-items: center; + border-radius: 14px; + background: #edf1ff; + color: #5472ec; +} + +.quick-icon svg, +.nav-item svg { + width: 22px; + height: 22px; + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 1.8; +} + +.quick-copy { + display: flex; + min-width: 0; + flex: 1; + flex-direction: column; + gap: 5px; +} + +.quick-copy strong { + font-size: 14px; +} + +.quick-copy small { + color: #929caf; + font-size: 11px; +} + +.chevron, +.profile-arrow { + color: #aeb6c5; + font-size: 24px; + line-height: 1; +} + +.tip-card { + display: flex; + gap: 10px; + margin-top: 16px; + padding: 15px; + border-radius: 15px; + background: #edf2ff; +} + +.tip-dot { + width: 7px; + height: 7px; + flex: 0 0 auto; + margin-top: 5px; + border-radius: 50%; + background: #6482f1; +} + +.tip-card strong { + color: #435dba; + font-size: 12px; +} + +.tip-card p { + margin: 5px 0 0; + color: #7180ad; + font-size: 11px; + line-height: 1.6; +} + +.page-title { + margin-bottom: 25px; +} + +.page-title h1 { + font-size: 25px; +} + +.profile-card { + display: flex; + min-width: 0; + align-items: center; + gap: 14px; + padding: 21px 17px; + border-radius: 19px; + background: linear-gradient(120deg, #4968e9, #6687f6); + box-shadow: 0 14px 28px rgb(77 111 240 / 18%); + color: #fff; +} + +.profile-avatar { + width: 54px; + height: 54px; + border: 2px solid rgb(255 255 255 / 64%); + background: rgb(255 255 255 / 20%); + color: #fff; + font-size: 22px; +} + +.profile-identity { + min-width: 0; + flex: 1; +} + +.profile-identity h2 { + overflow: hidden; + margin: 0; + font-size: 17px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.profile-identity p { + margin: 6px 0 0; + color: rgb(255 255 255 / 77%); + font-size: 11px; +} + +.profile-arrow { + color: rgb(255 255 255 / 68%); +} + +.profile-details { + margin-top: 17px; + padding: 4px 16px; + border: 1px solid #edf0f7; + border-radius: 17px; + background: #fff; +} + +.detail-row { + display: flex; + min-width: 0; + min-height: 52px; + align-items: center; + justify-content: space-between; + gap: 12px; + border-bottom: 1px solid #f0f2f7; + font-size: 13px; +} + +.detail-row:last-child { + border-bottom: 0; +} + +.detail-row span { + flex: 0 0 auto; + color: #858fa3; +} + +.detail-row strong { + overflow: hidden; + color: #27344d; + font-size: 12px; + font-weight: 550; + text-align: right; + text-overflow: ellipsis; + white-space: nowrap; +} + +.logout-button { + height: 47px; + margin-top: 25px; + border: 1px solid #e8ebf2; + border-radius: 12px; + background: #fff; + color: #d64e58; + font-size: 14px; + line-height: 45px; +} + +.logout-button:not(.weui-btn_disabled):active { + background: #fff7f7; + color: #bf3d47; +} + +.bottom-nav { + position: sticky; + z-index: 5; + bottom: 0; + display: flex; + width: 100%; + min-height: 62px; + justify-content: space-around; + padding: 8px 24px max(8px, env(safe-area-inset-bottom)); + border-top: 1px solid #edf0f5; + background: rgb(255 255 255 / 96%); + backdrop-filter: blur(12px); +} + +.nav-item { + display: flex; + min-width: 76px; + flex-direction: column; + align-items: center; + gap: 3px; + color: #9ba4b5; + font-size: 10px; +} + +.nav-item.active { + color: #4d6ff0; +} + +.nav-item svg { + width: 21px; + height: 21px; +} + +@media (max-width: 360px) { + .login-page { + padding-right: 18px; + padding-left: 18px; + } + + .page-content { + padding-right: 16px; + padding-left: 16px; + } + + .welcome-copy { + max-width: 76%; + } + + .welcome-orbit { + right: -40px; + } +} diff --git a/mobile-web/src/types.ts b/mobile-web/src/types.ts new file mode 100644 index 0000000..1f8c36b --- /dev/null +++ b/mobile-web/src/types.ts @@ -0,0 +1,35 @@ +export interface MobileUser { + id: number; + username?: string | null; + nickname?: string | null; + email?: string | null; + phone?: string | null; + avatar?: string | null; +} + +export interface LoginResult { + token: string; + user: MobileUser; +} + +export function readUser(): MobileUser | null { + try { + const stored = localStorage.getItem('packs_user'); + return stored ? (JSON.parse(stored) as MobileUser) : null; + } catch { + return null; + } +} + +export function getToken(): string { + return localStorage.getItem('packs_token') || ''; +} + +export function clearSession(): void { + localStorage.removeItem('packs_token'); + localStorage.removeItem('packs_user'); +} + +export function getDisplayName(user: MobileUser | null): string { + return user?.nickname || user?.username || (user ? `用户 ${user.id}` : '访客'); +} diff --git a/mobile-web/src/views/HomeView.vue b/mobile-web/src/views/HomeView.vue new file mode 100644 index 0000000..2cc6f99 --- /dev/null +++ b/mobile-web/src/views/HomeView.vue @@ -0,0 +1,61 @@ + + + diff --git a/mobile-web/src/views/LoginView.vue b/mobile-web/src/views/LoginView.vue new file mode 100644 index 0000000..5f187fd --- /dev/null +++ b/mobile-web/src/views/LoginView.vue @@ -0,0 +1,92 @@ + + + diff --git a/mobile-web/src/views/ProfileView.vue b/mobile-web/src/views/ProfileView.vue new file mode 100644 index 0000000..ebba642 --- /dev/null +++ b/mobile-web/src/views/ProfileView.vue @@ -0,0 +1,57 @@ + + + diff --git a/mobile-web/tsconfig.json b/mobile-web/tsconfig.json new file mode 100644 index 0000000..d356541 --- /dev/null +++ b/mobile-web/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + "moduleResolution": "Bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "noEmit": true, + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true + }, + "include": ["src/**/*.ts", "src/**/*.vue"] +} diff --git a/mobile-web/vite.config.ts b/mobile-web/vite.config.ts new file mode 100644 index 0000000..2d8046e --- /dev/null +++ b/mobile-web/vite.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from 'vite'; +import vue from '@vitejs/plugin-vue'; + +const backend = process.env.VITE_BACKEND || 'http://127.0.0.1:7300'; + +export default defineConfig({ + plugins: [vue()], + server: { + host: '127.0.0.1', + port: Number(process.env.VITE_MOBILE_PORT || 7303), + strictPort: true, + proxy: { + '/api': { target: backend, changeOrigin: true }, + }, + }, + preview: { + host: '127.0.0.1', + port: Number(process.env.VITE_MOBILE_PREVIEW_PORT || 7304), + strictPort: true, + }, +}); diff --git a/tools/scan-web-viewer.ps1 b/tools/scan-web-viewer.ps1 new file mode 100644 index 0000000..8b3131d --- /dev/null +++ b/tools/scan-web-viewer.ps1 @@ -0,0 +1,759 @@ +<# +.SYNOPSIS + 扫描局域网内 80 端口开放、且网页标题匹配(默认 "Web Viewer")的设备;结果可核对、不漏扫。 + +.DESCRIPTION + 不只是列出"开放的主机",而是给扫描范围内**每个地址**一个确定结论,避免漏扫: + + 1) 第一轮全量 TCP 探测 80(默认 800ms 快速失败),逐台记录状态: + Open(端口开)/ Refused(收到 RST,端口明确关闭)/ Timeout(无响应)/ Unreachable / Error; + 2) 读 ARP 邻居表(第一轮已把整个网段 ARP 唤醒),得到"真实在线"的主机集合; + 3) 对「在线但无响应」的主机做定向重试(更长超时 + 更低并发,默认再重试 2 轮); + 若 ARP 完全不可用(跨网段等),退回对所有无响应主机重试; + 4) 对 80 开放的主机抓 : + / →(空标题或 4xx 时)依次补探 -Paths 中的常见登录页;同主机内跟随跳转; + 按 header/meta 的 charset 解码(GB2312 中文页正常)。 + + 网段与掩码:默认取本机每块网卡的真实前缀(如 192.168.11.56/22 → 192.168.8.0/22), + 扫描范围严格限制在该网段的可用地址内(跳过网络地址/广播地址/本机地址),并打印出来便于核对。 + + 输出会给出全量分类:80 开放 / 80 关闭 / 在线但 80 无响应 / 未响应(判定不在线), + 其中「在线但 80 无响应」单独列出——这是最可能藏着设备的一类,需要人工确认。 + +.EXAMPLE + # 默认:按本机真实掩码扫所有网段,找标题含 Web Viewer 的设备 + powershell -NoProfile -ExecutionPolicy Bypass -File tools\scan-web-viewer.ps1 + +.EXAMPLE + # 指定网段并导出明细 + powershell -NoProfile -ExecutionPolicy Bypass -File tools\scan-web-viewer.ps1 ` + -Network 192.168.8.0/22 -CsvPath D:\scan.csv + +.EXAMPLE + # 更保守(慢但更稳):并发 16、首轮 1500ms、重试 3 轮 + powershell -NoProfile -ExecutionPolicy Bypass -File tools\scan-web-viewer.ps1 ` + -Threads 16 -ConnectTimeoutMs 1500 -Retries 3 + +.EXAMPLE + # 只看端口开放主机的标题(-TitleMatch 传空) + powershell -NoProfile -ExecutionPolicy Bypass -File tools\scan-web-viewer.ps1 -TitleMatch '' +#> +[CmdletBinding()] +param( + # 网段(CIDR 或单个 IP),可传多个;留空则自动取本机所有 IPv4 网段 + [string[]]$Network = @(), + + [int]$Port = 80, + + # 标题匹配(正则,不区分大小写;传空表示端口开放且有标题的都算命中) + [string]$TitleMatch = 'Web Viewer', + + # 探测路径,按顺序尝试,取第一个拿到标题的 + [string[]]$Paths = @('/', '/doc/page/login.asp', '/login.asp', '/login.html', '/index.html'), + + [int]$Threads = 64, + [int]$ConnectTimeoutMs = 800, + [int]$HttpTimeoutMs = 2500, + + # 在线但首轮无响应时的定向重试轮数,以及重试用的超时/并发 + [int]$Retries = 2, + [int]$RetryConnectTimeoutMs = 3000, + [int]$RetryHttpTimeoutMs = 5000, + [int]$RetryThreads = 32, + + # 单机总耗时上限,防止慢设备把整轮扫描拖住 + [int]$HostBudgetMs = 6000, + + # 地址数上限,防手滑扫大段 + [int]$MaxHosts = 8192, + + # 默认跳过本机地址 + [switch]$IncludeOwnHost, + + # 跳过 ARP 存活复核(复核会额外发 ICMP,约每台 0.3s) + [switch]$SkipAliveCheck, + + # 跳过 JS 标题兜底(首页标题为空时,去同源脚本里找 document.title = '...') + [switch]$SkipScriptTitle, + + [string]$CsvPath +) + +Set-StrictMode -Version 2.0 +$ErrorActionPreference = 'Stop' + +$scanScriptsEnabled = -not $SkipScriptTitle + +# 兼容 -File 调用方式:-Network 可能被当成一个逗号分隔的字符串 +$Network = @($Network | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ }) + +# ---------------------------------------------------------------- 地址计算 + +function ConvertTo-UInt32 { + param([System.Net.IPAddress]$Address) + $b = $Address.GetAddressBytes() + return ([uint64]$b[0] -shl 24) -bor ([uint64]$b[1] -shl 16) -bor ([uint64]$b[2] -shl 8) -bor [uint64]$b[3] +} + +function ConvertFrom-UInt32 { + param([uint64]$Value) + return ('{0}.{1}.{2}.{3}' -f (($Value -shr 24) -band 255), (($Value -shr 16) -band 255), (($Value -shr 8) -band 255), ($Value -band 255)) +} + +function Expand-Cidr { + param([string]$Cidr) + + if ($Cidr -notmatch '/') { $Cidr = "$Cidr/32" } + $parts = $Cidr.Split('/') + $address = [System.Net.IPAddress]::Parse($parts[0].Trim()) + $prefix = [int]$parts[1] + + if ($address.AddressFamily -ne [System.Net.Sockets.AddressFamily]::InterNetwork) { + throw "只支持 IPv4:$Cidr" + } + if ($prefix -lt 0 -or $prefix -gt 32) { throw "掩码非法:$Cidr" } + + $hostBits = 32 - $prefix + $size = [uint64][math]::Pow(2, $hostBits) + $mask = [uint64]([math]::Pow(2, 32) - $size) + $network = (ConvertTo-UInt32 $address) -band $mask + $broadcast = $network + $size - 1 + + $start = if ($prefix -le 30) { $network + 1 } else { $network } + $end = if ($prefix -le 30) { $broadcast - 1 } else { $broadcast } + + for ($i = $start; $i -le $end; $i++) { ConvertFrom-UInt32 $i } +} + +function Get-NetworkInfo { + param([string]$Cidr) + + if ($Cidr -notmatch '/') { $Cidr = "$Cidr/32" } + $parts = $Cidr.Split('/') + $address = [System.Net.IPAddress]::Parse($parts[0].Trim()) + $prefix = [int]$parts[1] + if ($address.AddressFamily -ne [System.Net.Sockets.AddressFamily]::InterNetwork) { + throw "只支持 IPv4:$Cidr" + } + if ($prefix -lt 0 -or $prefix -gt 32) { throw "掩码非法:$Cidr" } + + $hostBits = 32 - $prefix + $size = [uint64][math]::Pow(2, $hostBits) + $maskValue = [uint64]([math]::Pow(2, 32) - $size) + $network = (ConvertTo-UInt32 $address) -band $maskValue + $broadcast = $network + $size - 1 + + $first = if ($prefix -le 30) { $network + 1 } else { $network } + $last = if ($prefix -le 30) { $broadcast - 1 } else { $broadcast } + + return [pscustomobject]@{ + Cidr = ('{0}/{1}' -f (ConvertFrom-UInt32 $network), $prefix) + InterfaceIp = $address.ToString() + Prefix = $prefix + Mask = (ConvertFrom-UInt32 $maskValue) + Network = (ConvertFrom-UInt32 $network) + Broadcast = (ConvertFrom-UInt32 $broadcast) + First = (ConvertFrom-UInt32 $first) + Last = (ConvertFrom-UInt32 $last) + Count = [int]($last - $first + 1) + } +} + +function Get-DefaultNetworks { + $found = New-Object System.Collections.Generic.List[string] + foreach ($nic in [System.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces()) { + if ($nic.OperationalStatus -ne 'Up') { continue } + if ($nic.NetworkInterfaceType -eq 'Loopback') { continue } + + $prefixes = @() + foreach ($u in $nic.GetIPProperties().UnicastAddresses) { + if ($u.Address.AddressFamily -ne [System.Net.Sockets.AddressFamily]::InterNetwork) { continue } + $ip = $u.Address.ToString() + if ($ip -like '127.*' -or $ip -like '169.254.*') { continue } + $prefixes += ('{0}/{1}' -f $ip, $u.PrefixLength) + } + if ($prefixes.Count -eq 0) { continue } + + # 同一张网卡上的多个地址归并到它自己的网段,避免重复扫描 + foreach ($cidr in ($prefixes | Select-Object -Unique)) { + $info = Get-NetworkInfo $cidr + if (-not $found.Contains($info.Cidr)) { $found.Add($info.Cidr) } + } + } + return @($found) +} + +function Get-AliveNeighbors { + # 返回 @{ ip = mac }:ARP 表里"真实存在"的主机(用于判定漏扫、定向重试) + $alive = @{} + + try { + foreach ($n in (Get-NetNeighbor -AddressFamily IPv4 -ErrorAction Stop)) { + if (-not $n.LinkLayerAddress) { continue } + $mac = ([string]$n.LinkLayerAddress).ToUpper() + if ($mac -eq '00-00-00-00-00-00') { continue } + if ($mac -match '^(FF-FF-FF-FF-FF-FF|01-00-5E-|33-33-)') { continue } + if ($n.State -eq 'Unreachable' -or $n.State -eq 'Incomplete') { continue } + $alive[[string]$n.IPAddress] = $mac + } + } catch { } + + if ($alive.Count -eq 0) { + try { + foreach ($line in (& arp -a 2>$null)) { + $m = [regex]::Match($line, '^\s*(\d+\.\d+\.\d+\.\d+)\s+([0-9a-fA-F]{2}(-[0-9a-fA-F]{2}){5})') + if ($m.Success) { + $mac = $m.Groups[2].Value.ToUpper() + if ($mac -eq '00-00-00-00-00-00' -or $mac -match '^(FF-FF-FF-FF-FF-FF|01-00-5E-|33-33-)') { continue } + $alive[$m.Groups[1].Value] = $mac + } + } + } catch { } + } + + return $alive +} + +function Confirm-AliveHosts { + # ARP 表可能有过期条目:对候选主机先发一次 ICMP 触发 ARP 刷新,再读邻居状态复核 + param([string[]]$Ips, [int]$ProbeWaitMs = 300) + + $confirmed = @{} + if (-not $Ips -or $Ips.Count -eq 0) { return $confirmed } + + foreach ($ip in $Ips) { + try { $null = & ping -n 1 -w $ProbeWaitMs $ip 2>$null } catch { } + } + Start-Sleep -Milliseconds 500 + + try { + foreach ($n in (Get-NetNeighbor -AddressFamily IPv4 -ErrorAction Stop)) { + $ip = [string]$n.IPAddress + if (-not ($Ips -contains $ip)) { continue } + if (-not $n.LinkLayerAddress) { continue } + $mac = ([string]$n.LinkLayerAddress).ToUpper() + if ($mac -eq '00-00-00-00-00-00') { continue } + if ($n.State -eq 'Unreachable' -or $n.State -eq 'Incomplete') { continue } + $confirmed[$ip] = $mac + } + } catch { } + + return $confirmed +} + +# ---------------------------------------------------------------- 目标网段 + +$ownIps = @() +foreach ($nic in [System.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces()) { + foreach ($u in $nic.GetIPProperties().UnicastAddresses) { + if ($u.Address.AddressFamily -eq [System.Net.Sockets.AddressFamily]::InterNetwork) { + $ownIps += $u.Address.ToString() + } + } +} + +$localNetworks = @(Get-DefaultNetworks) + +if ($Network.Count -eq 0) { $Network = $localNetworks } +if ($Network.Count -eq 0) { throw '没有找到可扫描的 IPv4 网段,请用 -Network 指定,例如 192.168.1.0/24' } + +# 统一按网卡真实掩码归一化成「网络地址/掩码」,扫描范围就是该网段的可用地址 +$networkInfos = @() +foreach ($cidr in $Network) { + $info = Get-NetworkInfo $cidr + if (-not ($networkInfos | Where-Object { $_.Cidr -eq $info.Cidr })) { $networkInfos += $info } +} +$Network = @($networkInfos | ForEach-Object { $_.Cidr }) + +# 目标网段是否都在本机直连段内(决定 ARP 存活判定是否可信) +# 注意:显式传入的子网(如 192.168.8.0/24)只要落在本机 192.168.8.0/22 内,ARP 同样可用 +$localInfos = @(foreach ($cidr in $localNetworks) { Get-NetworkInfo $cidr }) +$arpUsable = $true +foreach ($info in $networkInfos) { + $covered = $false + foreach ($local in $localInfos) { + $childFirst = ConvertTo-UInt32 ([System.Net.IPAddress]::Parse($info.Network)) + $childLast = ConvertTo-UInt32 ([System.Net.IPAddress]::Parse($info.Broadcast)) + $parentFirst = ConvertTo-UInt32 ([System.Net.IPAddress]::Parse($local.Network)) + $parentLast = ConvertTo-UInt32 ([System.Net.IPAddress]::Parse($local.Broadcast)) + if (($childFirst -ge $parentFirst) -and ($childLast -le $parentLast)) { + $covered = $true + break + } + } + if (-not $covered) { $arpUsable = $false } +} + +Write-Host '[net] 本机网段(按网卡真实掩码):' -ForegroundColor Cyan +foreach ($info in $networkInfos) { + Write-Host (" {0,-20} 掩码 {1,-16} 可用 {2} - {3} ({4} 个地址)" -f + $info.Cidr, $info.Mask, $info.First, $info.Last, $info.Count) -ForegroundColor DarkCyan +} +if (-not $IncludeOwnHost) { + Write-Host ("[net] 跳过本机地址:{0}" -f ($ownIps -join ', ')) -ForegroundColor DarkGray +} + +$targets = New-Object System.Collections.Generic.List[string] +foreach ($cidr in $Network) { + foreach ($ip in (Expand-Cidr $cidr)) { + if (-not $IncludeOwnHost -and ($ownIps -contains $ip)) { continue } + if (-not $targets.Contains($ip)) { $targets.Add($ip) } + } +} +$targets = @($targets) + +if ($targets.Count -gt $MaxHosts) { + throw ("目标地址 {0} 个,超过上限 {1}。请缩小 -Network 或调大 -MaxHosts。" -f $targets.Count, $MaxHosts) +} + +Write-Host ("[scan] 网段 {0} → {1} 个地址,端口 {2},标题匹配 '{3}'" -f + ($Network -join ', '), $targets.Count, $Port, $TitleMatch) -ForegroundColor Cyan +Write-Host ("[scan] 首轮 并发 {0} / 连接超时 {1}ms;重试 {2} 轮 / 并发 {3} / 连接超时 {4}ms" -f + $Threads, $ConnectTimeoutMs, $Retries, $RetryThreads, $RetryConnectTimeoutMs) -ForegroundColor DarkGray +Write-Host ("[scan] 探测路径:{0}" -f ($Paths -join ' ')) -ForegroundColor DarkGray + +# ---------------------------------------------------------------- 单机探测 + +$worker = { + param($Ip, $TargetPort, $ConnectTimeoutMs, $HttpTimeoutMs, $ProbePaths, $HostBudgetMs, $ScanScripts) + + function Invoke-Request { + param($HostIp, $WebPort, $Path, $TimeoutMs) + + $client = New-Object System.Net.Sockets.TcpClient + $state = 'Timeout' + try { + $iar = $client.BeginConnect($HostIp, $WebPort, $null, $null) + if ($iar.AsyncWaitHandle.WaitOne($ConnectTimeoutMs)) { + try { + $client.EndConnect($iar) + $state = 'Open' + } catch { + $socketError = $null + if ($_.Exception.InnerException -is [System.Net.Sockets.SocketException]) { + $socketError = $_.Exception.InnerException.SocketErrorCode + } elseif ($_.Exception -is [System.Net.Sockets.SocketException]) { + $socketError = $_.Exception.SocketErrorCode + } + switch ([string]$socketError) { + 'ConnectionRefused' { $state = 'Refused' } + 'HostUnreachable' { $state = 'Unreachable' } + 'NetworkUnreachable' { $state = 'Unreachable' } + 'TimedOut' { $state = 'Timeout' } + default { $state = 'Error' } + } + } + } + } catch { + $state = 'Error' + } + + if ($state -ne 'Open') { + try { $client.Close() } catch { } + return [pscustomobject]@{ State = $state; Status = 0; Title = ''; Server = ''; Location = ''; Size = 0; Body = '' } + } + + $status = 0 + $title = '' + $server = '' + $location = '' + $size = 0 + $body = '' + + try { + $client.ReceiveTimeout = $TimeoutMs + $client.SendTimeout = $TimeoutMs + $stream = $client.GetStream() + $stream.ReadTimeout = $TimeoutMs + $stream.WriteTimeout = $TimeoutMs + + $request = "GET $Path HTTP/1.1`r`n" + + "Host: $HostIp`r`n" + + "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36`r`n" + + "Accept: text/html,application/xhtml+xml,*/*`r`n" + + "Accept-Language: zh-CN,zh;q=0.9`r`n" + + "Connection: close`r`n`r`n" + $bytes = [System.Text.Encoding]::ASCII.GetBytes($request) + $stream.Write($bytes, 0, $bytes.Length) + $stream.Flush() + + $buffer = New-Object byte[] 8192 + $memory = New-Object System.IO.MemoryStream + while ($memory.Length -lt 262144) { + try { + $read = $stream.Read($buffer, 0, $buffer.Length) + } catch { + break + } + if ($read -le 0) { break } + $memory.Write($buffer, 0, $read) + } + $size = [int]$memory.Length + + $latin1 = [System.Text.Encoding]::GetEncoding(28591) + $all = $memory.ToArray() + $text = $latin1.GetString($all) + $split = $text.IndexOf("`r`n`r`n") + if ($split -lt 0) { + $head = $text + $bodyOffset = $all.Length + } else { + $head = $text.Substring(0, $split) + $bodyOffset = $split + 4 + } + + if ($head -match '^HTTP/\d\.\d\s+(\d{3})') { $status = [int]$Matches[1] } + if ($head -match '(?im)^Server:\s*(.+?)\s*$') { $server = $Matches[1] } + if ($head -match '(?im)^Location:\s*(.+?)\s*$') { $location = $Matches[1] } + + # header / meta 里声明的 charset,中文固件常见 gb2312 + $charset = $null + if ($head -match '(?i)charset\s*=\s*["'']?([\w\-]+)') { + $charset = $Matches[1] + } elseif ($bodyOffset -lt $all.Length) { + $bodyProbe = $latin1.GetString($all, $bodyOffset, [math]::Min(2048, $all.Length - $bodyOffset)) + if ($bodyProbe -match '(?i)<meta[^>]+charset\s*=\s*["'']?([\w\-]+)') { $charset = $Matches[1] } + } + + $encoding = [System.Text.Encoding]::UTF8 + if ($charset) { + try { + if ($charset -match '(?i)^(gb2312|gbk|gb18030|x-gbk)$') { + $encoding = [System.Text.Encoding]::GetEncoding(936) + } elseif ($charset -notmatch '(?i)^utf-?8$') { + $encoding = [System.Text.Encoding]::GetEncoding($charset) + } + } catch { } + } + + if ($bodyOffset -lt $all.Length) { + $decoded = $encoding.GetString($all, $bodyOffset, $all.Length - $bodyOffset) + $body = $decoded + if ($decoded -match '(?is)<title[^>]*>(.*?)') { + $title = (([System.Net.WebUtility]::HtmlDecode($Matches[1])) -replace '\s+', ' ').Trim() + } + } + } catch { + # 端口开着但不是 HTTP,或读超时 + } finally { + try { $client.Close() } catch { } + } + + return [pscustomobject]@{ State = 'Open'; Status = $status; Title = $title; Server = $server; Location = $location; Size = $size; Body = $body } + } + + function Get-ScriptTitle { + # 首页标题为空时,跟同源脚本里的 document.title = '...' / titletext = '...' + param($HostIp, $WebPort, $Html, $TimeoutMs) + + if (-not $Html) { return '' } + + $sources = @() + foreach ($m in [regex]::Matches($Html, '(?is)]+src\s*=\s*["'']([^"'']+)["'']')) { + $src = $m.Groups[1].Value + if ($src -match '^(https?:)?//') { continue } + $sources += $src + } + $sources = @($sources | Select-Object -Unique | Select-Object -First 2) + if ($sources.Count -eq 0) { return '' } + + foreach ($src in $sources) { + $path = if ($src.StartsWith('/')) { $src } else { '/' + $src } + $resp = Invoke-Request -HostIp $HostIp -WebPort $WebPort -Path $path -TimeoutMs $TimeoutMs + if ($resp.State -ne 'Open' -or -not $resp.Body) { continue } + + $match = [regex]::Match($resp.Body, '(?i)(?:document\.title|window\.title)\s*=\s*["'']([^"'']{1,120})["'']') + if (-not $match.Success) { + $match = [regex]::Match($resp.Body, '(?i)titletext\s*=\s*["'']([^"'']{1,120})["'']') + } + if ($match.Success) { + $value = ([System.Net.WebUtility]::HtmlDecode($match.Groups[1].Value) -replace '\s+', ' ').Trim() + if ($value) { return $value } + } + } + + return '' + } + + $watch = [System.Diagnostics.Stopwatch]::StartNew() + $first = $null + $lastOpen = $null + + foreach ($path in $ProbePaths) { + if ($watch.ElapsedMilliseconds -gt $HostBudgetMs) { break } + + $currentPath = $path + for ($hop = 0; $hop -le 2; $hop++) { + if ($watch.ElapsedMilliseconds -gt $HostBudgetMs) { break } + + $resp = Invoke-Request -HostIp $Ip -WebPort $TargetPort -Path $currentPath -TimeoutMs $HttpTimeoutMs + + if ($resp.State -ne 'Open') { + if (-not $first) { + return [pscustomobject]@{ Ip = $Ip; State = $resp.State; Status = 0; Title = ''; Server = ''; Size = 0; Path = '' } + } + break + } + + if (-not $first) { $first = $resp } + $lastOpen = $resp + if ($resp.Title) { + return [pscustomobject]@{ + Ip = $Ip; State = 'Open'; Status = $resp.Status; Title = $resp.Title + Server = $resp.Server; Size = $resp.Size; Path = $currentPath + } + } + + # 同主机内跟随跳转 + $next = $null + if (@(301, 302, 303, 307, 308) -contains $resp.Status -and $resp.Location) { + if ($resp.Location -match '^https?://([^/]+)(/.*)?$') { + if ($Matches[1] -eq $Ip) { $next = if ($Matches[2]) { $Matches[2] } else { '/' } } + } elseif ($resp.Location.StartsWith('/')) { + $next = $resp.Location + } + } + if (-not $next) { break } + $currentPath = $next + } + } + + if ($first) { + $title = '' + $titlePath = '' + if ($ScanScripts -and $lastOpen -and $lastOpen.Body) { + $title = Get-ScriptTitle -HostIp $Ip -WebPort $TargetPort -Html $lastOpen.Body -TimeoutMs $HttpTimeoutMs + if ($title) { $titlePath = '(js)' } + } + return [pscustomobject]@{ + Ip = $Ip; State = 'Open'; Status = $first.Status; Title = $title + Server = $first.Server; Size = $first.Size; Path = $titlePath + } + } + return [pscustomobject]@{ Ip = $Ip; State = 'Timeout'; Status = 0; Title = ''; Server = ''; Size = 0; Path = '' } +} + +# ---------------------------------------------------------------- 扫描执行 + +function Invoke-ScanPass { + param( + [string[]]$Ips, + [int]$ThreadCount, + [int]$ConnectTimeout, + [int]$HttpTimeout, + [string]$Label + ) + + $pool = [runspacefactory]::CreateRunspacePool(1, [math]::Max(1, $ThreadCount)) + $pool.Open() + + $pending = New-Object System.Collections.ArrayList + $passResults = New-Object System.Collections.ArrayList + $total = $Ips.Count + $next = 0 + $done = 0 + $inFlight = [math]::Max(1, $ThreadCount) * 4 + + try { + while ($next -lt $total -or $pending.Count -gt 0) { + while (($next -lt $total) -and ($pending.Count -lt $inFlight)) { + $ip = $Ips[$next] + $ps = [powershell]::Create() + $ps.RunspacePool = $pool + [void]$ps.AddScript($worker). + AddArgument($ip).AddArgument($Port).AddArgument($ConnectTimeout). + AddArgument($HttpTimeout).AddArgument($Paths).AddArgument($HostBudgetMs). + AddArgument($scanScriptsEnabled) + [void]$pending.Add([pscustomobject]@{ PS = $ps; Handle = $ps.BeginInvoke(); Ip = $ip }) + $next++ + } + + $finished = @($pending | Where-Object { $_.Handle.IsCompleted }) + if ($finished.Count -eq 0) { + Start-Sleep -Milliseconds 40 + continue + } + + foreach ($job in $finished) { + $output = $null + try { + $output = $job.PS.EndInvoke($job.Handle) + } catch { + $output = [pscustomobject]@{ Ip = $job.Ip; State = 'Error'; Status = 0; Title = ''; Server = ''; Size = 0; Path = '' } + } + foreach ($item in $output) { [void]$passResults.Add($item) } + try { $job.PS.Dispose() } catch { } + [void]$pending.Remove($job) + $done++ + } + + Write-Progress -Activity ("{0}(端口 {1})" -f $Label, $Port) -Status ("{0}/{1}" -f $done, $total) ` + -PercentComplete ([math]::Min(100, [int](100 * $done / $total))) + } + } finally { + Write-Progress -Activity ("{0}(端口 {1})" -f $Label, $Port) -Completed + foreach ($job in @($pending)) { try { $job.PS.Stop(); $job.PS.Dispose() } catch { } } + $pool.Close() + $pool.Dispose() + } + + return @($passResults) +} + +$results = @{} + +Write-Host ("[pass] 第 1 轮:{0} 个地址" -f $targets.Count) -ForegroundColor Cyan +foreach ($r in (Invoke-ScanPass -Ips $targets -ThreadCount $Threads -ConnectTimeout $ConnectTimeoutMs ` + -HttpTimeout $HttpTimeoutMs -Label '第 1 轮')) { + $results[$r.Ip] = $r +} + +# ARP 存活表(第 1 轮已把整个网段唤醒) +$aliveMap = @{} +if ($arpUsable) { + $rawAlive = Get-AliveNeighbors + foreach ($ip in $targets) { + if ($rawAlive.ContainsKey($ip)) { $aliveMap[$ip] = $rawAlive[$ip] } + } + Write-Host ("[pass] ARP 表命中:{0} 台(含可能过期的条目)" -f $aliveMap.Count) -ForegroundColor DarkGray + + # 没扫开的主机才需要复核存活;已经扫开的一定在线 + $verifyList = @($targets | Where-Object { + ($results[$_].State -ne 'Open') -and $aliveMap.ContainsKey($_) + }) + if (-not $SkipAliveCheck -and $verifyList.Count -gt 0) { + Write-Host ("[pass] 复核存活(ICMP 触发 ARP 刷新):{0} 台" -f $verifyList.Count) -ForegroundColor DarkGray + $confirmed = Confirm-AliveHosts -Ips $verifyList + foreach ($ip in @($aliveMap.Keys)) { + if ($results[$ip].State -eq 'Open') { continue } + if (-not $confirmed.ContainsKey($ip)) { $aliveMap.Remove($ip) } + } + Write-Host ("[pass] 复核后在线:{0} 台" -f ($aliveMap.Count)) -ForegroundColor DarkGray + } +} else { + Write-Host '[pass] 目标网段不在本机直连范围内,ARP 存活判定不可用;无响应主机将全部重试' -ForegroundColor DarkYellow +} + +# 定向重试:① 在线但没扫开的主机(可能只是慢);② 端口开但标题没取到的主机 +$attempt = 0 +$retryList = @($targets | Where-Object { + $r = $results[$_] + if ($r.State -eq 'Open') { -not $r.Title } + else { (-not $arpUsable) -or $aliveMap.ContainsKey($_) } + }) + +while ($attempt -lt $Retries -and $retryList.Count -gt 0) { + $attempt++ + Write-Host ("[pass] 第 {0} 轮重试:{1} 台(未扫开的在线主机 + 标题未取到的开放主机)" -f ($attempt + 1), $retryList.Count) -ForegroundColor Cyan + + $retryResults = Invoke-ScanPass -Ips $retryList -ThreadCount $RetryThreads ` + -ConnectTimeout $RetryConnectTimeoutMs -HttpTimeout $RetryHttpTimeoutMs ` + -Label ("第 {0} 轮" -f ($attempt + 1)) + + foreach ($r in $retryResults) { + $prev = $results[$r.Ip] + if ($r.State -eq 'Open' -and ($r.Title -or $prev.State -ne 'Open')) { $results[$r.Ip] = $r } + } + + $retryList = @($retryList | Where-Object { + $r = $results[$_] + if ($r.State -eq 'Open') { -not $r.Title } + elseif ($arpUsable) { $aliveMap.ContainsKey($_) } + else { $true } + }) +} + +# ---------------------------------------------------------------- 汇总输出 + +$all = @() +foreach ($ip in ($targets | Sort-Object { ConvertTo-UInt32 ([System.Net.IPAddress]::Parse($_)) })) { + $r = $results[$ip] + $mac = '' + $isAlive = $false + if ($aliveMap.ContainsKey($ip)) { + $mac = [string]$aliveMap[$ip] + $isAlive = $true + } + # 端口扫开即视为在线(ARP 可能因跨网段/缓存缺失而没匹配到) + if ($r.State -eq 'Open') { $isAlive = $true } + $all += [pscustomobject]@{ + Ip = $ip + State = $r.State + Status = $r.Status + Title = $r.Title + Server = $r.Server + Path = $r.Path + Size = $r.Size + Mac = $mac + Alive = $isAlive + } +} + +$openHosts = @($all | Where-Object { $_.State -eq 'Open' }) +$refusedHosts = @($all | Where-Object { $_.State -eq 'Refused' }) +$silentAlive = @($all | Where-Object { $_.State -ne 'Open' -and $_.State -ne 'Refused' -and $_.Alive }) +$silentOther = @($all | Where-Object { $_.State -ne 'Open' -and $_.State -ne 'Refused' -and -not $_.Alive }) +$aliveHosts = @($all | Where-Object { $_.Alive }) + +$hits = @() +foreach ($h in $openHosts) { + if (-not $h.Title) { continue } + if (-not $TitleMatch) { $hits += $h; continue } + if ($h.Title -match $TitleMatch) { $hits += $h } +} + +Write-Host '' +Write-Host ("===== 全量分类({0} 个地址)=====" -f $all.Count) -ForegroundColor Yellow +Write-Host (" ARP 在线:{0}" -f $(if ($arpUsable) { $aliveHosts.Count } else { 'n/a(非直连网段)' })) +Write-Host (" {0} 端口开放:{1}" -f $Port, $openHosts.Count) +Write-Host (" {0} 端口关闭(RST):{1}" -f $Port, $refusedHosts.Count) +Write-Host (" 在线但 {0} 无响应:{1}" -f $Port, $silentAlive.Count) -ForegroundColor DarkYellow +if ($arpUsable) { + Write-Host (" 未响应(判定不在线):{0}" -f $silentOther.Count) +} else { + Write-Host (" 未响应(非直连网段,无法判定是否在线):{0}" -f $silentOther.Count) +} + +if ($openHosts.Count -gt 0) { + Write-Host '' + Write-Host '--- 端口开放的主机 ---' -ForegroundColor Yellow + $openHosts | + Select-Object @{N = 'IP'; E = { $_.Ip } }, + @{N = 'MAC'; E = { $_.Mac } }, + @{N = '状态'; E = { $_.Status } }, + @{N = '标题'; E = { $_.Title } }, + @{N = 'Server'; E = { $_.Server } } | + Format-Table -AutoSize +} + +if ($silentAlive.Count -gt 0) { + Write-Host '--- 在线但端口无响应(需人工确认,可能被过滤/设备忙)---' -ForegroundColor DarkYellow + $silentAlive | + Select-Object @{N = 'IP'; E = { $_.Ip } }, @{N = 'MAC'; E = { $_.Mac } }, State | + Format-Table -AutoSize +} + +$openNoTitle = @($openHosts | Where-Object { -not $_.Title }) +if ($openNoTitle.Count -gt 0) { + Write-Host ("--- 端口开放但未取到标题({0} 台,可能非 HTML/标题由 JS 生成)---" -f $openNoTitle.Count) -ForegroundColor DarkYellow + $openNoTitle | + Select-Object @{N = 'IP'; E = { $_.Ip } }, @{N = 'MAC'; E = { $_.Mac } }, + @{N = '状态'; E = { $_.Status } }, @{N = 'Server'; E = { $_.Server } } | + Format-Table -AutoSize +} + +Write-Host ("===== 标题匹配 '{0}':{1} 台 =====" -f $TitleMatch, $hits.Count) -ForegroundColor Green +if ($hits.Count -eq 0) { + Write-Host '未发现匹配设备。' -ForegroundColor DarkYellow +} else { + foreach ($hit in $hits) { + Write-Host (" {0,-16} {1,-6} {2} ({3})" -f $hit.Ip, $hit.Status, $hit.Title, $hit.Path) -ForegroundColor Green + } +} + +if ($CsvPath) { + $all | + Select-Object Ip, State, Alive, Mac, Status, Title, Server, Path, Size | + Export-Csv -Path $CsvPath -NoTypeInformation -Encoding UTF8 + Write-Host ("已导出:{0}" -f $CsvPath) -ForegroundColor Cyan +}