From 3a4e81a0700c42869916f4ecac65dd11e6d19099 Mon Sep 17 00:00:00 2001 From: Weiming Date: Fri, 11 Sep 2026 13:56:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 3 + .gitignore | 41 + index.html | 13 + package-lock.json | 3567 +++++++++++++++++++++++ package.json | 35 + postcss.config.js | 6 + src/App.vue | 121 + src/api/admin.ts | 120 + src/api/auth.ts | 38 + src/api/fallback.ts | 74 + src/api/feishuDirectory.ts | 66 + src/api/reimbursement.ts | 201 ++ src/api/request.ts | 109 + src/assets/main.css | 2532 ++++++++++++++++ src/components/FeishuDirectoryPanel.vue | 140 + src/components/ReimbursementForm.vue | 50 + src/env.d.ts | 16 + src/feishuDirectory.test.mjs | 373 +++ src/layout.test.mjs | 95 + src/main.ts | 21 + src/router/index.ts | 174 ++ src/store/app.ts | 12 + src/store/user.ts | 251 ++ src/store/workbench.ts | 158 + src/utils/dailyAuth.ts | 54 + src/views/ApplicationDetail.vue | 27 + src/views/Applications.vue | 220 ++ src/views/Dashboard.vue | 299 ++ src/views/ExpenseTypes.vue | 33 + src/views/FeishuDirectory.vue | 469 +++ src/views/FinanceReceipt.vue | 149 + src/views/IntegrationConfig.vue | 70 + src/views/Layout.vue | 625 ++++ src/views/Login.vue | 164 ++ src/views/Logs.vue | 32 + src/views/Payees.vue | 34 + src/views/Payments.vue | 249 ++ src/views/Sources.vue | 45 + src/views/Users.vue | 73 + tailwind.config.js | 57 + tsconfig.json | 24 + tsconfig.node.json | 10 + vite.config.ts | 21 + 43 files changed, 10871 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 index.html create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 postcss.config.js create mode 100644 src/App.vue create mode 100644 src/api/admin.ts create mode 100644 src/api/auth.ts create mode 100644 src/api/fallback.ts create mode 100644 src/api/feishuDirectory.ts create mode 100644 src/api/reimbursement.ts create mode 100644 src/api/request.ts create mode 100644 src/assets/main.css create mode 100644 src/components/FeishuDirectoryPanel.vue create mode 100644 src/components/ReimbursementForm.vue create mode 100644 src/env.d.ts create mode 100644 src/feishuDirectory.test.mjs create mode 100644 src/layout.test.mjs create mode 100644 src/main.ts create mode 100644 src/router/index.ts create mode 100644 src/store/app.ts create mode 100644 src/store/user.ts create mode 100644 src/store/workbench.ts create mode 100644 src/utils/dailyAuth.ts create mode 100644 src/views/ApplicationDetail.vue create mode 100644 src/views/Applications.vue create mode 100644 src/views/Dashboard.vue create mode 100644 src/views/ExpenseTypes.vue create mode 100644 src/views/FeishuDirectory.vue create mode 100644 src/views/FinanceReceipt.vue create mode 100644 src/views/IntegrationConfig.vue create mode 100644 src/views/Layout.vue create mode 100644 src/views/Login.vue create mode 100644 src/views/Logs.vue create mode 100644 src/views/Payees.vue create mode 100644 src/views/Payments.vue create mode 100644 src/views/Sources.vue create mode 100644 src/views/Users.vue create mode 100644 tailwind.config.js create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json create mode 100644 vite.config.ts diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..2099968 --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +# Optional for static deployments without an /api reverse proxy. +# Leave unset when the frontend and backend share an origin. +VITE_API_BASE_URL=/api diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1fc7997 --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# dependencies +node_modules/ + +# build output +dist/ +build/ +.next/ +out/ + +# local env files +.env +.env.local +.env.*.local + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# cache +.cache/ +.vite/ +.eslintcache + +# test coverage +coverage/ + +# IDE +.idea/ +.vscode/ +*.iml + +# OS +.DS_Store +Thumbs.db + +# temporary files +*.tmp +*.temp +*.swp diff --git a/index.html b/index.html new file mode 100644 index 0000000..2a2928f --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + 财务系统 - 统一费用支付平台 + + +
+ + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..da7bab7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3567 @@ +{ + "name": "finance-system-frontend", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "finance-system-frontend", + "version": "1.0.0", + "dependencies": { + "@element-plus/icons-vue": "^2.3.0", + "@vueuse/core": "^10.7.0", + "axios": "^1.6.0", + "dayjs": "^1.11.0", + "echarts": "^5.4.0", + "element-plus": "^2.5.0", + "lodash-es": "^4.17.21", + "pinia": "^2.1.0", + "vue": "^3.4.0", + "vue-echarts": "^6.6.0", + "vue-router": "^4.2.0" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.0.0", + "autoprefixer": "^10.4.0", + "postcss": "^8.4.0", + "sass": "^1.69.0", + "tailwindcss": "^3.4.0", + "typescript": "^5.3.0", + "vite": "^5.0.0", + "vue-tsc": "^3.3.11" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.3.0", + "resolved": "https://registry.npmmirror.com/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", + "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@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.8", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.29.8.tgz", + "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@ctrl/tinycolor": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-4.2.0.tgz", + "integrity": "sha512-kzyuwOAQnXJNLS9PSyrk0CWk35nWJW/zl/6KvnTBMFK65gm7U1/Z5BqjxeapjZCIhQcM/DsrEmcbRwDyXyXK4A==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@element-plus/icons-vue": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/@element-plus/icons-vue/-/icons-vue-2.3.2.tgz", + "integrity": "sha512-OzIuTaIfC8QXEPmJvB4Y4kw34rSXdCJzxcD1kFStBvr8bK6X1zQAYDo0CNMjojnfTqRQCJ0I7prlErcoRiET2A==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.2.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@floating-ui/core": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/@floating-ui/core/-/core-1.8.0.tgz", + "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==", + "license": "MIT", + "dependencies": { + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/dom": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/@floating-ui/dom/-/dom-1.8.0.tgz", + "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==", + "license": "MIT", + "dependencies": { + "@floating-ui/core": "^1.8.0", + "@floating-ui/utils": "^0.2.12" + } + }, + "node_modules/@floating-ui/utils": { + "version": "0.2.12", + "resolved": "https://registry.npmmirror.com/@floating-ui/utils/-/utils-0.2.12.tgz", + "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==", + "license": "MIT" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/@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.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/lzma-linux-x64-gnu": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", + "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^22.20 || ^24.12 || >=25" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@parcel/watcher": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher/-/watcher-2.6.0.tgz", + "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.3", + "is-glob": "^4.0.3", + "node-addon-api": "^7.0.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "@parcel/watcher-android-arm64": "2.6.0", + "@parcel/watcher-darwin-arm64": "2.6.0", + "@parcel/watcher-darwin-x64": "2.6.0", + "@parcel/watcher-freebsd-x64": "2.6.0", + "@parcel/watcher-linux-arm-glibc": "2.6.0", + "@parcel/watcher-linux-arm-musl": "2.6.0", + "@parcel/watcher-linux-arm64-glibc": "2.6.0", + "@parcel/watcher-linux-arm64-musl": "2.6.0", + "@parcel/watcher-linux-x64-glibc": "2.6.0", + "@parcel/watcher-linux-x64-musl": "2.6.0", + "@parcel/watcher-win32-arm64": "2.6.0", + "@parcel/watcher-win32-x64": "2.6.0" + } + }, + "node_modules/@parcel/watcher-android-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", + "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", + "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-darwin-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", + "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-freebsd-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", + "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", + "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", + "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", + "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-arm64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", + "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-glibc": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", + "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-linux-x64-musl": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", + "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-arm64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", + "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@parcel/watcher-win32-x64": { + "version": "2.6.0", + "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", + "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/@popperjs/core": { + "name": "@sxzz/popperjs-es", + "version": "2.11.8", + "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", + "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.1.tgz", + "integrity": "sha512-UZ8sUxPTiHWYX9QNdJedb1kDZSpS1t/VPWBWGSgqHNi9w3Cu6IXvu2mzbhiTiPvtrqgTQJ+zqiAq2iPIPilpaQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.1.tgz", + "integrity": "sha512-cQ4nFQABN5cDvDpbvJ7bMStCpnaVxynZrRMfUJYgxcIk9Sh54FIO1vtfkg0B69REjER77ioZ/ov+eAApx/KmLQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.1.tgz", + "integrity": "sha512-FQNqd1lRy/0QhDk3xeRIkSBiCpXCiDnZO3YLVdcDKN1UBiKToNftCzcXYNLshmPDUMlu2TdeS8tGcsU6f3YF1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.1.tgz", + "integrity": "sha512-pvD16V939D3CloK0+qikpGaxiPrDUXTe7Y5cWOMkMSy7m1cawa8EGy/kXYi/G/cKAC4HDAbSnzCIk1WmsoOKXg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.1.tgz", + "integrity": "sha512-pcFGeL2345VwdTnJhA6zLbew+YgWB0qBG2+dMtXjCicf6+rm6kO6cOoh5VnTe0ZMrMRgRyuHmCJxZWrIdzYuOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.1.tgz", + "integrity": "sha512-mRJlqSRulVzcKq/LKA6ICSIc3K/l4fzlVn/gePn2nXIHy8seRi5z/eeRE0d/XMBxcMldiXtQTSpRj0tkkC3g8Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.1.tgz", + "integrity": "sha512-YDUNvVM85TI3g/1OpnqKP1h4NeW/j64DfWMf+G3M809xNk1bJSnpFp4sh83NpmVE5DXnkh8ULor4LTVZKoYLHw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.1.tgz", + "integrity": "sha512-7Mcn71p9ZuQFAj+h+dhQXy/yeLePRS2yKRnmW1DijA9thKO5qap0GNOIQK4yQ6iP3SU0Mrb/yWo8h8vgRba8lw==", + "cpu": [ + "arm" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.1.tgz", + "integrity": "sha512-4YiLQTX6U4CSl0L9cluep9A9W6UmTfqBDc2/CH6wlu54pl4E7Jn3cOD8oxzvBDEGk/JMKgJ47C8g+radF7mwvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.1.tgz", + "integrity": "sha512-2ra8F7w8OquwZN9z2/fKFnli69wa8PLwaVzRMIPGb13ByMJwC28Fbp8YcVGoUhlYMTt7j5j9bNgpysrN2UM+vw==", + "cpu": [ + "arm64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.1.tgz", + "integrity": "sha512-Sy20ncyhjmBP0Ml+UvQbimjlk6VFgjW5uNP+qqwHB00mTE8Bl2C1TuHTlRwK2YoXeZbee5lP2XevBWVkAQAtSQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.1.tgz", + "integrity": "sha512-noITLp8oNjYliPnGWmLyelIHwULGqbHloQHGw1rtxbWhTuWooRpnZarZQJ1y9EUC4szuCusCc+HEpUtxpIwYvA==", + "cpu": [ + "loong64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.1.tgz", + "integrity": "sha512-hlxxXd+F1mWiAcaFR7Sv9ZQT6m6UfI8+Vy/kFJzztq2pDMU/0wZ9sish0iszNZvsQDo8Gc0i5yuFEOz5dDf6fA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.1.tgz", + "integrity": "sha512-EF7OpqQTQ/BvGqLzUi4rEHuagCV9MugAUXSHemwPW5vxZ75RR+jxO/2j95Ph2dalMpFHSVECjRoioHZgA9zOYA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.1.tgz", + "integrity": "sha512-wQO3JesW9PRkwlabQ27y7sPfVOOTLRG73I4F2UYHG5PXun3J9U3y+b7ezVKSYbsvSKGQ1k1cq8Qlun4C9kLt3w==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.1.tgz", + "integrity": "sha512-ouAGwhO6wHRXdnOVCOsB0tRFkA7nhNB2Nwax6oECXN0YiN8EYUTBAOudADOB1PI+yDL61TeNx/u7MVCzksNbkQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.1.tgz", + "integrity": "sha512-q2R38Sn+1J8RxhfJ+T54wSWmyKXWec+9jgDfqO2AtArEqHO5R2aeayp5H5OYLr5UYDVGsVaZPEFUooMhYCdz5A==", + "cpu": [ + "s390x" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.1.tgz", + "integrity": "sha512-gfI5T24WLLuFfSKw7Go/zDXjAAV0fny0swTaDv+WjK7vqcw4cRhFfdsyKL1n+ukI+ooBxn3bVQnyrn06WpI50w==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "glibc" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.1.tgz", + "integrity": "sha512-4h6XqthmB4Hspji84wvgk+ElodTsGj+dbZqHJHHtKxj4mYq0ANSEEPX9ys3moJueqsRjwpaJYH7874Itwnj2ow==", + "cpu": [ + "x64" + ], + "dev": true, + "libc": [ + "musl" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.1.tgz", + "integrity": "sha512-dlfCOa87o1VAYegLQ9EKilx2JCeRofiyPGhTCmqnuXZ6bMPiycO1rq1+sKoulAp7pGLIsTIw+1x5R+zgh5LhhA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.1.tgz", + "integrity": "sha512-cjkLbOlfcm3QGhMM1J5zaZjsw1GggbN6rw9UTSSRrPrR1KkcXnN7Uq9rPw34xImQ9VOY9GN+6u2Zj80B9ptkcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.1.tgz", + "integrity": "sha512-Li1KdUnWGE4N3e1F/B4RTB1ms+nG4WBgjByO46pkeBVX/2UBsY53xf5vK9WygVmnH3RwncIST7lkSdLSY6P9lg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.1.tgz", + "integrity": "sha512-t4ZYOSoLTgwhuFMrmTMLx/+i1DQVK7HYqMc6kY46EApwi8X0nIVphzdNoThU3xt6n+N5urG1/gxBdCaKDLavfg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.1.tgz", + "integrity": "sha512-RgroPfMmKlD1RzSDxvwgcPiy2HNQKoYV7OmwIXDsk73uKW5t6B/V8KIy27SMv/FNXFo/oSBtWc9J0X7t91ezZg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.1.tgz", + "integrity": "sha512-at8QVep6S3h5Y6gSbdGU06bRY5WJkf6WUduM9YtvYMbYhB1MOFfUgc6kehitQXzOtMSaT70q7f9ydPhpqu821w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.25", + "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.25.tgz", + "integrity": "sha512-+K1NIO8I+F9/wNulfVvu23QYd0Pe9/OCqRrim4NoYIf1VoEDL90Ve4ClzpyqBLc7NpGGWRvYNCKZ1BE/Jpf8dQ==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmmirror.com/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "license": "MIT", + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.20", + "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.20.tgz", + "integrity": "sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@volar/language-core": { + "version": "2.4.28", + "resolved": "https://registry.npmmirror.com/@volar/language-core/-/language-core-2.4.28.tgz", + "integrity": "sha512-w4qhIJ8ZSitgLAkVay6AbcnC7gP3glYM3fYwKV3srj8m494E3xtrCv6E+bWviiK/8hs6e6t1ij1s2Endql7vzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/source-map": "2.4.28" + } + }, + "node_modules/@volar/source-map": { + "version": "2.4.28", + "resolved": "https://registry.npmmirror.com/@volar/source-map/-/source-map-2.4.28.tgz", + "integrity": "sha512-yX2BDBqJkRXfKw8my8VarTyjv48QwxdJtvRgUpNE5erCsgEUdI2DsLbpa+rOQVAJYshY99szEcRDmyHbF10ggQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@volar/typescript": { + "version": "2.4.28", + "resolved": "https://registry.npmmirror.com/@volar/typescript/-/typescript-2.4.28.tgz", + "integrity": "sha512-Ja6yvWrbis2QtN4ClAKreeUZPVYMARDYZl9LMEv1iQ1QdepB6wn0jTRxA9MftYmYa4DQ4k/DaSZpFPUfxl8giw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "path-browserify": "^1.0.1", + "vscode-uri": "^3.0.8" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.42.tgz", + "integrity": "sha512-2Ye1ilMtKXxl8qZUrQ5j0CdgenFp/HFQmta6rfRyfEsTG69L6Wk+tWuNoHYHMx9E8tF2Slvdg1FuwDvAXdy1LQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/shared": "3.5.42", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.42.tgz", + "integrity": "sha512-qbhQZEFmycr+ni/qyuccS4sucNN7VAbDfbkvNxWOX2VfgFm90MNs3/UhRNKoPMEIVn0F8gdlYjLPvqxHwHeQOA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.42", + "@vue/shared": "3.5.42" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.42.tgz", + "integrity": "sha512-fkCAFB4okcAANGMThboWnScp/gzWjU0ZSkVnjTIiplmMDq2uq0tIB3j+xVu4rhv5rvOgBySCysudmbMd6xRRqw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/compiler-core": "3.5.42", + "@vue/compiler-dom": "3.5.42", + "@vue/compiler-ssr": "3.5.42", + "@vue/shared": "3.5.42", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.19", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.42.tgz", + "integrity": "sha512-xmLk3wLkbizPAiLyomjgFFosf2ys9b5Ghb+oh/k2tnvipNz8OFrQOiTcWCzyK7MpBp9KkyGtfvgfLUivbmuGYA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.42", + "@vue/shared": "3.5.42" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/@vue/language-core": { + "version": "3.3.11", + "resolved": "https://registry.npmmirror.com/@vue/language-core/-/language-core-3.3.11.tgz", + "integrity": "sha512-QJmpliwAVpC/OxubIByPAhNzsQPRc8/gxlN2qnVzVfIMjMDz/9RnXRFoetjz5yEgXVXyp4LqhXq3V53PjmNzFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/language-core": "2.4.28", + "@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.42", + "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.42.tgz", + "integrity": "sha512-TzNNfKpb7hDxbQltwAut8VDQA5YP+BuRlxntHUuRjyKwlMvmAPbs3unhCvieijifY6vFfVBwsS7wG/C7uq+bEQ==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.42" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.42.tgz", + "integrity": "sha512-9uACtuHs7vJGkm5Bp3xu4xRDLFTIYy5DgxpToVjqGIAhAEKwQfsaLvKINhM6nFVp6bZPRFGdDqd1g52MqKsotA==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.42", + "@vue/shared": "3.5.42" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.42.tgz", + "integrity": "sha512-rsCmhiWLaRxGltLwhlCWyYkFn7WAbKRh0q17eZ1A6Dq6eqc2ACQ61IIryxz0LrsvCzHSilLA9JHovVwM8CNE2g==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.42", + "@vue/runtime-core": "3.5.42", + "@vue/shared": "3.5.42", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.42.tgz", + "integrity": "sha512-2++5dUyYS4gvo7xQXSECUDhB7TS0aOl5SeVfC5qSq1Jgfhjvegw1zqhwTIR3imZ+QYPJQw9gfcFvXGAjGZ7ajQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.42", + "@vue/runtime-dom": "3.5.42", + "@vue/shared": "3.5.42" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.42.tgz", + "integrity": "sha512-2rPxex1jQf4jvl9MOHl6YaXCPcrNqz/FstMOEh3QWY+/OME9nQTvl9WYeCwhW7AFjaR0SnngZGlp/wkR6rkI6g==", + "license": "MIT" + }, + "node_modules/@vueuse/core": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-10.11.1.tgz", + "integrity": "sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.20", + "@vueuse/metadata": "10.11.1", + "@vueuse/shared": "10.11.1", + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/metadata": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-10.11.1.tgz", + "integrity": "sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "10.11.1", + "resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-10.11.1.tgz", + "integrity": "sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==", + "license": "MIT", + "dependencies": { + "vue-demi": ">=0.14.8" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/alien-signals": { + "version": "3.2.1", + "resolved": "https://registry.npmmirror.com/alien-signals/-/alien-signals-3.2.1.tgz", + "integrity": "sha512-I8FjmltrfnDFoZedi5CG8DghVYNhzb/Ijluz7tCSJH0xpd0484Kowhbb1XDYOxfJpU1p5wnM2X54dA+IfGyD1g==", + "dev": true, + "license": "MIT" + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/autoprefixer": { + "version": "10.5.4", + "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.5.4.tgz", + "integrity": "sha512-MaU0U/za7N3r6brxD4YB/l4NSrFzLPlANv6wEuQVaIPlD3L4W9rFcQPbL/EilY9BHhHvhfcz3gInDLrEtWT4EA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.28.6", + "caniuse-lite": "^1.0.30001806", + "fraction.js": "^5.3.4", + "picocolors": "^1.1.1", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/axios": { + "version": "1.20.0", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.20.0.tgz", + "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.6", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.20", + "resolved": "https://registry.npmmirror.com/baseline-browser-mapping/-/baseline-browser-mapping-2.11.20.tgz", + "integrity": "sha512-H0ulySigv6icDJ1F7SjtdCD6PrhTpdYCmP0CactWy1+ekh0AFd0o1Wn5T8b+hnTmdBx19u9yhL6wvCylXMY7zw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.28.8", + "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.28.8.tgz", + "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.12", + "caniuse-lite": "^1.0.30001809", + "electron-to-chromium": "^1.5.402", + "node-releases": "^2.0.53", + "update-browserslist-db": "^1.3.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001810", + "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", + "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/dayjs": { + "version": "1.11.23", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/echarts": { + "version": "5.6.0", + "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.6.0.tgz", + "integrity": "sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "2.3.0", + "zrender": "5.6.1" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.420", + "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.420.tgz", + "integrity": "sha512-2yD6XreGusOfNV+dUcvipJEXc3n/n7fgr7996aszTG+YY5E4mqM4tOq/3uhP129cazL9YHbVWSpc79ePotWtPA==", + "dev": true, + "license": "ISC" + }, + "node_modules/element-plus": { + "version": "2.14.5", + "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.14.5.tgz", + "integrity": "sha512-bghYy/S+qg87enHPXELirhEdDqsVAUGcGpbGIeG8dz0kwpIkGz7gYsifulBshXX74iRtHib85XWQj0uSH2A1Yg==", + "license": "MIT", + "dependencies": { + "@ctrl/tinycolor": "^4.2.0", + "@element-plus/icons-vue": "^2.3.2", + "@floating-ui/dom": "^1.8.0", + "@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.8", + "@types/lodash": "^4.17.24", + "@types/lodash-es": "^4.17.12", + "@vueuse/core": "14.4.0", + "async-validator": "^4.2.5", + "dayjs": "^1.11.20", + "lodash": "^4.18.1", + "lodash-es": "^4.18.1", + "lodash-unified": "^1.0.3", + "memoize-one": "^6.0.0", + "normalize-wheel-es": "^1.2.0", + "vue-component-type-helpers": "^3.3.9" + }, + "peerDependencies": { + "vue": "^3.3.7" + } + }, + "node_modules/element-plus/node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "license": "MIT" + }, + "node_modules/element-plus/node_modules/@vueuse/core": { + "version": "14.4.0", + "resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-14.4.0.tgz", + "integrity": "sha512-X4WHz1HlCzCBoYXesUkifzzWBAcZgXG8Fi5iNPQg/epdzOB3gu8Fawj3hvuwYR1nGcXGnvxwYYcUC/71++svtQ==", + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "14.4.0", + "@vueuse/shared": "14.4.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/element-plus/node_modules/@vueuse/metadata": { + "version": "14.4.0", + "resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-14.4.0.tgz", + "integrity": "sha512-swx/255R6JyHZFJhx845iz5CRWDZdCfvkZOpACWc5+c5WHcG24mv8gUT1WIdFQaHt6dq79rvILd9QnCWiyVm9g==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/element-plus/node_modules/@vueuse/shared": { + "version": "14.4.0", + "resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-14.4.0.tgz", + "integrity": "sha512-JRgY90Sz8DDtPMsaDflvPMp9xYk69JZAmbuDvAquUVXKr2gEjqtzGNTTthLfckH0BzBqvnu31gb4a8TGLRe79g==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/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/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fraction.js": { + "version": "5.3.4", + "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-5.3.4.tgz", + "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/rawify" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/immutable": { + "version": "5.1.9", + "resolved": "https://registry.npmmirror.com/immutable/-/immutable-5.1.9.tgz", + "integrity": "sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.16.2", + "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.2.tgz", + "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmmirror.com/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash": { + "version": "4.18.1", + "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.18.1", + "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.18.1.tgz", + "integrity": "sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==", + "license": "MIT" + }, + "node_modules/lodash-unified": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/lodash-unified/-/lodash-unified-1.0.3.tgz", + "integrity": "sha512-WK9qSozxXOD7ZJQlpSqOT+om2ZfcT4yO+03FuzAHD0wF6S0l0090LRPDx3vhTTLZ8cFKpBn+IOcVXK6qOcIlfQ==", + "license": "MIT", + "peerDependencies": { + "@types/lodash-es": "*", + "lodash": "*", + "lodash-es": "*" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmmirror.com/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/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/memoize-one": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/memoize-one/-/memoize-one-6.0.0.tgz", + "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==", + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/muggle-string": { + "version": "0.4.1", + "resolved": "https://registry.npmmirror.com/muggle-string/-/muggle-string-0.4.1.tgz", + "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.18", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.18.tgz", + "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", + "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/node-addon-api": { + "version": "7.1.1", + "resolved": "https://registry.npmmirror.com/node-addon-api/-/node-addon-api-7.1.1.tgz", + "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", + "dev": true, + "license": "MIT", + "optional": true + }, + "node_modules/node-releases": { + "version": "2.0.54", + "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.54.tgz", + "integrity": "sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-wheel-es": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/normalize-wheel-es/-/normalize-wheel-es-1.2.0.tgz", + "integrity": "sha512-Wj7+EJQ8mSuXr2iWfnujrimU35R2W4FAErEyTmJoJ7ucwTn2hOUSsRehMb5RSYkxXGTM7Y9QpvPmp++w5ftoJw==", + "license": "BSD-3-Clause" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz", + "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.3", + "vue-demi": "^0.14.10" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "typescript": ">=4.4.4", + "vue": "^2.7.0 || ^3.5.11" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.26", + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.26.tgz", + "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==", + "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.17", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmmirror.com/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmmirror.com/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmmirror.com/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.4", + "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", + "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/read-cache/-/read-cache-1.0.2.tgz", + "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/resize-detector": { + "version": "0.3.0", + "resolved": "https://registry.npmmirror.com/resize-detector/-/resize-detector-0.3.0.tgz", + "integrity": "sha512-R/tCuvuOHQ8o2boRP6vgx8hXCCy87H1eY9V5imBYeVNyNVpuL9ciReSccLj2gDcax9+2weXy3bc8Vv+NRXeEvQ==", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rollup": { + "version": "4.63.1", + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.63.1.tgz", + "integrity": "sha512-3Df9jsstwhccuEfmAMi9l8XUh/GOkVObmFTU7CCVBysEbcOZLl84jCtaAZMcPiMz2EGKsATzQcU+Xr3n/wU6cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "1.5.1", + "@rollup/rollup-android-arm-eabi": "4.63.1", + "@rollup/rollup-android-arm64": "4.63.1", + "@rollup/rollup-darwin-arm64": "4.63.1", + "@rollup/rollup-darwin-x64": "4.63.1", + "@rollup/rollup-freebsd-arm64": "4.63.1", + "@rollup/rollup-freebsd-x64": "4.63.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.63.1", + "@rollup/rollup-linux-arm-musleabihf": "4.63.1", + "@rollup/rollup-linux-arm64-gnu": "4.63.1", + "@rollup/rollup-linux-arm64-musl": "4.63.1", + "@rollup/rollup-linux-loong64-gnu": "4.63.1", + "@rollup/rollup-linux-loong64-musl": "4.63.1", + "@rollup/rollup-linux-ppc64-gnu": "4.63.1", + "@rollup/rollup-linux-ppc64-musl": "4.63.1", + "@rollup/rollup-linux-riscv64-gnu": "4.63.1", + "@rollup/rollup-linux-riscv64-musl": "4.63.1", + "@rollup/rollup-linux-s390x-gnu": "4.63.1", + "@rollup/rollup-linux-x64-gnu": "4.63.1", + "@rollup/rollup-linux-x64-musl": "4.63.1", + "@rollup/rollup-openbsd-x64": "4.63.1", + "@rollup/rollup-openharmony-arm64": "4.63.1", + "@rollup/rollup-win32-arm64-msvc": "4.63.1", + "@rollup/rollup-win32-ia32-msvc": "4.63.1", + "@rollup/rollup-win32-x64-gnu": "4.63.1", + "@rollup/rollup-win32-x64-msvc": "4.63.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/sass": { + "version": "1.103.1", + "resolved": "https://registry.npmmirror.com/sass/-/sass-1.103.1.tgz", + "integrity": "sha512-9icZURbP51S6S0QGoyaeqk9uB06GNWxsFYWfH5RgpFgqK5FA8tJcM3AdVxrZEVJ7dz+L87nG95gBKf4VuaMHGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "immutable": "^5.1.5", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=20.19.0" + }, + "optionalDependencies": { + "@parcel/watcher": "^2.4.1" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.19", + "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.19.tgz", + "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.7", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tailwindcss/node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/tailwindcss/node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/tailwindcss/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/tailwindcss/node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "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/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmmirror.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/tslib": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz", + "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==", + "license": "0BSD" + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmmirror.com/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/update-browserslist-db": { + "version": "1.3.2", + "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.3.2.tgz", + "integrity": "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmmirror.com/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vscode-uri": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.2.0.tgz", + "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.42", + "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.42.tgz", + "integrity": "sha512-4RyHQTbQvOPs3MfvUO1Sg0YRrKNnA0mAVtvpd12Tg1fKDN7OHBUl1IqSn8zGJjK9nI3NkNp8cgTpVrSZC5TTcA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.42", + "@vue/compiler-sfc": "3.5.42", + "@vue/runtime-dom": "3.5.42", + "@vue/server-renderer": "3.5.42", + "@vue/shared": "3.5.42" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-component-type-helpers": { + "version": "3.3.11", + "resolved": "https://registry.npmmirror.com/vue-component-type-helpers/-/vue-component-type-helpers-3.3.11.tgz", + "integrity": "sha512-LwcxzeliO9fkQcpJG0PoX8X5kmAhKmH9wkpDLxNabwzkQ9Zeib2YVHwFV4pcWmMLfXVfjr/dSV+DaJ3cIPgSNA==", + "license": "MIT" + }, + "node_modules/vue-demi": { + "version": "0.14.10", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", + "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-echarts": { + "version": "6.7.3", + "resolved": "https://registry.npmmirror.com/vue-echarts/-/vue-echarts-6.7.3.tgz", + "integrity": "sha512-vXLKpALFjbPphW9IfQPOVfb1KjGZ/f8qa/FZHi9lZIWzAnQC1DgnmEK3pJgEkyo6EP7UnX6Bv/V3Ke7p+qCNXA==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "resize-detector": "^0.3.0", + "vue-demi": "^0.13.11" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.5", + "@vue/runtime-core": "^3.0.0", + "echarts": "^5.4.1", + "vue": "^2.6.12 || ^3.1.1" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + }, + "@vue/runtime-core": { + "optional": true + } + } + }, + "node_modules/vue-echarts/node_modules/vue-demi": { + "version": "0.13.11", + "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.13.11.tgz", + "integrity": "sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "4.6.4", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.6.4.tgz", + "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/vue-tsc": { + "version": "3.3.11", + "resolved": "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-3.3.11.tgz", + "integrity": "sha512-gOb0B9rtU2+f1dszwPqSH5kAieIF9ReeLhD3kSRNHv5WZZUQz/JdVXW0RTdqhNTMlQkqKzrTTviqKr/4FYZraQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.28", + "@vue/language-core": "3.3.11" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/zrender": { + "version": "5.6.1", + "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.6.1.tgz", + "integrity": "sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==", + "license": "BSD-3-Clause", + "dependencies": { + "tslib": "2.3.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..c7fc97b --- /dev/null +++ b/package.json @@ -0,0 +1,35 @@ +{ + "name": "finance-system-frontend", + "version": "1.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "test": "node --test src/feishuDirectory.test.mjs src/layout.test.mjs", + "preview": "vite preview" + }, + "dependencies": { + "@element-plus/icons-vue": "^2.3.0", + "@vueuse/core": "^10.7.0", + "axios": "^1.6.0", + "dayjs": "^1.11.0", + "echarts": "^5.4.0", + "element-plus": "^2.5.0", + "lodash-es": "^4.17.21", + "pinia": "^2.1.0", + "vue": "^3.4.0", + "vue-echarts": "^6.6.0", + "vue-router": "^4.2.0" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^5.0.0", + "autoprefixer": "^10.4.0", + "postcss": "^8.4.0", + "sass": "^1.69.0", + "tailwindcss": "^3.4.0", + "typescript": "^5.3.0", + "vite": "^5.0.0", + "vue-tsc": "^3.3.11" + } +} diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..e99ebc2 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} \ No newline at end of file diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..b40ce50 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/src/api/admin.ts b/src/api/admin.ts new file mode 100644 index 0000000..4118efe --- /dev/null +++ b/src/api/admin.ts @@ -0,0 +1,120 @@ +import request from './request' + +export type Status = 'ACTIVE' | 'INACTIVE' + +export interface AdminUser { + id: number + employeeNo: string + realName: string + avatarUrl?: string + email?: string + departmentName?: string + position?: string + userType?: string + status: string + feishuStatus?: string + feishuOpenId?: string + feishuUserId?: string + lastLoginAt?: string + roleCodes?: string[] + groupNames?: string[] +} + +export interface Role { + id: number + roleCode: string + roleName: string + description?: string + status: Status | string + builtIn: boolean + memberCount?: number + permissionCount?: number +} + +export interface PermissionItem { + code: string + name: string + type: string + parentCode?: string + resource?: string +} + +export interface RolePermissions { + permissionCodes: string[] + fieldPermissions: Record +} + +export interface UserGroup { + id: number + groupCode: string + groupName: string + description?: string + status: Status | string + memberCount?: number + roleCount?: number +} + +export interface GroupCandidate { + id: number + realName: string + employeeNo?: string + departmentName?: string + feishuOpenId?: string + feishuUserId?: string + status: string +} + +export interface IntegrationField { + key: string + label: string + value?: unknown + secret: boolean + configured: boolean +} + +export interface IntegrationProvider { + enabled: boolean + fields: IntegrationField[] +} + +export interface IntegrationConfig { + feishu: IntegrationProvider + kingdee: IntegrationProvider +} + +export const adminApi = { + listUsers: (): Promise => request.get('/auth/users'), + updateUserRoles: (id: number, roleIds: number[]): Promise => + request.put(`/auth/users/${id}/roles`, { roleIds }), + + listRoles: (): Promise => request.get('/roles'), + createRole: (body: Pick): Promise => + request.post('/roles', body), + updateRole: (id: number, body: Partial>): Promise => + request.put(`/roles/${id}`, body), + deleteRole: (id: number): Promise => request.delete(`/roles/${id}`), + listPermissions: (): Promise => request.get('/roles/permissions'), + getRolePermissions: (id: number): Promise => request.get(`/roles/${id}/permissions`), + updateRolePermissions: (id: number, body: RolePermissions): Promise => + request.put(`/roles/${id}/permissions`, body), + + listGroups: (): Promise => request.get('/user-groups'), + createGroup: (body: Pick): Promise => + request.post('/user-groups', body), + updateGroup: (id: number, body: Partial>): Promise => + request.put(`/user-groups/${id}`, body), + deleteGroup: (id: number): Promise => request.delete(`/user-groups/${id}`), + getGroupRoles: (id: number): Promise<{ roleIds: number[] }> => request.get(`/user-groups/${id}/roles`), + updateGroupRoles: (id: number, roleIds: number[]): Promise => + request.put(`/user-groups/${id}/roles`, { roleIds }), + getGroupMembers: (id: number): Promise<{ userIds: number[] }> => request.get(`/user-groups/${id}/members`), + updateGroupMembers: (id: number, userIds: number[]): Promise => + request.put(`/user-groups/${id}/members`, { userIds }), + listCandidates: (): Promise => request.get('/user-groups/candidates'), + + getIntegrationConfig: (): Promise => request.get('/integrations/config'), + updateIntegrationConfig: (provider: 'FEISHU' | 'KINGDEE', enabled: boolean, values: Record): Promise => + request.put('/integrations/config', { provider, enabled, values }), + testIntegration: (provider: 'FEISHU' | 'KINGDEE'): Promise<{ provider: string; configured: boolean; success: boolean; message: string }> => + request.post('/integrations/config/test', { provider }), +} diff --git a/src/api/auth.ts b/src/api/auth.ts new file mode 100644 index 0000000..ad7b71d --- /dev/null +++ b/src/api/auth.ts @@ -0,0 +1,38 @@ +import request from './request' + +export interface UserProfile { + id: number + employeeNo: string + realName: string + avatarUrl: string + email: string + departmentName: string + position: string + userType: string + status: string + feishuStatus: string + lastLoginAt: string +} + +export interface LoginResponse { + token: string + tokenType: string + expiresIn: number + user: UserProfile +} + +export const authApi = { + feishuLogin: (code: string, state?: string): Promise => + request.post('/auth/feishu-login', { code, state }), + + getAuthUrl: (): Promise<{ authUrl: string }> => request.get('/feishu/auth-url'), + + getUserInfo: (): Promise => + request.get('/auth/me'), + + refreshToken: (): Promise => + request.post('/auth/refresh'), + + logout: (): Promise => + request.post('/auth/logout'), +} diff --git a/src/api/fallback.ts b/src/api/fallback.ts new file mode 100644 index 0000000..85d9ce5 --- /dev/null +++ b/src/api/fallback.ts @@ -0,0 +1,74 @@ +import type { CreateApplicationRequest, PaymentRecord, ReimApplicationDetail, ReimApplicationSummary } from './reimbursement' + +export interface FallbackUser { + id: number + employeeNo: string + realName: string + avatarUrl: string + email: string + departmentName: string + position: string + userType: string + status: string + feishuStatus: string + lastLoginAt: string +} + +export interface FallbackWorkbench { + user: FallbackUser + reimbursements: ReimApplicationDetail[] + payments: PaymentRecord[] + notifications: number +} + +const item = (id: string, title: string, owner: string, department: string, amount: number, applicationStatus: string, approvalStatus: string, approvalNode: string, receiptStatus: string, category: string, date: string, returnReason = ''): ReimApplicationDetail => ({ + id, applicationNo: id, title, applicantName: owner, applicantEmployeeNo: owner === '李志豪' ? 'EMP000086' : 'EMP000102', departmentName: department, + expenseTypeId: 1, expenseTypeName: '员工报销', category, totalAmount: amount, + description: title === '上海客户现场技术交流差旅' ? '上海客户现场技术交流产生的交通及住宿费用。' : `${title},用于日常业务支持。`, + applicationStatus, approvalStatus, currentApprovalNode: approvalNode, receiptStatus, paymentStatus: '未付款', budgetStatus: receiptStatus === '已收单' ? '已转执行' : '已占用', + sourceDocNo: `TRIP${date.replace(/-/g, '')}`, sourceStatus: '已同步', payeeName: owner, payeeBankId: 1, + bankName: owner === '李志豪' ? '中国工商银行苏州新区支行' : '招商银行苏州工业园区支行', bankAccountMask: owner === '李志豪' ? '6222 **** 0728' : '6214 **** 8001', + returnReason, submitTime: `${date} 09:42`, createdAt: `${date} 09:42`, updatedAt: `${date} 10:24`, + expenseItems: [{ id: `${id}-1`, seqNo: 1, expenseDate: date, category, description: title, amount }], + invoices: amount === 3286.5 ? [] : [{ id: `${id}-invoice`, invoiceNo: `0330026001114${id.slice(-5)}`, invoiceType: '增值税普通发票', issueDate: date, amount, sellerName: '业务服务商', verifyStatus: '已校验' }], + attachments: [{ id: `${id}-attachment`, fileName: `${category}证明材料.pdf`, fileType: 'PDF', fileUrl: '' }], approvalRecords: [], payments: [], +}) + +export const fallbackWorkbench: FallbackWorkbench = { + user: { id: 86, employeeNo: 'EMP000086', realName: '李志豪', avatarUrl: '', email: '', departmentName: '销售中心', position: '销售经理', userType: 'EMPLOYEE', status: 'ACTIVE', feishuStatus: '已授权', lastLoginAt: '' }, + reimbursements: [ + item('BX20260812001', '上海客户现场技术交流差旅', '李志豪', '销售中心', 3286.5, '已提交', '退回', '申请人补充材料', '未触发', '差旅交通', '2026-08-12', '请补充住宿发票影像,并说明住宿日期。'), + item('BX20260809003', '八月客户拜访交通费', '李志豪', '销售中心', 1260, '已提交', '审批中', '应付会计审核', '未触发', '交通费', '2026-08-09'), + item('BX20260808006', '研发现场餐费报销', '王忠辉', '数字化中心', 680, '已提交', '审批中', '财务经理审批', '未触发', '业务招待', '2026-08-08'), + item('BX20260802011', '苏州园区客户拜访费用', '赵海峰', '供应链中心', 2180, '已提交', '审批通过', '流程已完成', '待收单', '交通费', '2026-08-02'), + item('BX20260801009', '七月云资源差旅补贴', '王忠辉', '数字化中心', 3200, '已提交', '审批通过', '流程已完成', '已收单', '差旅补贴', '2026-08-01'), + item('BX20260728004', '上海项目住宿费', '赵海峰', '供应链中心', 4100, '已提交', '审批通过', '流程已完成', '已收单', '住宿费', '2026-07-28'), + ], + payments: [{ id: 'PAY-20260803-01', paymentNo: 'PAY-20260803-01', applicationId: 'BX20260728004', paymentAmount: 1800, totalAmount: 4100, paidAmount: 1800, remainingAmount: 2300, paymentMethod: '银行转账', paymentStatus: '有效', operatorName: '周敏', paymentTime: '2026-08-03 15:24', remark: 'FLOW202608030883' }], + notifications: 3, +} + +export const fallbackLogin = (employeeNo = 'EMP000086'): { token: string; user: FallbackUser } => { + const finance = employeeNo.trim().toUpperCase() === 'FINANCE' + return { + token: 'demo-local-session', + user: { + ...fallbackWorkbench.user, + employeeNo: finance ? 'FINANCE-DEMO' : employeeNo, + realName: finance ? '财务人员' : employeeNo === 'EMP000086' ? '李志豪' : '员工用户', + departmentName: finance ? '财务中心' : fallbackWorkbench.user.departmentName, + position: finance ? '财务专员' : fallbackWorkbench.user.position, + userType: finance ? 'FINANCE' : 'EMPLOYEE', + }, + } +} + +export const cloneFallback = (): FallbackWorkbench => structuredClone(fallbackWorkbench) + +export const createFallbackDetail = (payload: CreateApplicationRequest, id: string, user: FallbackUser): ReimApplicationDetail => ({ + id, applicationNo: id, title: payload.title, applicantName: user.realName, applicantEmployeeNo: user.employeeNo, departmentName: user.departmentName, + expenseTypeId: payload.expenseTypeId, expenseTypeName: '员工报销', category: payload.category, totalAmount: payload.totalAmount, description: payload.description, + applicationStatus: '草稿', approvalStatus: '未触发', currentApprovalNode: '未提交', receiptStatus: '未触发', paymentStatus: '未付款', budgetStatus: '已占用', + sourceDocNo: '', sourceStatus: '未关联', payeeName: payload.payeeName, payeeBankId: payload.payeeBankId, bankName: '收款账户', bankAccountMask: '已脱敏', returnReason: '', submitTime: '', + createdAt: new Date().toISOString(), updatedAt: new Date().toISOString(), expenseItems: payload.items, invoices: [], attachments: [], approvalRecords: [], payments: [], +}) diff --git a/src/api/feishuDirectory.ts b/src/api/feishuDirectory.ts new file mode 100644 index 0000000..d803360 --- /dev/null +++ b/src/api/feishuDirectory.ts @@ -0,0 +1,66 @@ +import request from './request' + +export interface DirectoryRun { + runId: string + trigger: 'MANUAL' | 'STARTUP' + state: 'RUNNING' | 'SUCCEEDED' | 'FAILED' + startedAt: string + finishedAt: string | null + complete: boolean + applied: boolean + counts: Record<'departments' | 'usersSeen' | 'excluded' | 'created' | 'updated' | 'outOfScope', number> + errorCode: string | null + errorMessage: string | null +} + +export interface DirectoryStatus { + configured: boolean + running: boolean + snapshotState: 'UNAVAILABLE' | 'NEVER_SYNCED' | 'FRESH' | 'STALE' | 'CONTEXT_CHANGED' + maxStatusAgeSeconds: number + lastSuccessfulRunId: string | null + lastSuccessfulAt: string | null + snapshotExpiresAt: string | null + lastRun: DirectoryRun | null +} + +export interface DirectoryDepartment { + id: string + name: string + parentId: string + // The backend serializes Feishu's potentially-large integer order as text. + // Keep it as text at the API boundary so it cannot lose precision in JS. + order: string + memberCount: number +} + +export interface DirectoryOrganizationUser { + openId: string + userId: string + name: string + email: string + mobile: string + jobTitle: string + employeeType: number | null + avatarUrl: string + employmentStatus: string + departmentIds: string[] +} + +export interface DirectoryOrganization { + snapshotState: DirectoryStatus['snapshotState'] + lastSuccessfulAt: string | null + departments: DirectoryDepartment[] + users: DirectoryOrganizationUser[] +} + +// Backend elapsed() caps collection at 300s; allow transport/commit headroom. +export const DIRECTORY_SYNC_TIMEOUT = 360_000 +export const feishuDirectoryApi = { + sync: (signal?: AbortSignal): Promise => + request.post('/feishu/directory/sync', undefined, { timeout: DIRECTORY_SYNC_TIMEOUT, signal }), + status: (signal?: AbortSignal): Promise => + request.get('/feishu/directory/status', { signal }), + organization: (signal?: AbortSignal): Promise => + request.get('/feishu/directory/organization', { signal }), +} diff --git a/src/api/reimbursement.ts b/src/api/reimbursement.ts new file mode 100644 index 0000000..1ef2b30 --- /dev/null +++ b/src/api/reimbursement.ts @@ -0,0 +1,201 @@ +import request from './request' + +export interface PageResponse { + content: T[] + totalElements: number + totalPages: number + currentPage: number + pageSize: number +} + +export interface ReimApplicationSummary { + id: number | string + applicationNo: string + title: string + applicantName: string + departmentName: string + expenseTypeName: string + category: string + totalAmount: number + applicationStatus: string + approvalStatus: string + currentApprovalNode: string + receiptStatus: string + paymentStatus: string + budgetStatus: string + submitTime: string + createdAt: string + returnReason?: string + paidAmount?: number + remainingAmount?: number +} + +export interface ReimApplicationDetail { + id: number | string + applicationNo: string + title: string + applicantName: string + applicantEmployeeNo: string + departmentName: string + expenseTypeId: number + expenseTypeName: string + category: string + totalAmount: number + description: string + applicationStatus: string + approvalStatus: string + currentApprovalNode: string + receiptStatus: string + paymentStatus: string + budgetStatus: string + sourceDocNo: string + sourceStatus: string + payeeName: string + payeeBankId: number + bankName: string + bankAccountMask: string + returnReason: string + submitTime: string + createdAt: string + updatedAt: string + expenseItems: ExpenseItem[] + invoices: Invoice[] + attachments: Attachment[] + approvalRecords: ApprovalRecord[] + payments: PaymentRecord[] + paidAmountSnapshot?: number + remainingAmountSnapshot?: number +} + +export interface ExpenseItem { + id?: number | string + seqNo?: number + expenseDate: string + category: string + description?: string + amount: number +} + +export interface CreateApplicationRequest { + title: string + expenseTypeId: number + category: string + totalAmount: number + description: string + payeeName: string + payeeBankId: number + items: ExpenseItem[] +} + +export interface Invoice { + id: number | string + invoiceNo: string + invoiceType: string + issueDate: string + amount: number + sellerName: string + verifyStatus: string +} + +export interface Attachment { + id: number | string + fileName: string + fileType: string + fileUrl: string +} + +export interface ApprovalRecord { + id: number | string + nodeName: string + approverName: string + action: string + comment: string + actionTime: string +} + +export interface PaymentRecord { + id: number | string + paymentNo: string + applicationId?: number | string + paymentAmount: number + totalAmount: number + paidAmount: number + remainingAmount: number + paymentMethod: string + referenceNo?: string + paymentStatus: string + operatorName: string + paymentTime: string + remark: string +} + +export const reimbursementApi = { + getWorkbench: (): Promise => + request.get('/v1/reimbursements/workbench'), + + getMyApplications: (params?: { status?: string; page?: number; size?: number }): Promise> => + request.get('/v1/reimbursements/my', { params }), + + getDetail: (id: number | string): Promise => + request.get(`/v1/reimbursements/${id}`), + + getByApplicationNo: (no: string): Promise => + request.get(`/v1/reimbursements/no/${no}`), + + create: (data: CreateApplicationRequest): Promise => + request.post('/v1/reimbursements', data), + + update: (id: number | string, data: CreateApplicationRequest): Promise => + request.put(`/v1/reimbursements/${id}`, data), + + submit: (id: number | string): Promise => + request.post(`/v1/reimbursements/${id}/submit`), + + receive: (id: number | string): Promise => + request.post(`/v1/reimbursements/${id}/receive`), + + delete: (id: number | string): Promise => + request.delete(`/v1/reimbursements/${id}`), +} + +export const accountsPayableApi = { + getTasks: (params?: { status?: string; page?: number; size?: number }): Promise => + request.get('/v1/accounts-payable/tasks', { params }), + + getTaskDetail: (id: number | string): Promise => + request.get(`/v1/accounts-payable/tasks/${id}`), + + approve: (applicationId: number | string, comment: string): Promise => + request.post('/v1/accounts-payable/approve', { applicationId, comment }), + + reject: (applicationId: number | string, comment: string, returnReason: string): Promise => + request.post('/v1/accounts-payable/reject', { applicationId, comment, returnReason }), + + getHistory: (): Promise => + request.get('/v1/accounts-payable/history'), +} + +export const cashierApi = { + getTasks: (params?: { status?: string; page?: number; size?: number }): Promise => + request.get('/v1/cashier/tasks', { params }), + + getTaskDetail: (id: number | string): Promise => + request.get(`/v1/cashier/tasks/${id}`), + + executePayment: (applicationId: number | string, paymentAmount: number, remark?: string, idempotencyKey?: string): Promise => + request.post('/v1/cashier/pay', { applicationId, paymentAmount, remark }, idempotencyKey ? { headers: { 'Idempotency-Key': idempotencyKey } } : undefined), + + partialPayment: (applicationId: number | string, paymentAmount: number, remark?: string, idempotencyKey?: string): Promise => + request.post('/v1/cashier/partial-pay', { applicationId, paymentAmount, remark }, idempotencyKey ? { headers: { 'Idempotency-Key': idempotencyKey } } : undefined), + + getHistory: (): Promise => + request.get('/v1/cashier/history'), +} + +export const dashboardApi = { + getStats: (): Promise => + request.get('/v1/dashboard/stats'), + + getRecent: (limit?: number): Promise => + request.get('/v1/dashboard/recent', { params: { limit } }), +} diff --git a/src/api/request.ts b/src/api/request.ts new file mode 100644 index 0000000..a23bbf1 --- /dev/null +++ b/src/api/request.ts @@ -0,0 +1,109 @@ +import axios from 'axios' +import type { AxiosRequestConfig } from 'axios' +import { ElMessage } from 'element-plus' +import router from '@/router' + +type ApiClient = { + get(url: string, config?: AxiosRequestConfig): Promise + post(url: string, data?: unknown, config?: AxiosRequestConfig): Promise + put(url: string, data?: unknown, config?: AxiosRequestConfig): Promise + delete(url: string, config?: AxiosRequestConfig): Promise +} + +const axiosClient = axios.create({ + // Keep the same-origin default for Vite/Nginx proxy deployments while + // allowing a static build to call an explicitly configured API origin. + baseURL: (import.meta.env.VITE_API_BASE_URL || '/api').replace(/\/$/, ''), + timeout: 15000, + // Required for the Feishu OAuth state double-submit cookie when the + // frontend and API are served from different origins. + withCredentials: true, + headers: { 'Content-Type': 'application/json' }, +}) + +const clearSessionAndRedirect = () => { + localStorage.removeItem('token') + localStorage.removeItem('userInfo') + if (router.currentRoute.value.path !== '/login') { + void router.push('/login') + } +} + +const requestToken = (config: unknown): string | undefined => { + const token = (config as { __authToken?: unknown } | undefined)?.__authToken + return typeof token === 'string' && token ? token : undefined +} + +const clearOnlyIfRequestOwnsSession = (config: unknown) => { + const issuedToken = requestToken(config) + if (issuedToken && localStorage.getItem('token') === issuedToken) clearSessionAndRedirect() +} + +let lastNotification = '' +let lastNotificationAt = 0 + +const notifyOnce = (message: string, type: 'error' | 'warning' | 'info' = 'error') => { + const now = Date.now() + if (message === lastNotification && now - lastNotificationAt < 1500) return + lastNotification = message + lastNotificationAt = now + ElMessage[type](message) +} + +// Request interceptor - attach JWT token +axiosClient.interceptors.request.use( + (config) => { + const token = localStorage.getItem('token') + if (token) { + config.headers.Authorization = `Bearer ${token}` + } + const trackedConfig = config as typeof config & { __authToken?: string } + trackedConfig.__authToken = token || undefined + return config + }, + (error) => Promise.reject(error) +) + +// Response interceptor - unwrap ApiResponse wrapper +axiosClient.interceptors.response.use( + (response) => { + const res = response.data + // All current backend endpoints return ApiResponse. Keeping the fallback + // makes this client safe for a plain health/config response as well. + if (!res || typeof res !== 'object' || !('code' in res)) return res + + if (res.code !== 200) { + if (res.code === 401) clearOnlyIfRequestOwnsSession(response.config) + notifyOnce(res.message || '请求失败') + return Promise.reject(new Error(res.message || '请求失败')) + } + return res.data + }, + (error) => { + if (error.response) { + const { status, data } = error.response + switch (status) { + case 401: + clearOnlyIfRequestOwnsSession(error.config) + notifyOnce('登录已过期,请重新登录') + break + case 403: + notifyOnce('权限不足') + break + case 404: + notifyOnce('请求的资源不存在') + break + case 409: + notifyOnce(data?.message || '业务冲突') + break + default: + notifyOnce(data?.message || '服务器错误') + } + } else { + notifyOnce('网络连接失败') + } + return Promise.reject(error) + } +) + +export default axiosClient as unknown as ApiClient diff --git a/src/assets/main.css b/src/assets/main.css new file mode 100644 index 0000000..1334ebe --- /dev/null +++ b/src/assets/main.css @@ -0,0 +1,2532 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +:root { + --navy: #102a43; + --deep: #132f4c; + --blue: #1f67c1; + --blue-dark: #174f98; + --blue-soft: #edf4fd; + --surface: #f4f6f8; + --surface-raised: #f8fafc; + --line: #dfe5eb; + --line-strong: #c9d3de; + --text: #1c2b39; + --body: #405466; + --muted: #687b8d; + --quiet: #8b9baa; + --success: #18794e; + --success-soft: #eaf6ef; + --warning: #9a620b; + --warning-soft: #fff5e3; + --danger: #b33a35; + --danger-soft: #fcedeB; + --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; + --sans: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; + --side: 238px; + --radius: 8px; + --shadow: 0 2px 8px rgba(16, 42, 67, .06); +} + +* { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +html, +body, +#app { + min-height: 100%; +} + +html { + scroll-behavior: smooth; +} + +body { + background: var(--surface); + color: var(--text); + font: 14px/1.65 var(--sans); + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; +} + +button, +input, +select, +textarea { + font: inherit; +} + +button, +a { + cursor: pointer; +} + +a { + color: inherit; + text-decoration: none; +} + +button:focus-visible, +a:focus-visible, +input:focus-visible, +select:focus-visible, +textarea:focus-visible { + outline: 3px solid #7eb4f2; + outline-offset: 2px; +} + +.skip-link { + position: fixed; + top: 8px; + left: 8px; + z-index: 100; + padding: 8px 12px; + border-radius: 5px; + background: #fff; + color: var(--blue-dark); + box-shadow: var(--shadow); + transform: translateY(-150%); +} + +.skip-link:focus { + transform: translateY(0); +} + +.app-shell { + min-height: 100vh; +} + +.sidebar { + position: fixed; + inset: 0 auto 0 0; + z-index: 40; + display: flex; + width: var(--side); + flex-direction: column; + padding: 22px 15px 18px; + overflow-y: auto; + background: var(--deep); + color: #fff; +} + +.brand, +.login-brand { + display: flex; + align-items: center; + gap: 11px; +} + +.brand { + padding: 0 8px; +} + +.brand > span:last-child, +.login-brand > span:last-child { + display: flex; + flex-direction: column; +} + +.brand strong, +.login-brand strong { + font-size: 16px; + letter-spacing: .04em; +} + +.brand small, +.login-brand small { + color: #a8bdce; + font: 11px var(--mono); + letter-spacing: .1em; +} + +.brand-mark { + position: relative; + display: block; + width: 31px; + height: 31px; + flex: none; + overflow: hidden; + border: 1px solid #dce8f7; + border-radius: 7px; + background: #fff; +} + +.brand-mark i { + position: absolute; + left: 7px; + width: 17px; + height: 5px; + border-radius: 1px; + background: var(--blue); + transform: skewX(-20deg); +} + +.brand-mark i:first-child { + top: 8px; +} + +.brand-mark i:last-child { + top: 17px; + left: 10px; + width: 13px; + background: var(--navy); +} + +.product-name { + margin: 18px 8px 20px; + padding: 12px 0; + border-top: 1px solid rgba(255, 255, 255, .1); + border-bottom: 1px solid rgba(255, 255, 255, .1); + color: #bed0de; + font-size: 12px; + letter-spacing: .04em; +} + +.product-name span { + display: block; + margin-top: 2px; + color: #7f9bb1; + font-size: 10px; +} + +.main-nav { + flex: 1; +} + +.nav-group { + margin-bottom: 17px; +} + +.nav-group > span { + display: block; + margin: 0 9px 6px; + color: #7f9db4; + font-size: 11px; + font-weight: 700; + letter-spacing: .08em; +} + +.main-nav a { + display: flex; + min-height: 38px; + align-items: center; + gap: 9px; + padding: 7px 9px; + border-radius: 6px; + color: #c8d6e2; + font-size: 13px; + transition: background-color .15s ease, color .15s ease; +} + +.main-nav a:hover, +.main-nav a.router-link-active, +.main-nav a.active { + background: rgba(255, 255, 255, .12); + color: #fff; +} + +.main-nav a b { + display: grid; + width: 20px; + place-items: center; + color: #92aec2; + font-size: 16px; + font-weight: 500; +} + +.main-nav a:hover b, +.main-nav a.router-link-active b, +.main-nav a.active b { + color: #fff; +} + +.main-nav a i { + margin-left: auto; + font-style: normal; +} + +.nav-count { + min-width: 22px; + padding: 1px 6px; + border-radius: 99px; + background: rgba(255, 255, 255, .12); + color: #dbe7ef; + font-size: 11px; + line-height: 1.5; + text-align: center; +} + +.nav-count.warning { + background: #aa6c14; + color: #fff; +} + +.sidebar-foot { + display: flex; + align-items: center; + gap: 9px; + padding: 12px 9px 0; + border-top: 1px solid rgba(255, 255, 255, .1); +} + +.sidebar-foot strong { + display: block; + font-size: 12px; +} + +.sidebar-foot small { + display: block; + color: #85a0b4; + font-size: 10px; +} + +.status-dot { + display: block; + width: 8px; + height: 8px; + flex: none; + border-radius: 50%; + background: #5fc493; + box-shadow: 0 0 0 3px rgba(95, 196, 147, .12); +} + +.main-area { + display: flex; + flex-direction: column; + min-width: 0; + min-height: 100vh; + margin-left: var(--side); +} + +.topbar { + position: sticky; + top: 0; + z-index: 30; + display: flex; + flex-wrap: wrap; + min-height: 66px; + align-items: center; + justify-content: space-between; + gap: 16px; + padding: 0 28px; + border-bottom: 1px solid var(--line); + background: rgba(255, 255, 255, .98); +} + +.topbar-left, +.topbar-tools { + display: flex; + min-width: 0; + align-items: center; + gap: 10px; +} + +.breadcrumb { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 8px; + min-width: 0; + font-size: 13px; +} + +.breadcrumb span { + color: var(--muted); +} + +.breadcrumb i { + color: var(--quiet); + font-style: normal; +} + +.search-box { + display: flex; + width: 265px; + height: 38px; + align-items: center; + gap: 7px; + padding: 0 10px; + border: 1px solid var(--line-strong); + border-radius: 6px; + background: #fff; + color: var(--muted); +} + +.search-box svg, +.icon-button svg, +.btn svg, +.card-link svg { + width: 16px; + height: 16px; + flex: none; +} + +.search-box input { + width: 100%; + border: 0; + outline: 0; + background: transparent; + color: var(--text); + font-size: 12px; +} + +.icon-button { + position: relative; + display: grid; + width: 36px; + height: 36px; + place-items: center; + border: 0; + border-radius: 6px; + background: transparent; + color: var(--muted); + font-size: 17px; +} + +.icon-button:hover { + background: var(--surface); + color: var(--blue); +} + +.notification-count { + position: absolute; + top: 0; + right: -3px; + min-width: 16px; + height: 16px; + padding: 0 4px; + border: 2px solid #fff; + border-radius: 99px; + background: var(--danger); + color: #fff; + font-size: 9px; + font-weight: 800; + line-height: 12px; + text-align: center; +} + +.notification-glyph { + width: 18px; + height: 18px; +} + +.role-switch { + display: flex; + align-items: center; + gap: 8px; + padding: 3px 7px 3px 3px; + border: 1px solid transparent; + border-radius: 7px; + background: #fff; + color: var(--text); + text-align: left; +} + +.role-switch:hover { + border-color: var(--line); + background: var(--surface-raised); +} + +.role-switch > span:nth-child(2) { + display: flex; + min-width: 66px; + flex-direction: column; +} + +.role-switch strong { + font-size: 12px; +} + +.role-switch small { + color: var(--muted); + font-size: 11px; +} + +.role-switch i { + display: inline-flex; + align-items: center; + gap: 4px; + color: var(--blue); + font-size: 11px; + font-style: normal; + white-space: nowrap; +} + +.role-switch i svg { + width: 14px; + height: 14px; +} + +.avatar { + display: grid; + width: 34px; + height: 34px; + place-items: center; + border-radius: 7px; + background: var(--blue-soft); + color: var(--blue); +} + +.avatar svg { + width: 17px; + height: 17px; +} + +.data-sync-banner { + display: flex; + flex-wrap: wrap; + min-height: 40px; + align-items: center; + gap: 12px; + padding: 7px 28px; + border-bottom: 1px solid #dce5ee; + background: #f8fafc; + font-size: 12px; +} + +.data-sync-banner p { + flex: 1; + min-width: 0; + overflow-wrap: anywhere; + color: var(--muted); +} + +.source-pill { + padding: 3px 8px; + border-radius: 99px; + font-size: 10px; + font-weight: 700; + line-height: 1.4; + white-space: nowrap; +} + +.source-pill.api { + background: var(--success-soft); + color: var(--success); +} + +.source-pill.fallback, +.source-pill.connecting { + background: var(--warning-soft); + color: var(--warning); +} + +.source-pill.error { + background: var(--danger-soft); + color: var(--danger); +} + +.page-stage { + display: flex; + flex: 1 0 auto; + flex-direction: column; + min-width: 0; + padding: 28px 28px 62px; +} + +/* Opt in only list pages/panels. Content stays in document flow; tables and + their rows keep their intrinsic height even when the panel has spare space. */ +.page-content, +.fill-list-card, +.fill-card-body { + display: flex; + flex: 1 0 auto; + flex-direction: column; + min-width: 0; +} + +.page-content > .load-wrap, +.page-content > .empty-state, +.fill-list-card > .load-wrap, +.fill-list-card > .empty-state, +.fill-card-body > .empty-state { + flex: 1 0 auto; +} + +.page-content > :not(dialog), +.fill-list-card > *, +.grid.two > *, +.detail-layout > *, +.form-grid > *, +.source-grid > *, +.attachment-grid > * { + min-width: 0; +} + +.page-stage > *, +.field input, +.field select, +.field textarea, +.filter-search input, +.search-box input { + min-width: 0; +} + +.page-head, +.card-head, +.section-title, +.modal-actions, +.items-header, +.amount-summary { + flex-wrap: wrap; +} + +.page-head > *, +.card-head > *, +.section-title > *, +.filter-bar > * { + min-width: 0; + max-width: 100%; +} + +.page-stage { + overflow-wrap: anywhere; +} + +.page-head { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 18px; + margin-bottom: 20px; +} + +.eyebrow { + color: var(--blue); + font-size: 10px; + font-weight: 700; + letter-spacing: .1em; +} + +.page-head h1 { + margin: 5px 0 4px; + color: var(--navy); + font-size: 26px; + letter-spacing: -.02em; + line-height: 1.3; +} + +.page-head p { + color: var(--muted); + font-size: 13px; +} + +.head-actions { + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + gap: 8px; +} + +.btn { + display: inline-flex; + min-height: 39px; + align-items: center; + justify-content: center; + gap: 6px; + padding: 6px 15px; + border: 1px solid var(--line-strong); + border-radius: 6px; + background: #fff; + color: var(--body); + font-size: 13px; + font-weight: 700; + white-space: nowrap; +} + +.btn:hover { + border-color: var(--blue); + color: var(--blue); +} + +.btn.primary { + border-color: var(--blue); + background: var(--blue); + color: #fff; +} + +.btn.primary:hover { + border-color: var(--blue-dark); + background: var(--blue-dark); + color: #fff; +} + +.btn.small { + min-height: 32px; + padding: 4px 11px; + font-size: 11px; +} + +.btn:disabled { + cursor: not-allowed; + opacity: .55; +} + +.card, +.section-card { + overflow: hidden; + border: 1px solid var(--line); + border-radius: var(--radius); + background: #fff; + box-shadow: var(--shadow); +} + +.card-head, +.section-title { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + padding: 16px 18px; + border-bottom: 1px solid var(--line); +} + +.card-head h2, +.section-title h2 { + color: var(--navy); + font-size: 15px; + line-height: 1.4; +} + +.card-head p, +.section-title > span { + margin-top: 3px; + color: var(--muted); + font-size: 11px; +} + +.card-body { + padding: 18px; +} + +.section-gap { + margin-top: 16px; +} + +.metrics, +.finance-kpis { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 12px; + margin-bottom: 16px; +} + +.finance-kpis { + grid-template-columns: repeat(3, minmax(0, 1fr)); +} + +.metric, +.finance-kpis > div { + position: relative; + min-width: 0; + padding: 17px 18px; + overflow: hidden; + border: 1px solid var(--line); + border-radius: var(--radius); + background: #fff; + box-shadow: var(--shadow); +} + +.metric::before { + position: absolute; + inset: 0 auto 0 0; + width: 3px; + background: var(--blue); + content: ""; +} + +.metric.warn::before { + background: var(--warning); +} + +.metric.success::before { + background: var(--success); +} + +.metric small, +.metric span, +.finance-kpis span, +.finance-kpis small { + display: block; + color: var(--muted); + font-size: 12px; +} + +.metric strong, +.finance-kpis strong { + display: block; + margin: 6px 0 2px; + color: var(--navy); + font: 800 23px var(--mono); + font-variant-numeric: tabular-nums; + line-height: 1.3; +} + +.welcome-panel { + display: flex; + align-items: center; + justify-content: space-between; + gap: 18px; + margin-bottom: 16px; + padding: 21px 23px; + border: 1px solid #cbdceb; + border-radius: var(--radius); + background: #f8fbfe; +} + +.welcome-panel h2 { + margin: 4px 0; + color: var(--navy); + font-size: 20px; + line-height: 1.4; +} + +.welcome-panel p { + color: var(--muted); + font-size: 12px; +} + +.sync-status { + display: flex; + min-width: 205px; + align-items: center; + gap: 10px; + padding: 11px 13px; + border: 1px solid var(--line); + border-radius: 7px; + background: #fff; +} + +.sync-status.warning .sync-dot { + background: var(--warning); +} + +.sync-dot { + width: 9px; + height: 9px; + flex: none; + border-radius: 50%; + background: var(--success); +} + +.sync-status strong, +.sync-status small { + display: block; + font-size: 11px; +} + +.sync-status small { + color: var(--muted); +} + +.grid.two { + display: grid; + grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); + gap: 15px; +} + +.task-list { + display: flex; + flex-direction: column; +} + +.task-item, +.finance-line { + display: grid; + grid-template-columns: auto minmax(0, 1fr) auto; + align-items: center; + gap: 11px; + padding: 12px 0; + border-bottom: 1px solid var(--line); +} + +.task-item:last-child, +.finance-line:last-child { + border-bottom: 0; +} + +.task-icon, +.flow-badge { + display: grid; + width: 32px; + height: 32px; + place-items: center; + border-radius: 7px; + background: var(--blue-soft); + color: var(--blue); + font-weight: 800; +} + +.task-icon svg, +.flow-badge svg { + width: 17px; + height: 17px; +} + +.task-icon.danger-icon, +.receipt-badge { + background: var(--danger-soft); + color: var(--danger); +} + +.payment-badge { + background: var(--success-soft); + color: var(--success); +} + +.task-item strong, +.finance-line strong { + display: block; + overflow: hidden; + color: var(--text); + font-size: 12px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.task-item small, +.finance-line small { + display: block; + overflow: hidden; + color: var(--muted); + font-size: 11px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.flow-note, +.inline-note { + margin-top: 12px; + padding: 10px 11px; + border-left: 3px solid var(--blue); + background: #f3f7fb; + color: var(--muted); + font-size: 11px; +} + +.compact-empty { + min-height: 110px; +} + +.empty-state, +.load-wrap { + display: flex; + min-height: 140px; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 5px; + padding: 25px; + color: var(--muted); + text-align: center; +} + +.empty-state > svg { + width: 25px; + height: 25px; + margin-bottom: 2px; + color: var(--success); +} + +.empty-state strong { + color: var(--body); + font-size: 13px; +} + +.empty-state span { + font-size: 12px; +} + +.loader { + width: 25px; + height: 25px; + border: 3px solid #d5e0ea; + border-top-color: var(--blue); + border-radius: 50%; + animation: spin .7s linear infinite; +} + +.skeleton-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 13px; +} + +.skeleton-card { + height: 125px; + border-radius: var(--radius); + background: #e8eef4; + animation: skeleton-pulse 1.4s ease-in-out infinite alternate; +} + +.skeleton-card.wide { + grid-column: 1 / -1; + height: 245px; +} + +@keyframes skeleton-pulse { + to { + background: #f7f9fb; + } +} + +@keyframes spin { + to { + transform: rotate(360deg); + } +} + +.dashboard-error { + display: flex; + min-height: 260px; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 9px; + padding: 32px; + text-align: center; +} + +.dashboard-error > svg { + width: 28px; + height: 28px; + color: var(--danger); +} + +.dashboard-error strong { + color: var(--navy); + font-size: 15px; +} + +.dashboard-error p { + margin-bottom: 6px; + color: var(--muted); + font-size: 12px; +} + +.table-wrap { + min-width: 0; + max-width: 100%; + overflow-x: auto; +} + +.data-table { + width: 100%; + border-collapse: collapse; + white-space: nowrap; + font-size: 12px; +} + +.data-table th { + padding: 11px 13px; + border-bottom: 1px solid var(--line); + background: var(--surface-raised); + color: var(--muted); + font-size: 11px; + font-weight: 700; + text-align: left; +} + +.data-table td { + padding: 13px; + border-bottom: 1px solid var(--line); + color: var(--body); + vertical-align: middle; +} + +.data-table tr:last-child td { + border-bottom: 0; +} + +.data-table tbody tr:hover { + background: #fbfcfe; +} + +.data-table td strong, +.data-table td small { + display: block; +} + +.data-table td strong { + color: var(--text); + font-size: 12px; +} + +.data-table td small { + color: var(--quiet); + font-size: 11px; +} + +.amount { + font: 700 12px var(--mono); + font-variant-numeric: tabular-nums; + text-align: right !important; +} + +.table-action { + display: inline-flex; + min-height: 30px; + align-items: center; + gap: 4px; + padding: 4px 8px; + border: 1px solid transparent; + border-radius: 5px; + background: transparent; + color: var(--blue); + font-size: 11px; + font-weight: 700; + white-space: nowrap; +} + +.table-action:hover { + border-color: #b9d2ee; + background: var(--blue-soft); +} + +.strong-link { + font-family: var(--mono); +} + +.card-link { + display: inline-flex; + align-items: center; + gap: 4px; + color: var(--blue); + font-size: 12px; + font-weight: 700; + white-space: nowrap; +} + +.tag { + display: inline-flex; + min-height: 25px; + align-items: center; + gap: 5px; + padding: 4px 8px; + border-radius: 99px; + background: #edf1f5; + color: #657586; + font-size: 11px; + font-weight: 700; + line-height: 1.2; + white-space: nowrap; +} + +.tag::before { + width: 6px; + height: 6px; + border-radius: 50%; + background: #8794a0; + content: ""; +} + +.tag.info { + background: var(--blue-soft); + color: var(--blue); +} + +.tag.info::before { + background: var(--blue); +} + +.tag.pending { + background: var(--warning-soft); + color: var(--warning); +} + +.tag.pending::before { + background: var(--warning); +} + +.tag.success { + background: var(--success-soft); + color: var(--success); +} + +.tag.success::before { + background: var(--success); +} + +.tag.danger { + background: var(--danger-soft); + color: var(--danger); +} + +.tag.danger::before { + background: var(--danger); +} + +.tag.draft, +.tag.neutral { + background: #edf1f5; + color: var(--muted); +} + +.muted-copy { + color: var(--muted); + font-size: 12px; +} + +.toggle { + position: relative; + display: inline-flex; + width: 36px; + height: 20px; + align-items: center; +} + +.toggle input { + position: absolute; + width: 1px; + height: 1px; + opacity: 0; +} + +.toggle-slider { + width: 36px; + height: 20px; + border-radius: 99px; + background: #cbd5df; + transition: background-color .15s ease; +} + +.toggle-slider::before { + display: block; + width: 16px; + height: 16px; + margin: 2px; + border-radius: 50%; + background: #fff; + box-shadow: 0 1px 3px rgba(16, 42, 67, .22); + content: ""; + transition: transform .15s ease; +} + +.toggle input:checked + .toggle-slider { + background: var(--success); +} + +.toggle input:checked + .toggle-slider::before { + transform: translateX(16px); +} + +.tabs { + display: flex; + overflow-x: auto; + border-bottom: 1px solid var(--line); +} + +.tab { + position: relative; + flex: none; + padding: 13px 17px; + border: 0; + background: transparent; + color: var(--muted); + font-size: 12px; + font-weight: 700; +} + +.tab.active { + color: var(--blue); +} + +.tab.active::after { + position: absolute; + right: 12px; + bottom: -1px; + left: 12px; + height: 2px; + background: var(--blue); + content: ""; +} + +.filter-bar { + display: flex; + align-items: center; + gap: 9px; + flex-wrap: wrap; + padding: 13px 16px; + border-bottom: 1px solid var(--line); +} + +.filter-search { + display: flex; + min-width: min(260px, 100%); + max-width: 100%; + height: 38px; + align-items: center; + gap: 7px; + padding: 0 10px; + border: 1px solid var(--line-strong); + border-radius: 6px; + color: var(--muted); +} + +.filter-search input { + width: 100%; + border: 0; + outline: 0; + background: transparent; + font-size: 12px; +} + +.filter-bar select, +.select { + height: 38px; + padding: 0 10px; + border: 1px solid var(--line-strong); + border-radius: 6px; + background: #fff; + color: var(--body); + font-size: 12px; +} + +.filter-spacer { + flex: 1; +} + +.status-strip { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 1px; + margin-bottom: 15px; + overflow: hidden; + border: 1px solid var(--line); + border-radius: var(--radius); + background: var(--line); +} + +.status-strip > div { + display: flex; + align-items: center; + justify-content: space-between; + gap: 7px; + padding: 12px; + background: #fff; +} + +.status-strip small { + color: var(--muted); + font-size: 11px; +} + +.workflow, +.step-rail { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 0; + margin-bottom: 15px; + padding: 16px 18px; + border: 1px solid var(--line); + border-radius: var(--radius); + background: #fff; +} + +.workflow-step, +.step { + position: relative; + display: flex; + align-items: center; + gap: 9px; +} + +.workflow-step:not(:last-child)::after, +.step:not(:last-child)::after { + position: absolute; + top: 13px; + right: 10px; + left: 28px; + height: 1px; + background: #cad7e4; + content: ""; +} + +.workflow-step > span, +.step > span { + position: relative; + z-index: 1; + display: grid; + width: 27px; + height: 27px; + place-items: center; + border: 1px solid #c4d1de; + border-radius: 50%; + background: #fff; + color: var(--muted); + font: 700 11px var(--mono); +} + +.workflow-step > div, +.step strong { + position: relative; + z-index: 1; + background: #fff; +} + +.workflow-step strong, +.workflow-step small { + display: block; +} + +.workflow-step strong, +.step strong { + padding-right: 8px; + font-size: 12px; +} + +.workflow-step small { + color: var(--muted); + font-size: 11px; +} + +.workflow-step.success > span, +.step.done > span { + border-color: var(--success); + background: var(--success); + color: #fff; +} + +.workflow-step.pending > span, +.step.active > span { + border-color: var(--warning); + background: var(--warning-soft); + color: var(--warning); +} + +.detail-layout { + display: grid; + grid-template-columns: minmax(0, 1fr) 295px; + gap: 15px; +} + +.side-panel { + position: sticky; + top: 105px; + height: max-content; +} + +.summary-block { + padding: 17px; + border-bottom: 1px solid var(--line); +} + +.summary-block:last-child { + border-bottom: 0; +} + +.summary-block h3 { + margin-bottom: 11px; + font-size: 12px; +} + +.amount-highlight { + color: var(--blue); + font: 800 21px var(--mono); +} + +.summary-row, +.summary-total { + display: flex; + justify-content: space-between; + gap: 10px; + margin: 9px 0; + color: var(--muted); + font-size: 12px; +} + +.summary-row strong, +.summary-total strong { + color: var(--text); +} + +.summary-total { + padding-top: 11px; + border-top: 1px solid var(--line); +} + +.source-card { + margin: 15px 0; + border: 1px solid #cbdceb; + border-radius: var(--radius); + background: #f8fbfe; +} + +.source-card-head { + display: flex; + justify-content: space-between; + gap: 12px; + padding: 15px 18px; + border-bottom: 1px solid #dce5ee; +} + +.source-card h3 { + margin-top: 4px; + color: var(--navy); + font-size: 15px; +} + +.source-card h3 small { + margin-left: 6px; + color: var(--blue); + font: 11px var(--mono); +} + +.source-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 1px; + margin: 14px 18px; + border: 1px solid var(--line); + background: var(--line); +} + +.source-grid > div { + padding: 10px 12px; + background: #fff; +} + +.source-grid span { + display: block; + color: var(--muted); + font-size: 11px; +} + +.source-grid strong { + font-size: 12px; +} + +.source-card > p { + padding: 0 18px 15px; + color: var(--muted); + font-size: 11px; +} + +.source-card > p b { + color: var(--blue); +} + +.form-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 15px; + padding: 19px; +} + +.field { + display: flex; + min-width: 0; + flex-direction: column; + gap: 5px; +} + +.field.full { + grid-column: 1 / -1; +} + +.field label { + color: var(--muted); + font-size: 12px; + font-weight: 700; +} + +.field em { + color: var(--danger); + font-style: normal; +} + +.field input, +.field select, +.field textarea { + width: 100%; + min-height: 40px; + padding: 8px 10px; + border: 1px solid var(--line-strong); + border-radius: 6px; + background: #fff; + color: var(--text); + font-size: 13px; +} + +.field textarea { + min-height: 92px; + resize: vertical; +} + +.field input[readonly], +.field textarea[readonly] { + background: var(--surface); +} + +.form-help { + margin: 3px 0; + color: var(--muted); + font-size: 11px; +} + +.expense-items { + padding: 0 19px; +} + +.expense-item { + position: relative; + display: grid; + grid-template-columns: minmax(160px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); + gap: 8px; + align-items: start; + margin-bottom: 9px; + padding: 12px 8px; + border: 1px solid var(--line); + border-radius: 8px; +} + +.expense-item:has(> .remove-item) { + grid-template-columns: minmax(160px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr) 34px; +} + +.expense-item-title { + padding-top: 9px; + color: var(--muted); + font-size: 12px; +} + +.remove-item { + margin-top: 28px; + border: 0; + background: transparent; + color: var(--danger); +} + +.items-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 19px 19px 10px; +} + +.items-header h3 { + font-size: 14px; +} + +.amount-summary { + display: flex; + justify-content: space-between; + margin: 12px 19px; + padding: 12px 15px; + border-radius: 8px; + background: var(--surface); + color: var(--muted); + font-size: 12px; +} + +.amount-summary strong { + color: var(--blue); + font: 700 17px var(--mono); +} + +.amount-mismatch strong, +.amount-error { + color: var(--danger); +} + +.amount-error { + margin: 0 19px 12px; + font-size: 12px; +} + +.timeline { + position: relative; + margin: 3px 18px; + padding: 4px 0 5px 25px; + border-left: 1px solid #c5d3df; +} + +.timeline-item { + position: relative; + padding: 0 0 20px 2px; +} + +.timeline-item:last-child { + padding-bottom: 0; +} + +.timeline-dot { + position: absolute; + top: 4px; + left: -30px; + width: 9px; + height: 9px; + border: 2px solid #fff; + border-radius: 50%; + background: var(--blue); + box-shadow: 0 0 0 1px var(--blue); +} + +.timeline-item.pending .timeline-dot { + background: #fff; + box-shadow: 0 0 0 1px #b9c9d8; +} + +.timeline-item.done .timeline-dot { + background: var(--success); + box-shadow: 0 0 0 1px var(--success); +} + +.timeline-item strong { + font-size: 12px; +} + +.timeline-item p { + margin-top: 2px; + color: var(--muted); + font-size: 12px; +} + +.timeline-item time { + display: block; + margin-top: 3px; + color: var(--quiet); + font: 10px var(--mono); +} + +.tl-dot { + width: 9px; + height: 9px; + margin: 6px 0 0 -30px; + border-radius: 50%; + background: var(--blue); + box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue); +} + +.tl-content { + margin-left: 2px; +} + +.tl-content strong, +.tl-content span, +.tl-content small { + display: block; +} + +.tl-content strong { + font-size: 12px; +} + +.tl-content span { + color: var(--body); + font-size: 12px; +} + +.tl-content small { + color: var(--quiet); + font: 10px var(--mono); +} + +.attachment-grid { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px; + padding: 16px; +} + +.attachment-item { + display: flex; + align-items: center; + gap: 9px; + padding: 11px; + border: 1px solid var(--line); + border-radius: 7px; +} + +.attachment-item > div { + min-width: 0; + flex: 1; +} + +.attachment-item strong, +.attachment-item small { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.attachment-item strong { + font-size: 12px; +} + +.attachment-item small { + color: var(--muted); + font-size: 11px; +} + +.file-icon { + display: grid; + width: 31px; + height: 34px; + place-items: center; + border-radius: 5px; + background: var(--danger-soft); + color: var(--danger); + font: 700 9px var(--mono); +} + +.inline-alert { + display: flex; + align-items: center; + gap: 9px; + margin-bottom: 15px; + padding: 11px 13px; + border-left: 3px solid var(--warning); + border-radius: 6px; + background: var(--warning-soft); + color: var(--warning); + font-size: 12px; +} + +.inline-alert b { + display: grid; + width: 20px; + height: 20px; + place-items: center; + border-radius: 50%; + background: var(--warning); + color: #fff; +} + +.inline-alert span { + flex: 1; +} + +.inline-alert.danger { + border-color: var(--danger); + background: var(--danger-soft); + color: var(--danger); +} + +.payment-dialog { + width: min(650px, calc(100vw - 24px)); + max-height: 90vh; + padding: 0; + border: 0; + border-radius: 10px; + overflow: auto; + box-shadow: 0 24px 70px rgba(16, 42, 67, .28); +} + +.payment-dialog::backdrop, +.notification-dialog::backdrop { + background: rgba(16, 42, 67, .52); +} + +.payment-dialog .modal-head, +.notification-modal-head { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + padding: 18px 21px; + border-bottom: 1px solid var(--line); +} + +.payment-dialog .modal-head h2 { + font-size: 17px; +} + +.payment-dialog .modal-head p { + margin-top: 3px; + color: var(--muted); + font-size: 12px; +} + +.modal-close { + display: grid; + width: 40px; + height: 40px; + place-items: center; + border: 0; + background: transparent; + color: var(--muted); + font-size: 23px; +} + +.modal-body { + padding: 20px 21px; +} + +.modal-actions { + display: flex; + justify-content: flex-end; + gap: 8px; + padding: 14px 21px; + border-top: 1px solid var(--line); + background: var(--surface); +} + +.payment-summary { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 1px; + margin-bottom: 13px; + border: 1px solid var(--line); + background: var(--line); +} + +.payment-summary > div { + padding: 12px; + background: #fff; +} + +.payment-summary span, +.payment-summary strong { + display: block; +} + +.payment-summary span { + color: var(--muted); + font-size: 11px; +} + +.payment-summary strong { + margin-top: 3px; + color: var(--blue); + font: 700 16px var(--mono); +} + +.payment-record { + padding: 8px 0; + border-bottom: 1px solid var(--line); +} + +.payment-record:last-child { + border: 0; +} + +.payment-record strong, +.payment-record span, +.payment-record small { + display: block; +} + +.payment-record strong { + font: 11px var(--mono); +} + +.payment-record span, +.payment-record small { + color: var(--muted); + font-size: 11px; +} + +.mini-status-legend { + display: flex; + gap: 16px; + margin-bottom: 12px; + color: var(--muted); + font-size: 11px; +} + +.form-grid + .btn, +.login-card .btn { + transition: background-color .15s ease, border-color .15s ease, color .15s ease; +} + +/* Element Plus controls use the same restrained geometry as the native controls. */ +.el-button { + border-radius: 6px; + font-weight: 700; +} + +.el-input__wrapper, +.el-select__wrapper { + min-height: 40px; + border-radius: 6px; + box-shadow: 0 0 0 1px var(--line-strong) inset; +} + +.el-input__wrapper.is-focus, +.el-select__wrapper.is-focused { + box-shadow: 0 0 0 1px var(--blue) inset; +} + +.el-table { + --el-table-border-color: var(--line); + --el-table-header-bg-color: var(--surface-raised); + --el-table-row-hover-bg-color: #fbfcfe; + color: var(--body); +} + +.el-table th.el-table__cell { + color: var(--muted); + font-size: 12px; + font-weight: 700; +} + +.el-message-box, +.el-dialog { + border-radius: 9px; +} + +.login-screen { + min-height: 100vh; + padding: 40px; + background: #112f4e; + color: #fff; +} + +.login-panel { + width: min(1120px, 100%); + margin: auto; +} + +.login-brand { + margin-bottom: 44px; +} + +.login-brand small { + color: #b8cce1; +} + +.login-layout { + display: grid; + grid-template-columns: minmax(0, 1fr) 400px; + align-items: center; + gap: 70px; +} + +.login-copy { + max-width: 650px; +} + +.login-copy h1 { + margin: 9px 0 13px; + font-size: 38px; + line-height: 1.35; + letter-spacing: -.04em; +} + +.login-copy h1 b { + color: #a8ccf5; +} + +.login-copy p { + max-width: 550px; + color: #d5e2ef; + line-height: 1.9; +} + +.login-points { + display: flex; + flex-direction: column; + gap: 11px; + margin-top: 25px; + color: #c7d7e7; + font-size: 12px; +} + +.login-points b { + display: inline-grid; + width: 25px; + height: 20px; + margin-right: 8px; + place-items: center; + border-radius: 4px; + background: rgba(255, 255, 255, .1); + color: #a8ccf5; + font: 10px var(--mono); +} + +.login-card { + padding: 32px; + border: 1px solid rgba(255, 255, 255, .18); + border-radius: 10px; + background: rgba(255, 255, 255, .08); +} + +.login-card h2 { + margin: 10px 0 5px; + font-size: 20px; +} + +.login-card p { + color: #d5e2ef; + font-size: 12px; + line-height: 1.7; +} + +.feishu-logo { + display: grid; + width: 39px; + height: 39px; + margin-bottom: 15px; + place-items: center; + border-radius: 9px; + background: #fff; + color: var(--blue); + font-weight: 800; +} + +.login-card .btn { + width: 100%; + margin-top: 20px; + border-color: rgba(255, 255, 255, .28); + background: rgba(255, 255, 255, .12); + color: #fff; +} + +.login-card .btn:hover { + background: rgba(255, 255, 255, .2); + color: #fff; +} + +.login-card .mock-button { + margin-top: 10px; +} + +.login-divider { + display: flex; + align-items: center; + gap: 10px; + margin: 19px 0 3px; + color: #b8cce1; + font-size: 11px; +} + +.login-divider::before, +.login-divider::after { + height: 1px; + flex: 1; + background: rgba(255, 255, 255, .16); + content: ""; +} + +.local-login { + display: flex; + flex-direction: column; + gap: 8px; +} + +.local-login input { + width: 100%; + height: 42px; + padding: 8px 12px; + border: 1px solid rgba(255, 255, 255, .2); + border-radius: 6px; + outline: 0; + background: rgba(255, 255, 255, .08); + color: #fff; +} + +.local-login input::placeholder { + color: #aac0d4; +} + +.local-login .btn { + margin-top: 0; +} + +.login-foot, +.login-card-foot, +.login-loading { + color: #b8cce1; + font-size: 11px; +} + +.login-foot { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + margin-top: 35px; +} + +.login-card-foot { + display: flex; + align-items: center; + gap: 7px; + margin-top: 18px; +} + +.login-loading { + margin-top: 18px; + text-align: center; +} + +.text-button { + display: block; + width: 100%; + margin-top: 11px; + border: 0; + background: transparent; + color: #b8cce1; + font-size: 12px; + text-decoration: underline; + text-underline-offset: 3px; +} + +.text-button:hover { + color: #fff; +} + +.notification-dialog { + display: block; + position: fixed; + inset: 0; + width: 100%; + max-width: none; + height: 100%; + max-height: none; + margin: 0; + padding: 0; + border: 0; + background: transparent; + color: var(--text); + overflow: hidden; + pointer-events: auto; +} + +.notification-dialog:not([open]) { + display: none; +} + +@media (max-width: 1180px) { + :root { + --side: 220px; + } + + .page-stage { + padding: 24px 20px 50px; + } + + .topbar, + .data-sync-banner { + padding-right: 20px; + padding-left: 20px; + } + + .metrics { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .grid.two, + .detail-layout { + grid-template-columns: minmax(0, 1fr); + } + + .side-panel { + position: static; + } + + .form-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .expense-item, + .expense-item:has(> .remove-item) { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .expense-item > .remove-item { + grid-column: 1 / -1; + justify-self: end; + margin-top: 0; + min-height: 32px; + } +} + +@media (max-width: 900px) { + .sidebar { + transform: translateX(-100%); + transition: transform .2s ease; + } + + .sidebar.open { + transform: translateX(0); + } + + .main-area { + margin-left: 0; + } + + .mobile-menu { + display: grid; + } + + .mobile-mask { + position: fixed; + inset: 0; + z-index: 35; + display: none; + background: rgba(16, 42, 67, .52); + } + + .mobile-mask.open { + display: block; + } + + .login-layout { + grid-template-columns: 1fr; + gap: 30px; + } + + .login-card { + max-width: 500px; + } + + .search-box { + width: 210px; + } + +} + +@media (min-width: 901px) { + .mobile-menu, + .mobile-mask { + display: none; + } +} + +@media (max-width: 680px) { + .login-screen { + padding: 26px 16px; + } + + .login-layout { + display: block; + } + + .login-copy { + margin-bottom: 27px; + } + + .login-copy h1 { + font-size: 30px; + } + + .login-card { + padding: 24px; + } + + .topbar { + min-height: 60px; + padding: 0 14px; + } + + .breadcrumb span, + .breadcrumb i, + .search-box, + .role-switch > span:nth-child(2), + .role-switch i { + display: none; + } + + .data-sync-banner { + padding: 7px 14px; + } + + .data-sync-banner p { + font-size: 11px; + } + + .page-stage { + padding: 20px 15px 42px; + } + + .page-head { + display: block; + } + + .page-head h1 { + font-size: 24px; + } + + .head-actions { + justify-content: flex-start; + margin-top: 13px; + } + + .metrics, + .finance-kpis, + .skeleton-grid { + grid-template-columns: 1fr; + } + + .welcome-panel { + display: block; + padding: 18px; + } + + .sync-status { + min-width: 0; + margin-top: 15px; + } + + .status-strip { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .workflow, + .step-rail { + display: flex; + gap: 25px; + overflow-x: auto; + } + + .workflow-step, + .step { + min-width: 125px; + } + + .filter-search { + min-width: 100%; + order: -1; + } + + .filter-bar select { + min-width: 135px; + flex: 1; + } + + .filter-spacer { + display: none; + } + + .responsive-table { + white-space: normal; + } + + .responsive-table thead { + display: none; + } + + .responsive-table, + .responsive-table tbody, + .responsive-table tr, + .responsive-table td { + display: block; + width: 100%; + } + + .responsive-table tr { + padding: 10px 14px; + border-bottom: 1px solid var(--line); + } + + .responsive-table td { + display: grid; + grid-template-columns: 105px minmax(0, 1fr); + gap: 9px; + padding: 5px 0; + border: 0; + text-align: left !important; + } + + .responsive-table td::before { + color: var(--muted); + content: attr(data-label); + font-size: 11px; + font-weight: 700; + } + + .responsive-table td[data-label="操作"] { + display: flex; + justify-content: flex-end; + } + + .responsive-table td[data-label="操作"]::before { + display: none; + } + + .source-grid { + grid-template-columns: 1fr; + } + + .source-card-head { + display: block; + } + + .attachment-grid { + grid-template-columns: 1fr; + } + + .form-grid { + grid-template-columns: 1fr; + } + + .field.full { + grid-column: auto; + } + + .expense-item, + .expense-item:has(> .remove-item) { + grid-template-columns: minmax(0, 1fr); + } + + .expense-item-title { + position: absolute; + } + + .remove-item { + position: static; + margin: 0; + } + + .amount-summary { + display: block; + } + + .amount-summary strong { + display: block; + margin-top: 5px; + } + + .side-panel { + order: -1; + } + + .payment-summary { + grid-template-columns: 1fr; + } + + .mini-status-legend { + gap: 9px; + flex-wrap: wrap; + } +} + +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + scroll-behavior: auto !important; + animation: none !important; + transition: none !important; + } +} + +@media print { + .sidebar, + .topbar, + .data-sync-banner, + .head-actions, + .side-panel { + display: none !important; + } + + .main-area { + margin: 0; + } + + .page-stage { + padding: 20px; + } + + .card, + .section-card { + box-shadow: none; + } +} diff --git a/src/components/FeishuDirectoryPanel.vue b/src/components/FeishuDirectoryPanel.vue new file mode 100644 index 0000000..f489831 --- /dev/null +++ b/src/components/FeishuDirectoryPanel.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/components/ReimbursementForm.vue b/src/components/ReimbursementForm.vue new file mode 100644 index 0000000..3806e8c --- /dev/null +++ b/src/components/ReimbursementForm.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..839b637 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1,16 @@ +/// + +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} + +interface ImportMetaEnv { + readonly VITE_APP_TITLE: string + readonly VITE_AUTH_MODE?: 'local' | 'feishu' | string +} + +interface ImportMeta { + readonly env: ImportMetaEnv +} diff --git a/src/feishuDirectory.test.mjs b/src/feishuDirectory.test.mjs new file mode 100644 index 0000000..79a0dd6 --- /dev/null +++ b/src/feishuDirectory.test.mjs @@ -0,0 +1,373 @@ +import test from 'node:test' +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import { parse } from '@vue/compiler-sfc' +import ts from 'typescript' +import { computed, ref, watch } from 'vue' + +const source = path => readFileSync(new URL(path, import.meta.url), 'utf8') +const panel = parse(source('./components/FeishuDirectoryPanel.vue')).descriptor +const result = (overrides = {}) => ({ runId: 'new', state: 'SUCCEEDED', complete: true, applied: true, ...overrides }) +const snapshot = (overrides = {}) => ({ configured: true, running: false, lastSuccessfulRunId: null, lastRun: null, ...overrides }) + +// Execute the actual setup state machine with injected API/lifecycle/timers. +// No DOM dependency; template/layout checks below supplement these tests. +function setup(api, permissions = ['system:feishu:sync']) { + let cleanup, scheduled + const events = [] + const script = ts.transpileModule(panel.scriptSetup.content.replace(/^import .*$/gm, ''), { + compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None }, + }).outputText + const state = new Function('computed', 'ref', 'onMounted', 'onBeforeUnmount', 'defineEmits', 'useUserStore', 'feishuDirectoryApi', 'setTimeout', 'clearTimeout', `${script}\nreturn { refreshStatus, sync, syncDisabled, status, error, run, formatLocalDateTime };`)( + computed, ref, () => {}, fn => { cleanup = fn }, () => event => events.push(event), + () => ({ hasPermission: code => permissions.includes(code) }), api, + fn => { scheduled = fn; return 1 }, () => { scheduled = undefined }, + ) + return { ...state, events, cleanup: () => cleanup(), poll: () => scheduled?.() } +} + +test('directory route and menu are permission-only entry points', () => { + const router = source('./router/index.ts') + const layout = source('./views/Layout.vue') + const page = parse(source('./views/FeishuDirectory.vue')).descriptor + assert.match(router, /path: 'feishu-directory'/) + assert.match(router, /name: 'FeishuDirectory'/) + assert.match(router, /permission: \['system:feishu:sync', 'system:feishu:bind'\]/) + assert.doesNotMatch(router.slice(router.indexOf("name: 'FeishuDirectory'"), router.indexOf("name: 'IntegrationConfig'")), /system:user:view|demo-local-session|legacy/i) + assert.match(layout, /v-if="canAccess\('feishu-directory'\)"[\s\S]*to="\/feishu-directory"/) + assert.match(layout, /'feishu-directory': \['system:feishu:sync', 'system:feishu:bind'\]/) + assert.match(page.template.content, /FeishuDirectoryPanel/) + assert.doesNotMatch(page.template.content, /FEISHU DIRECTORY|

飞书通讯录<\/h1>|查看飞书通讯录同步状态和最近运行记录|通讯录设置/) + assert.doesNotMatch(page.scriptSetup.content, /canViewIntegration|system:integration:view/) + assert.doesNotMatch(page.template.content, /secret|credential|token/i) +}) + +test('directory timestamps use browser local time and safe fallbacks', () => { + const state = setup({ status: async () => snapshot() }) + const previousTz = process.env.TZ + process.env.TZ = 'Asia/Shanghai' + try { + assert.equal(state.formatLocalDateTime('2026-01-02T03:04:05.000Z'), '2026-01-02 11:04:05') + } finally { + if (previousTz === undefined) delete process.env.TZ + else process.env.TZ = previousTz + } + assert.equal(state.formatLocalDateTime('not-a-date'), '—') + assert.equal(state.formatLocalDateTime(null, '暂无'), '暂无') + assert.match(panel.template.content, /formatLocalDateTime\(run\.startedAt/) + assert.match(panel.template.content, /本地时间/) +}) + +test('API uses unwrapped endpoints, no POST body and bounded-sync timeout headroom', () => { + const api = source('./api/feishuDirectory.ts') + assert.match(api, /DIRECTORY_SYNC_TIMEOUT = 360_000/) + assert.match(api, /request.post\('\/feishu\/directory\/sync', undefined, \{ timeout: DIRECTORY_SYNC_TIMEOUT, signal \}\)/) + assert.match(api, /request.get\('\/feishu\/directory\/status'/) + assert.match(api, /organization: \(signal\?[\s\S]*request.get\('\/feishu\/directory\/organization'/) + for (const field of ['email', 'mobile', 'jobTitle', 'employeeType', 'avatarUrl', 'employmentStatus']) assert.match(api, new RegExp(`\\b${field}\\b`)) + assert.doesNotMatch(api, /eligibilityReason|eligible\??:/) + assert.doesNotMatch(api, /\/api\/feishu/) +}) + +test('organization API types expose Feishu IDs and detail fields', () => { + const api = source('./api/feishuDirectory.ts') + assert.match(api, /order: string\b/) + assert.match(api, /employeeType: number \| null/) + for (const field of ['userId', 'openId', 'email', 'mobile', 'jobTitle', 'avatarUrl', 'employmentStatus']) { + assert.match(api, new RegExp(`\\b${field}: string\\b`)) + assert.doesNotMatch(api, new RegExp(`\\b${field}: string \\| null`)) + } + assert.doesNotMatch(api, /employee(?:No|Number)/) +}) + +test('bind-only and missing permissions cannot submit; no legacy fallback', async () => { + for (const permissions of [[], ['system:feishu:bind']]) { + let posts = 0 + const state = setup({ status: async () => snapshot(), sync: async () => { posts++ } }, permissions) + await state.refreshStatus() + await state.sync() + assert.equal(state.syncDisabled.value, true) + assert.equal(posts, 0) + } + assert.match(panel.template.content, /v-if="canSync"/) + assert.doesNotMatch(panel.scriptSetup.content, /legacyAdmin|useLegacyFallback|userType/) + const users = source('./views/Users.vue') + assert.doesNotMatch(users, /FeishuDirectoryPanel|refreshDirectoryData/) +}) + +test('organization tree renders departments and employees with safe empty and refresh states', () => { + const parsed = parse(source('./views/FeishuDirectory.vue')) + const { template, scriptSetup } = parsed.descriptor + assert.deepEqual(parsed.errors, []) + assert.match(template.content, /@committed="refreshOrganization"/) + assert.match(template.content, /class="organization-tree"[^>]*role="tree"/) + assert.match(template.content, /v-for="item in visibleDepartments"/) + assert.match(template.content, /aria-expanded=/) + assert.match(template.content, /class="department-members"/) + assert.match(template.content, /v-for="user in paginatedSelectedUsers"/) + assert.match(template.content, /class="pagination-footer"/) + assert.match(template.content, / { + const page = parse(source('./views/FeishuDirectory.vue')).descriptor + const script = ts.transpileModule(page.scriptSetup.content.replace(/^import .*$/gm, ''), { + compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None }, + }).outputText + const state = new Function('computed', 'ref', 'watch', 'onMounted', 'onBeforeUnmount', 'useUserStore', 'feishuDirectoryApi', `${script}\nreturn { applyOrganization, selectDepartment, selectedPage, pageSize, pageSizes, totalPages, selectedUsers, paginatedSelectedUsers, handlePageChange, handlePageSizeChange };`)( + computed, + ref, + watch, + () => {}, + () => {}, + () => ({ permissionsLoaded: false, permissionsError: '', hasPermission: () => false }), + { organization: async () => ({}) }, + ) + const organization = { + snapshotState: 'FRESH', + departments: [ + { id: 'root', name: '总部', parentId: '', order: 0, memberCount: 25 }, + { id: 'other', name: '其他', parentId: '', order: 1, memberCount: 0 }, + ], + users: Array.from({ length: 25 }, (_, index) => ({ + userId: `user-${index + 1}`, + openId: `open-${index + 1}`, + name: `员工${index + 1}`, + departmentIds: ['root'], + })), + } + state.applyOrganization(organization) + assert.equal(state.pageSize.value, 10) + assert.deepEqual(state.pageSizes, [10, 20, 50, 100]) + assert.equal(state.selectedUsers.value.length, 25) + assert.equal(state.totalPages.value, 3) + assert.deepEqual(state.paginatedSelectedUsers.value.map(user => user.userId), ['user-1', 'user-2', 'user-3', 'user-4', 'user-5', 'user-6', 'user-7', 'user-8', 'user-9', 'user-10']) + + state.handlePageChange(2) + assert.equal(state.selectedPage.value, 2) + assert.equal(state.paginatedSelectedUsers.value[0].userId, 'user-11') + state.handlePageChange(3) + assert.equal(state.selectedPage.value, 3) + assert.equal(state.paginatedSelectedUsers.value.length, 5) + state.handlePageChange(99) + assert.equal(state.selectedPage.value, 3) + state.handlePageChange(0) + assert.equal(state.selectedPage.value, 1) + + state.handlePageChange(3) + state.handlePageSizeChange(20) + assert.equal(state.pageSize.value, 20) + assert.equal(state.selectedPage.value, 1) + assert.equal(state.totalPages.value, 2) + assert.equal(state.paginatedSelectedUsers.value.length, 20) + state.handlePageChange(99) + assert.equal(state.selectedPage.value, 2) + state.handlePageSizeChange(100) + assert.equal(state.pageSize.value, 100) + assert.equal(state.selectedPage.value, 1) + assert.equal(state.totalPages.value, 1) + + state.applyOrganization(organization) + assert.equal(state.selectedPage.value, 1) + state.handlePageChange(2) + state.selectDepartment('other') + assert.equal(state.selectedPage.value, 1) + assert.equal(state.totalPages.value, 1) + + const styles = page.styles.map(style => style.content).join('\n') + assert.match(styles, /\.directory-page \{[^}]*min-height: 100%/) + assert.match(styles, /\.organization-card \{[^}]*flex: 1 1 auto/) + assert.match(styles, /\.organization-layout \{[^}]*flex: 1 1 0/) + assert.match(styles, /\.organization-layout \{[^}]*height: auto[^}]*min-height: 0/) + assert.doesNotMatch(styles, /\.organization-layout \{[^}]*height: clamp\(/) + assert.match(styles, /min-height: 0/) + assert.match(styles, /\.member-list[^}]*overflow-y: auto/) + assert.match(styles, /\.pagination-footer[^}]*flex: none/) +}) + +test('department counts aggregate unique employees across descendants', () => { + const page = parse(source('./views/FeishuDirectory.vue')).descriptor + assert.match(page.template.content, /departmentMemberCounts\.get\(item\.node\.id\)/) + assert.match(page.scriptSetup.content, /const departmentMemberCounts = computed/) + assert.match(page.scriptSetup.content, /descendantDepartmentIds\.value\.get\(department\.id\)/) + assert.match(page.scriptSetup.content, /counts\.set\(department\.id, usersInDepartments\(ids\)\.length\)/) + + const script = ts.transpileModule(page.scriptSetup.content.replace(/^import .*$/gm, ''), { + compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None }, + }).outputText + const state = new Function('computed', 'ref', 'watch', 'onMounted', 'onBeforeUnmount', 'useUserStore', 'feishuDirectoryApi', `${script}\nreturn { applyOrganization, departmentMemberCounts, selectedUsers };`)( + computed, + ref, + watch, + () => {}, + () => {}, + () => ({ permissionsLoaded: false, permissionsError: '', hasPermission: () => false }), + { organization: async () => ({}) }, + ) + state.applyOrganization({ + snapshotState: 'FRESH', + lastSuccessfulAt: null, + departments: [ + { id: 'root', name: '总部', parentId: '', order: 0, memberCount: 1 }, + { id: 'child', name: '子部门', parentId: 'root', order: 0, memberCount: 2 }, + ], + users: [ + { openId: 'open-root', userId: 'employee-root', name: '甲', email: '', mobile: '', jobTitle: '', employeeType: 1, avatarUrl: '', employmentStatus: '', departmentIds: ['root'] }, + { openId: 'open-child', userId: 'employee-child', name: '乙', email: '', mobile: '', jobTitle: '', employeeType: null, avatarUrl: '', employmentStatus: '', departmentIds: ['child'] }, + { openId: 'open-child-duplicate', userId: 'employee-child', name: '乙', email: '', mobile: '', jobTitle: '', employeeType: null, avatarUrl: '', employmentStatus: '', departmentIds: ['child'] }, + ], + }) + assert.equal(state.departmentMemberCounts.value.get('root'), 2) + assert.equal(state.departmentMemberCounts.value.get('child'), 1) + assert.equal(state.selectedUsers.value.length, 2) + assert.equal(state.selectedUsers.value.find(user => user.userId === 'employee-root').employeeType, 1) + assert.equal(state.selectedUsers.value.find(user => user.userId === 'employee-child').employeeType, null) +}) + +test('organization normalization provides safe Feishu ID fallbacks and an ID-free deduplication key', () => { + const page = parse(source('./views/FeishuDirectory.vue')).descriptor + const script = ts.transpileModule(page.scriptSetup.content.replace(/^import .*$/gm, ''), { + compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None }, + }).outputText + const state = new Function('computed', 'ref', 'watch', 'onMounted', 'onBeforeUnmount', 'useUserStore', 'feishuDirectoryApi', `${script}\nreturn { applyOrganization, selectedUsers };`)( + computed, + ref, + watch, + () => {}, + () => {}, + () => ({ permissionsLoaded: false, permissionsError: '', hasPermission: () => false }), + { organization: async () => ({}) }, + ) + state.applyOrganization({ + snapshotState: 'FRESH', + lastSuccessfulAt: null, + departments: [{ id: 'root', name: '总部', parentId: '', order: 0, memberCount: 2 }], + users: [ + { name: '无 ID 员工', email: '', mobile: '', departmentIds: ['root'] }, + { name: '无 ID 员工', email: '', mobile: '', departmentIds: ['root'] }, + ], + }) + assert.equal(state.selectedUsers.value.length, 1) + assert.equal(state.selectedUsers.value[0].userId, '--') + assert.equal(state.selectedUsers.value[0].openId, '--') + assert.equal(state.selectedUsers.value[0].jobTitle, '--') + assert.equal(state.selectedUsers.value[0].email, '--') + assert.equal(state.selectedUsers.value[0].mobile, '--') + assert.equal(state.selectedUsers.value[0].employmentStatus, '--') + assert.equal(state.selectedUsers.value[0].employeeType, null) + assert.match(page.template.content, /user\.employeeType \?\? '--'/) +}) + +test('department order stays precise for decimal strings and accepts legacy numbers', () => { + const page = parse(source('./views/FeishuDirectory.vue')).descriptor + const script = ts.transpileModule(page.scriptSetup.content.replace(/^import .*$/gm, ''), { + compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None }, + }).outputText + const state = new Function('computed', 'ref', 'watch', 'onMounted', 'onBeforeUnmount', 'useUserStore', 'feishuDirectoryApi', `${script}\nreturn { applyOrganization, departmentNodes };`)( + computed, + ref, + watch, + () => {}, + () => {}, + () => ({ permissionsLoaded: false, permissionsError: '', hasPermission: () => false }), + { organization: async () => ({}) }, + ) + state.applyOrganization({ + snapshotState: 'FRESH', + lastSuccessfulAt: null, + departments: [ + { id: 'larger', name: '较大', parentId: '', order: '9007199254740993', memberCount: 0 }, + { id: 'smaller', name: '较小', parentId: '', order: '9007199254740992', memberCount: 0 }, + { id: 'legacy', name: '旧版', parentId: '', order: 3, memberCount: 0 }, + ], + users: [], + }) + assert.deepEqual(state.departmentNodes.value.map(node => [node.id, node.order]), [ + ['legacy', '3'], + ['smaller', '9007199254740992'], + ['larger', '9007199254740993'], + ]) +}) + +test('duplicate submits blocked and committed success emitted only once', async () => { + let resolve, posts = 0, current = snapshot() + const state = setup({ status: async () => current, sync: () => { posts++; return new Promise(done => { resolve = done }) } }) + await state.refreshStatus() + const pending = state.sync() + await state.sync() + assert.equal(posts, 1) + assert.equal(state.syncDisabled.value, true) + current = snapshot({ lastSuccessfulRunId: 'new', lastRun: result() }) + resolve(result()) + await pending + assert.deepEqual(state.events, ['committed']) + assert.equal(state.syncDisabled.value, false) +}) + +test('timeout queries status, stays locked on status failure, then polls running to success', async () => { + let fail = false, current = snapshot(), reads = 0 + const state = setup({ status: async () => { reads++; if (fail) throw Error('offline'); return current }, sync: async () => { fail = true; throw Error('timeout') } }) + await state.refreshStatus() + await state.sync() + assert.equal(reads, 2) + assert.equal(state.syncDisabled.value, true) + assert.match(state.error.value, /重试查询状态/) + fail = false + current = snapshot({ running: true, lastRun: result({ state: 'RUNNING', applied: false }) }) + await state.refreshStatus() + assert.equal(state.syncDisabled.value, true) + current = snapshot({ lastSuccessfulRunId: 'new', lastRun: result() }) + await state.poll() + assert.deepEqual(state.events, ['committed']) + assert.equal(state.syncDisabled.value, false) + state.cleanup() + assert.equal(state.poll(), undefined) +}) + +test('failed run preserves last success and exposes server failure without success event', async () => { + let current = snapshot({ lastSuccessfulRunId: 'old', lastSuccessfulAt: 'yesterday' }) + const failed = result({ state: 'FAILED', applied: false, complete: false, errorCode: 'LIMIT', errorMessage: '超出限制' }) + const state = setup({ status: async () => current, sync: async () => { current = { ...current, lastRun: failed }; throw Error('503') } }) + await state.refreshStatus() + await state.sync() + assert.deepEqual(state.events, []) + assert.equal(state.status.value.lastSuccessfulAt, 'yesterday') + assert.equal(state.run.value.errorCode, 'LIMIT') + assert.equal(state.syncDisabled.value, false) +}) + +test('unconfigured service is disabled; panel has accessible status, retry and wrapping layout', async () => { + const state = setup({ status: async () => snapshot({ configured: false }) }) + await state.refreshStatus() + assert.equal(state.syncDisabled.value, true) + assert.match(panel.template.content, /aria-live="polite"/) + assert.match(panel.template.content, /role="alert"/) + assert.match(panel.template.content, /同步飞书员工资料与目录状态;不作为 OAuth 登录条件;同步失败不覆盖上次结果/) + assert.match(panel.styles[0].content, /flex-wrap: wrap/) + assert.match(panel.styles[0].content, /overflow-wrap: anywhere/) + assert.match(source('./views/Login.vue'), /通讯录同步用于员工资料与业务管理,不作为登录条件/) +}) diff --git a/src/layout.test.mjs b/src/layout.test.mjs new file mode 100644 index 0000000..2335157 --- /dev/null +++ b/src/layout.test.mjs @@ -0,0 +1,95 @@ +// Structural layout regressions. Run with: node --test src/layout.test.mjs +// These checks do not replace viewport/browser measurements. +import test from 'node:test' +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +import { parse as parseVue } from '@vue/compiler-sfc' +import postcss from 'postcss' + +const source = path => readFileSync(new URL(path, import.meta.url), 'utf8') +const css = postcss.parse(source('./assets/main.css')) +test('finance summary cards fill three columns without a vacant fourth track', () => { + assert.equal(declarations('.finance-kpis')['grid-template-columns'], 'repeat(3, minmax(0, 1fr))') + css.walkRules(rule => { + if (!rule.selector.split(',').map(selector => selector.trim()).includes('.finance-kpis')) return + if (rule.parent.type !== 'atrule') return + const tracks = rule.nodes.find(node => node.prop === 'grid-template-columns')?.value + assert.notEqual(tracks, 'repeat(2, minmax(0, 1fr))') + }) +}) + +function declarations(selector, stylesheet = css, responsive = false) { + const values = {} + stylesheet.walkRules(selector, rule => { + if (!responsive && rule.parent.type === 'atrule') return + rule.walkDecls(declaration => { values[declaration.prop] = declaration.value }) + }) + return values +} + +test('list pages opt in without fixed table or row heights', () => { + for (const name of ['Applications', 'FinanceReceipt', 'Payments', 'Sources', 'Logs', 'ExpenseTypes', 'Payees', 'Users']) { + const { descriptor, errors } = parseVue(source(`./views/${name}.vue`)) + assert.deepEqual(errors, []) + assert.match(descriptor.template.content, /class="[^"]*page-content/) + } + assert.equal(declarations('.main-area').display, 'flex') + assert.equal(declarations('.main-area')['min-height'], '100vh') + assert.equal(declarations('.page-stage').flex, '1 0 auto') + assert.equal(declarations('.data-table').height, undefined) + assert.equal(declarations('.table-wrap')['overflow-x'], 'auto') + assert.match(source('./views/Applications.vue'), /role="tabpanel"\s+class="fill-list-card"/) +}) + +test('metadata tables have keyboard-accessible local scroll regions and loading states', () => { + for (const name of ['Sources', 'ExpenseTypes', 'Payees']) { + const template = parseVue(source(`./views/${name}.vue`)).descriptor.template.content + assert.match(template, /class="table-wrap"[^<]*tabindex="0"[^<]*role="region"[^<]*> { + const text = source('./views/Users.vue') + const styles = postcss.parse(parseVue(text).descriptor.styles[0].content) + assert.match(text, /:class="\{ 'has-group-detail': selectedGroup \}"/) + assert.equal(declarations('.group-layout', styles)['grid-template-columns'], 'minmax(0, 1fr)') + assert.equal(declarations('.has-group-detail .group-layout', styles)['grid-template-columns'], 'minmax(0, .9fr) minmax(0, 1.1fr)') + assert.equal(declarations('.candidate-copy', styles)['min-width'], '0') +}) + +test('system management navigation is visible for admin, integration, or Feishu access', () => { + const template = parseVue(source('./views/Layout.vue')).descriptor.template.content + assert.match(template, /class="nav-group admin-nav" v-if="canAccess\('admin'\) \|\| canAccess\('integration'\) \|\| canAccess\('feishu-directory'\)"/) + assert.match(template, / { + const styles = postcss.parse(parseVue(source('./views/IntegrationConfig.vue')).descriptor.styles[0].content) + assert.equal(declarations('.integration-grid', styles)['align-items'], 'stretch') + assert.match(declarations('.integration-grid', styles)['grid-template-columns'], /auto-fit/) + assert.equal(declarations('.integration-card', styles)['flex-direction'], 'column') + assert.equal(declarations('.integration-body', styles).flex, '1') + assert.equal(declarations('.integration-actions', styles)['margin-top'], 'auto') +}) + +test('expense rows have four field tracks and an action track only with a delete button', () => { + const tracks = declarations('.expense-item')['grid-template-columns'] + assert.equal((tracks.match(/minmax\(/g) || []).length, 4) + assert.match(tracks, /^minmax\(160px,/) + assert.equal(declarations('.expense-item:has(> .remove-item)')['grid-template-columns'], `${tracks} 34px`) + const responsive = [] + css.walkRules(rule => { + if (rule.parent.type === 'atrule' && rule.selector.includes('.expense-item:has')) { + responsive.push([rule.parent.params, rule.nodes.find(node => node.prop === 'grid-template-columns')?.value]) + } + }) + assert.deepEqual(responsive, [ + ['(max-width: 1180px)', 'repeat(2, minmax(0, 1fr))'], + ['(max-width: 680px)', 'minmax(0, 1fr)'], + ]) + assert.equal(declarations('.side-panel').height, 'max-content') + assert.equal(declarations('.detail-layout')['grid-template-columns'], 'minmax(0, 1fr) 295px') +}) diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..9912db1 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,21 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import ElementPlus from 'element-plus' +import zhCn from 'element-plus/es/locale/lang/zh-cn' +import 'element-plus/dist/index.css' +import * as ElementPlusIconsVue from '@element-plus/icons-vue' +import App from './App.vue' +import router from './router' +import './assets/main.css' + +const app = createApp(App) + +// Register Element Plus icons +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) +} + +app.use(createPinia()) +app.use(router) +app.use(ElementPlus, { locale: zhCn }) +app.mount('#app') diff --git a/src/router/index.ts b/src/router/index.ts new file mode 100644 index 0000000..0b7ceed --- /dev/null +++ b/src/router/index.ts @@ -0,0 +1,174 @@ +import { createRouter, createWebHistory } from 'vue-router' +import type { RouteRecordRaw } from 'vue-router' +import { useUserStore } from '@/store/user' +import { useWorkbenchStore } from '@/store/workbench' +import { AUTH_DAY_KEY, DEMO_SESSION_TOKEN, TOKEN_KEY, getBusinessDay } from '@/utils/dailyAuth' + +const routes: RouteRecordRaw[] = [ + { + path: '/login', + name: 'Login', + component: () => import('@/views/Login.vue'), + meta: { requiresAuth: false }, + }, + { + path: '/', + component: () => import('@/views/Layout.vue'), + meta: { requiresAuth: true }, + children: [ + { path: '', redirect: '/dashboard' }, + { + path: 'dashboard', + name: 'Dashboard', + component: () => import('@/views/Dashboard.vue'), + meta: { title: '工作台', permission: ['applications', 'reimbursement:view-own'] }, + }, + { + path: 'applications', + name: 'Applications', + component: () => import('@/views/Applications.vue'), + meta: { title: '我的报销', permission: ['applications', 'reimbursement:view-own'], roles: ['EMPLOYEE', 'FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'applications/new', + name: 'ApplicationNew', + component: () => import('@/components/ReimbursementForm.vue'), + meta: { title: '发起报销', permission: 'reimbursement:create', roles: ['EMPLOYEE', 'FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'applications/:id', + name: 'ApplicationDetail', + component: () => import('@/views/ApplicationDetail.vue'), + meta: { title: '报销单详情', hidden: true, permission: ['applications', 'reimbursement:view-own'], roles: ['EMPLOYEE', 'FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'applications/:id/edit', + name: 'ApplicationEdit', + component: () => import('@/components/ReimbursementForm.vue'), + meta: { title: '编辑报销', hidden: true, permission: 'reimbursement:create', roles: ['EMPLOYEE', 'FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'finance-receipt', + name: 'FinanceReceipt', + component: () => import('@/views/FinanceReceipt.vue'), + meta: { title: '财务待收单', permission: 'receipt:manage', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'sources', + name: 'Sources', + component: () => import('@/views/Sources.vue'), + meta: { title: '业务单据', permission: 'reimbursement:view-all', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'payments', + name: 'Payments', + component: () => import('@/views/Payments.vue'), + meta: { title: '待付款', permission: 'payment:register', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'logs', + name: 'Logs', + component: () => import('@/views/Logs.vue'), + meta: { title: '操作日志', permission: 'approval:view', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'expense-types', + name: 'ExpenseTypes', + component: () => import('@/views/ExpenseTypes.vue'), + meta: { title: '费用类型', permission: 'master-data:manage', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'payees', + name: 'Payees', + component: () => import('@/views/Payees.vue'), + meta: { title: '付款对象', permission: 'master-data:manage', roles: ['FINANCE', 'ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'users', + name: 'Users', + component: () => import('@/views/Users.vue'), + meta: { title: '用户管理', permission: 'system:user:view', roles: ['ADMIN', 'SUPER_ADMIN'] }, + }, + { + path: 'feishu-directory', + name: 'FeishuDirectory', + component: () => import('@/views/FeishuDirectory.vue'), + meta: { title: '飞书通讯录', permission: ['system:feishu:sync', 'system:feishu:bind'] }, + }, + { + path: 'integration-config', + name: 'IntegrationConfig', + component: () => import('@/views/IntegrationConfig.vue'), + meta: { title: '配置管理', permission: 'system:integration:view', roles: ['ADMIN', 'SUPER_ADMIN'] }, + }, + ], + }, +] + +const router = createRouter({ history: createWebHistory(), routes }) + +router.beforeEach(async (to, _from, next) => { + const userStore = useUserStore() + const workbench = useWorkbenchStore() + const requiresAuth = to.matched.some(r => r.meta.requiresAuth) + const hadSession = Boolean(localStorage.getItem(TOKEN_KEY) || localStorage.getItem(AUTH_DAY_KEY) || userStore.token) + const isOAuthCallback = to.path === '/login' && Boolean(to.query.token || to.query.code || to.query.error) + const dailyValid = userStore.ensureDailyAuth() + + if (!dailyValid && hadSession) workbench.reset() + + const token = userStore.token + + if (requiresAuth && !token) return next('/login') + + // Validate a real token before allowing either a protected page or a login + // redirect. This also turns an expired token/API failure into a full logout. + if (token && token !== DEMO_SESSION_TOKEN && !isOAuthCallback) { + try { + await userStore.fetchUserInfo() + } catch { + userStore.logout() + workbench.reset() + return next('/login') + } + } + + if (to.path === '/login' && token && !isOAuthCallback) return next('/dashboard') + + const requiredRoles = to.matched.flatMap(r => (r.meta.roles as string[] | undefined) || []) + const requiredPermissions = to.matched.flatMap(record => { + const permission = record.meta.permission as string | string[] | undefined + return permission ? (Array.isArray(permission) ? permission : [permission]) : [] + }) + const userType = userStore.userInfo?.userType || '' + const useLegacyFallback = token === DEMO_SESSION_TOKEN + // The directory is permission-only, including for the local demo session; + // never allow its route through the unrelated legacy role fallback. + const isFeishuDirectoryRoute = to.matched.some(record => record.name === 'FeishuDirectory') + + // A real session is permission-first. Legacy userType checks are retained + // only for the local demo session or when the permission service itself is + // unavailable, so a custom role cannot be rejected by stale role metadata. + if (requiredPermissions.length > 0 && (!useLegacyFallback || isFeishuDirectoryRoute)) { + try { + await userStore.loadPermissions() + } catch { + if (!requiredRoles.includes(userType)) { + return next({ path: '/dashboard', query: { denied: String(to.meta.title || '该页面') } }) + } + } + if (userStore.permissionsLoaded && !userStore.permissionsError) { + if (!requiredPermissions.some(permission => userStore.hasPermission(permission))) { + return next({ path: '/dashboard', query: { denied: String(to.meta.title || '该页面') } }) + } + } + } else if (requiredRoles.length > 0 && (!requiredPermissions.length || useLegacyFallback)) { + if (!requiredRoles.includes(userType)) { + return next({ path: '/dashboard', query: { denied: String(to.meta.title || '该页面') } }) + } + } + + next() +}) + +export default router diff --git a/src/store/app.ts b/src/store/app.ts new file mode 100644 index 0000000..a190ece --- /dev/null +++ b/src/store/app.ts @@ -0,0 +1,12 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export const useAppStore = defineStore('app', () => { + const sidebarCollapsed = ref(false) + const loading = ref(false) + const notifications = ref(3) + + const toggleSidebar = () => { sidebarCollapsed.value = !sidebarCollapsed.value } + + return { sidebarCollapsed, loading, notifications, toggleSidebar } +}) \ No newline at end of file diff --git a/src/store/user.ts b/src/store/user.ts new file mode 100644 index 0000000..95c6b7d --- /dev/null +++ b/src/store/user.ts @@ -0,0 +1,251 @@ +import { defineStore } from 'pinia' +import { ref, computed } from 'vue' +import { authApi, type UserProfile } from '@/api/auth' +import request from '@/api/request' +import { + AUTH_DAY_KEY, + DEMO_SESSION_TOKEN, + TOKEN_KEY, + USER_INFO_KEY, + clearStoredSession, + getBusinessDay, + saveAuthDay, +} from '@/utils/dailyAuth' + +const readStoredUser = (): UserProfile | null => { + try { + const value = localStorage.getItem(USER_INFO_KEY) + return value ? JSON.parse(value) as UserProfile : null + } catch { + localStorage.removeItem(USER_INFO_KEY) + return null + } +} + +const FEISHU_OAUTH_ATTEMPT_KEY = 'feishuOAuthAttempt' + +const randomAttemptId = () => { + if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') return crypto.randomUUID() + return `${Date.now()}-${Math.random().toString(36).slice(2)}` +} + +export const useUserStore = defineStore('user', () => { + const token = ref(localStorage.getItem(TOKEN_KEY) || '') + const userInfo = ref(readStoredUser()) + const permissionCodes = ref([]) + const fieldPermissions = ref>({}) + const permissionsLoaded = ref(false) + const permissionsError = ref('') + let permissionRequest: Promise | null = null + let sessionVersion = 0 + + const isLoggedIn = computed(() => !!token.value) + const isFinance = computed(() => ['FINANCE', 'ADMIN', 'SUPER_ADMIN'].includes(userInfo.value?.userType || '')) + + const isValidUser = (user: unknown): user is UserProfile => { + if (!user || typeof user !== 'object') return false + const candidate = user as Partial + return Boolean(candidate.id && candidate.realName && candidate.userType) + } + + // Keep the marker behind the verified identity. This is the only operation + // that turns a token/user pair into an authenticated session for today. + const completeLogin = (jwt: string, user: UserProfile) => { + if (!jwt || !isValidUser(user)) throw new Error('登录响应缺少有效身份信息') + sessionVersion += 1 + token.value = jwt + userInfo.value = user + localStorage.setItem(TOKEN_KEY, jwt) + localStorage.setItem(USER_INFO_KEY, JSON.stringify(user)) + saveAuthDay() + } + + const beginFeishuLogin = () => { + const attempt = randomAttemptId() + sessionStorage.setItem(FEISHU_OAUTH_ATTEMPT_KEY, attempt) + localStorage.setItem(FEISHU_OAUTH_ATTEMPT_KEY, attempt) + return attempt + } + + const isCurrentFeishuLogin = (attempt: string | null | undefined) => { + return Boolean(attempt) + && sessionStorage.getItem(FEISHU_OAUTH_ATTEMPT_KEY) === attempt + && localStorage.getItem(FEISHU_OAUTH_ATTEMPT_KEY) === attempt + } + + const clearFeishuLogin = (attempt: string | null | undefined) => { + if (sessionStorage.getItem(FEISHU_OAUTH_ATTEMPT_KEY) === attempt) { + sessionStorage.removeItem(FEISHU_OAUTH_ATTEMPT_KEY) + } + if (localStorage.getItem(FEISHU_OAUTH_ATTEMPT_KEY) === attempt) { + localStorage.removeItem(FEISHU_OAUTH_ATTEMPT_KEY) + } + } + + const feishuLogin = async (code: string, state?: string, attempt?: string) => { + if (!isCurrentFeishuLogin(attempt)) throw new Error('登录状态已更新,请重新登录') + const requestVersion = sessionVersion + const res = await authApi.feishuLogin(code, state) + if (requestVersion !== sessionVersion || !isCurrentFeishuLogin(attempt)) { + throw new Error('登录状态已更新,请重新登录') + } + completeLogin(res.token, res.user) + clearFeishuLogin(attempt) + } + + const setToken = async (jwt: string) => { + if (!jwt) throw new Error('登录响应缺少有效令牌') + sessionVersion += 1 + token.value = jwt + userInfo.value = null + localStorage.setItem(TOKEN_KEY, jwt) + localStorage.removeItem(USER_INFO_KEY) + await fetchUserInfo() + // fetchUserInfo validates the callback token and user before this marker + // is saved. A failed request clears the whole local session. + saveAuthDay() + } + + const refreshToken = async () => { + const requestVersion = sessionVersion + const requestToken = token.value + if (!requestToken) throw new Error('未登录') + const response = await authApi.refreshToken() + if (requestVersion !== sessionVersion || token.value !== requestToken || localStorage.getItem(TOKEN_KEY) !== requestToken) { + throw new Error('登录状态已更新,请重新登录') + } + completeLogin(response.token, response.user) + return response + } + + const fetchUserInfo = async () => { + const requestVersion = sessionVersion + const requestToken = token.value || localStorage.getItem(TOKEN_KEY) || '' + if (!requestToken) { + logout() + throw new Error('未登录') + } + + try { + const user = await authApi.getUserInfo() + if (requestVersion !== sessionVersion || token.value !== requestToken || localStorage.getItem(TOKEN_KEY) !== requestToken) { + throw new Error('登录状态已更新,请重新加载页面') + } + if (!isValidUser(user)) throw new Error('用户信息无效') + userInfo.value = user + localStorage.setItem(USER_INFO_KEY, JSON.stringify(user)) + return user + } catch (error) { + // Do not let a late response from an old session clear a newer login. + if (requestVersion === sessionVersion && token.value === requestToken && localStorage.getItem(TOKEN_KEY) === requestToken) logout() + throw error + } + } + + /** + * Validate local session age and synchronize Pinia with storage. A missing + * marker is invalid for real JWT sessions; the demo fallback is allowed one + * migration when it already has a complete locally-verified user object. + */ + const ensureDailyAuth = (): boolean => { + const storedToken = localStorage.getItem(TOKEN_KEY) || '' + const storedDay = localStorage.getItem(AUTH_DAY_KEY) + const storedUser = readStoredUser() + + if (!storedToken) { + const hadState = Boolean(token.value || userInfo.value || storedUser || storedDay) + token.value = '' + userInfo.value = null + if (hadState) { + sessionVersion += 1 + clearStoredSession() + } + return false + } + + // workbench.loginFallback is an existing development entry point and + // writes its complete token/user pair synchronously. Give that pair a + // marker on first use, while still rejecting any explicitly stale marker. + if (!storedDay && storedToken === DEMO_SESSION_TOKEN && isValidUser(storedUser)) { + token.value = storedToken + userInfo.value = storedUser + saveAuthDay() + return true + } + + if (storedDay !== getBusinessDay()) { + sessionVersion += 1 + clearStoredSession() + token.value = '' + userInfo.value = null + return false + } + + token.value = storedToken + userInfo.value = storedUser + return true + } + + const logout = () => { + sessionVersion += 1 + token.value = '' + userInfo.value = null + permissionCodes.value = [] + fieldPermissions.value = {} + permissionsLoaded.value = false + permissionsError.value = '' + clearStoredSession() + } + + const loadPermissions = async (force = false) => { + if (!force && permissionsLoaded.value && !permissionsError.value) return + if (permissionRequest && !force) return permissionRequest + permissionRequest = (async () => { + permissionsError.value = '' + try { + const result = await request.get<{ + roleCodes?: string[] + permissionCodes?: string[] + fieldPermissions?: Record + }>('/roles/current-permissions') + permissionCodes.value = Array.isArray(result?.permissionCodes) ? result.permissionCodes : [] + fieldPermissions.value = result?.fieldPermissions || {} + permissionsLoaded.value = true + } catch (error) { + permissionCodes.value = [] + fieldPermissions.value = {} + permissionsLoaded.value = false + permissionsError.value = error instanceof Error ? error.message : '权限加载失败' + throw error + } finally { + permissionRequest = null + } + })() + return permissionRequest + } + + const hasPermission = (code: string) => permissionsLoaded.value && !permissionsError.value && permissionCodes.value.includes(code) + + return { + token, + userInfo, + isLoggedIn, + isFinance, + feishuLogin, + beginFeishuLogin, + isCurrentFeishuLogin, + clearFeishuLogin, + completeLogin, + setToken, + refreshToken, + fetchUserInfo, + ensureDailyAuth, + permissionCodes, + fieldPermissions, + permissionsLoaded, + permissionsError, + loadPermissions, + hasPermission, + logout, + } +}) diff --git a/src/store/workbench.ts b/src/store/workbench.ts new file mode 100644 index 0000000..7823213 --- /dev/null +++ b/src/store/workbench.ts @@ -0,0 +1,158 @@ +import { computed, ref } from 'vue' +import { defineStore } from 'pinia' +import { accountsPayableApi, cashierApi, reimbursementApi, type CreateApplicationRequest, type PaymentRecord, type ReimApplicationDetail, type ReimApplicationSummary } from '@/api/reimbursement' +import { cloneFallback, createFallbackDetail, fallbackLogin, type FallbackUser } from '@/api/fallback' + +export type DataSource = 'connecting' | 'api' | 'fallback' | 'error' +export type StatusTone = 'info' | 'pending' | 'success' | 'danger' | 'draft' | 'neutral' +const labels: Record = { DRAFT: '草稿', SUBMITTED: '已提交', PENDING: '审批中', APPROVING: '审批中', APPROVED: '审批通过', REJECTED: '退回', RETURNED: '退回', CANCELLED: '已取消', RECEIPT_PENDING: '待收单', RECEIVED: '已收单', UNRECEIVED: '未触发', UNPAID: '未付款', PARTIAL: '部分付款', PAID: '已付款', OCCUPIED: '已占用', EXECUTED: '已转执行', ACTIVE: '有效', INACTIVE: '停用' } +const toneMap: Record = { 草稿: 'draft', 已提交: 'info', 审批中: 'pending', 审批通过: 'success', 退回: 'danger', 未触发: 'neutral', 待收单: 'pending', 已收单: 'success', 未付款: 'neutral', 部分付款: 'info', 已付款: 'success', 已占用: 'info', 已转执行: 'success', 有效: 'success' } +const text = (value: unknown, fallback = '') => String(value ?? fallback) +const number = (value: unknown) => Number(value || 0) +const status = (value: unknown, fallback: string) => labels[text(value)] || text(value, fallback) +const budgetStatus = (value: unknown) => ({ PENDING: '待处理', OCCUPIED: '已占用', EXECUTED: '已转执行' }[text(value)] || status(value, '已占用')) + +export const useWorkbenchStore = defineStore('workbench', () => { + const user = ref(null) + const reimbursements = ref([]) + const payments = ref([]) + const source = ref('connecting') + const loading = ref(false) + const error = ref('') + const financeQueueError = ref('') + const notifications = ref(0) + const fallbackPaymentKeys = new Map() + let loadPromise: Promise | null = null + let sessionVersion = 0 + const queueVersions: Record<'receipt' | 'payment', number> = { receipt: 0, payment: 0 } + + const normalizePayment = (raw: any): PaymentRecord => ({ id: raw.id ?? raw.paymentNo ?? `payment-${Date.now()}`, paymentNo: text(raw.paymentNo, raw.reference || raw.id), applicationId: raw.applicationId ?? raw.reimbursementId, paymentAmount: number(raw.paymentAmount ?? raw.amount), totalAmount: number(raw.totalAmount), paidAmount: number(raw.paidAmount ?? raw.amount), remainingAmount: number(raw.remainingAmount), paymentMethod: text(raw.paymentMethod, raw.method || '银行转账'), referenceNo: text(raw.referenceNo, raw.reference), paymentStatus: status(raw.paymentStatus, '有效'), operatorName: text(raw.operatorName, raw.operator || '—'), paymentTime: text(raw.paymentTime, raw.time), remark: text(raw.remark, raw.referenceNo || raw.reference) }) + const maskAccount = (value: unknown) => { + const account = text(value) + if (!account || account.includes('*')) return account + const digits = account.replace(/\s+/g, '') + return digits.length > 4 ? `**** ${digits.slice(-4)}` : '已脱敏' + } + const normalize = (raw: any): ReimApplicationDetail => { + const paymentsForItem = payments.value.filter(payment => String(payment.applicationId) === String(raw.id)) + const amount = number(raw.totalAmount ?? raw.amount) + // “退回” belongs to approvalStatus. Keep the application fact as submitted. + const application = text(raw.applicationStatus) === '草稿' || text(raw.applicationStatus) === 'DRAFT' || text(raw.status) === 'DRAFT' + ? '草稿' + : '已提交' + const approvalRaw = text(raw.approvalStatus ?? raw.applicationStatus) + const approval = application === '草稿' && !['退回', 'REJECTED', 'RETURNED', 'CANCELLED', '已取消'].includes(approvalRaw) + ? '未触发' + : status(approvalRaw, '未触发') + const receiptRaw = text(raw.receiptStatus) + const receipt = approval === '审批通过' && (!receiptRaw || ['UNRECEIVED', '未触发'].includes(receiptRaw)) + ? '待收单' + : status(raw.receiptStatus, '未触发') + return { + ...raw, id: raw.id, applicationNo: text(raw.applicationNo, raw.id), title: text(raw.title, '未命名报销'), applicantName: text(raw.applicantName, raw.owner || raw.payeeName), applicantEmployeeNo: text(raw.applicantEmployeeNo), departmentName: text(raw.departmentName, raw.department), expenseTypeId: number(raw.expenseTypeId || 1), expenseTypeName: text(raw.expenseTypeName, raw.expenseType || '员工报销'), category: text(raw.category), totalAmount: amount, applicationStatus: application, approvalStatus: approval, currentApprovalNode: text(raw.currentApprovalNode, raw.approvalNode || '—'), receiptStatus: receipt, paymentStatus: status(raw.paymentStatus, '未付款'), budgetStatus: budgetStatus(raw.budgetStatus), sourceDocNo: text(raw.sourceDocNo), sourceStatus: text(raw.sourceStatus, '未关联'), payeeName: text(raw.payeeName, raw.payee), payeeBankId: number(raw.payeeBankId), bankName: text(raw.bankName), bankAccountMask: maskAccount(raw.bankAccountMask), returnReason: text(raw.returnReason), submitTime: text(raw.submitTime, raw.date), createdAt: text(raw.createdAt, raw.date), updatedAt: text(raw.updatedAt, raw.lastUpdated), paidAmountSnapshot: raw.paidAmount == null ? undefined : number(raw.paidAmount), remainingAmountSnapshot: raw.remainingAmount == null ? undefined : number(raw.remainingAmount), expenseItems: Array.isArray(raw.expenseItems) ? raw.expenseItems : [], invoices: Array.isArray(raw.invoices) ? raw.invoices : [], attachments: Array.isArray(raw.attachments) ? raw.attachments : [], approvalRecords: Array.isArray(raw.approvalRecords) ? raw.approvalRecords : [], payments: paymentsForItem, + } + } + const refreshPaymentStatuses = () => reimbursements.value.forEach(item => { const linked = payments.value.filter(payment => String(payment.applicationId) === String(item.id)); if (linked.length || source.value === 'fallback' || item.paidAmountSnapshot !== undefined) { const paid = paidAmount(item); item.paymentStatus = paid <= 0 ? '未付款' : paid >= item.totalAmount ? '已付款' : '部分付款'; item.payments = linked } }) + const paidAmount = (item: ReimApplicationDetail) => { const linked = payments.value.filter(payment => String(payment.applicationId) === String(item.id) && payment.paymentStatus !== '无效'); if (linked.length) return linked.reduce((sum, payment) => sum + number(payment.paymentAmount || payment.paidAmount), 0); return item.paidAmountSnapshot ?? 0 } + const balance = (item: ReimApplicationDetail) => Math.max(0, number(item.totalAmount) - paidAmount(item)) + const summaries = computed(() => reimbursements.value.map(item => ({ ...item } as ReimApplicationSummary))) + + const setSnapshot = (payload: any, nextSource: DataSource) => { payments.value = (payload?.payments || []).map(normalizePayment); const rows: ReimApplicationDetail[] = (payload?.reimbursements || payload?.content || []).map(normalize); user.value = nextSource === 'fallback' ? (user.value || payload?.user) : (payload?.user || user.value); reimbursements.value = nextSource === 'fallback' && user.value?.userType === 'EMPLOYEE' ? rows.filter((item: ReimApplicationDetail) => item.applicantName === user.value?.realName) : rows; notifications.value = number(payload?.notifications); source.value = nextSource; refreshPaymentStatuses() } + const load = async () => { + if (loadPromise) return loadPromise + const requestVersion = sessionVersion + const currentPromise: Promise = (async () => { + loading.value = true + error.value = '' + try { + const payload = await reimbursementApi.getWorkbench() + if (!payload || (!Array.isArray(payload.reimbursements) && !Array.isArray(payload.content))) throw new Error('工作台数据格式不兼容') + if (requestVersion !== sessionVersion) return + setSnapshot(payload, 'api') + } catch { + if (requestVersion !== sessionVersion) return + const canFallback = import.meta.env.DEV && typeof window !== 'undefined' && ['localhost', '127.0.0.1'].includes(window.location.hostname) + if (canFallback) { + setSnapshot(cloneFallback(), 'fallback') + error.value = '数据服务暂不可用,当前显示本地可用数据;新增和付款操作仅保留在当前会话。' + } else { + reimbursements.value = [] + payments.value = [] + source.value = 'error' + error.value = '无法连接财务服务,请联系管理员;为避免展示过期数据,业务记录已隐藏。' + } + } finally { + if (requestVersion === sessionVersion) loading.value = false + } + })() + loadPromise = currentPromise + try { + await currentPromise + } finally { + if (loadPromise === currentPromise) loadPromise = null + } + } + const loadList = async () => { if (reimbursements.value.length) return; await load() } + const loadDetail = async (id: string | number) => { + const requestVersion = sessionVersion + await loadList() + if (requestVersion !== sessionVersion) return null + if (source.value !== 'api') return getById(id) + try { + const detail = await reimbursementApi.getDetail(id) + if (requestVersion !== sessionVersion) return null + const normalized = normalize(detail) + reimbursements.value = reimbursements.value.map(item => String(item.id) === String(id) ? normalized : item) + const detailPayments = (detail.payments || []).map((payment: any) => normalizePayment({ ...payment, applicationId: id })) + payments.value = payments.value.filter(payment => String(payment.applicationId) !== String(id)).concat(detailPayments) + refreshPaymentStatuses() + return normalized + } catch { + return getById(id) + } + } + const loadFinanceQueue = async (kind: 'receipt' | 'payment') => { + const requestVersion = sessionVersion + const queueVersion = ++queueVersions[kind] + await loadList() + if (requestVersion !== sessionVersion || source.value !== 'api') return + try { + const allRows: any[] = [] + let page = 0 + let total = Number.POSITIVE_INFINITY + do { + const payload = kind === 'receipt' + ? await accountsPayableApi.getTasks({ status: 'APPROVED', page, size: 100 }) + : await cashierApi.getTasks({ status: 'PENDING', page, size: 100 }) + if (requestVersion !== sessionVersion || queueVersion !== queueVersions[kind]) return + const rows = payload?.content || payload?.tasks || payload?.records || (Array.isArray(payload) ? payload : []) + allRows.push(...rows) + total = Number(payload?.totalElements ?? payload?.total ?? allRows.length) + page += 1 + if (!rows.length || rows.length < 100 || page >= 1000) break + } while (allRows.length < total) + if (requestVersion !== sessionVersion || queueVersion !== queueVersions[kind]) return + const normalized: ReimApplicationDetail[] = allRows.map((row: any) => normalize(row)) + const byId = new Map(reimbursements.value.map(item => [String(item.id), item])) + normalized.forEach((item: ReimApplicationDetail) => byId.set(String(item.id), item)) + reimbursements.value = [...byId.values()] + refreshPaymentStatuses() + financeQueueError.value = '' + } catch { + if (requestVersion === sessionVersion && queueVersion === queueVersions[kind]) financeQueueError.value = kind === 'receipt' ? '无法读取财务收单队列,请重试。' : '无法读取待付款队列,请重试。' + } + } + const getById = (id: string | number) => reimbursements.value.find(item => String(item.id) === String(id)) || null + const saveMutation = async (operation: () => Promise, fallbackOperation: () => T) => { if (source.value === 'fallback') return fallbackOperation(); return operation() } + const save = async (payload: CreateApplicationRequest, id?: string | number) => { + const requestVersion = sessionVersion + const local = () => { const existing = id ? getById(id) : null; if (existing && (existing.applicantName !== user.value?.realName || !['草稿', '退回', '已取消'].includes(existing.approvalStatus === '退回' ? '退回' : existing.approvalStatus === '已取消' ? '已取消' : existing.applicationStatus))) throw new Error('只能修改本人草稿、退回或已取消的报销'); const result = existing ? normalize({ ...existing, ...payload, expenseItems: payload.items }) : createFallbackDetail(payload, `BX${new Date().toISOString().slice(0, 10).replace(/-/g, '')}${String(Date.now()).slice(-4)}`, user.value || fallbackLogin().user); if (existing) reimbursements.value = reimbursements.value.map(item => item.id === existing.id ? result : item); else reimbursements.value.unshift(result); return result } + const result = await saveMutation(() => id ? reimbursementApi.update(id, payload) : reimbursementApi.create(payload), local); if (requestVersion !== sessionVersion) throw new Error('登录状态已更新,请重新加载页面'); if (source.value !== 'fallback') { const normalized = normalize(result); if (id) reimbursements.value = reimbursements.value.map(item => String(item.id) === String(id) ? normalized : item); else reimbursements.value.unshift(normalized); return normalized } return result + } + const submit = async (id: string | number) => { const requestVersion = sessionVersion; const local = () => { const item = getById(id); if (!item) throw new Error('报销单不存在'); if (item.applicantName !== user.value?.realName) throw new Error('只能提交本人报销'); if (item.applicationStatus !== '草稿' && item.approvalStatus !== '退回' && item.approvalStatus !== '已取消') throw new Error('只能提交草稿、退回或已取消报销'); item.applicationStatus = '已提交'; item.approvalStatus = '审批中'; item.currentApprovalNode = '部门负责人审批'; return item }; const result = await saveMutation(() => reimbursementApi.submit(id), local); if (requestVersion !== sessionVersion) throw new Error('登录状态已更新,请重新加载页面'); if (source.value !== 'fallback' && result) { const normalized = normalize(result); reimbursements.value = reimbursements.value.map(item => String(item.id) === String(id) ? normalized : item); return normalized } return result } + const receive = async (id: string | number) => { const requestVersion = sessionVersion; const item = getById(id); if (!item) throw new Error('报销单不存在'); if (item.approvalStatus !== '审批通过') throw new Error('仅审批通过的报销可以收单'); if (source.value === 'fallback') { if (!['FINANCE', 'ADMIN', 'SUPER_ADMIN'].includes(user.value?.userType || '')) throw new Error('仅财务人员可以确认收单'); item.receiptStatus = '已收单'; item.updatedAt = new Date().toISOString(); return item } const result = await reimbursementApi.receive(id); if (requestVersion !== sessionVersion) throw new Error('登录状态已更新,请重新加载页面'); const normalized = normalize(result); reimbursements.value = reimbursements.value.map(row => String(row.id) === String(id) ? normalized : row); return normalized } + const pay = async (id: string | number, amount: number, remark: string, idempotencyKey: string) => { const requestVersion = sessionVersion; const item = getById(id); if (!item) throw new Error('报销单不存在'); if (item.receiptStatus !== '已收单') throw new Error('申请尚未完成财务收单,无法付款'); if (!(amount > 0) || amount > balance(item) + 0.005) throw new Error(`付款金额须大于 0 且不超过未付余额 ¥ ${balance(item).toFixed(2)}`); const local = () => { const previous = fallbackPaymentKeys.get(idempotencyKey); if (previous) return previous; const record: PaymentRecord = { id: `PAY-${Date.now()}`, paymentNo: `PAY-${new Date().toISOString().slice(0, 10).replace(/-/g, '')}-${String(Date.now()).slice(-4)}`, applicationId: id, paymentAmount: amount, totalAmount: item.totalAmount, paidAmount: amount, remainingAmount: balance(item) - amount, paymentMethod: '银行转账', paymentStatus: '有效', operatorName: user.value?.realName || '财务人员', paymentTime: new Date().toISOString().slice(0, 16).replace('T', ' '), remark: remark || idempotencyKey }; fallbackPaymentKeys.set(idempotencyKey, record); payments.value.unshift(record); refreshPaymentStatuses(); return record }; const result = await saveMutation(() => (amount < balance(item) ? cashierApi.partialPayment(id, amount, remark, idempotencyKey) : cashierApi.executePayment(id, amount, remark, idempotencyKey)), local); if (requestVersion !== sessionVersion) throw new Error('登录状态已更新,请重新加载页面'); if (source.value !== 'fallback') { const record = normalizePayment({ ...(result || {}), applicationId: id, paymentStatus: result?.paymentStatus || result?.status || '有效', totalAmount: item.totalAmount }); payments.value.unshift(record); refreshPaymentStatuses() } return result } + const reset = () => { sessionVersion += 1; queueVersions.receipt += 1; queueVersions.payment += 1; loadPromise = null; user.value = null; reimbursements.value = []; payments.value = []; source.value = 'connecting'; loading.value = false; error.value = ''; financeQueueError.value = ''; notifications.value = 0; fallbackPaymentKeys.clear() } + const loginFallback = (employeeNo?: string) => { reset(); const result = fallbackLogin(employeeNo); user.value = result.user; localStorage.setItem('token', result.token); localStorage.setItem('userInfo', JSON.stringify(result.user)); return result } + return { user, reimbursements, payments, source, loading, error, financeQueueError, notifications, summaries, balance, paidAmount, load, loadList, loadDetail, loadFinanceQueue, getById, save, submit, receive, pay, loginFallback, reset, refreshPaymentStatuses } +}) diff --git a/src/utils/dailyAuth.ts b/src/utils/dailyAuth.ts new file mode 100644 index 0000000..a642f37 --- /dev/null +++ b/src/utils/dailyAuth.ts @@ -0,0 +1,54 @@ +export const AUTH_DAY_KEY = 'finance.auth-day' +export const TOKEN_KEY = 'token' +export const USER_INFO_KEY = 'userInfo' +export const DEMO_SESSION_TOKEN = 'demo-local-session' + +const SHANGHAI_TIME_ZONE = 'Asia/Shanghai' +const SHANGHAI_OFFSET_MS = 8 * 60 * 60 * 1000 + +const shanghaiDateParts = (date: Date) => { + const parts = new Intl.DateTimeFormat('en-US', { + timeZone: SHANGHAI_TIME_ZONE, + year: 'numeric', + month: '2-digit', + day: '2-digit', + }).formatToParts(date) + + const values = Object.fromEntries(parts.map(part => [part.type, part.value])) + return { + year: Number(values.year), + month: Number(values.month), + day: Number(values.day), + } +} + +/** The business day used by authentication, independent of the browser locale. */ +export const getBusinessDay = (date = new Date()): string => { + const { year, month, day } = shanghaiDateParts(date) + return `${year.toString().padStart(4, '0')}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}` +} + +export const saveAuthDay = (day = getBusinessDay()) => { + localStorage.setItem(AUTH_DAY_KEY, day) +} + +export const clearStoredSession = () => { + localStorage.removeItem(TOKEN_KEY) + localStorage.removeItem(USER_INFO_KEY) + localStorage.removeItem(AUTH_DAY_KEY) +} + +const millisecondsUntilNextBusinessDay = () => { + const { year, month, day } = shanghaiDateParts(new Date()) + // Asia/Shanghai uses UTC+08:00. The next local midnight is therefore this + // UTC timestamp minus eight hours. + const nextMidnight = Date.UTC(year, month - 1, day + 1) - SHANGHAI_OFFSET_MS + return Math.max(1000, nextMidnight - Date.now() + 25) +} + +/** Schedule exactly one callback. Call the returned disposer before rescheduling. */ +export const scheduleNextBusinessDay = (callback: () => void): (() => void) => { + if (typeof window === 'undefined') return () => undefined + const timer = window.setTimeout(callback, millisecondsUntilNextBusinessDay()) + return () => window.clearTimeout(timer) +} diff --git a/src/views/ApplicationDetail.vue b/src/views/ApplicationDetail.vue new file mode 100644 index 0000000..c5e43c8 --- /dev/null +++ b/src/views/ApplicationDetail.vue @@ -0,0 +1,27 @@ + + diff --git a/src/views/Applications.vue b/src/views/Applications.vue new file mode 100644 index 0000000..1d1c6b1 --- /dev/null +++ b/src/views/Applications.vue @@ -0,0 +1,220 @@ + + + diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue new file mode 100644 index 0000000..6191c85 --- /dev/null +++ b/src/views/Dashboard.vue @@ -0,0 +1,299 @@ + + + diff --git a/src/views/ExpenseTypes.vue b/src/views/ExpenseTypes.vue new file mode 100644 index 0000000..fc1950b --- /dev/null +++ b/src/views/ExpenseTypes.vue @@ -0,0 +1,33 @@ + + diff --git a/src/views/FeishuDirectory.vue b/src/views/FeishuDirectory.vue new file mode 100644 index 0000000..46733a8 --- /dev/null +++ b/src/views/FeishuDirectory.vue @@ -0,0 +1,469 @@ + + + + + diff --git a/src/views/FinanceReceipt.vue b/src/views/FinanceReceipt.vue new file mode 100644 index 0000000..c2ee480 --- /dev/null +++ b/src/views/FinanceReceipt.vue @@ -0,0 +1,149 @@ + + + diff --git a/src/views/IntegrationConfig.vue b/src/views/IntegrationConfig.vue new file mode 100644 index 0000000..ff44fa8 --- /dev/null +++ b/src/views/IntegrationConfig.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/views/Layout.vue b/src/views/Layout.vue new file mode 100644 index 0000000..eefce6c --- /dev/null +++ b/src/views/Layout.vue @@ -0,0 +1,625 @@ + + + + + diff --git a/src/views/Login.vue b/src/views/Login.vue new file mode 100644 index 0000000..0aba72b --- /dev/null +++ b/src/views/Login.vue @@ -0,0 +1,164 @@ + + + diff --git a/src/views/Logs.vue b/src/views/Logs.vue new file mode 100644 index 0000000..4834bce --- /dev/null +++ b/src/views/Logs.vue @@ -0,0 +1,32 @@ + + diff --git a/src/views/Payees.vue b/src/views/Payees.vue new file mode 100644 index 0000000..ef57d51 --- /dev/null +++ b/src/views/Payees.vue @@ -0,0 +1,34 @@ + + diff --git a/src/views/Payments.vue b/src/views/Payments.vue new file mode 100644 index 0000000..c903add --- /dev/null +++ b/src/views/Payments.vue @@ -0,0 +1,249 @@ + + + diff --git a/src/views/Sources.vue b/src/views/Sources.vue new file mode 100644 index 0000000..81ecf3f --- /dev/null +++ b/src/views/Sources.vue @@ -0,0 +1,45 @@ + + diff --git a/src/views/Users.vue b/src/views/Users.vue new file mode 100644 index 0000000..7d0fcad --- /dev/null +++ b/src/views/Users.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..b462aa1 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,57 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: [ + "./index.html", + "./src/**/*.{vue,js,ts,jsx,tsx}", + ], + theme: { + extend: { + colors: { + primary: { + 50: '#eff6ff', + 100: '#dbeafe', + 200: '#bfdbfe', + 300: '#93c5fd', + 400: '#60a5fa', + 500: '#3b82f6', + 600: '#2563eb', + 700: '#1d4ed8', + 800: '#1e40af', + 900: '#1e3a8a', + }, + finance: { + blue: '#1a73e8', + green: '#0f9d58', + orange: '#f9ab00', + red: '#ea4335', + } + }, + animation: { + 'fade-in': 'fadeIn 0.3s ease-out', + 'slide-up': 'slideUp 0.3s ease-out', + 'slide-down': 'slideDown 0.3s ease-out', + 'scale-in': 'scaleIn 0.2s ease-out', + 'pulse-slow': 'pulse 3s infinite', + }, + keyframes: { + fadeIn: { + '0%': { opacity: '0' }, + '100%': { opacity: '1' }, + }, + slideUp: { + '0%': { transform: 'translateY(10px)', opacity: '0' }, + '100%': { transform: 'translateY(0)', opacity: '1' }, + }, + slideDown: { + '0%': { transform: 'translateY(-10px)', opacity: '0' }, + '100%': { transform: 'translateY(0)', opacity: '1' }, + }, + scaleIn: { + '0%': { transform: 'scale(0.95)', opacity: '0' }, + '100%': { transform: 'scale(1)', opacity: '1' }, + }, + }, + }, + }, + plugins: [], +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7e30905 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve", + "strict": true, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noFallthroughCasesInSwitch": true, + "paths": { + "@/*": ["./src/*"] + } + }, + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], + "references": [{ "path": "./tsconfig.node.json" }] +} \ No newline at end of file diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..099658c --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..bfb999d --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import path from 'path' + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + '@': path.resolve(__dirname, 'src'), + }, + }, + server: { + port: 5173, + proxy: { + '/api': { + target: 'http://127.0.0.1:8080', + changeOrigin: true, + }, + }, + }, +})