diff --git a/.gitignore b/.gitignore index d2280d5..085b00b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,12 @@ +.DS_Store +.idea/ +.vscode/ +codes/.env +codes/configs/config.local.yml +codes/web/node_modules/ +codes/bin/ +codes/coverage.out + # ---> Go # If you prefer the allow list template instead of the deny list, see community template: # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore @@ -117,7 +126,6 @@ out # Nuxt.js build / generate output .nuxt -dist # Gatsby files .cache/ @@ -173,4 +181,3 @@ docs/_book # TODO: where does this rule come from? test/ - diff --git a/codes/Makefile b/codes/Makefile new file mode 100644 index 0000000..c029a7b --- /dev/null +++ b/codes/Makefile @@ -0,0 +1,20 @@ +WEB_DIR := web + +.PHONY: web-install web-build build test vet check + +web-install: + cd $(WEB_DIR) && npm ci + +web-build: + cd $(WEB_DIR) && npm run build + +build: web-build + go build -o bin/iqudo-top1 . + +test: + go test ./... + +vet: + go vet ./... + +check: test vet diff --git a/codes/configs/config.example.yml b/codes/configs/config.example.yml new file mode 100644 index 0000000..bc4cbd8 --- /dev/null +++ b/codes/configs/config.example.yml @@ -0,0 +1,26 @@ +app: + name: iqudo-top1 + env: development +server: + host: 127.0.0.1 + port: 8080 + read_timeout: 10s + write_timeout: 20s + shutdown_timeout: 10s +database: + host: 127.0.0.1 + port: 3306 + name: iqudo_top1 + user: root + password: "" + max_idle_connections: 10 + max_open_connections: 40 + connection_max_lifetime: 30m +auth: + jwt_secret: "" + access_token_ttl: 2h + refresh_token_ttl: 168h +seed: + admin_username: admin + admin_password: "" + admin_display_name: 平台管理员 diff --git a/codes/configs/config.prod.yml b/codes/configs/config.prod.yml new file mode 100644 index 0000000..98a54fb --- /dev/null +++ b/codes/configs/config.prod.yml @@ -0,0 +1,11 @@ +app: + env: production +server: + host: 0.0.0.0 +database: + max_idle_connections: 20 + max_open_connections: 100 +seed: + admin_username: "" + admin_password: "" + admin_display_name: "" diff --git a/codes/configs/config.test.yml b/codes/configs/config.test.yml new file mode 100644 index 0000000..53a45f2 --- /dev/null +++ b/codes/configs/config.test.yml @@ -0,0 +1,8 @@ +app: + env: test +server: + port: 8081 +database: + name: iqudo_top1_test +auth: + jwt_secret: test-only-secret diff --git a/codes/configs/config.yml b/codes/configs/config.yml new file mode 100644 index 0000000..6137067 --- /dev/null +++ b/codes/configs/config.yml @@ -0,0 +1,26 @@ +app: + name: iqudo-top1 + env: development +server: + host: 127.0.0.1 + port: 8080 + read_timeout: 10s + write_timeout: 20s + shutdown_timeout: 10s +database: + host: 127.0.0.1 + port: 3306 + name: iqudo_top1 + user: root + password: root1234 + max_idle_connections: 10 + max_open_connections: 40 + connection_max_lifetime: 30m +auth: + jwt_secret: local-development-secret-change-me + access_token_ttl: 2h + refresh_token_ttl: 168h +seed: + admin_username: admin + admin_password: admin123 + admin_display_name: 平台管理员 diff --git a/codes/go.mod b/codes/go.mod new file mode 100644 index 0000000..3176ba1 --- /dev/null +++ b/codes/go.mod @@ -0,0 +1,55 @@ +module git.iwork-ai.com/xdc/iqudo-top1 + +go 1.24 + +require ( + github.com/gin-gonic/gin v1.10.0 + github.com/golang-jwt/jwt/v5 v5.2.2 + github.com/golang-migrate/migrate/v4 v4.18.2 + github.com/google/uuid v1.6.0 + github.com/ilyakaznacheev/cleanenv v1.5.0 + go.uber.org/zap v1.27.0 + golang.org/x/crypto v0.36.0 + gorm.io/datatypes v1.2.7 + gorm.io/driver/mysql v1.5.7 + gorm.io/gorm v1.30.0 +) + +require ( + filippo.io/edwards25519 v1.1.0 // indirect + github.com/BurntSushi/toml v1.2.1 // indirect + github.com/bytedance/sonic v1.11.6 // indirect + github.com/bytedance/sonic/loader v0.1.1 // indirect + github.com/cloudwego/base64x v0.1.4 // indirect + github.com/cloudwego/iasm v0.2.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.3 // indirect + github.com/gin-contrib/sse v0.1.0 // indirect + github.com/go-playground/locales v0.14.1 // indirect + github.com/go-playground/universal-translator v0.18.1 // indirect + github.com/go-playground/validator/v10 v10.20.0 // indirect + github.com/go-sql-driver/mysql v1.8.1 // indirect + github.com/goccy/go-json v0.10.2 // indirect + github.com/hashicorp/errwrap v1.1.0 // indirect + github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/jinzhu/inflection v1.0.0 // indirect + github.com/jinzhu/now v1.1.5 // indirect + github.com/joho/godotenv v1.5.1 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect + github.com/leodido/go-urn v1.4.0 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/pelletier/go-toml/v2 v2.2.2 // indirect + github.com/twitchyliquid64/golang-asm v0.15.1 // indirect + github.com/ugorji/go/codec v1.2.12 // indirect + go.uber.org/atomic v1.7.0 // indirect + go.uber.org/multierr v1.10.0 // indirect + golang.org/x/arch v0.8.0 // indirect + golang.org/x/net v0.33.0 // indirect + golang.org/x/sys v0.31.0 // indirect + golang.org/x/text v0.23.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect + olympos.io/encoding/edn v0.0.0-20201019073823-d3554ca0b0a3 // indirect +) diff --git a/codes/go.sum b/codes/go.sum new file mode 100644 index 0000000..ffdab5b --- /dev/null +++ b/codes/go.sum @@ -0,0 +1,200 @@ +filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= +filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= +github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= +github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc0= +github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4= +github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM= +github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU= +github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y= +github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= +github.com/cloudwego/iasm v0.2.0 h1:1KNIy1I1H9hNNFEEH3DVnI4UujN+1zjpuk6gwHLTssg= +github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dhui/dktest v0.4.4 h1:+I4s6JRE1yGuqflzwqG+aIaMdgXIorCf5P98JnaAWa8= +github.com/dhui/dktest v0.4.4/go.mod h1:4+22R4lgsdAXrDyaH4Nqx2JEz2hLp49MqQmm9HLCQhM= +github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= +github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/docker/docker v27.2.0+incompatible h1:Rk9nIVdfH3+Vz4cyI/uhbINhEZ/oLmc+CBXmH6fbNk4= +github.com/docker/docker v27.2.0+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj1Br63c= +github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= +github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU= +github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= +github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= +github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= +github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= +github.com/go-playground/validator/v10 v10.20.0 h1:K9ISHbSaI0lyB2eWMPJo+kOS/FBExVwjEviJTixqxL8= +github.com/go-playground/validator/v10 v10.20.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= +github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= +github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= +github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= +github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= +github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= +github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang-migrate/migrate/v4 v4.18.2 h1:2VSCMz7x7mjyTXx3m2zPokOY82LTRgxK1yQYKo6wWQ8= +github.com/golang-migrate/migrate/v4 v4.18.2/go.mod h1:2CM6tJvn2kqPXwnXO/d3rAQYiyoIm180VsO8PRX6Rpk= +github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA= +github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= +github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= +github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= +github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= +github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= +github.com/ilyakaznacheev/cleanenv v1.5.0 h1:0VNZXggJE2OYdXE87bfSSwGxeiGt9moSR2lOrsHHvr4= +github.com/ilyakaznacheev/cleanenv v1.5.0/go.mod h1:a5aDzaJrLCQZsazHol1w8InnDcOX0OColm64SlIi6gk= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA= +github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= +github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw= +github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A= +github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk= +github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= +github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= +github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= +github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= +github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= +github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= +github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= +github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= +github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= +github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= +github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= +github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/microsoft/go-mssqldb v1.7.2 h1:CHkFJiObW7ItKTJfHo1QX7QBBD1iV+mn1eOyRP3b/PA= +github.com/microsoft/go-mssqldb v1.7.2/go.mod h1:kOvZKUdrhhFQmxLZqbwUV0rHkNkZpthMITIb2Ko1IoA= +github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= +github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= +github.com/moby/term v0.5.0 h1:xt8Q1nalod/v7BqbG21f8mQPqH+xAaC9C3N3wfWbVP0= +github.com/moby/term v0.5.0/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A= +github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQb2IpWsCzug= +github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM= +github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM= +github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= +github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= +github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= +github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= +go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= +go.opentelemetry.io/otel v1.29.0/go.mod h1:N/WtXPs1CNCUEx+Agz5uouwCba+i+bJGFicT8SR4NP8= +go.opentelemetry.io/otel/metric v1.29.0 h1:vPf/HFWTNkPu1aYeIsc98l4ktOQaL6LeSoeV2g+8YLc= +go.opentelemetry.io/otel/metric v1.29.0/go.mod h1:auu/QWieFVWx+DmQOUMgj0F8LHWdgalxXqvp7BII/W8= +go.opentelemetry.io/otel/trace v1.29.0 h1:J/8ZNK4XgR7a21DZUAsbF8pZ5Jcw1VhACmnYt39JTi4= +go.opentelemetry.io/otel/trace v1.29.0/go.mod h1:eHl3w0sp3paPkYstJOmAimxhiFXPg+MMTlEh3nsQgWQ= +go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= +go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= +golang.org/x/arch v0.8.0 h1:3wRIsP3pM4yUptoR96otTUOXI367OS0+c9eeRi9doIc= +golang.org/x/arch v0.8.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys= +golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= +golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= +golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= +golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= +golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= +golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= +golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gorm.io/datatypes v1.2.7 h1:ww9GAhF1aGXZY3EB3cJPJ7//JiuQo7DlQA7NNlVaTdk= +gorm.io/datatypes v1.2.7/go.mod h1:M2iO+6S3hhi4nAyYe444Pcb0dcIiOMJ7QHaUXxyiNZY= +gorm.io/driver/mysql v1.5.7 h1:MndhOPYOfEp2rHKgkZIhJ16eVUIRf2HmzgoPmh7FCWo= +gorm.io/driver/mysql v1.5.7/go.mod h1:sEtPWMiqiN1N1cMXoXmBbd8C6/l+TESwriotuRRpkDM= +gorm.io/driver/postgres v1.5.0 h1:u2FXTy14l45qc3UeCJ7QaAXZmZfDDv0YrthvmRq1l0U= +gorm.io/driver/postgres v1.5.0/go.mod h1:FUZXzO+5Uqg5zzwzv4KK49R8lvGIyscBOqYrtI1Ce9A= +gorm.io/driver/sqlite v1.4.3 h1:HBBcZSDnWi5BW3B3rwvVTc510KGkBkexlOg0QrmLUuU= +gorm.io/driver/sqlite v1.4.3/go.mod h1:0Aq3iPO+v9ZKbcdiz8gLWRw5VOPcBOPUQJFLq5e2ecI= +gorm.io/driver/sqlserver v1.6.0 h1:VZOBQVsVhkHU/NzNhRJKoANt5pZGQAS1Bwc6m6dgfnc= +gorm.io/driver/sqlserver v1.6.0/go.mod h1:WQzt4IJo/WHKnckU9jXBLMJIVNMVeTu25dnOzehntWw= +gorm.io/gorm v1.25.7/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8= +gorm.io/gorm v1.30.0 h1:qbT5aPv1UH8gI99OsRlvDToLxW5zR7FzS9acZDOZcgs= +gorm.io/gorm v1.30.0/go.mod h1:8Z33v652h4//uMA76KjeDH8mJXPm1QNCYrMeatR0DOE= +nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50= +olympos.io/encoding/edn v0.0.0-20201019073823-d3554ca0b0a3 h1:slmdOY3vp8a7KQbHkL+FLbvbkgMqmXojpFUO/jENuqQ= +olympos.io/encoding/edn v0.0.0-20201019073823-d3554ca0b0a3/go.mod h1:oVgVk4OWVDi43qWBEyGhXgYxt7+ED4iYNpTngSLX2Iw= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= diff --git a/codes/internal/audit/audit.go b/codes/internal/audit/audit.go new file mode 100644 index 0000000..7eca6af --- /dev/null +++ b/codes/internal/audit/audit.go @@ -0,0 +1,18 @@ +package audit + +import ( + "encoding/json" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +func Record(db *gorm.DB, principal auth.Principal, action, resource string, resourceID uint64, payload interface{}) error { + data, err := json.Marshal(payload) + if err != nil { + return err + } + return db.Create(&model.AuditLog{TenantID: principal.TenantID, UserID: principal.UserID, Action: action, Resource: resource, ResourceID: resourceID, Payload: datatypes.JSON(data)}).Error +} diff --git a/codes/internal/auth/handler.go b/codes/internal/auth/handler.go new file mode 100644 index 0000000..2aa8c61 --- /dev/null +++ b/codes/internal/auth/handler.go @@ -0,0 +1,80 @@ +package auth + +import ( + "errors" + "net/http" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" +) + +type Handler struct { + service *Service +} + +func NewHandler(service *Service) *Handler { + return &Handler{service: service} +} + +type loginRequest struct { + Username string `json:"username" binding:"required,min=2,max=64"` + Password string `json:"password" binding:"required,min=6,max=128"` +} + +func (h *Handler) Login(c *gin.Context) { + var input loginRequest + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "请输入有效的用户名和密码") + return + } + tokens, err := h.service.Login(input.Username, input.Password) + if errors.Is(err, ErrInvalidCredentials) { + response.Error(c, http.StatusUnauthorized, "INVALID_CREDENTIALS", "用户名或密码错误") + return + } + if err != nil { + response.Error(c, http.StatusInternalServerError, "LOGIN_FAILED", "登录失败") + return + } + response.OK(c, tokens) +} + +func (h *Handler) Refresh(c *gin.Context) { + var input struct { + RefreshToken string `json:"refresh_token" binding:"required"` + } + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "refresh_token 不能为空") + return + } + tokens, err := h.service.Refresh(input.RefreshToken) + if err != nil { + response.Error(c, http.StatusUnauthorized, "INVALID_REFRESH_TOKEN", "登录状态已失效") + return + } + response.OK(c, tokens) +} + +func (h *Handler) Me(c *gin.Context) { + principal, exists := PrincipalFromContext(c) + if !exists { + response.Error(c, http.StatusUnauthorized, "UNAUTHORIZED", "请先登录") + return + } + response.OK(c, principal) +} + +const principalContextKey = "principal" + +func SetPrincipal(c *gin.Context, principal Principal) { + c.Set(principalContextKey, principal) +} + +func PrincipalFromContext(c *gin.Context) (Principal, bool) { + value, exists := c.Get(principalContextKey) + if !exists { + return Principal{}, false + } + principal, ok := value.(Principal) + return principal, ok +} diff --git a/codes/internal/auth/service.go b/codes/internal/auth/service.go new file mode 100644 index 0000000..da980ac --- /dev/null +++ b/codes/internal/auth/service.go @@ -0,0 +1,185 @@ +package auth + +import ( + "crypto/sha256" + "encoding/hex" + "errors" + "fmt" + "time" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/config" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "github.com/golang-jwt/jwt/v5" + "github.com/google/uuid" + "golang.org/x/crypto/bcrypt" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +var ErrInvalidCredentials = errors.New("invalid username or password") + +type Principal struct { + UserID uint64 `json:"user_id"` + TenantID uint64 `json:"tenant_id"` + RoleCode string `json:"role_code"` + Username string `json:"username"` + DisplayName string `json:"display_name"` +} + +type Claims struct { + TenantID uint64 `json:"tenant_id"` + RoleCode string `json:"role_code"` + Username string `json:"username"` + DisplayName string `json:"display_name"` + jwt.RegisteredClaims +} + +type TokenPair struct { + AccessToken string `json:"access_token"` + RefreshToken string `json:"refresh_token"` + ExpiresAt time.Time `json:"expires_at"` + User Principal `json:"user"` +} + +type Service struct { + db *gorm.DB + cfg config.AuthConfig +} + +func NewService(db *gorm.DB, cfg config.AuthConfig) *Service { + return &Service{db: db, cfg: cfg} +} + +func (s *Service) Login(username, password string) (TokenPair, error) { + var user model.User + if err := s.db.Where("username = ? AND status = ?", username, "active").First(&user).Error; err != nil { + if errors.Is(err, gorm.ErrRecordNotFound) { + return TokenPair{}, ErrInvalidCredentials + } + return TokenPair{}, err + } + if err := bcrypt.CompareHashAndPassword([]byte(user.PasswordHash), []byte(password)); err != nil { + return TokenPair{}, ErrInvalidCredentials + } + principal, err := s.principalForUser(user) + if err != nil { + return TokenPair{}, err + } + return s.issueTokenPair(principal) +} + +func (s *Service) Refresh(rawToken string) (TokenPair, error) { + hash := tokenHash(rawToken) + var stored model.RefreshToken + err := s.db.Where("token_hash = ? AND revoked_at IS NULL AND expires_at > ?", hash, time.Now()).First(&stored).Error + if err != nil { + return TokenPair{}, ErrInvalidCredentials + } + var user model.User + if err := s.db.First(&user, stored.UserID).Error; err != nil { + return TokenPair{}, err + } + principal, err := s.principalForUser(user) + if err != nil { + return TokenPair{}, err + } + now := time.Now() + if err := s.db.Model(&stored).Update("revoked_at", &now).Error; err != nil { + return TokenPair{}, err + } + return s.issueTokenPair(principal) +} + +func (s *Service) ParseAccessToken(rawToken string) (Principal, error) { + claims := &Claims{} + token, err := jwt.ParseWithClaims(rawToken, claims, func(token *jwt.Token) (interface{}, error) { + if token.Method.Alg() != jwt.SigningMethodHS256.Alg() { + return nil, fmt.Errorf("unexpected signing method: %s", token.Method.Alg()) + } + return []byte(s.cfg.JWTSecret), nil + }) + if err != nil || !token.Valid { + return Principal{}, ErrInvalidCredentials + } + userID, err := parseUint(claims.Subject) + if err != nil { + return Principal{}, ErrInvalidCredentials + } + return Principal{UserID: userID, TenantID: claims.TenantID, RoleCode: claims.RoleCode, Username: claims.Username, DisplayName: claims.DisplayName}, nil +} + +func (s *Service) issueTokenPair(principal Principal) (TokenPair, error) { + now := time.Now() + expiresAt := now.Add(s.cfg.AccessTokenTTL) + claims := Claims{ + TenantID: principal.TenantID, RoleCode: principal.RoleCode, Username: principal.Username, DisplayName: principal.DisplayName, + RegisteredClaims: jwt.RegisteredClaims{Subject: fmt.Sprintf("%d", principal.UserID), IssuedAt: jwt.NewNumericDate(now), ExpiresAt: jwt.NewNumericDate(expiresAt)}, + } + access, err := jwt.NewWithClaims(jwt.SigningMethodHS256, claims).SignedString([]byte(s.cfg.JWTSecret)) + if err != nil { + return TokenPair{}, err + } + refresh := uuid.NewString() + uuid.NewString() + record := model.RefreshToken{TenantID: principal.TenantID, UserID: principal.UserID, TokenHash: tokenHash(refresh), ExpiresAt: now.Add(s.cfg.RefreshTokenTTL)} + if err := s.db.Create(&record).Error; err != nil { + return TokenPair{}, err + } + return TokenPair{AccessToken: access, RefreshToken: refresh, ExpiresAt: expiresAt, User: principal}, nil +} + +func (s *Service) principalForUser(user model.User) (Principal, error) { + type row struct { + TenantID uint64 + RoleCode string + } + var membership row + err := s.db.Table("tenant_members tm").Select("tm.tenant_id, r.code AS role_code").Joins("JOIN roles r ON r.id = tm.role_id").Where("tm.user_id = ? AND tm.status = ?", user.ID, "active").First(&membership).Error + if err != nil { + return Principal{}, err + } + return Principal{UserID: user.ID, TenantID: membership.TenantID, RoleCode: membership.RoleCode, Username: user.Username, DisplayName: user.DisplayName}, nil +} + +func Seed(db *gorm.DB, cfg config.SeedConfig) error { + if cfg.AdminUsername == "" || cfg.AdminPassword == "" { + return nil + } + return db.Transaction(func(tx *gorm.DB) error { + var tenant model.Tenant + if err := tx.Where("slug = ?", "default").FirstOrCreate(&tenant, model.Tenant{Name: "默认企业", Slug: "default", Status: "active"}).Error; err != nil { + return err + } + permissions := datatypes.JSON([]byte(`["*"]`)) + var role model.Role + if err := tx.Where("tenant_id = ? AND code = ?", tenant.ID, "admin").FirstOrCreate(&role, model.Role{TenantID: tenant.ID, Name: "管理员", Code: "admin", Permissions: permissions}).Error; err != nil { + return err + } + var user model.User + err := tx.Where("username = ?", cfg.AdminUsername).First(&user).Error + if errors.Is(err, gorm.ErrRecordNotFound) { + hash, hashErr := bcrypt.GenerateFromPassword([]byte(cfg.AdminPassword), bcrypt.DefaultCost) + if hashErr != nil { + return hashErr + } + user = model.User{Username: cfg.AdminUsername, PasswordHash: string(hash), DisplayName: cfg.AdminDisplayName, Status: "active"} + if err := tx.Create(&user).Error; err != nil { + return err + } + } else if err != nil { + return err + } + var member model.TenantMember + return tx.Where("tenant_id = ? AND user_id = ?", tenant.ID, user.ID).FirstOrCreate(&member, model.TenantMember{TenantID: tenant.ID, UserID: user.ID, RoleID: role.ID, Status: "active"}).Error + }) +} + +func tokenHash(value string) string { + sum := sha256.Sum256([]byte(value)) + return hex.EncodeToString(sum[:]) +} + +func parseUint(value string) (uint64, error) { + var result uint64 + _, err := fmt.Sscanf(value, "%d", &result) + return result, err +} diff --git a/codes/internal/config/config.go b/codes/internal/config/config.go new file mode 100644 index 0000000..3397b18 --- /dev/null +++ b/codes/internal/config/config.go @@ -0,0 +1,134 @@ +package config + +import ( + "errors" + "fmt" + "os" + "path/filepath" + "strings" + "time" + + "github.com/ilyakaznacheev/cleanenv" +) + +type Config struct { + App AppConfig `yaml:"app"` + Server ServerConfig `yaml:"server"` + Database DatabaseConfig `yaml:"database"` + Auth AuthConfig `yaml:"auth"` + Seed SeedConfig `yaml:"seed"` +} + +type AppConfig struct { + Name string `yaml:"name" env:"APP_NAME" env-default:"iqudo-top1"` + Env string `yaml:"env" env:"APP_ENV" env-default:"development"` +} + +type ServerConfig struct { + Host string `yaml:"host" env:"APP_SERVER_HOST" env-default:"127.0.0.1"` + Port int `yaml:"port" env:"APP_SERVER_PORT" env-default:"8080"` + ReadTimeout time.Duration `yaml:"read_timeout" env:"APP_SERVER_READ_TIMEOUT" env-default:"10s"` + WriteTimeout time.Duration `yaml:"write_timeout" env:"APP_SERVER_WRITE_TIMEOUT" env-default:"20s"` + ShutdownTimeout time.Duration `yaml:"shutdown_timeout" env:"APP_SERVER_SHUTDOWN_TIMEOUT" env-default:"10s"` +} + +func (c ServerConfig) Address() string { + return fmt.Sprintf("%s:%d", c.Host, c.Port) +} + +type DatabaseConfig struct { + Host string `yaml:"host" env:"APP_DATABASE_HOST" env-default:"127.0.0.1"` + Port int `yaml:"port" env:"APP_DATABASE_PORT" env-default:"3306"` + Name string `yaml:"name" env:"APP_DATABASE_NAME"` + User string `yaml:"user" env:"APP_DATABASE_USER"` + Password string `yaml:"password" env:"APP_DATABASE_PASSWORD"` + MaxIdleConnections int `yaml:"max_idle_connections" env:"APP_DATABASE_MAX_IDLE_CONNECTIONS" env-default:"10"` + MaxOpenConnections int `yaml:"max_open_connections" env:"APP_DATABASE_MAX_OPEN_CONNECTIONS" env-default:"40"` + ConnectionMaxLifetime time.Duration `yaml:"connection_max_lifetime" env:"APP_DATABASE_CONNECTION_MAX_LIFETIME" env-default:"30m"` +} + +func (c DatabaseConfig) DSN() string { + return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8mb4&parseTime=True&loc=Local&multiStatements=true", c.User, c.Password, c.Host, c.Port, c.Name) +} + +type AuthConfig struct { + JWTSecret string `yaml:"jwt_secret" env:"APP_AUTH_JWT_SECRET"` + AccessTokenTTL time.Duration `yaml:"access_token_ttl" env:"APP_AUTH_ACCESS_TOKEN_TTL" env-default:"2h"` + RefreshTokenTTL time.Duration `yaml:"refresh_token_ttl" env:"APP_AUTH_REFRESH_TOKEN_TTL" env-default:"168h"` +} + +type SeedConfig struct { + AdminUsername string `yaml:"admin_username" env:"APP_SEED_ADMIN_USERNAME"` + AdminPassword string `yaml:"admin_password" env:"APP_SEED_ADMIN_PASSWORD"` + AdminDisplayName string `yaml:"admin_display_name" env:"APP_SEED_ADMIN_DISPLAY_NAME"` +} + +type LoadOptions struct { + Environment string + ConfigDir string +} + +func Load(options LoadOptions) (Config, error) { + configDir := options.ConfigDir + if configDir == "" { + configDir = "configs" + } + + environment := normalizeEnvironment(options.Environment) + if environment == "" { + environment = normalizeEnvironment(os.Getenv("APP_ENV")) + } + + var cfg Config + basePath := filepath.Join(configDir, "config.yml") + if err := cleanenv.ReadConfig(basePath, &cfg); err != nil { + return Config{}, fmt.Errorf("load base config %s: %w", basePath, err) + } + + if environment == "test" || environment == "prod" { + profilePath := filepath.Join(configDir, "config."+environment+".yml") + if err := cleanenv.ReadConfig(profilePath, &cfg); err != nil { + return Config{}, fmt.Errorf("load profile config %s: %w", profilePath, err) + } + } + + if err := cleanenv.ReadEnv(&cfg); err != nil { + return Config{}, fmt.Errorf("load environment variables: %w", err) + } + if environment != "" { + cfg.App.Env = environment + } + if err := cfg.Validate(); err != nil { + return Config{}, err + } + return cfg, nil +} + +func normalizeEnvironment(value string) string { + switch strings.ToLower(strings.TrimSpace(value)) { + case "production", "prod": + return "prod" + case "testing", "test": + return "test" + case "development", "dev", "local": + return "development" + default: + return strings.ToLower(strings.TrimSpace(value)) + } +} + +func (c Config) Validate() error { + if c.Database.Name == "" || c.Database.User == "" { + return errors.New("database name and user are required") + } + if len(c.Auth.JWTSecret) < 16 { + return errors.New("auth.jwt_secret must contain at least 16 characters") + } + if c.Server.Port < 1 || c.Server.Port > 65535 { + return errors.New("server.port must be between 1 and 65535") + } + if c.App.Env == "prod" && c.Database.Password == "" { + return errors.New("database password is required in production") + } + return nil +} diff --git a/codes/internal/dashboard/handler.go b/codes/internal/dashboard/handler.go new file mode 100644 index 0000000..1fc10e4 --- /dev/null +++ b/codes/internal/dashboard/handler.go @@ -0,0 +1,40 @@ +package dashboard + +import ( + "net/http" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "gorm.io/gorm" +) + +type Handler struct{ db *gorm.DB } + +func NewHandler(db *gorm.DB) *Handler { return &Handler{db: db} } + +func (h *Handler) Summary(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + counts := map[string]int64{} + queries := []struct { + key string + model interface{} + where string + args []interface{} + }{ + {key: "scenarios", model: &model.Scenario{}, where: "tenant_id = ? AND status <> ?", args: []interface{}{p.TenantID, "archived"}}, + {key: "published_sops", model: &model.SOP{}, where: "tenant_id = ? AND status = ?", args: []interface{}{p.TenantID, "published"}}, + {key: "runs", model: &model.SOPRun{}, where: "tenant_id = ?", args: []interface{}{p.TenantID}}, + {key: "completed_runs", model: &model.SOPRun{}, where: "tenant_id = ? AND status = ?", args: []interface{}{p.TenantID, "completed"}}, + } + for _, query := range queries { + var count int64 + if err := h.db.Model(query.model).Where(query.where, query.args...).Count(&count).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询统计数据失败") + return + } + counts[query.key] = count + } + response.OK(c, counts) +} diff --git a/codes/internal/database/database.go b/codes/internal/database/database.go new file mode 100644 index 0000000..c523777 --- /dev/null +++ b/codes/internal/database/database.go @@ -0,0 +1,86 @@ +package database + +import ( + "context" + "errors" + "fmt" + "time" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/config" + "go.uber.org/zap" + "gorm.io/driver/mysql" + "gorm.io/gorm" + gormlogger "gorm.io/gorm/logger" +) + +func Open(cfg config.DatabaseConfig, log *zap.Logger) (*gorm.DB, error) { + db, err := gorm.Open(mysql.Open(cfg.DSN()), &gorm.Config{ + Logger: newGORMLogger(log.Named("gorm"), gormlogger.Warn), + }) + if err != nil { + return nil, fmt.Errorf("open mysql: %w", err) + } + + sqlDB, err := db.DB() + if err != nil { + return nil, fmt.Errorf("get sql database: %w", err) + } + sqlDB.SetMaxIdleConns(cfg.MaxIdleConnections) + sqlDB.SetMaxOpenConns(cfg.MaxOpenConnections) + sqlDB.SetConnMaxLifetime(cfg.ConnectionMaxLifetime) + + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() + if err := sqlDB.PingContext(ctx); err != nil { + return nil, fmt.Errorf("ping mysql: %w", err) + } + return db, nil +} + +type zapGORMLogger struct { + log *zap.Logger + level gormlogger.LogLevel +} + +func newGORMLogger(log *zap.Logger, level gormlogger.LogLevel) gormlogger.Interface { + return &zapGORMLogger{log: log, level: level} +} + +func (l *zapGORMLogger) LogMode(level gormlogger.LogLevel) gormlogger.Interface { + clone := *l + clone.level = level + return &clone +} + +func (l *zapGORMLogger) Info(_ context.Context, msg string, data ...interface{}) { + if l.level >= gormlogger.Info { + l.log.Sugar().Infof(msg, data...) + } +} + +func (l *zapGORMLogger) Warn(_ context.Context, msg string, data ...interface{}) { + if l.level >= gormlogger.Warn { + l.log.Sugar().Warnf(msg, data...) + } +} + +func (l *zapGORMLogger) Error(_ context.Context, msg string, data ...interface{}) { + if l.level >= gormlogger.Error { + l.log.Sugar().Errorf(msg, data...) + } +} + +func (l *zapGORMLogger) Trace(_ context.Context, begin time.Time, fc func() (string, int64), err error) { + if l.level == gormlogger.Silent { + return + } + sql, rows := fc() + fields := []zap.Field{zap.Duration("duration", time.Since(begin)), zap.Int64("rows", rows), zap.String("sql", sql)} + if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) && l.level >= gormlogger.Error { + l.log.Error("query failed", append(fields, zap.Error(err))...) + return + } + if l.level >= gormlogger.Info { + l.log.Debug("query", fields...) + } +} diff --git a/codes/internal/httpserver/server.go b/codes/internal/httpserver/server.go new file mode 100644 index 0000000..6b706d6 --- /dev/null +++ b/codes/internal/httpserver/server.go @@ -0,0 +1,114 @@ +package httpserver + +import ( + "io/fs" + "mime" + "net/http" + "path" + "strings" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/dashboard" + "git.iwork-ai.com/xdc/iqudo-top1/internal/knowledge" + "git.iwork-ai.com/xdc/iqudo-top1/internal/middleware" + runhandler "git.iwork-ai.com/xdc/iqudo-top1/internal/run" + "git.iwork-ai.com/xdc/iqudo-top1/internal/scenario" + "git.iwork-ai.com/xdc/iqudo-top1/internal/sop" + "github.com/gin-gonic/gin" + "go.uber.org/zap" + "gorm.io/gorm" +) + +func New(db *gorm.DB, authService *auth.Service, frontend fs.FS, log *zap.Logger, environment string) http.Handler { + if environment == "prod" { + gin.SetMode(gin.ReleaseMode) + } + router := gin.New() + router.Use(middleware.RequestLogger(log.Named("http")), middleware.Recovery(log.Named("recovery"))) + + authHandler := auth.NewHandler(authService) + scenarioHandler := scenario.NewHandler(db) + sopHandler := sop.NewHandler(db) + runHandler := runhandler.NewHandler(db) + knowledgeHandler := knowledge.NewHandler(db) + dashboardHandler := dashboard.NewHandler(db) + + api := router.Group("/api/v1") + api.GET("/health", func(c *gin.Context) { + c.JSON(http.StatusOK, gin.H{"status": "ok"}) + }) + api.POST("/auth/login", authHandler.Login) + api.POST("/auth/refresh", authHandler.Refresh) + + protected := api.Group("") + protected.Use(middleware.Authenticate(authService)) + protected.GET("/auth/me", authHandler.Me) + protected.GET("/dashboard/summary", dashboardHandler.Summary) + + protected.GET("/scenarios", scenarioHandler.List) + protected.POST("/scenarios", scenarioHandler.Create) + protected.GET("/scenarios/:id", scenarioHandler.Get) + protected.PUT("/scenarios/:id", scenarioHandler.Update) + protected.DELETE("/scenarios/:id", scenarioHandler.Archive) + protected.POST("/scenarios/:id/fields", scenarioHandler.CreateField) + protected.PUT("/scenario-fields/:fieldId", scenarioHandler.UpdateField) + protected.DELETE("/scenario-fields/:fieldId", scenarioHandler.DeleteField) + + protected.GET("/sops", sopHandler.List) + protected.GET("/scenarios/:id/sops", sopHandler.List) + protected.POST("/scenarios/:id/sops", sopHandler.Create) + protected.GET("/sops/:id", sopHandler.Get) + protected.PUT("/sops/:id/draft", sopHandler.SaveGraph) + protected.POST("/sops/:id/validate", sopHandler.Validate) + protected.POST("/sops/:id/submit-review", sopHandler.SubmitReview) + protected.POST("/sops/:id/publish", sopHandler.Publish) + protected.POST("/sops/:id/offline", sopHandler.Offline) + protected.POST("/sops/:id/versions", sopHandler.CreateVersion) + + protected.GET("/published-sops", runHandler.PublishedSOPs) + protected.GET("/runs", runHandler.List) + protected.POST("/runs", runHandler.Start) + protected.GET("/runs/:id", runHandler.Get) + protected.POST("/runs/:id/answer", runHandler.Answer) + protected.POST("/runs/:id/finish", runHandler.Finish) + protected.POST("/runs/:id/feedback", runHandler.Feedback) + + protected.GET("/knowledge-cards", knowledgeHandler.List) + protected.POST("/knowledge-cards", knowledgeHandler.Create) + protected.DELETE("/knowledge-cards/:id", knowledgeHandler.Delete) + + router.NoRoute(spaHandler(frontend)) + return router +} + +func spaHandler(frontend fs.FS) gin.HandlerFunc { + return func(c *gin.Context) { + if strings.HasPrefix(c.Request.URL.Path, "/api/") { + c.JSON(http.StatusNotFound, gin.H{"code": "NOT_FOUND", "message": "接口不存在"}) + return + } + name := strings.TrimPrefix(path.Clean(c.Request.URL.Path), "/") + if name == "" || name == "." { + name = "index.html" + } + data, err := fs.ReadFile(frontend, name) + if err != nil { + name = "index.html" + data, err = fs.ReadFile(frontend, name) + } + if err != nil { + c.Status(http.StatusNotFound) + return + } + contentType := mime.TypeByExtension(path.Ext(name)) + if contentType == "" { + contentType = "application/octet-stream" + } + if name == "index.html" { + c.Header("Cache-Control", "no-cache") + } else { + c.Header("Cache-Control", "public, max-age=31536000, immutable") + } + c.Data(http.StatusOK, contentType, data) + } +} diff --git a/codes/internal/knowledge/handler.go b/codes/internal/knowledge/handler.go new file mode 100644 index 0000000..997715b --- /dev/null +++ b/codes/internal/knowledge/handler.go @@ -0,0 +1,79 @@ +package knowledge + +import ( + "encoding/json" + "net/http" + "strconv" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/audit" + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +type Handler struct{ db *gorm.DB } + +func NewHandler(db *gorm.DB) *Handler { return &Handler{db: db} } + +type input struct { + ScenarioID uint64 `json:"scenario_id" binding:"required"` + Title string `json:"title" binding:"required,max=128"` + Content map[string]interface{} `json:"content" binding:"required"` +} + +func (h *Handler) List(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + type row struct { + model.KnowledgeCard + Content datatypes.JSON `json:"content"` + } + var items []row + err := h.db.Table("knowledge_cards kc").Select("kc.*, kcv.content").Joins("LEFT JOIN knowledge_card_versions kcv ON kcv.knowledge_card_id = kc.id AND kcv.status = ?", "published").Where("kc.tenant_id = ?", p.TenantID).Order("kc.updated_at DESC").Scan(&items).Error + if err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询知识卡失败") + return + } + response.OK(c, gin.H{"items": items, "total": len(items)}) +} + +func (h *Handler) Create(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + var body input + if err := c.ShouldBindJSON(&body); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "知识卡内容不完整") + return + } + content, _ := json.Marshal(body.Content) + var card model.KnowledgeCard + err := h.db.Transaction(func(tx *gorm.DB) error { + card = model.KnowledgeCard{TenantID: p.TenantID, ScenarioID: body.ScenarioID, Title: body.Title, Status: "published", CreatedBy: p.UserID} + if err := tx.Create(&card).Error; err != nil { + return err + } + return tx.Create(&model.KnowledgeCardVersion{TenantID: p.TenantID, KnowledgeCardID: card.ID, Version: 1, Content: datatypes.JSON(content), Status: "published"}).Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "CREATE_FAILED", "创建知识卡失败") + return + } + _ = audit.Record(h.db, p, "create", "knowledge_card", card.ID, body) + response.Created(c, card) +} + +func (h *Handler) Delete(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, err := strconv.ParseUint(c.Param("id"), 10, 64) + if err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ID", "知识卡 ID 不正确") + return + } + result := h.db.Model(&model.KnowledgeCard{}).Where("id = ? AND tenant_id = ?", id, p.TenantID).Update("status", "archived") + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "知识卡不存在") + return + } + response.OK(c, gin.H{"id": id}) +} diff --git a/codes/internal/logger/logger.go b/codes/internal/logger/logger.go new file mode 100644 index 0000000..18e1101 --- /dev/null +++ b/codes/internal/logger/logger.go @@ -0,0 +1,28 @@ +package logger + +import ( + "strings" + + "go.uber.org/zap" + "go.uber.org/zap/zapcore" +) + +func New(environment, service string) (*zap.Logger, error) { + var cfg zap.Config + if strings.EqualFold(environment, "prod") || strings.EqualFold(environment, "production") { + cfg = zap.NewProductionConfig() + cfg.EncoderConfig.TimeKey = "time" + cfg.EncoderConfig.EncodeTime = zapcore.ISO8601TimeEncoder + } else { + cfg = zap.NewDevelopmentConfig() + cfg.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder + } + cfg.OutputPaths = []string{"stdout"} + cfg.ErrorOutputPaths = []string{"stderr"} + + log, err := cfg.Build() + if err != nil { + return nil, err + } + return log.With(zap.String("service", service), zap.String("env", environment)), nil +} diff --git a/codes/internal/middleware/http.go b/codes/internal/middleware/http.go new file mode 100644 index 0000000..08f56a9 --- /dev/null +++ b/codes/internal/middleware/http.go @@ -0,0 +1,69 @@ +package middleware + +import ( + "net/http" + "runtime/debug" + "strings" + "time" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "github.com/google/uuid" + "go.uber.org/zap" +) + +func RequestLogger(log *zap.Logger) gin.HandlerFunc { + return func(c *gin.Context) { + started := time.Now() + requestID := c.GetHeader("X-Request-ID") + if requestID == "" { + requestID = uuid.NewString() + } + c.Set("request_id", requestID) + c.Header("X-Request-ID", requestID) + c.Next() + + fields := []zap.Field{ + zap.String("request_id", requestID), zap.String("method", c.Request.Method), zap.String("path", c.Request.URL.Path), + zap.Int("status", c.Writer.Status()), zap.Int("response_bytes", c.Writer.Size()), zap.Duration("duration", time.Since(started)), zap.String("client_ip", c.ClientIP()), + } + if principal, ok := auth.PrincipalFromContext(c); ok { + fields = append(fields, zap.Uint64("tenant_id", principal.TenantID), zap.Uint64("user_id", principal.UserID)) + } + if len(c.Errors) > 0 { + fields = append(fields, zap.String("errors", c.Errors.String())) + } + log.Info("http request", fields...) + } +} + +func Recovery(log *zap.Logger) gin.HandlerFunc { + return func(c *gin.Context) { + defer func() { + if recovered := recover(); recovered != nil { + log.Error("panic recovered", zap.Any("panic", recovered), zap.ByteString("stack", debug.Stack())) + response.Error(c, http.StatusInternalServerError, "INTERNAL_ERROR", "服务暂时不可用") + } + }() + c.Next() + } +} + +func Authenticate(service *auth.Service) gin.HandlerFunc { + return func(c *gin.Context) { + header := c.GetHeader("Authorization") + parts := strings.SplitN(header, " ", 2) + if len(parts) != 2 || !strings.EqualFold(parts[0], "Bearer") { + response.Error(c, http.StatusUnauthorized, "UNAUTHORIZED", "请先登录") + return + } + principal, err := service.ParseAccessToken(parts[1]) + if err != nil { + response.Error(c, http.StatusUnauthorized, "INVALID_TOKEN", "登录状态已失效") + return + } + auth.SetPrincipal(c, principal) + c.Next() + } +} diff --git a/codes/internal/migration/migration.go b/codes/internal/migration/migration.go new file mode 100644 index 0000000..d5cd133 --- /dev/null +++ b/codes/internal/migration/migration.go @@ -0,0 +1,35 @@ +package migration + +import ( + "errors" + "fmt" + "io/fs" + + "github.com/golang-migrate/migrate/v4" + migratemysql "github.com/golang-migrate/migrate/v4/database/mysql" + "github.com/golang-migrate/migrate/v4/source/iofs" + "gorm.io/gorm" +) + +func Run(db *gorm.DB, files fs.FS) error { + sqlDB, err := db.DB() + if err != nil { + return fmt.Errorf("get sql database: %w", err) + } + driver, err := migratemysql.WithInstance(sqlDB, &migratemysql.Config{}) + if err != nil { + return fmt.Errorf("create migration database driver: %w", err) + } + source, err := iofs.New(files, "migrations") + if err != nil { + return fmt.Errorf("create migration source: %w", err) + } + m, err := migrate.NewWithInstance("iofs", source, "mysql", driver) + if err != nil { + return fmt.Errorf("create migrator: %w", err) + } + if err := m.Up(); err != nil && !errors.Is(err, migrate.ErrNoChange) { + return fmt.Errorf("run migrations: %w", err) + } + return nil +} diff --git a/codes/internal/model/models.go b/codes/internal/model/models.go new file mode 100644 index 0000000..fd5c802 --- /dev/null +++ b/codes/internal/model/models.go @@ -0,0 +1,186 @@ +package model + +import ( + "time" + + "gorm.io/datatypes" +) + +type Base struct { + ID uint64 `json:"id" gorm:"primaryKey;autoIncrement"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` +} + +type Tenant struct { + Base + Name string `json:"name" gorm:"size:128;not null"` + Slug string `json:"slug" gorm:"size:64;not null;uniqueIndex"` + Status string `json:"status" gorm:"size:24;not null"` +} + +type User struct { + Base + Username string `json:"username" gorm:"size:64;not null;uniqueIndex"` + PasswordHash string `json:"-" gorm:"size:255;not null"` + DisplayName string `json:"display_name" gorm:"size:128;not null"` + Status string `json:"status" gorm:"size:24;not null"` +} + +type Role struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + Name string `json:"name" gorm:"size:64;not null"` + Code string `json:"code" gorm:"size:64;not null"` + Permissions datatypes.JSON `json:"permissions" gorm:"type:json;not null"` +} + +type TenantMember struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + UserID uint64 `json:"user_id" gorm:"not null;index"` + RoleID uint64 `json:"role_id" gorm:"not null;index"` + Status string `json:"status" gorm:"size:24;not null"` +} + +type Scenario struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + Name string `json:"name" gorm:"size:128;not null"` + Industry string `json:"industry" gorm:"size:64;not null"` + RoleName string `json:"role_name" gorm:"size:64;not null"` + Goal string `json:"goal" gorm:"type:text;not null"` + TriggerText string `json:"trigger_text" gorm:"type:text;not null"` + Visibility string `json:"visibility" gorm:"size:24;not null"` + Status string `json:"status" gorm:"size:24;not null"` + CreatedBy uint64 `json:"created_by" gorm:"not null"` +} + +type ScenarioField struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + ScenarioID uint64 `json:"scenario_id" gorm:"not null;index"` + FieldKey string `json:"field_key" gorm:"size:64;not null"` + FieldName string `json:"field_name" gorm:"size:128;not null"` + FieldType string `json:"field_type" gorm:"size:32;not null"` + Required bool `json:"required" gorm:"not null"` + Options datatypes.JSON `json:"options" gorm:"type:json;not null"` + Validation datatypes.JSON `json:"validation" gorm:"type:json;not null"` + SortOrder int `json:"sort_order" gorm:"not null"` +} + +type SOP struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + ScenarioID uint64 `json:"scenario_id" gorm:"not null;index"` + Name string `json:"name" gorm:"size:128;not null"` + Description string `json:"description" gorm:"type:text;not null"` + Status string `json:"status" gorm:"size:24;not null"` + CreatedBy uint64 `json:"created_by" gorm:"not null"` +} + +type SOPVersion struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + SOPID uint64 `json:"sop_id" gorm:"not null;index"` + Version int `json:"version" gorm:"not null"` + Status string `json:"status" gorm:"size:24;not null"` + StartNodeKey string `json:"start_node_key" gorm:"size:64;not null"` + PublishedAt *time.Time `json:"published_at"` + CreatedBy uint64 `json:"created_by" gorm:"not null"` + ReviewedBy *uint64 `json:"reviewed_by"` +} + +type SOPNode struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + SOPVersionID uint64 `json:"sop_version_id" gorm:"not null;index"` + NodeKey string `json:"node_key" gorm:"size:64;not null"` + Type string `json:"type" gorm:"size:32;not null"` + Title string `json:"title" gorm:"size:128;not null"` + Content string `json:"content" gorm:"type:text;not null"` + Config datatypes.JSON `json:"config" gorm:"type:json;not null"` + PositionX int `json:"position_x" gorm:"not null"` + PositionY int `json:"position_y" gorm:"not null"` +} + +type SOPEdge struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + SOPVersionID uint64 `json:"sop_version_id" gorm:"not null;index"` + SourceNodeKey string `json:"source_node_key" gorm:"size:64;not null"` + TargetNodeKey string `json:"target_node_key" gorm:"size:64;not null"` + Condition datatypes.JSON `json:"condition" gorm:"type:json;not null"` + Priority int `json:"priority" gorm:"not null"` +} + +type KnowledgeCard struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + ScenarioID uint64 `json:"scenario_id" gorm:"not null;index"` + Title string `json:"title" gorm:"size:128;not null"` + Status string `json:"status" gorm:"size:24;not null"` + CreatedBy uint64 `json:"created_by" gorm:"not null"` +} + +type KnowledgeCardVersion struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + KnowledgeCardID uint64 `json:"knowledge_card_id" gorm:"not null;index"` + Version int `json:"version" gorm:"not null"` + Content datatypes.JSON `json:"content" gorm:"type:json;not null"` + Status string `json:"status" gorm:"size:24;not null"` +} + +type SOPRun struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + SOPID uint64 `json:"sop_id" gorm:"not null;index"` + SOPVersionID uint64 `json:"sop_version_id" gorm:"not null;index"` + OperatorID uint64 `json:"operator_id" gorm:"not null;index"` + CurrentNodeKey string `json:"current_node_key" gorm:"size:64;not null"` + Status string `json:"status" gorm:"size:24;not null"` + Answers datatypes.JSON `json:"answers" gorm:"type:json;not null"` + Result string `json:"result" gorm:"size:64;not null"` + StartedAt time.Time `json:"started_at"` + CompletedAt *time.Time `json:"completed_at"` +} + +type SOPRunEvent struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + RunID uint64 `json:"run_id" gorm:"not null;index"` + NodeKey string `json:"node_key" gorm:"size:64;not null"` + Action string `json:"action" gorm:"size:64;not null"` + Payload datatypes.JSON `json:"payload" gorm:"type:json;not null"` +} + +type SOPFeedback struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + RunID uint64 `json:"run_id" gorm:"not null;index"` + UserID uint64 `json:"user_id" gorm:"not null;index"` + Score int `json:"score" gorm:"not null"` + Comment string `json:"comment" gorm:"type:text;not null"` +} + +func (SOPFeedback) TableName() string { return "sop_feedback" } + +type AuditLog struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + UserID uint64 `json:"user_id" gorm:"not null;index"` + Action string `json:"action" gorm:"size:64;not null"` + Resource string `json:"resource" gorm:"size:64;not null"` + ResourceID uint64 `json:"resource_id" gorm:"not null"` + Payload datatypes.JSON `json:"payload" gorm:"type:json;not null"` +} + +type RefreshToken struct { + Base + TenantID uint64 `json:"tenant_id" gorm:"not null;index"` + UserID uint64 `json:"user_id" gorm:"not null;index"` + TokenHash string `json:"-" gorm:"size:64;not null;uniqueIndex"` + ExpiresAt time.Time `json:"expires_at" gorm:"not null"` + RevokedAt *time.Time `json:"revoked_at"` +} diff --git a/codes/internal/response/response.go b/codes/internal/response/response.go new file mode 100644 index 0000000..c3804f1 --- /dev/null +++ b/codes/internal/response/response.go @@ -0,0 +1,21 @@ +package response + +import "github.com/gin-gonic/gin" + +type Envelope struct { + Code string `json:"code"` + Message string `json:"message"` + Data interface{} `json:"data,omitempty"` +} + +func OK(c *gin.Context, data interface{}) { + c.JSON(200, Envelope{Code: "OK", Message: "success", Data: data}) +} + +func Created(c *gin.Context, data interface{}) { + c.JSON(201, Envelope{Code: "CREATED", Message: "created", Data: data}) +} + +func Error(c *gin.Context, status int, code, message string) { + c.AbortWithStatusJSON(status, Envelope{Code: code, Message: message}) +} diff --git a/codes/internal/run/engine.go b/codes/internal/run/engine.go new file mode 100644 index 0000000..7b7acb7 --- /dev/null +++ b/codes/internal/run/engine.go @@ -0,0 +1,129 @@ +package run + +import ( + "encoding/json" + "fmt" + "reflect" + "strings" +) + +func matchCondition(raw json.RawMessage, answers map[string]interface{}) (bool, error) { + if len(raw) == 0 || string(raw) == "{}" || string(raw) == "null" { + return true, nil + } + var rule map[string]interface{} + if err := json.Unmarshal(raw, &rule); err != nil { + return false, err + } + if all, ok := rule["all"].([]interface{}); ok { + for _, item := range all { + object, ok := item.(map[string]interface{}) + if !ok { + return false, fmt.Errorf("invalid all condition") + } + matched, err := matchRule(object, answers) + if err != nil || !matched { + return false, err + } + } + return true, nil + } + if any, ok := rule["any"].([]interface{}); ok { + for _, item := range any { + object, ok := item.(map[string]interface{}) + if !ok { + continue + } + matched, err := matchRule(object, answers) + if err != nil { + return false, err + } + if matched { + return true, nil + } + } + return false, nil + } + return matchRule(rule, answers) +} + +func matchRule(rule map[string]interface{}, answers map[string]interface{}) (bool, error) { + field, _ := rule["field"].(string) + operator, _ := rule["operator"].(string) + if field == "" || operator == "" { + return false, fmt.Errorf("condition field and operator are required") + } + actual, exists := answers[field] + expected := rule["value"] + switch operator { + case "exists": + return exists && actual != nil && fmt.Sprint(actual) != "", nil + case "not_exists": + return !exists || actual == nil || fmt.Sprint(actual) == "", nil + case "equals": + return reflect.DeepEqual(normalizeValue(actual), normalizeValue(expected)), nil + case "not_equals": + return !reflect.DeepEqual(normalizeValue(actual), normalizeValue(expected)), nil + case "contains": + return strings.Contains(strings.ToLower(fmt.Sprint(actual)), strings.ToLower(fmt.Sprint(expected))), nil + case "greater_than", "less_than": + left, leftOK := toFloat(actual) + right, rightOK := toFloat(expected) + if !leftOK || !rightOK { + return false, nil + } + if operator == "greater_than" { + return left > right, nil + } + return left < right, nil + case "in": + values, ok := expected.([]interface{}) + if !ok { + return false, nil + } + for _, value := range values { + if reflect.DeepEqual(normalizeValue(actual), normalizeValue(value)) { + return true, nil + } + } + return false, nil + default: + return false, fmt.Errorf("unsupported operator: %s", operator) + } +} + +func normalizeValue(value interface{}) interface{} { + switch typed := value.(type) { + case json.Number: + if number, err := typed.Float64(); err == nil { + return number + } + case int: + return float64(typed) + case int64: + return float64(typed) + case uint64: + return float64(typed) + } + return value +} + +func toFloat(value interface{}) (float64, bool) { + switch typed := value.(type) { + case float64: + return typed, true + case float32: + return float64(typed), true + case int: + return float64(typed), true + case int64: + return float64(typed), true + case uint64: + return float64(typed), true + case json.Number: + result, err := typed.Float64() + return result, err == nil + default: + return 0, false + } +} diff --git a/codes/internal/run/engine_test.go b/codes/internal/run/engine_test.go new file mode 100644 index 0000000..bc54d00 --- /dev/null +++ b/codes/internal/run/engine_test.go @@ -0,0 +1,33 @@ +package run + +import ( + "encoding/json" + "testing" +) + +func TestMatchCondition(t *testing.T) { + answers := map[string]interface{}{"weight": float64(6), "urgent": true, "symptom": "持续呕吐"} + tests := []struct { + name string + rule string + want bool + }{ + {name: "default", rule: `{}`, want: true}, + {name: "equals", rule: `{"field":"urgent","operator":"equals","value":true}`, want: true}, + {name: "greater", rule: `{"field":"weight","operator":"greater_than","value":5}`, want: true}, + {name: "contains", rule: `{"field":"symptom","operator":"contains","value":"呕吐"}`, want: true}, + {name: "all", rule: `{"all":[{"field":"urgent","operator":"equals","value":true},{"field":"weight","operator":"greater_than","value":5}]}`, want: true}, + {name: "any false", rule: `{"any":[{"field":"urgent","operator":"equals","value":false},{"field":"weight","operator":"less_than","value":3}]}`, want: false}, + } + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + got, err := matchCondition(json.RawMessage(test.rule), answers) + if err != nil { + t.Fatalf("matchCondition returned error: %v", err) + } + if got != test.want { + t.Fatalf("matchCondition() = %v, want %v", got, test.want) + } + }) + } +} diff --git a/codes/internal/run/handler.go b/codes/internal/run/handler.go new file mode 100644 index 0000000..f214665 --- /dev/null +++ b/codes/internal/run/handler.go @@ -0,0 +1,247 @@ +package run + +import ( + "encoding/json" + "errors" + "net/http" + "sort" + "strconv" + "time" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/audit" + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +type Handler struct { + db *gorm.DB +} + +func NewHandler(db *gorm.DB) *Handler { + return &Handler{db: db} +} + +func (h *Handler) PublishedSOPs(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + type item struct { + ID uint64 `json:"id"` + Name string `json:"name"` + Description string `json:"description"` + ScenarioID uint64 `json:"scenario_id"` + ScenarioName string `json:"scenario_name"` + Version int `json:"version"` + } + var items []item + err := h.db.Table("sops s").Select("s.id, s.name, s.description, s.scenario_id, sc.name AS scenario_name, sv.version").Joins("JOIN scenarios sc ON sc.id = s.scenario_id").Joins("JOIN sop_versions sv ON sv.sop_id = s.id AND sv.status = ?", "published").Where("s.tenant_id = ? AND s.status = ?", p.TenantID, "published").Order("s.updated_at DESC").Scan(&items).Error + if err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询可执行 SOP 失败") + return + } + response.OK(c, gin.H{"items": items, "total": len(items)}) +} + +func (h *Handler) Start(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + var input struct { + SOPID uint64 `json:"sop_id" binding:"required"` + } + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "请选择要执行的 SOP") + return + } + var version model.SOPVersion + if err := h.db.Where("sop_id = ? AND tenant_id = ? AND status = ?", input.SOPID, p.TenantID, "published").Order("version DESC").First(&version).Error; err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "没有可执行的已发布版本") + return + } + run := model.SOPRun{TenantID: p.TenantID, SOPID: input.SOPID, SOPVersionID: version.ID, OperatorID: p.UserID, CurrentNodeKey: version.StartNodeKey, Status: "running", Answers: datatypes.JSON([]byte(`{}`)), Result: "", StartedAt: time.Now()} + err := h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Create(&run).Error; err != nil { + return err + } + return tx.Create(&model.SOPRunEvent{TenantID: p.TenantID, RunID: run.ID, NodeKey: run.CurrentNodeKey, Action: "start", Payload: datatypes.JSON([]byte(`{}`))}).Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "START_FAILED", "启动 SOP 失败") + return + } + _ = audit.Record(h.db, p, "start", "sop_run", run.ID, gin.H{"sop_id": input.SOPID}) + h.respondRun(c, run) +} + +func (h *Handler) Get(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := runID(c) + if !ok { + return + } + var item model.SOPRun + if err := h.db.Where("id = ? AND tenant_id = ?", id, p.TenantID).First(&item).Error; err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "执行记录不存在") + return + } + h.respondRun(c, item) +} + +func (h *Handler) List(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + type row struct { + model.SOPRun + SOPName string `json:"sop_name"` + } + var items []row + if err := h.db.Table("sop_runs r").Select("r.*, s.name AS sop_name").Joins("JOIN sops s ON s.id = r.sop_id").Where("r.tenant_id = ?", p.TenantID).Order("r.created_at DESC").Limit(100).Scan(&items).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询执行记录失败") + return + } + response.OK(c, gin.H{"items": items, "total": len(items)}) +} + +func (h *Handler) Answer(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := runID(c) + if !ok { + return + } + var input struct { + Answers map[string]interface{} `json:"answers"` + } + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "回答格式不正确") + return + } + var updated model.SOPRun + err := h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Clauses().Where("id = ? AND tenant_id = ?", id, p.TenantID).First(&updated).Error; err != nil { + return err + } + if updated.Status != "running" { + return errors.New("run is not active") + } + answers := map[string]interface{}{} + if len(updated.Answers) > 0 { + _ = json.Unmarshal(updated.Answers, &answers) + } + for key, value := range input.Answers { + answers[key] = value + } + var edges []model.SOPEdge + if err := tx.Where("sop_version_id = ? AND source_node_key = ?", updated.SOPVersionID, updated.CurrentNodeKey).Order("priority, id").Find(&edges).Error; err != nil { + return err + } + sort.SliceStable(edges, func(i, j int) bool { return edges[i].Priority < edges[j].Priority }) + nextKey := "" + for _, edge := range edges { + matched, matchErr := matchCondition(json.RawMessage(edge.Condition), answers) + if matchErr != nil { + return matchErr + } + if matched { + nextKey = edge.TargetNodeKey + break + } + } + if nextKey == "" { + return errors.New("没有满足条件的下一节点") + } + answerBytes, _ := json.Marshal(answers) + payload, _ := json.Marshal(input) + if err := tx.Create(&model.SOPRunEvent{TenantID: p.TenantID, RunID: updated.ID, NodeKey: updated.CurrentNodeKey, Action: "answer", Payload: datatypes.JSON(payload)}).Error; err != nil { + return err + } + var next model.SOPNode + if err := tx.Where("sop_version_id = ? AND node_key = ?", updated.SOPVersionID, nextKey).First(&next).Error; err != nil { + return err + } + updates := map[string]interface{}{"current_node_key": nextKey, "answers": datatypes.JSON(answerBytes)} + if next.Type == "finish" || next.Type == "escalate" { + now := time.Now() + updates["status"] = "completed" + updates["completed_at"] = &now + updates["result"] = next.Type + updated.Status = "completed" + updated.CompletedAt = &now + updated.Result = next.Type + } + if err := tx.Model(&updated).Updates(updates).Error; err != nil { + return err + } + updated.CurrentNodeKey = nextKey + updated.Answers = datatypes.JSON(answerBytes) + return tx.Create(&model.SOPRunEvent{TenantID: p.TenantID, RunID: updated.ID, NodeKey: nextKey, Action: "enter", Payload: datatypes.JSON([]byte(`{}`))}).Error + }) + if err != nil { + response.Error(c, http.StatusUnprocessableEntity, "ADVANCE_FAILED", err.Error()) + return + } + h.respondRun(c, updated) +} + +func (h *Handler) Finish(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := runID(c) + if !ok { + return + } + var input struct { + Result string `json:"result" binding:"required,max=64"` + } + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "请选择执行结果") + return + } + now := time.Now() + result := h.db.Model(&model.SOPRun{}).Where("id = ? AND tenant_id = ?", id, p.TenantID).Updates(map[string]interface{}{"status": "completed", "result": input.Result, "completed_at": &now}) + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "执行记录不存在") + return + } + _ = audit.Record(h.db, p, "finish", "sop_run", id, input) + h.Get(c) +} + +func (h *Handler) Feedback(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := runID(c) + if !ok { + return + } + var input struct { + Score int `json:"score" binding:"required,min=1,max=5"` + Comment string `json:"comment" binding:"max=2000"` + } + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "反馈内容不正确") + return + } + item := model.SOPFeedback{TenantID: p.TenantID, RunID: id, UserID: p.UserID, Score: input.Score, Comment: input.Comment} + if err := h.db.Create(&item).Error; err != nil { + response.Error(c, http.StatusConflict, "FEEDBACK_EXISTS", "该执行记录已经提交反馈") + return + } + response.Created(c, item) +} + +func (h *Handler) respondRun(c *gin.Context, item model.SOPRun) { + var node model.SOPNode + if err := h.db.Where("sop_version_id = ? AND node_key = ?", item.SOPVersionID, item.CurrentNodeKey).First(&node).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "NODE_NOT_FOUND", "当前流程节点不存在") + return + } + var fields []model.ScenarioField + h.db.Table("scenario_fields sf").Joins("JOIN sops s ON s.scenario_id = sf.scenario_id").Where("s.id = ? AND sf.tenant_id = ?", item.SOPID, item.TenantID).Order("sf.sort_order, sf.id").Find(&fields) + response.OK(c, gin.H{"run": item, "node": node, "fields": fields}) +} + +func runID(c *gin.Context) (uint64, bool) { + id, err := strconv.ParseUint(c.Param("id"), 10, 64) + if err != nil || id == 0 { + response.Error(c, http.StatusBadRequest, "INVALID_ID", "执行记录 ID 不正确") + return 0, false + } + return id, true +} diff --git a/codes/internal/scenario/handler.go b/codes/internal/scenario/handler.go new file mode 100644 index 0000000..b7b2ef5 --- /dev/null +++ b/codes/internal/scenario/handler.go @@ -0,0 +1,241 @@ +package scenario + +import ( + "encoding/json" + "errors" + "net/http" + "regexp" + "strconv" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/audit" + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +type Handler struct { + db *gorm.DB +} + +func NewHandler(db *gorm.DB) *Handler { + return &Handler{db: db} +} + +type scenarioInput struct { + Name string `json:"name" binding:"required,max=128"` + Industry string `json:"industry" binding:"required,max=64"` + RoleName string `json:"role_name" binding:"required,max=64"` + Goal string `json:"goal" binding:"required,max=2000"` + TriggerText string `json:"trigger_text" binding:"required,max=2000"` + Visibility string `json:"visibility" binding:"omitempty,oneof=private team tenant"` +} + +type fieldInput struct { + FieldKey string `json:"field_key" binding:"required,max=64"` + FieldName string `json:"field_name" binding:"required,max=128"` + FieldType string `json:"field_type" binding:"required,oneof=text textarea number boolean select multiselect date"` + Required bool `json:"required"` + Options json.RawMessage `json:"options"` + Validation json.RawMessage `json:"validation"` + SortOrder int `json:"sort_order"` +} + +var fieldKeyPattern = regexp.MustCompile(`^[A-Za-z][A-Za-z0-9_]*$`) + +func (h *Handler) List(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + var items []model.Scenario + query := h.db.Where("tenant_id = ? AND status <> ?", p.TenantID, "archived") + if keyword := c.Query("keyword"); keyword != "" { + query = query.Where("name LIKE ? OR industry LIKE ?", "%"+keyword+"%", "%"+keyword+"%") + } + if status := c.Query("status"); status != "" { + query = query.Where("status = ?", status) + } + var total int64 + if err := query.Model(&model.Scenario{}).Count(&total).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询场景失败") + return + } + if err := query.Order("updated_at DESC").Find(&items).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询场景失败") + return + } + response.OK(c, gin.H{"items": items, "total": total}) +} + +func (h *Handler) Create(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + var input scenarioInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "场景信息不完整") + return + } + visibility := input.Visibility + if visibility == "" { + visibility = "tenant" + } + item := model.Scenario{TenantID: p.TenantID, Name: input.Name, Industry: input.Industry, RoleName: input.RoleName, Goal: input.Goal, TriggerText: input.TriggerText, Visibility: visibility, Status: "draft", CreatedBy: p.UserID} + if err := h.db.Create(&item).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "CREATE_FAILED", "创建场景失败") + return + } + _ = audit.Record(h.db, p, "create", "scenario", item.ID, input) + response.Created(c, item) +} + +func (h *Handler) Get(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := idParam(c, "id") + if !ok { + return + } + var item model.Scenario + if err := h.db.Where("id = ? AND tenant_id = ?", id, p.TenantID).First(&item).Error; err != nil { + notFound(c, err, "场景不存在") + return + } + var fields []model.ScenarioField + var sops []model.SOP + h.db.Where("scenario_id = ? AND tenant_id = ?", id, p.TenantID).Order("sort_order, id").Find(&fields) + h.db.Where("scenario_id = ? AND tenant_id = ?", id, p.TenantID).Order("updated_at DESC").Find(&sops) + response.OK(c, gin.H{"scenario": item, "fields": fields, "sops": sops}) +} + +func (h *Handler) Update(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := idParam(c, "id") + if !ok { + return + } + var input scenarioInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "场景信息不完整") + return + } + updates := map[string]interface{}{"name": input.Name, "industry": input.Industry, "role_name": input.RoleName, "goal": input.Goal, "trigger_text": input.TriggerText, "visibility": input.Visibility} + result := h.db.Model(&model.Scenario{}).Where("id = ? AND tenant_id = ? AND status <> ?", id, p.TenantID, "archived").Updates(updates) + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "场景不存在") + return + } + _ = audit.Record(h.db, p, "update", "scenario", id, input) + h.Get(c) +} + +func (h *Handler) Archive(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := idParam(c, "id") + if !ok { + return + } + result := h.db.Model(&model.Scenario{}).Where("id = ? AND tenant_id = ?", id, p.TenantID).Update("status", "archived") + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "场景不存在") + return + } + _ = audit.Record(h.db, p, "archive", "scenario", id, nil) + response.OK(c, gin.H{"id": id}) +} + +func (h *Handler) CreateField(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + scenarioID, ok := idParam(c, "id") + if !ok || !h.scenarioExists(p.TenantID, scenarioID) { + if ok { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "场景不存在") + } + return + } + var input fieldInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "字段配置不正确") + return + } + if !fieldKeyPattern.MatchString(input.FieldKey) { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "字段标识必须以字母开头,且只能包含字母、数字和下划线") + return + } + item := model.ScenarioField{TenantID: p.TenantID, ScenarioID: scenarioID, FieldKey: input.FieldKey, FieldName: input.FieldName, FieldType: input.FieldType, Required: input.Required, Options: normalizedJSON(input.Options, `[]`), Validation: normalizedJSON(input.Validation, `{}`), SortOrder: input.SortOrder} + if err := h.db.Create(&item).Error; err != nil { + response.Error(c, http.StatusConflict, "CREATE_FAILED", "字段标识已存在或配置不正确") + return + } + _ = audit.Record(h.db, p, "create", "scenario_field", item.ID, input) + response.Created(c, item) +} + +func (h *Handler) UpdateField(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := idParam(c, "fieldId") + if !ok { + return + } + var input fieldInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "字段配置不正确") + return + } + if !fieldKeyPattern.MatchString(input.FieldKey) { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "字段标识必须以字母开头,且只能包含字母、数字和下划线") + return + } + updates := map[string]interface{}{"field_key": input.FieldKey, "field_name": input.FieldName, "field_type": input.FieldType, "required": input.Required, "options": normalizedJSON(input.Options, `[]`), "validation": normalizedJSON(input.Validation, `{}`), "sort_order": input.SortOrder} + result := h.db.Model(&model.ScenarioField{}).Where("id = ? AND tenant_id = ?", id, p.TenantID).Updates(updates) + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "字段不存在") + return + } + _ = audit.Record(h.db, p, "update", "scenario_field", id, input) + var item model.ScenarioField + h.db.Where("id = ? AND tenant_id = ?", id, p.TenantID).First(&item) + response.OK(c, item) +} + +func (h *Handler) DeleteField(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := idParam(c, "fieldId") + if !ok { + return + } + result := h.db.Where("id = ? AND tenant_id = ?", id, p.TenantID).Delete(&model.ScenarioField{}) + if result.Error != nil || result.RowsAffected == 0 { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "字段不存在") + return + } + _ = audit.Record(h.db, p, "delete", "scenario_field", id, nil) + response.OK(c, gin.H{"id": id}) +} + +func (h *Handler) scenarioExists(tenantID, id uint64) bool { + var count int64 + h.db.Model(&model.Scenario{}).Where("id = ? AND tenant_id = ? AND status <> ?", id, tenantID, "archived").Count(&count) + return count == 1 +} + +func normalizedJSON(value json.RawMessage, fallback string) datatypes.JSON { + if len(value) == 0 || !json.Valid(value) { + return datatypes.JSON([]byte(fallback)) + } + return datatypes.JSON(value) +} + +func idParam(c *gin.Context, key string) (uint64, bool) { + id, err := strconv.ParseUint(c.Param(key), 10, 64) + if err != nil || id == 0 { + response.Error(c, http.StatusBadRequest, "INVALID_ID", "资源 ID 不正确") + return 0, false + } + return id, true +} + +func notFound(c *gin.Context, err error, message string) { + if errors.Is(err, gorm.ErrRecordNotFound) { + response.Error(c, http.StatusNotFound, "NOT_FOUND", message) + return + } + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询失败") +} diff --git a/codes/internal/sop/handler.go b/codes/internal/sop/handler.go new file mode 100644 index 0000000..9440f97 --- /dev/null +++ b/codes/internal/sop/handler.go @@ -0,0 +1,398 @@ +package sop + +import ( + "encoding/json" + "errors" + "net/http" + "strconv" + "time" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/audit" + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" + "git.iwork-ai.com/xdc/iqudo-top1/internal/response" + "github.com/gin-gonic/gin" + "gorm.io/datatypes" + "gorm.io/gorm" +) + +type Handler struct { + db *gorm.DB +} + +func NewHandler(db *gorm.DB) *Handler { + return &Handler{db: db} +} + +type createInput struct { + Name string `json:"name" binding:"required,max=128"` + Description string `json:"description" binding:"max=2000"` +} + +type graphInput struct { + StartNodeKey string `json:"start_node_key" binding:"required,max=64"` + Nodes []nodeInput `json:"nodes" binding:"required,min=1"` + Edges []edgeInput `json:"edges"` +} + +type nodeInput struct { + NodeKey string `json:"node_key" binding:"required,max=64"` + Type string `json:"type" binding:"required,max=32"` + Title string `json:"title" binding:"required,max=128"` + Content string `json:"content" binding:"max=5000"` + Config json.RawMessage `json:"config"` + PositionX int `json:"position_x"` + PositionY int `json:"position_y"` +} + +type edgeInput struct { + SourceNodeKey string `json:"source_node_key" binding:"required,max=64"` + TargetNodeKey string `json:"target_node_key" binding:"required,max=64"` + Condition json.RawMessage `json:"condition"` + Priority int `json:"priority"` +} + +func (h *Handler) List(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + var items []model.SOP + query := h.db.Where("tenant_id = ? AND status <> ?", p.TenantID, "archived") + scenarioID := c.Query("scenario_id") + if scenarioID == "" { + scenarioID = c.Param("id") + } + if scenarioID != "" { + query = query.Where("scenario_id = ?", scenarioID) + } + if err := query.Order("updated_at DESC").Find(&items).Error; err != nil { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询 SOP 失败") + return + } + response.OK(c, gin.H{"items": items, "total": len(items)}) +} + +func (h *Handler) Create(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + scenarioID, ok := parseID(c, "id") + if !ok { + return + } + var scenario model.Scenario + if err := h.db.Where("id = ? AND tenant_id = ?", scenarioID, p.TenantID).First(&scenario).Error; err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "场景不存在") + return + } + var input createInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "SOP 信息不完整") + return + } + var item model.SOP + var version model.SOPVersion + err := h.db.Transaction(func(tx *gorm.DB) error { + item = model.SOP{TenantID: p.TenantID, ScenarioID: scenarioID, Name: input.Name, Description: input.Description, Status: "draft", CreatedBy: p.UserID} + if err := tx.Create(&item).Error; err != nil { + return err + } + version = model.SOPVersion{TenantID: p.TenantID, SOPID: item.ID, Version: 1, Status: "draft", StartNodeKey: "start", CreatedBy: p.UserID} + if err := tx.Create(&version).Error; err != nil { + return err + } + nodes := []model.SOPNode{ + {TenantID: p.TenantID, SOPVersionID: version.ID, NodeKey: "start", Type: "start", Title: "开始", Content: "", Config: datatypes.JSON([]byte(`{}`)), PositionX: 0, PositionY: 0}, + {TenantID: p.TenantID, SOPVersionID: version.ID, NodeKey: "opening", Type: "message", Title: "开场", Content: "您好,我先了解一下具体情况。", Config: datatypes.JSON([]byte(`{}`)), PositionX: 0, PositionY: 120}, + {TenantID: p.TenantID, SOPVersionID: version.ID, NodeKey: "finish", Type: "finish", Title: "结束", Content: "本次沟通已完成。", Config: datatypes.JSON([]byte(`{}`)), PositionX: 0, PositionY: 240}, + } + if err := tx.Create(&nodes).Error; err != nil { + return err + } + edges := []model.SOPEdge{ + {TenantID: p.TenantID, SOPVersionID: version.ID, SourceNodeKey: "start", TargetNodeKey: "opening", Condition: datatypes.JSON([]byte(`{}`)), Priority: 0}, + {TenantID: p.TenantID, SOPVersionID: version.ID, SourceNodeKey: "opening", TargetNodeKey: "finish", Condition: datatypes.JSON([]byte(`{}`)), Priority: 0}, + } + return tx.Create(&edges).Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "CREATE_FAILED", "创建 SOP 失败") + return + } + _ = audit.Record(h.db, p, "create", "sop", item.ID, input) + response.Created(c, gin.H{"sop": item, "version": version}) +} + +func (h *Handler) Get(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + item, version, nodes, edges, err := h.loadLatest(id, p.TenantID) + if err != nil { + if errors.Is(err, gorm.ErrRecordNotFound) { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "SOP 不存在") + } else { + response.Error(c, http.StatusInternalServerError, "QUERY_FAILED", "查询 SOP 失败") + } + return + } + response.OK(c, gin.H{"sop": item, "version": version, "nodes": nodes, "edges": edges}) +} + +func (h *Handler) SaveGraph(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + var input graphInput + if err := c.ShouldBindJSON(&input); err != nil { + response.Error(c, http.StatusBadRequest, "INVALID_ARGUMENT", "流程配置不完整") + return + } + var version model.SOPVersion + if err := h.db.Where("sop_id = ? AND tenant_id = ? AND status = ?", id, p.TenantID, "draft").Order("version DESC").First(&version).Error; err != nil { + response.Error(c, http.StatusConflict, "NO_DRAFT_VERSION", "没有可编辑的草稿版本") + return + } + nodes, edges := toModels(p.TenantID, version.ID, input) + problems := ValidateGraph(input.StartNodeKey, nodes, edges) + if len(problems) > 0 { + response.Error(c, http.StatusUnprocessableEntity, "INVALID_GRAPH", problems[0]) + return + } + err := h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Where("sop_version_id = ?", version.ID).Delete(&model.SOPEdge{}).Error; err != nil { + return err + } + if err := tx.Where("sop_version_id = ?", version.ID).Delete(&model.SOPNode{}).Error; err != nil { + return err + } + if err := tx.Create(&nodes).Error; err != nil { + return err + } + if len(edges) > 0 { + if err := tx.Create(&edges).Error; err != nil { + return err + } + } + return tx.Model(&version).Update("start_node_key", input.StartNodeKey).Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "SAVE_FAILED", "保存流程失败") + return + } + _ = audit.Record(h.db, p, "save_graph", "sop", id, gin.H{"version_id": version.ID}) + h.Get(c) +} + +func (h *Handler) Validate(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + _, version, nodes, edges, err := h.loadLatest(id, p.TenantID) + if err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "SOP 不存在") + return + } + problems := ValidateGraph(version.StartNodeKey, nodes, edges) + response.OK(c, gin.H{"valid": len(problems) == 0, "problems": problems}) +} + +func (h *Handler) SubmitReview(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + item, version, nodes, edges, err := h.loadLatest(id, p.TenantID) + if err != nil || version.Status != "draft" { + response.Error(c, http.StatusConflict, "NO_DRAFT_VERSION", "没有可提交审核的草稿版本") + return + } + problems := ValidateGraph(version.StartNodeKey, nodes, edges) + if len(problems) > 0 { + response.Error(c, http.StatusUnprocessableEntity, "INVALID_GRAPH", problems[0]) + return + } + err = h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Model(&version).Update("status", "reviewing").Error; err != nil { + return err + } + return tx.Model(&item).Update("status", "reviewing").Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "SUBMIT_REVIEW_FAILED", "提交审核失败") + return + } + _ = audit.Record(h.db, p, "submit_review", "sop", id, gin.H{"version": version.Version}) + response.OK(c, gin.H{"id": id, "version": version.Version, "status": "reviewing"}) +} + +func (h *Handler) Publish(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + item, version, nodes, edges, err := h.loadLatest(id, p.TenantID) + if err != nil || (version.Status != "draft" && version.Status != "reviewing") { + response.Error(c, http.StatusConflict, "NO_REVIEW_VERSION", "没有可发布的审核版本") + return + } + problems := ValidateGraph(version.StartNodeKey, nodes, edges) + if len(problems) > 0 { + response.Error(c, http.StatusUnprocessableEntity, "INVALID_GRAPH", problems[0]) + return + } + now := time.Now() + err = h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Model(&model.SOPVersion{}).Where("sop_id = ? AND tenant_id = ? AND status = ?", id, p.TenantID, "published").Update("status", "superseded").Error; err != nil { + return err + } + if err := tx.Model(&version).Updates(map[string]interface{}{"status": "published", "published_at": &now, "reviewed_by": p.UserID}).Error; err != nil { + return err + } + if err := tx.Model(&item).Update("status", "published").Error; err != nil { + return err + } + return tx.Model(&model.Scenario{}).Where("id = ? AND tenant_id = ?", item.ScenarioID, p.TenantID).Update("status", "active").Error + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "PUBLISH_FAILED", "发布 SOP 失败") + return + } + _ = audit.Record(h.db, p, "publish", "sop", id, gin.H{"version": version.Version}) + response.OK(c, gin.H{"id": id, "version": version.Version, "published_at": now}) +} + +func (h *Handler) Offline(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + var item model.SOP + if err := h.db.Where("id = ? AND tenant_id = ? AND status = ?", id, p.TenantID, "published").First(&item).Error; err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "已发布 SOP 不存在") + return + } + err := h.db.Transaction(func(tx *gorm.DB) error { + if err := tx.Model(&item).Update("status", "offline").Error; err != nil { + return err + } + if err := tx.Model(&model.SOPVersion{}).Where("sop_id = ? AND tenant_id = ? AND status = ?", id, p.TenantID, "published").Update("status", "offline").Error; err != nil { + return err + } + var published int64 + if err := tx.Model(&model.SOP{}).Where("scenario_id = ? AND tenant_id = ? AND status = ?", item.ScenarioID, p.TenantID, "published").Count(&published).Error; err != nil { + return err + } + if published == 0 { + return tx.Model(&model.Scenario{}).Where("id = ? AND tenant_id = ?", item.ScenarioID, p.TenantID).Update("status", "draft").Error + } + return nil + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "OFFLINE_FAILED", "下线 SOP 失败") + return + } + _ = audit.Record(h.db, p, "offline", "sop", id, nil) + response.OK(c, gin.H{"id": id, "status": "offline"}) +} + +func (h *Handler) CreateVersion(c *gin.Context) { + p, _ := auth.PrincipalFromContext(c) + id, ok := parseID(c, "id") + if !ok { + return + } + var existing int64 + h.db.Model(&model.SOPVersion{}).Where("sop_id = ? AND tenant_id = ? AND status = ?", id, p.TenantID, "draft").Count(&existing) + if existing > 0 { + response.Error(c, http.StatusConflict, "DRAFT_EXISTS", "已经存在草稿版本") + return + } + _, source, nodes, edges, err := h.loadLatest(id, p.TenantID) + if err != nil { + response.Error(c, http.StatusNotFound, "NOT_FOUND", "SOP 不存在") + return + } + var version model.SOPVersion + err = h.db.Transaction(func(tx *gorm.DB) error { + version = model.SOPVersion{TenantID: p.TenantID, SOPID: id, Version: source.Version + 1, Status: "draft", StartNodeKey: source.StartNodeKey, CreatedBy: p.UserID} + if err := tx.Create(&version).Error; err != nil { + return err + } + for i := range nodes { + nodes[i].Base = model.Base{} + nodes[i].SOPVersionID = version.ID + } + for i := range edges { + edges[i].Base = model.Base{} + edges[i].SOPVersionID = version.ID + } + if err := tx.Create(&nodes).Error; err != nil { + return err + } + if len(edges) > 0 { + return tx.Create(&edges).Error + } + return nil + }) + if err != nil { + response.Error(c, http.StatusInternalServerError, "CREATE_VERSION_FAILED", "创建草稿版本失败") + return + } + _ = audit.Record(h.db, p, "create_version", "sop", id, gin.H{"version": version.Version}) + response.Created(c, version) +} + +func (h *Handler) loadLatest(sopID, tenantID uint64) (model.SOP, model.SOPVersion, []model.SOPNode, []model.SOPEdge, error) { + var item model.SOP + if err := h.db.Where("id = ? AND tenant_id = ?", sopID, tenantID).First(&item).Error; err != nil { + return item, model.SOPVersion{}, nil, nil, err + } + var version model.SOPVersion + if err := h.db.Where("sop_id = ? AND tenant_id = ?", sopID, tenantID).Order("version DESC").First(&version).Error; err != nil { + return item, version, nil, nil, err + } + var nodes []model.SOPNode + var edges []model.SOPEdge + if err := h.db.Where("sop_version_id = ? AND tenant_id = ?", version.ID, tenantID).Order("position_y, id").Find(&nodes).Error; err != nil { + return item, version, nil, nil, err + } + if err := h.db.Where("sop_version_id = ? AND tenant_id = ?", version.ID, tenantID).Order("priority, id").Find(&edges).Error; err != nil { + return item, version, nil, nil, err + } + return item, version, nodes, edges, nil +} + +func toModels(tenantID, versionID uint64, input graphInput) ([]model.SOPNode, []model.SOPEdge) { + nodes := make([]model.SOPNode, 0, len(input.Nodes)) + for _, item := range input.Nodes { + config := item.Config + if len(config) == 0 || !json.Valid(config) { + config = json.RawMessage(`{}`) + } + nodes = append(nodes, model.SOPNode{TenantID: tenantID, SOPVersionID: versionID, NodeKey: item.NodeKey, Type: item.Type, Title: item.Title, Content: item.Content, Config: datatypes.JSON(config), PositionX: item.PositionX, PositionY: item.PositionY}) + } + edges := make([]model.SOPEdge, 0, len(input.Edges)) + for _, item := range input.Edges { + condition := item.Condition + if len(condition) == 0 || !json.Valid(condition) { + condition = json.RawMessage(`{}`) + } + edges = append(edges, model.SOPEdge{TenantID: tenantID, SOPVersionID: versionID, SourceNodeKey: item.SourceNodeKey, TargetNodeKey: item.TargetNodeKey, Condition: datatypes.JSON(condition), Priority: item.Priority}) + } + return nodes, edges +} + +func parseID(c *gin.Context, name string) (uint64, bool) { + id, err := strconv.ParseUint(c.Param(name), 10, 64) + if err != nil || id == 0 { + response.Error(c, http.StatusBadRequest, "INVALID_ID", "资源 ID 不正确") + return 0, false + } + return id, true +} diff --git a/codes/internal/sop/validator.go b/codes/internal/sop/validator.go new file mode 100644 index 0000000..1f509b1 --- /dev/null +++ b/codes/internal/sop/validator.go @@ -0,0 +1,90 @@ +package sop + +import ( + "encoding/json" + "fmt" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/model" +) + +var allowedNodeTypes = map[string]bool{"start": true, "message": true, "question": true, "form": true, "choice": true, "condition": true, "knowledge": true, "escalate": true, "finish": true} + +func ValidateGraph(startNodeKey string, nodes []model.SOPNode, edges []model.SOPEdge) []string { + var problems []string + if startNodeKey == "" { + problems = append(problems, "未设置开始节点") + } + nodeMap := make(map[string]model.SOPNode, len(nodes)) + startCount := 0 + finishCount := 0 + for _, node := range nodes { + if node.NodeKey == "" { + problems = append(problems, "存在没有标识的节点") + continue + } + if _, exists := nodeMap[node.NodeKey]; exists { + problems = append(problems, fmt.Sprintf("节点标识重复:%s", node.NodeKey)) + } + nodeMap[node.NodeKey] = node + if !allowedNodeTypes[node.Type] { + problems = append(problems, fmt.Sprintf("节点 %s 类型不支持", node.Title)) + } + if node.Type == "start" { + startCount++ + } + if node.Type == "finish" || node.Type == "escalate" { + finishCount++ + } + } + if startCount != 1 { + problems = append(problems, "流程必须且只能包含一个开始节点") + } + if finishCount == 0 { + problems = append(problems, "流程至少需要一个结束或转人工节点") + } + if _, exists := nodeMap[startNodeKey]; !exists && startNodeKey != "" { + problems = append(problems, "开始节点不存在") + } + + adjacency := make(map[string][]string) + outgoing := make(map[string]int) + for _, edge := range edges { + if _, exists := nodeMap[edge.SourceNodeKey]; !exists { + problems = append(problems, fmt.Sprintf("连线起点不存在:%s", edge.SourceNodeKey)) + } + if _, exists := nodeMap[edge.TargetNodeKey]; !exists { + problems = append(problems, fmt.Sprintf("连线终点不存在:%s", edge.TargetNodeKey)) + } + if len(edge.Condition) > 0 && !json.Valid(edge.Condition) { + problems = append(problems, fmt.Sprintf("连线 %s -> %s 的条件不是有效 JSON", edge.SourceNodeKey, edge.TargetNodeKey)) + } + adjacency[edge.SourceNodeKey] = append(adjacency[edge.SourceNodeKey], edge.TargetNodeKey) + outgoing[edge.SourceNodeKey]++ + } + for _, node := range nodes { + if node.Type != "finish" && node.Type != "escalate" && outgoing[node.NodeKey] == 0 { + problems = append(problems, fmt.Sprintf("节点“%s”没有下一步", node.Title)) + } + } + + visited := map[string]bool{} + var walk func(string) + walk = func(key string) { + if visited[key] { + return + } + visited[key] = true + for _, next := range adjacency[key] { + walk(next) + } + } + if startNodeKey != "" { + walk(startNodeKey) + } + for key, node := range nodeMap { + if !visited[key] { + problems = append(problems, fmt.Sprintf("节点“%s”无法从开始节点到达", node.Title)) + } + } + return problems +} diff --git a/codes/main.go b/codes/main.go new file mode 100644 index 0000000..11a8fb7 --- /dev/null +++ b/codes/main.go @@ -0,0 +1,81 @@ +package main + +import ( + "context" + "embed" + "flag" + "fmt" + "io/fs" + "net/http" + "os" + "os/signal" + "syscall" + + "git.iwork-ai.com/xdc/iqudo-top1/internal/auth" + "git.iwork-ai.com/xdc/iqudo-top1/internal/config" + "git.iwork-ai.com/xdc/iqudo-top1/internal/database" + "git.iwork-ai.com/xdc/iqudo-top1/internal/httpserver" + "git.iwork-ai.com/xdc/iqudo-top1/internal/logger" + "git.iwork-ai.com/xdc/iqudo-top1/internal/migration" + "go.uber.org/zap" +) + +//go:embed migrations/*.sql +var migrationFiles embed.FS + +//go:embed web/dist/* +var frontendFiles embed.FS + +func main() { + environment := flag.String("env", "", "runtime environment: development, test, prod") + configDir := flag.String("config-dir", "configs", "configuration directory") + flag.Parse() + + cfg, err := config.Load(config.LoadOptions{Environment: *environment, ConfigDir: *configDir}) + if err != nil { + fmt.Fprintf(os.Stderr, "load configuration: %v\n", err) + os.Exit(1) + } + log, err := logger.New(cfg.App.Env, cfg.App.Name) + if err != nil { + fmt.Fprintf(os.Stderr, "create logger: %v\n", err) + os.Exit(1) + } + defer log.Sync() + + db, err := database.Open(cfg.Database, log) + if err != nil { + log.Fatal("connect database", zap.Error(err)) + } + if err := migration.Run(db, migrationFiles); err != nil { + log.Fatal("run database migrations", zap.Error(err)) + } + if err := auth.Seed(db, cfg.Seed); err != nil { + log.Fatal("seed administrator", zap.Error(err)) + } + + frontend, err := fs.Sub(frontendFiles, "web/dist") + if err != nil { + log.Fatal("load embedded frontend", zap.Error(err)) + } + authService := auth.NewService(db, cfg.Auth) + handler := httpserver.New(db, authService, frontend, log, cfg.App.Env) + server := &http.Server{Addr: cfg.Server.Address(), Handler: handler, ReadTimeout: cfg.Server.ReadTimeout, WriteTimeout: cfg.Server.WriteTimeout} + + go func() { + log.Info("server started", zap.String("address", cfg.Server.Address())) + if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed { + log.Fatal("server stopped unexpectedly", zap.Error(err)) + } + }() + + stop := make(chan os.Signal, 1) + signal.Notify(stop, syscall.SIGINT, syscall.SIGTERM) + <-stop + ctx, cancel := context.WithTimeout(context.Background(), cfg.Server.ShutdownTimeout) + defer cancel() + if err := server.Shutdown(ctx); err != nil { + log.Error("graceful shutdown failed", zap.Error(err)) + } + log.Info("server stopped") +} diff --git a/codes/migrations/000001_init.down.sql b/codes/migrations/000001_init.down.sql new file mode 100644 index 0000000..8d71cf1 --- /dev/null +++ b/codes/migrations/000001_init.down.sql @@ -0,0 +1,17 @@ +DROP TABLE IF EXISTS refresh_tokens; +DROP TABLE IF EXISTS audit_logs; +DROP TABLE IF EXISTS sop_feedback; +DROP TABLE IF EXISTS sop_run_events; +DROP TABLE IF EXISTS sop_runs; +DROP TABLE IF EXISTS knowledge_card_versions; +DROP TABLE IF EXISTS knowledge_cards; +DROP TABLE IF EXISTS sop_edges; +DROP TABLE IF EXISTS sop_nodes; +DROP TABLE IF EXISTS sop_versions; +DROP TABLE IF EXISTS sops; +DROP TABLE IF EXISTS scenario_fields; +DROP TABLE IF EXISTS scenarios; +DROP TABLE IF EXISTS tenant_members; +DROP TABLE IF EXISTS roles; +DROP TABLE IF EXISTS users; +DROP TABLE IF EXISTS tenants; diff --git a/codes/migrations/000001_init.up.sql b/codes/migrations/000001_init.up.sql new file mode 100644 index 0000000..b5fbca7 --- /dev/null +++ b/codes/migrations/000001_init.up.sql @@ -0,0 +1,258 @@ +CREATE TABLE tenants ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + name VARCHAR(128) NOT NULL, + slug VARCHAR(64) NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'active', + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_tenants_slug (slug) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE users ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + username VARCHAR(64) NOT NULL, + password_hash VARCHAR(255) NOT NULL, + display_name VARCHAR(128) NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'active', + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_users_username (username) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE roles ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + name VARCHAR(64) NOT NULL, + code VARCHAR(64) NOT NULL, + permissions JSON NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_roles_tenant_code (tenant_id, code), + CONSTRAINT fk_roles_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE tenant_members ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + user_id BIGINT UNSIGNED NOT NULL, + role_id BIGINT UNSIGNED NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'active', + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_tenant_members (tenant_id, user_id), + CONSTRAINT fk_members_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_members_user FOREIGN KEY (user_id) REFERENCES users(id), + CONSTRAINT fk_members_role FOREIGN KEY (role_id) REFERENCES roles(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE scenarios ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + name VARCHAR(128) NOT NULL, + industry VARCHAR(64) NOT NULL, + role_name VARCHAR(64) NOT NULL, + goal TEXT NOT NULL, + trigger_text TEXT NOT NULL, + visibility VARCHAR(24) NOT NULL DEFAULT 'tenant', + status VARCHAR(24) NOT NULL DEFAULT 'draft', + created_by BIGINT UNSIGNED NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_scenarios_tenant_status (tenant_id, status), + CONSTRAINT fk_scenarios_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_scenarios_creator FOREIGN KEY (created_by) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE scenario_fields ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + scenario_id BIGINT UNSIGNED NOT NULL, + field_key VARCHAR(64) NOT NULL, + field_name VARCHAR(128) NOT NULL, + field_type VARCHAR(32) NOT NULL, + required TINYINT(1) NOT NULL DEFAULT 0, + options JSON NOT NULL, + validation JSON NOT NULL, + sort_order INT NOT NULL DEFAULT 0, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_scenario_fields_key (scenario_id, field_key), + CONSTRAINT fk_fields_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_fields_scenario FOREIGN KEY (scenario_id) REFERENCES scenarios(id) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sops ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + scenario_id BIGINT UNSIGNED NOT NULL, + name VARCHAR(128) NOT NULL, + description TEXT NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'draft', + created_by BIGINT UNSIGNED NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_sops_scenario (tenant_id, scenario_id), + CONSTRAINT fk_sops_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_sops_scenario FOREIGN KEY (scenario_id) REFERENCES scenarios(id), + CONSTRAINT fk_sops_creator FOREIGN KEY (created_by) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_versions ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + sop_id BIGINT UNSIGNED NOT NULL, + version INT NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'draft', + start_node_key VARCHAR(64) NOT NULL DEFAULT '', + published_at DATETIME(3) NULL, + created_by BIGINT UNSIGNED NOT NULL, + reviewed_by BIGINT UNSIGNED NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_sop_versions (sop_id, version), + CONSTRAINT fk_versions_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_versions_sop FOREIGN KEY (sop_id) REFERENCES sops(id) ON DELETE CASCADE, + CONSTRAINT fk_versions_creator FOREIGN KEY (created_by) REFERENCES users(id), + CONSTRAINT fk_versions_reviewer FOREIGN KEY (reviewed_by) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_nodes ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + sop_version_id BIGINT UNSIGNED NOT NULL, + node_key VARCHAR(64) NOT NULL, + type VARCHAR(32) NOT NULL, + title VARCHAR(128) NOT NULL, + content TEXT NOT NULL, + config JSON NOT NULL, + position_x INT NOT NULL DEFAULT 0, + position_y INT NOT NULL DEFAULT 0, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_sop_nodes_key (sop_version_id, node_key), + CONSTRAINT fk_nodes_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_nodes_version FOREIGN KEY (sop_version_id) REFERENCES sop_versions(id) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_edges ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + sop_version_id BIGINT UNSIGNED NOT NULL, + source_node_key VARCHAR(64) NOT NULL, + target_node_key VARCHAR(64) NOT NULL, + `condition` JSON NOT NULL, + priority INT NOT NULL DEFAULT 0, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_sop_edges_source (sop_version_id, source_node_key, priority), + CONSTRAINT fk_edges_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_edges_version FOREIGN KEY (sop_version_id) REFERENCES sop_versions(id) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE knowledge_cards ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + scenario_id BIGINT UNSIGNED NOT NULL, + title VARCHAR(128) NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'draft', + created_by BIGINT UNSIGNED NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_cards_scenario (tenant_id, scenario_id), + CONSTRAINT fk_cards_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_cards_scenario FOREIGN KEY (scenario_id) REFERENCES scenarios(id), + CONSTRAINT fk_cards_creator FOREIGN KEY (created_by) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE knowledge_card_versions ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + knowledge_card_id BIGINT UNSIGNED NOT NULL, + version INT NOT NULL, + content JSON NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'draft', + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_card_versions (knowledge_card_id, version), + CONSTRAINT fk_card_versions_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_card_versions_card FOREIGN KEY (knowledge_card_id) REFERENCES knowledge_cards(id) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_runs ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + sop_id BIGINT UNSIGNED NOT NULL, + sop_version_id BIGINT UNSIGNED NOT NULL, + operator_id BIGINT UNSIGNED NOT NULL, + current_node_key VARCHAR(64) NOT NULL, + status VARCHAR(24) NOT NULL DEFAULT 'running', + answers JSON NOT NULL, + result VARCHAR(64) NOT NULL DEFAULT '', + started_at DATETIME(3) NOT NULL, + completed_at DATETIME(3) NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_runs_tenant_status (tenant_id, status), + CONSTRAINT fk_runs_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_runs_sop FOREIGN KEY (sop_id) REFERENCES sops(id), + CONSTRAINT fk_runs_version FOREIGN KEY (sop_version_id) REFERENCES sop_versions(id), + CONSTRAINT fk_runs_operator FOREIGN KEY (operator_id) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_run_events ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + run_id BIGINT UNSIGNED NOT NULL, + node_key VARCHAR(64) NOT NULL, + action VARCHAR(64) NOT NULL, + payload JSON NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_run_events (run_id, created_at), + CONSTRAINT fk_run_events_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_run_events_run FOREIGN KEY (run_id) REFERENCES sop_runs(id) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE sop_feedback ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + run_id BIGINT UNSIGNED NOT NULL, + user_id BIGINT UNSIGNED NOT NULL, + score INT NOT NULL, + comment TEXT NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_feedback_run_user (run_id, user_id), + CONSTRAINT fk_feedback_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_feedback_run FOREIGN KEY (run_id) REFERENCES sop_runs(id) ON DELETE CASCADE, + CONSTRAINT fk_feedback_user FOREIGN KEY (user_id) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE audit_logs ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + user_id BIGINT UNSIGNED NOT NULL, + action VARCHAR(64) NOT NULL, + resource VARCHAR(64) NOT NULL, + resource_id BIGINT UNSIGNED NOT NULL, + payload JSON NOT NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), KEY idx_audit_tenant_time (tenant_id, created_at), + CONSTRAINT fk_audit_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_audit_user FOREIGN KEY (user_id) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +CREATE TABLE refresh_tokens ( + id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, + tenant_id BIGINT UNSIGNED NOT NULL, + user_id BIGINT UNSIGNED NOT NULL, + token_hash VARCHAR(64) NOT NULL, + expires_at DATETIME(3) NOT NULL, + revoked_at DATETIME(3) NULL, + created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3), + updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), + PRIMARY KEY (id), UNIQUE KEY uk_refresh_token_hash (token_hash), + CONSTRAINT fk_refresh_tenant FOREIGN KEY (tenant_id) REFERENCES tenants(id), + CONSTRAINT fk_refresh_user FOREIGN KEY (user_id) REFERENCES users(id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; diff --git a/codes/scripts/create-databases.sql b/codes/scripts/create-databases.sql new file mode 100644 index 0000000..4239ec4 --- /dev/null +++ b/codes/scripts/create-databases.sql @@ -0,0 +1,5 @@ +CREATE DATABASE IF NOT EXISTS iqudo_top1 + CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; + +CREATE DATABASE IF NOT EXISTS iqudo_top1_test + CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; diff --git a/codes/web/dist/assets/AppstoreOutlined-BOx6VBGQ.js b/codes/web/dist/assets/AppstoreOutlined-BOx6VBGQ.js new file mode 100644 index 0000000..a39b268 --- /dev/null +++ b/codes/web/dist/assets/AppstoreOutlined-BOx6VBGQ.js @@ -0,0 +1 @@ +import{F as e,a as t}from"./client-CO11mUW5.js";var n={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z`}}]},name:`arrow-right`,theme:`outlined`};function r(e){for(var t=1;t{try{F.value=await f.get(`/dashboard/summary`)}finally{P.value=!1}}),(n,s)=>{let f=p(`a-button`),m=p(`a-skeleton`);return a(),l(`div`,b,[r(`div`,x,[s[5]||=r(`div`,null,[r(`h1`,null,`今天从经验开始`),r(`p`,null,`查看知识沉淀和一线执行的最新状态。`)],-1),r(`div`,S,[t(f,{type:`primary`,onClick:s[0]||=e=>o(d).push(`/scenarios`)},{default:u(()=>[t(o(h)),s[4]||=i(`创建场景`,-1)]),_:1})])]),t(m,{loading:P.value,active:``},{default:u(()=>[r(`section`,C,[r(`div`,w,[r(`span`,T,[t(o(_))]),r(`div`,null,[r(`b`,null,e(F.value.scenarios),1),s[6]||=r(`small`,null,`可用场景`,-1)])]),r(`div`,E,[r(`span`,D,[t(o(c))]),r(`div`,null,[r(`b`,null,e(F.value.published_sops),1),s[7]||=r(`small`,null,`已发布 SOP`,-1)])]),r(`div`,O,[r(`span`,k,[t(o(v))]),r(`div`,null,[r(`b`,null,e(F.value.runs),1),s[8]||=r(`small`,null,`累计执行`,-1)])]),r(`div`,A,[r(`span`,j,e(F.value.runs?Math.round(F.value.completed_runs/F.value.runs*100):0)+`%`,1),r(`div`,null,[r(`b`,null,e(F.value.completed_runs),1),s[9]||=r(`small`,null,`完成执行`,-1)])])])]),_:1},8,[`loading`]),r(`section`,M,[r(`div`,N,[s[13]||=r(`div`,{class:`panel-kicker`},`常用入口`,-1),r(`button`,{onClick:s[1]||=e=>o(d).push(`/scenarios`)},[s[10]||=r(`span`,null,[i(`配置新的业务场景`),r(`small`,null,`定义字段、目标和触发条件`)],-1),t(o(g))]),r(`button`,{onClick:s[2]||=e=>o(d).push(`/execute`)},[s[11]||=r(`span`,null,[i(`开始执行已发布 SOP`),r(`small`,null,`根据客户回答逐步推进`)],-1),t(o(g))]),r(`button`,{onClick:s[3]||=e=>o(d).push(`/knowledge`)},[s[12]||=r(`span`,null,[i(`维护审核知识卡`),r(`small`,null,`统一口径与风险提示`)],-1),t(o(g))])]),s[14]||=r(`div`,{class:`surface doctrine-panel`},[r(`div`,{class:`panel-kicker`},`平台原则`),r(`blockquote`,null,`一句好话术不应只被收藏,它应该知道何时出现、下一步去哪,以及是否真的有效。`),r(`div`,{class:`flow-note`},[r(`span`,null,`创建`),r(`i`),r(`span`,null,`发布`),r(`i`),r(`span`,null,`执行`),r(`i`),r(`span`,null,`复盘`)])],-1)])])}}}),[[`__scopeId`,`data-v-233c2a06`]]);export{P as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/DashboardView-PPsIN8E9.css b/codes/web/dist/assets/DashboardView-PPsIN8E9.css new file mode 100644 index 0000000..49a418e --- /dev/null +++ b/codes/web/dist/assets/DashboardView-PPsIN8E9.css @@ -0,0 +1 @@ +.metric-strip[data-v-233c2a06]{grid-template-columns:repeat(4,1fr);display:grid;overflow:hidden}.metric[data-v-233c2a06]{border-right:1px solid var(--line);align-items:center;gap:16px;min-height:116px;padding:22px;display:flex}.metric[data-v-233c2a06]:last-child{border-right:0}.metric-icon[data-v-233c2a06],.completion[data-v-233c2a06]{border-radius:5px;place-items:center;width:42px;height:42px;font-size:19px;display:grid}.metric-icon.green[data-v-233c2a06]{color:#16775b;background:#e5f3ee}.metric-icon.coral[data-v-233c2a06]{color:#c4573f;background:#faece7}.metric-icon.amber[data-v-233c2a06]{color:#a86e1e;background:#f8efdf}.completion[data-v-233c2a06]{color:#202825;background:#e8ecea;font-size:12px;font-weight:800}.metric div[data-v-233c2a06]{flex-direction:column;display:flex}.metric b[data-v-233c2a06]{font-family:Noto Serif SC,serif;font-size:28px;line-height:1}.metric small[data-v-233c2a06]{color:var(--muted);margin-top:8px}.work-grid[data-v-233c2a06]{grid-template-columns:1.05fr .95fr;gap:18px;margin-top:18px;display:grid}.action-panel[data-v-233c2a06],.doctrine-panel[data-v-233c2a06]{padding:22px}.panel-kicker[data-v-233c2a06]{color:#7c8883;text-transform:uppercase;margin-bottom:14px;font-size:11px;font-weight:700}.action-panel button[data-v-233c2a06]{width:100%;color:var(--ink);text-align:left;border:0;border-bottom:1px solid var(--line);cursor:pointer;background:0 0;justify-content:space-between;align-items:center;padding:15px 0;display:flex}.action-panel button[data-v-233c2a06]:last-child{border-bottom:0}.action-panel button[data-v-233c2a06]:hover{color:var(--green)}.action-panel button span[data-v-233c2a06]{flex-direction:column;font-weight:650;display:flex}.action-panel button small[data-v-233c2a06]{color:var(--muted);margin-top:4px;font-weight:400}.doctrine-panel[data-v-233c2a06]{color:#fff;background:#202825;border-color:#202825}.doctrine-panel .panel-kicker[data-v-233c2a06]{color:#89a099}blockquote[data-v-233c2a06]{margin:30px 0 42px;font-family:Noto Serif SC,serif;font-size:22px;line-height:1.65}.flow-note[data-v-233c2a06]{color:#9cafaa;align-items:center;font-size:12px;display:flex}.flow-note i[data-v-233c2a06]{background:#4a5a54;flex:1;height:1px;margin:0 10px}@media (width<=900px){.metric-strip[data-v-233c2a06]{grid-template-columns:repeat(2,1fr)}.metric[data-v-233c2a06]:nth-child(2){border-right:0}.metric[data-v-233c2a06]:nth-child(-n+2){border-bottom:1px solid var(--line)}.work-grid[data-v-233c2a06]{grid-template-columns:1fr}}@media (width<=520px){.metric[data-v-233c2a06]{min-height:100px;padding:16px}.metric b[data-v-233c2a06]{font-size:24px}.metric-icon[data-v-233c2a06],.completion[data-v-233c2a06]{display:none}} diff --git a/codes/web/dist/assets/DeleteOutlined-Dsl9pMnk.js b/codes/web/dist/assets/DeleteOutlined-Dsl9pMnk.js new file mode 100644 index 0000000..753f1e1 --- /dev/null +++ b/codes/web/dist/assets/DeleteOutlined-Dsl9pMnk.js @@ -0,0 +1,37 @@ +import{$ as e,D as t,E as n,F as r,H as i,I as a,K as o,L as s,S as c,Tt as l,U as u,V as d,Y as f,Z as p,_t as m,a as h,bt as g,ct as _,mt as v,st as y,ut as b,vt as x,w as S,x as C}from"./client-CO11mUW5.js";import{$ as w,$t as T,At as E,C as D,Ct as O,D as k,Dt as A,H as j,I as M,L as ee,M as N,N as P,P as te,Q as F,S as ne,T as I,X as re,Y as ie,Z as ae,_ as oe,_t as L,an as se,bt as R,c as ce,d as le,dt as ue,en as z,g as de,h as fe,in as B,j as pe,kt as me,l as he,n as ge,ot as _e,pt as ve,qt as V,st as ye,t as be,tn as xe,u as Se,v as Ce,vt as we,y as Te}from"./config-provider-kwhtQ-D4.js";var H=(e,t)=>{let n=T({},e);return Object.keys(t).forEach(e=>{let r=n[e];if(r)r.type||r.default?r.default=t[e]:r.def?r.def(t[e]):n[e]={type:r,default:t[e]};else throw Error(`not have ${e} prop`)}),n},Ee=e=>setTimeout(e,16),De=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Ee=e=>window.requestAnimationFrame(e),De=e=>window.cancelAnimationFrame(e));var Oe=0,ke=new Map;function Ae(e){ke.delete(e)}function U(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Oe+=1;let n=Oe;function r(t){if(t===0)Ae(n),e();else{let e=Ee(()=>{r(t-1)});ke.set(n,e)}}return r(t),n}U.cancel=e=>{let t=ke.get(e);return Ae(t),De(t)};var je=!1;try{let e=Object.defineProperty({},"passive",{get(){je=!0}});window.addEventListener(`testPassive`,null,e),window.removeEventListener(`testPassive`,null,e)}catch{}var Me=je;function Ne(e,t,n,r){if(e&&e.addEventListener){let i=r;i===void 0&&Me&&(t===`touchstart`||t===`touchmove`||t===`wheel`)&&(i={passive:!1}),e.addEventListener(t,n,i)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}var Pe={};function Fe(e,t){}function Ie(e,t){}function Le(e,t,n){!t&&!Pe[n]&&(e(!1,n),Pe[n]=!0)}function Re(e,t){Le(Fe,e,t)}function ze(e,t){Le(Ie,e,t)}function Be(e,t){let n=T({},e);for(let e=0;e{Re(e,`[ant-design-vue: ${t}] ${n}`)});function He(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=arguments.length>3&&arguments[3]!==void 0&&arguments[3],a=e;if(Array.isArray(e)&&(a=A(e)[0]),!a)return null;let o=n(a,t,i);return o.props=r?T(T({},o.props),t):o.props,ie(typeof o.props.class!=`object`,`class must be string`),o}function Ue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(e=>He(e,t,n))}function We(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(Array.isArray(e))return e.map(e=>We(e,t,n,r));{if(!i(e))return e;let a=He(e,t,n,r);return Array.isArray(a.children)&&(a.children=We(a.children)),a}}function Ge(e,t,r){B(n(e,T({},t)),r)}var Ke=e=>(e||[]).some(e=>!i(e)||!(e.type===C||e.type===c&&!Ke(e.children)))?e:null;function qe(e,t,n,r){let i=e[t]?.call(e,n);return Ke(i)?i:r?.()}var Je=(e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){let t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){let t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1}),Ye=typeof global==`object`&&global&&global.Object===Object&&global,Xe=typeof self==`object`&&self&&self.Object===Object&&self,W=Ye||Xe||Function(`return this`)(),Ze=W.Symbol,Qe=Object.prototype,$e=Qe.hasOwnProperty,et=Qe.toString,tt=Ze?Ze.toStringTag:void 0;function nt(e){var t=$e.call(e,tt),n=e[tt];try{e[tt]=void 0;var r=!0}catch{}var i=et.call(e);return r&&(t?e[tt]=n:delete e[tt]),i}var rt=Object.prototype.toString;function it(e){return rt.call(e)}var at=`[object Null]`,ot=`[object Undefined]`,st=Ze?Ze.toStringTag:void 0;function ct(e){return e==null?e===void 0?ot:at:st&&st in Object(e)?nt(e):it(e)}function lt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var ut=`[object AsyncFunction]`,dt=`[object Function]`,ft=`[object GeneratorFunction]`,pt=`[object Proxy]`;function mt(e){if(!lt(e))return!1;var t=ct(e);return t==dt||t==ft||t==ut||t==pt}var ht=W[`__core-js_shared__`],gt=function(){var e=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function _t(e){return!!gt&> in e}var vt=Function.prototype.toString;function G(e){if(e!=null){try{return vt.call(e)}catch{}try{return e+``}catch{}}return``}var yt=/[\\^$.*+?()[\]{}|]/g,bt=/^\[object .+?Constructor\]$/,xt=Function.prototype,St=Object.prototype,Ct=xt.toString,wt=St.hasOwnProperty,Tt=RegExp(`^`+Ct.call(wt).replace(yt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Et(e){return!lt(e)||_t(e)?!1:(mt(e)?Tt:bt).test(G(e))}function Dt(e,t){return e?.[t]}function Ot(e,t){var n=Dt(e,t);return Et(n)?n:void 0}var kt=Ot(W,`Map`),At=Array.isArray;function jt(e){return typeof e==`object`&&!!e}var Mt=`[object Arguments]`;function Nt(e){return jt(e)&&ct(e)==Mt}var Pt=Object.prototype,Ft=Pt.hasOwnProperty,It=Pt.propertyIsEnumerable,Lt=Nt(function(){return arguments}())?Nt:function(e){return jt(e)&&Ft.call(e,`callee`)&&!It.call(e,`callee`)};function Rt(){return!1}var zt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Bt=zt&&typeof module==`object`&&module&&!module.nodeType&&module,Vt=Bt&&Bt.exports===zt?W.Buffer:void 0,Ht=(Vt?Vt.isBuffer:void 0)||Rt,Ut=9007199254740991;function Wt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ut}var Gt=`[object Arguments]`,Kt=`[object Array]`,qt=`[object Boolean]`,Jt=`[object Date]`,Yt=`[object Error]`,Xt=`[object Function]`,Zt=`[object Map]`,Qt=`[object Number]`,$t=`[object Object]`,en=`[object RegExp]`,tn=`[object Set]`,nn=`[object String]`,rn=`[object WeakMap]`,an=`[object ArrayBuffer]`,on=`[object DataView]`,sn=`[object Float32Array]`,cn=`[object Float64Array]`,ln=`[object Int8Array]`,un=`[object Int16Array]`,dn=`[object Int32Array]`,fn=`[object Uint8Array]`,pn=`[object Uint8ClampedArray]`,mn=`[object Uint16Array]`,hn=`[object Uint32Array]`,K={};K[sn]=K[cn]=K[ln]=K[un]=K[dn]=K[fn]=K[pn]=K[mn]=K[hn]=!0,K[Gt]=K[Kt]=K[an]=K[qt]=K[on]=K[Jt]=K[Yt]=K[Xt]=K[Zt]=K[Qt]=K[$t]=K[en]=K[tn]=K[nn]=K[rn]=!1;function gn(e){return jt(e)&&Wt(e.length)&&!!K[ct(e)]}function _n(e){return function(t){return e(t)}}var vn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,yn=vn&&typeof module==`object`&&module&&!module.nodeType&&module,bn=yn&&yn.exports===vn&&Ye.process,xn=function(){try{return yn&&yn.require&&yn.require(`util`).types||bn&&bn.binding&&bn.binding(`util`)}catch{}}(),Sn=xn&&xn.isTypedArray,Cn=Sn?_n(Sn):gn,wn=Object.prototype;function Tn(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||wn)}function En(e,t){return function(n){return e(t(n))}}var Dn=En(Object.keys,Object),On=Object.prototype.hasOwnProperty;function kn(e){if(!Tn(e))return Dn(e);var t=[];for(var n in Object(e))On.call(e,n)&&n!=`constructor`&&t.push(n);return t}function An(e){return e!=null&&Wt(e.length)&&!mt(e)}var jn=Ot(W,`DataView`),Mn=Ot(W,`Promise`),Nn=Ot(W,`Set`),Pn=Ot(W,`WeakMap`),Fn=`[object Map]`,In=`[object Object]`,Ln=`[object Promise]`,Rn=`[object Set]`,zn=`[object WeakMap]`,Bn=`[object DataView]`,Vn=G(jn),Hn=G(kt),Un=G(Mn),Wn=G(Nn),Gn=G(Pn),q=ct;(jn&&q(new jn(new ArrayBuffer(1)))!=Bn||kt&&q(new kt)!=Fn||Mn&&q(Mn.resolve())!=Ln||Nn&&q(new Nn)!=Rn||Pn&&q(new Pn)!=zn)&&(q=function(e){var t=ct(e),n=t==In?e.constructor:void 0,r=n?G(n):``;if(r)switch(r){case Vn:return Bn;case Hn:return Fn;case Un:return Ln;case Wn:return Rn;case Gn:return zn}return t});var Kn=q,qn;function Jn(e){if(typeof document>`u`)return 0;if(e||qn===void 0){let e=document.createElement(`div`);e.style.width=`100%`,e.style.height=`200px`;let t=document.createElement(`div`),n=t.style;n.position=`absolute`,n.top=`0`,n.left=`0`,n.pointerEvents=`none`,n.visibility=`hidden`,n.width=`200px`,n.height=`150px`,n.overflow=`hidden`,t.appendChild(e),document.body.appendChild(t);let r=e.offsetWidth;t.style.overflow=`scroll`;let i=e.offsetWidth;r===i&&(i=t.clientWidth),document.body.removeChild(t),qn=r-i}return qn}function Yn(e){let t=e.match(/^(.*)px$/),n=Number(t?.[1]);return Number.isNaN(n)?Jn():n}function Xn(e){if(typeof document>`u`||!e||!(e instanceof Element))return{width:0,height:0};let{width:t,height:n}=getComputedStyle(e,`::-webkit-scrollbar`);return{width:Yn(t),height:Yn(n)}}var Zn=`vc-util-locker-${Date.now()}`,Qn=0;function $n(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function er(e){let n=t(()=>!!e&&!!e.value);Qn+=1;let r=`${Zn}_${Qn}`;_(e=>{if(w()){if(n.value){let e=Jn(),t=$n();ae(` +html body { + overflow-y: hidden; + ${t?`width: calc(100% - ${e}px);`:``} +}`,r)}else re(r);e(()=>{re(r)})}},{flush:`post`})}var J=0,tr=w(),nr=e=>{if(!tr)return null;if(e){if(typeof e==`string`)return document.querySelectorAll(e)[0];if(typeof e==`function`)return e();if(typeof e==`object`&&e instanceof window.HTMLElement)return e}return document.body},rr=a({compatConfig:{MODE:3},name:`PortalWrapper`,inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:I.any,visible:{type:Boolean,default:void 0},autoLock:L(),didUpdate:Function},setup(e,n){let{slots:i}=n,a=g(),s=g(),c=g(),l=g(1),d=w()&&document.createElement(`div`),m=()=>{var e;a.value===d&&((e=a.value?.parentNode)==null||e.removeChild(a.value)),a.value=null},h=null,_=function(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]||a.value&&!a.value.parentNode?(h=nr(e.getContainer),h?(h.appendChild(a.value),!0):!1):!0},v=()=>tr?(a.value||(a.value=d,_(!0)),b(),a.value):null,b=()=>{let{wrapperClassName:t}=e;a.value&&t&&t!==a.value.className&&(a.value.className=t)};return p(()=>{b(),_()}),er(t(()=>e.autoLock&&e.visible&&w()&&(a.value===document.body||a.value===d))),f(()=>{let t=!1;y([()=>e.visible,()=>e.getContainer],(n,r)=>{let[i,a]=n,[o,s]=r;tr&&(h=nr(e.getContainer),h===document.body&&(i&&!o?J+=1:t&&--J)),t&&(typeof a==`function`&&typeof s==`function`?a.toString()!==s.toString():a!==s)&&m(),t=!0},{immediate:!0,flush:`post`}),u(()=>{_()||(c.value=U(()=>{l.value+=1}))})}),o(()=>{let{visible:t}=e;tr&&h===document.body&&(J=t&&J?J-1:J),m(),U.cancel(c.value)}),()=>{let{forceRender:t,visible:n}=e,a=null,o={getOpenCount:()=>J,getContainer:v};return l.value&&(t||n||s.value)&&(a=r(Ce,{getContainer:v,ref:s,didUpdate:e.didUpdate},{default:()=>i.default?.call(i,o)})),a}}}),Y={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Y.F1&&t<=Y.F12)return!1;switch(t){case Y.ALT:case Y.CAPS_LOCK:case Y.CONTEXT_MENU:case Y.CTRL:case Y.DOWN:case Y.END:case Y.ESC:case Y.HOME:case Y.INSERT:case Y.LEFT:case Y.MAC_FF_META:case Y.META:case Y.NUMLOCK:case Y.NUM_CENTER:case Y.PAGE_DOWN:case Y.PAGE_UP:case Y.PAUSE:case Y.PRINT_SCREEN:case Y.RIGHT:case Y.SHIFT:case Y.UP:case Y.WIN_KEY:case Y.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Y.ZERO&&e<=Y.NINE||e>=Y.NUM_ZERO&&e<=Y.NUM_MULTIPLY||e>=Y.A&&e<=Y.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case Y.SPACE:case Y.QUESTION_MARK:case Y.NUM_PLUS:case Y.NUM_MINUS:case Y.NUM_PERIOD:case Y.NUM_DIVISION:case Y.SEMICOLON:case Y.DASH:case Y.EQUALS:case Y.COMMA:case Y.PERIOD:case Y.SLASH:case Y.APOSTROPHE:case Y.SINGLE_QUOTE:case Y.OPEN_SQUARE_BRACKET:case Y.BACKSLASH:case Y.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ir=`accept acceptcharset accesskey action allowfullscreen allowtransparency +alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge +charset checked classid classname colspan cols content contenteditable contextmenu +controls coords crossorigin data datetime default defer dir disabled download draggable +enctype form formaction formenctype formmethod formnovalidate formtarget frameborder +headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity +is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media +mediagroup method min minlength multiple muted name novalidate nonce open +optimum pattern placeholder poster preload radiogroup readonly rel required +reversed role rowspan rows sandbox scope scoped scrolling seamless selected +shape size sizes span spellcheck src srcdoc srclang srcset start step style +summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown + onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick + onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown + onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel + onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough + onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),ar=`aria-`,or=`data-`;function sr(e,t){return e.indexOf(t)===0}function cr(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:T({},t);let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||sr(t,ar))||n.data&&sr(t,or)||n.attr&&(ir.includes(t)||ir.includes(t.toLowerCase())))&&(r[t]=e[t])}),r}function X(e){let t=typeof e==`function`?e():e,n=x(t);function r(e){n.value=e}return[n,r]}function lr(t){let n=Symbol(`contextKey`);return{useProvide:(t,r)=>{let i=m({});return e(n,i),_(()=>{T(i,t,r||{})}),i},useInject:()=>d(n,t)||{}}}var ur=e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`}}}},dr=e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item`]:{"&:empty":{display:`none`}}}}},fr=P(`Space`,e=>[dr(e),ur(e)]),pr=`[object Map]`,mr=`[object Set]`,hr=Object.prototype.hasOwnProperty;function gr(e){if(e==null)return!0;if(An(e)&&(At(e)||typeof e==`string`||typeof e.splice==`function`||Ht(e)||Cn(e)||Lt(e)))return!e.length;var t=Kn(e);if(t==pr||t==mr)return!e.size;if(Tn(e))return!kn(e).length;for(var n in e)if(hr.call(e,n))return!1;return!0}var _r=()=>({compactSize:String,compactDirection:I.oneOf(O(`horizontal`,`vertical`)).def(`horizontal`),isFirstItem:L(),isLastItem:L()}),vr=lr(null),yr=(e,n)=>{let r=vr.useInject(),i=t(()=>{if(!r||gr(r))return``;let{compactDirection:t,isFirstItem:i,isLastItem:a}=r,o=t===`vertical`?`-vertical-`:`-`;return V({[`${e.value}-compact${o}item`]:!0,[`${e.value}-compact${o}first-item`]:i,[`${e.value}-compact${o}last-item`]:a,[`${e.value}-compact${o}item-rtl`]:n.value===`rtl`})});return{compactSize:t(()=>r?.compactSize),compactDirection:t(()=>r?.compactDirection),compactItemClassnames:i}},br=a({name:`NoCompactStyle`,setup(e,t){let{slots:n}=t;return vr.useProvide(null),()=>n.default?.call(n)}}),xr=()=>({prefixCls:String,size:{type:String},direction:I.oneOf(O(`horizontal`,`vertical`)).def(`horizontal`),align:I.oneOf(O(`start`,`end`,`center`,`baseline`)),block:{type:Boolean,default:void 0}}),Sr=a({name:`CompactItem`,props:_r(),setup(e,t){let{slots:n}=t;return vr.useProvide(e),()=>n.default?.call(n)}}),Cr=a({name:`ASpaceCompact`,inheritAttrs:!1,props:xr(),setup(e,n){let{attrs:i,slots:a}=n,{prefixCls:o,direction:s}=k(`space-compact`,e),c=vr.useInject(),[l,u]=fr(o),d=t(()=>V(o.value,u.value,{[`${o.value}-rtl`]:s.value===`rtl`,[`${o.value}-block`]:e.block,[`${o.value}-vertical`]:e.direction===`vertical`}));return()=>{let t=E(a.default?.call(a)||[]);return t.length===0?null:l(r(`div`,z(z({},i),{},{class:[d.value,i.class]}),[t.map((n,i)=>{let a=n&&n.key||`${o.value}-item-${i}`,s=!c||gr(c);return r(Sr,{key:a,compactSize:e.size??`middle`,compactDirection:e.direction,isFirstItem:i===0&&(s||c?.isFirstItem),isLastItem:i===t.length-1&&(s||c?.isLastItem)},{default:()=>[n]})})]))}}}),wr=e=>({animationDuration:e,animationFillMode:`both`}),Tr=e=>({animationDuration:e,animationFillMode:`both`}),Er=function(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0&&arguments[4]?`&`:``;return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:T(T({},wr(r)),{animationPlayState:`paused`}),[`${i}${e}-leave`]:T(T({},Tr(r)),{animationPlayState:`paused`}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:`running`},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},Dr=new j(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),Or=new j(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),kr=function(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Er(r,Dr,Or,e.motionDurationMid,t),{[` + ${i}${r}-enter, + ${i}${r}-appear + `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},Ar=new j(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),jr=new j(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Mr=new j(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Nr=new j(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Pr=new j(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Fr=new j(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Ir=new j(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Lr=new j(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Rr=new j(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),zr=new j(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Br=new j(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Vr=new j(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Hr={zoom:{inKeyframes:Ar,outKeyframes:jr},"zoom-big":{inKeyframes:Mr,outKeyframes:Nr},"zoom-big-fast":{inKeyframes:Mr,outKeyframes:Nr},"zoom-left":{inKeyframes:Ir,outKeyframes:Lr},"zoom-right":{inKeyframes:Rr,outKeyframes:zr},"zoom-up":{inKeyframes:Pr,outKeyframes:Fr},"zoom-down":{inKeyframes:Br,outKeyframes:Vr}},Ur=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Hr[t];return[Er(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Wr(e,t,n){let{focusElCls:r,focus:i,borderElCls:a}=n,o=a?`> *`:``,s=[`hover`,i?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${o}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":T(T({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function Gr(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Kr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0},{componentCls:n}=e,r=`${n}-compact`;return{[r]:T(T({},Wr(e,r,t)),Gr(n,r,t))}}var qr=e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:`var(--wave-color, ${n})`,boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0}}}}},Jr=P(`Wave`,e=>[qr(e)]);function Yr(e){let t=(e||``).match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?t[1]!==t[2]||t[2]!==t[3]:!0}function Xr(e){return e&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&Yr(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!==`transparent`}function Zr(e){let{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Xr(t)?t:Xr(n)?n:Xr(r)?r:null}function Qr(e){return Number.isNaN(e)?0:e}var $r=a({props:{target:R(),className:String},setup(e){let t=g(null),[n,i]=X(null),[a,s]=X([]),[c,l]=X(0),[u,d]=X(0),[p,m]=X(0),[h,_]=X(0),[v,y]=X(!1);function b(){let{target:t}=e,n=getComputedStyle(t);i(Zr(t));let r=n.position===`static`,{borderLeftWidth:a,borderTopWidth:o}=n;l(r?t.offsetLeft:Qr(-parseFloat(a))),d(r?t.offsetTop:Qr(-parseFloat(o))),m(t.offsetWidth),_(t.offsetHeight);let{borderTopLeftRadius:c,borderTopRightRadius:u,borderBottomLeftRadius:f,borderBottomRightRadius:p}=n;s([c,u,p,f].map(e=>Qr(parseFloat(e))))}let x,S,C,w=()=>{clearTimeout(C),U.cancel(S),x?.disconnect()},T=()=>{let e=t.value?.parentElement;e&&(B(null,e),e.parentElement&&e.parentElement.removeChild(e))};f(()=>{w(),C=setTimeout(()=>{T()},5e3);let{target:t}=e;t&&(S=U(()=>{b(),y(!0)}),typeof ResizeObserver<`u`&&(x=new ResizeObserver(b),x.observe(t)))}),o(()=>{w()});let E=e=>{e.propertyName===`opacity`&&T()};return()=>{if(!v.value)return null;let i={left:`${c.value}px`,top:`${u.value}px`,width:`${p.value}px`,height:`${h.value}px`,borderRadius:a.value.map(e=>`${e}px`).join(` `)};return n&&(i[`--wave-color`]=n.value),r(xe,{appear:!0,name:`wave-motion`,appearFromClass:`wave-motion-appear`,appearActiveClass:`wave-motion-appear`,appearToClass:`wave-motion-appear wave-motion-appear-active`},{default:()=>[r(`div`,{ref:t,class:e.className,style:i,onTransitionend:E},null)]})}}});function ei(e,t){let n=document.createElement(`div`);return n.style.position=`absolute`,n.style.left=`0px`,n.style.top=`0px`,e?.insertBefore(n,e?.firstChild),B(r($r,{target:e,className:t},null),n),()=>{B(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function ti(e,t){let n=s(),r;function i(){let i=me(n);r?.(),!(t?.value?.disabled||!i)&&(r=ei(i,e.value))}return o(()=>{r?.()}),i}var ni=a({compatConfig:{MODE:3},name:`Wave`,props:{disabled:Boolean},setup(e,n){let{slots:r}=n,i=s(),{prefixCls:a,wave:c}=k(`wave`,e),[,l]=Jr(a),d=ti(t(()=>V(a.value,l.value)),c),p,m=()=>{me(i).removeEventListener(`click`,p,!0)};return f(()=>{y(()=>e.disabled,()=>{m(),u(()=>{let t=me(i);t?.removeEventListener(`click`,p,!0),!(!t||t.nodeType!==1||e.disabled)&&(p=e=>{e.target.tagName===`INPUT`||!Je(e.target)||!t.getAttribute||t.getAttribute(`disabled`)||t.disabled||t.className.includes(`disabled`)||t.className.includes(`-leave`)||d()},t.addEventListener(`click`,p,!0))})},{immediate:!0,flush:`post`})}),o(()=>{m()}),()=>r.default?.call(r)[0]}});function ri(e){return e===`danger`?{danger:!0}:{type:e}}var ii=()=>({prefixCls:String,type:String,htmlType:{type:String,default:`button`},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:I.any,href:String,target:String,title:String,onClick:we(),onMousedown:we()}),ai=e=>{e&&(e.style.width=`0px`,e.style.opacity=`0`,e.style.transform=`scale(0)`)},oi=e=>{u(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity=`1`,e.style.transform=`scale(1)`)})},si=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},ci=a({compatConfig:{MODE:3},name:`LoadingIcon`,props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{let{existIcon:t,prefixCls:n,loading:i}=e;if(t)return r(`span`,{class:`${n}-loading-icon`},[r(oe,null,null)]);let a=!!i;return r(xe,{name:`${n}-loading-icon-motion`,onBeforeEnter:ai,onEnter:oi,onAfterEnter:si,onBeforeLeave:oi,onLeave:e=>{setTimeout(()=>{ai(e)})},onAfterLeave:si},{default:()=>[a?r(`span`,{class:`${n}-loading-icon`},[r(oe,null,null)]):null]})}}}),li=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ui=e=>{let{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},li(`${t}-primary`,i),li(`${t}-danger`,a)]}};function di(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fi(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function pi(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:T(T({},di(e,t)),fi(e.componentCls,t))}}var mi=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-block`,fontWeight:400,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,backgroundColor:`transparent`,border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,lineHeight:e.lineHeight,color:e.colorText,"> span":{display:`inline-block`},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:`currentColor`},"&:not(:disabled)":T({},M(e)),[`&-icon-only${t}-compact-item`]:{flex:`none`},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:`relative`,"&:before":{position:`absolute`,top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:`inline-block`,width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:`""`}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:`relative`,"&:before":{position:`absolute`,top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:`inline-block`,width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:`""`}}}}}}},Z=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),hi=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:`50%`}),gi=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),_i=e=>({cursor:`not-allowed`,borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:`none`}),vi=(e,t,n,r,i,a,o)=>({[`&${e}-background-ghost`]:T(T({color:t||void 0,backgroundColor:`transparent`,borderColor:n||void 0,boxShadow:`none`},Z(T({backgroundColor:`transparent`},a),T({backgroundColor:`transparent`},o))),{"&:disabled":{cursor:`not-allowed`,color:r||void 0,borderColor:i||void 0}})}),yi=e=>({"&:disabled":T({},_i(e))}),bi=e=>T({},yi(e)),xi=e=>({"&:disabled":{cursor:`not-allowed`,color:e.colorTextDisabled}}),Si=e=>T(T(T(T(T({},bi(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Z({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),vi(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:T(T(T({color:e.colorError,borderColor:e.colorError},Z({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vi(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),yi(e))}),Ci=e=>T(T(T(T(T({},bi(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Z({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),vi(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:T(T(T({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Z({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),vi(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yi(e))}),wi=e=>T(T({},Si(e)),{borderStyle:`dashed`}),Ti=e=>T(T(T({color:e.colorLink},Z({color:e.colorLinkHover},{color:e.colorLinkActive})),xi(e)),{[`&${e.componentCls}-dangerous`]:T(T({color:e.colorError},Z({color:e.colorErrorHover},{color:e.colorErrorActive})),xi(e))}),Ei=e=>T(T(T({},Z({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),xi(e)),{[`&${e.componentCls}-dangerous`]:T(T({color:e.colorError},xi(e)),Z({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Di=e=>T(T({},_i(e)),{[`&${e.componentCls}:hover`]:T({},_i(e))}),Oi=e=>{let{componentCls:t}=e;return{[`${t}-default`]:Si(e),[`${t}-primary`]:Ci(e),[`${t}-dashed`]:wi(e),[`${t}-link`]:Ti(e),[`${t}-text`]:Ei(e),[`${t}-disabled`]:Di(e)}},ki=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,{componentCls:n,iconCls:r,controlHeight:i,fontSize:a,lineHeight:o,lineWidth:s,borderRadius:c,buttonPaddingHorizontal:l}=e,u=Math.max(0,(i-a*o)/2-s),d=l-s,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:a,height:i,padding:`${u}px ${d}px`,borderRadius:c,[`&${f}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:`auto`},"> span":{transform:`scale(1.143)`}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:`default`},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:hi(e)},{[`${n}${n}-round${t}`]:gi(e)}]},Ai=e=>ki(e),ji=e=>ki(N(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM}),`${e.componentCls}-sm`),Mi=e=>ki(N(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`${e.componentCls}-lg`),Ni=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},Pi=P(`Button`,e=>{let{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=N(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[mi(r),ji(r),Ai(r),Mi(r),Ni(r),Oi(r),ui(r),Kr(e,{focus:!1}),pi(e)]}),Fi=()=>({prefixCls:String,size:{type:String}}),Ii=lr(),Li=a({compatConfig:{MODE:3},name:`AButtonGroup`,props:Fi(),setup(e,n){let{slots:i}=n,{prefixCls:a,direction:o}=k(`btn-group`,e),[,,s]=pe();Ii.useProvide(m({size:t(()=>e.size)}));let c=t(()=>{let{size:t}=e,n=``;switch(t){case`large`:n=`lg`;break;case`small`:n=`sm`;break;case`middle`:case void 0:break;default:Ve(!t,`Button.Group`,"Invalid prop `size`.")}return{[`${a.value}`]:!0,[`${a.value}-${n}`]:n,[`${a.value}-rtl`]:o.value===`rtl`,[s.value]:!0}});return()=>r(`div`,{class:c.value},[E(i.default?.call(i))])}}),Ri=/^[\u4e00-\u9fa5]{2}$/,zi=Ri.test.bind(Ri);function Bi(e){return e===`text`||e===`link`}var Vi=a({compatConfig:{MODE:3},name:`AButton`,inheritAttrs:!1,__ANT_BUTTON:!0,props:H(ii(),{type:`default`}),slots:Object,setup(e,n){let{slots:i,attrs:a,emit:s,expose:c}=n,{prefixCls:l,autoInsertSpaceInButton:u,direction:d,size:m}=k(`btn`,e),[h,v]=Pi(l),b=Ii.useInject(),x=ue(),C=t(()=>e.disabled??x.value),w=g(null),D=g(void 0),O=!1,A=g(!1),j=g(!1),M=t(()=>u.value!==!1),{compactSize:ee,compactItemClassnames:N}=yr(l,d),P=t(()=>typeof e.loading==`object`&&e.loading.delay?e.loading.delay||!0:!!e.loading);y(P,e=>{clearTimeout(D.value),typeof P.value==`number`?D.value=setTimeout(()=>{A.value=e},P.value):A.value=e},{immediate:!0});let te=t(()=>{let{type:t,shape:n=`default`,ghost:r,block:i,danger:a}=e,o=l.value,s={large:`lg`,small:`sm`,middle:void 0},c=ee.value||b?.size||m.value,u=c&&s[c]||``;return[N.value,{[v.value]:!0,[`${o}`]:!0,[`${o}-${n}`]:n!=="default"&&n,[`${o}-${t}`]:t,[`${o}-${u}`]:u,[`${o}-loading`]:A.value,[`${o}-background-ghost`]:r&&!Bi(t),[`${o}-two-chinese-chars`]:j.value&&M.value,[`${o}-block`]:i,[`${o}-dangerous`]:!!a,[`${o}-rtl`]:d.value===`rtl`}]}),F=()=>{let e=w.value;if(!e||u.value===!1)return;let t=e.textContent;O&&zi(t)?j.value||=!0:j.value&&=!1},ne=e=>{if(A.value||C.value){e.preventDefault();return}s(`click`,e)},I=e=>{s(`mousedown`,e)},re=(e,t)=>{let n=t?` `:``;if(e.type===S){let t=e.children.trim();return zi(t)&&(t=t.split(``).join(n)),r(`span`,null,[t])}return e};return _(()=>{Ve(!(e.ghost&&Bi(e.type)),`Button`,"`link` or `text` button can't be a `ghost` button.")}),f(F),p(F),o(()=>{D.value&&clearTimeout(D.value)}),c({focus:()=>{var e;(e=w.value)==null||e.focus()},blur:()=>{var e;(e=w.value)==null||e.blur()}}),()=>{let{icon:t=i.icon?.call(i)}=e,n=E(i.default?.call(i));O=n.length===1&&!t&&!Bi(e.type);let{type:o,htmlType:s,href:c,title:u,target:d}=e,f=A.value?`loading`:t,p=T(T({},a),{title:u,disabled:C.value,class:[te.value,a.class,{[`${l.value}-icon-only`]:n.length===0&&!!f}],onClick:ne,onMousedown:I});C.value||delete p.disabled;let m=t&&!A.value?t:r(ci,{existIcon:!!t,prefixCls:l.value,loading:!!A.value},null),g=n.map(e=>re(e,O&&M.value));if(c!==void 0)return h(r(`a`,z(z({},p),{},{href:c,target:d,ref:w}),[m,g]));let _=r(`button`,z(z({},p),{},{ref:w,type:s}),[m,g]);if(!Bi(o)){let e=function(){return _}();_=r(ni,{ref:`wave`,disabled:!!A.value},{default:()=>[e]})}return h(_)}}});Vi.Group=Li,Vi.install=function(e){return e.component(Vi.name,Vi),e.component(Li.name,Li),e};var Hi=Vi,Ui=()=>w()&&window.document.documentElement,Wi=e=>{if(w()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},Gi=(e,t)=>{if(!Wi(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function Ki(e,t){return!Array.isArray(e)&&t!==void 0?Gi(e,t):Wi(e)}var qi,Ji=()=>{if(!Ui())return!1;if(qi!==void 0)return qi;let e=document.createElement(`div`);return e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e),qi=e.scrollHeight===1,document.body.removeChild(e),qi};function Yi(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:I.shape({x:Number,y:Number}).loose,title:I.any,footer:I.any,transitionName:String,maskTransitionName:String,animation:I.any,maskAnimation:I.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:I.any,maskProps:I.any,wrapProps:I.any,getContainer:I.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:I.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Xi(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}var Zi=-1;function Qi(){return Zi+=1,Zi}function $i(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function ea(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=$i(i),n.top+=$i(i,!0),n}var ta={width:0,height:0,overflow:`hidden`,outline:`none`},na={outline:`none`},ra=a({compatConfig:{MODE:3},name:`DialogContent`,inheritAttrs:!1,props:T(T({},Yi()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,n){let{expose:i,slots:a,attrs:o}=n,s=x(),c=x(),l=x();i({focus:()=>{var e;(e=s.value)==null||e.focus({preventScroll:!0})},changeActive:e=>{let{activeElement:t}=document;e&&t===c.value?s.value.focus({preventScroll:!0}):!e&&t===s.value&&c.value.focus({preventScroll:!0})}});let d=x(),f=t(()=>{let{width:t,height:n}=e,r={};return t!==void 0&&(r.width=typeof t==`number`?`${t}px`:t),n!==void 0&&(r.height=typeof n==`number`?`${n}px`:n),d.value&&(r.transformOrigin=d.value),r}),p=()=>{u(()=>{if(l.value){let t=ea(l.value);d.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:``}})},m=t=>{e.onVisibleChanged(t)};return()=>{let{prefixCls:t,footer:n=a.footer?.call(a),title:i=a.title?.call(a),ariaId:u,closable:d,closeIcon:h=a.closeIcon?.call(a),onClose:g,bodyStyle:_,bodyProps:v,onMousedown:y,onMouseup:x,visible:S,modalRender:C=a.modalRender,destroyOnClose:w,motionName:T}=e,E;n&&(E=r(`div`,{class:`${t}-footer`},[n]));let O;i&&(O=r(`div`,{class:`${t}-header`},[r(`div`,{class:`${t}-title`,id:u},[i])]));let k;d&&(k=r(`button`,{type:`button`,onClick:g,"aria-label":`Close`,class:`${t}-close`},[h||r(`span`,{class:`${t}-close-x`},null)]));let A=r(`div`,{class:`${t}-content`},[k,O,r(`div`,z({class:`${t}-body`,style:_},v),[a.default?.call(a)]),E]),j=D(T);return r(xe,z(z({},j),{},{onBeforeEnter:p,onAfterEnter:()=>m(!0),onAfterLeave:()=>m(!1)}),{default:()=>[S||!w?b(r(`div`,z(z({},o),{},{ref:l,key:`dialog-element`,role:`document`,style:[f.value,o.style],class:[t,o.class],onMousedown:y,onMouseup:x}),[r(`div`,{tabindex:0,ref:s,style:na},[C?C({originVNode:A}):A]),r(`div`,{tabindex:0,ref:c,style:ta},null)]),[[se,S]]):null]})}}}),ia=a({compatConfig:{MODE:3},name:`DialogMask`,props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){let{}=t;return()=>{let{prefixCls:t,visible:n,maskProps:i,motionName:a}=e,o=D(a);return r(xe,o,{default:()=>[b(r(`div`,z({class:`${t}-mask`},i),null),[[se,n]])]})}}}),aa=a({compatConfig:{MODE:3},name:`VcDialog`,inheritAttrs:!1,props:H(T(T({},Yi()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:`rc-dialog`,getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:i}=t,a=g(),s=g(),c=g(),l=g(e.visible),u=g(`vcDialogTitle${Qi()}`),d=t=>{var n,r;if(t)F(s.value,document.activeElement)||(a.value=document.activeElement,(n=c.value)==null||n.focus());else{let t=l.value;if(l.value=!1,e.mask&&a.value&&e.focusTriggerAfterClose){try{a.value.focus({preventScroll:!0})}catch{}a.value=null}t&&((r=e.afterClose)==null||r.call(e))}},f=t=>{var n;(n=e.onClose)==null||n.call(e,t)},p=g(!1),m=g(),h=()=>{clearTimeout(m.value),p.value=!0},v=()=>{m.value=setTimeout(()=>{p.value=!1})},b=t=>{if(!e.maskClosable)return null;p.value?p.value=!1:s.value===t.target&&f(t)},x=t=>{if(e.keyboard&&t.keyCode===Y.ESC){t.stopPropagation(),f(t);return}e.visible&&t.keyCode===Y.TAB&&c.value.changeActive(!t.shiftKey)};return y(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:`post`}),o(()=>{var t;clearTimeout(m.value),(t=e.scrollLocker)==null||t.unLock()}),_(()=>{var t,n;(t=e.scrollLocker)==null||t.unLock(),l.value&&((n=e.scrollLocker)==null||n.lock())}),()=>{let{prefixCls:t,mask:a,visible:o,maskTransitionName:p,maskAnimation:m,zIndex:g,wrapClassName:_,rootClassName:y,wrapStyle:S,closable:C,maskProps:w,maskStyle:E,transitionName:D,animation:O,wrapProps:k,title:A=i.title}=e,{style:j,class:M}=n;return r(`div`,z({class:[`${t}-root`,y]},cr(e,{data:!0})),[r(ia,{prefixCls:t,visible:a&&o,motionName:Xi(t,p,m),style:T({zIndex:g},E),maskProps:w},null),r(`div`,z({tabIndex:-1,onKeydown:x,class:V(`${t}-wrap`,_),ref:s,onClick:b,role:`dialog`,"aria-labelledby":A?u.value:null,style:T(T({zIndex:g},S),{display:l.value?null:`none`})},k),[r(ra,z(z({},Be(e,[`scrollLocker`])),{},{style:j,class:M,onMousedown:h,onMouseup:v,ref:c,closable:C,ariaId:u.value,prefixCls:t,visible:o,onClose:f,onVisibleChanged:d,motionName:Xi(t,D,O)}),i)])])}}}),oa=Yi(),sa=a({compatConfig:{MODE:3},name:`DialogWrap`,inheritAttrs:!1,props:H(oa,{visible:!1}),setup(e,t){let{attrs:n,slots:i}=t,a=x(e.visible);return Te({},{inTriggerContext:!1}),y(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:`post`}),()=>{let{visible:t,getContainer:o,forceRender:s,destroyOnClose:c=!1,afterClose:l}=e,u=T(T(T({},e),n),{ref:`_component`,key:`dialog`});return o===!1?r(aa,z(z({},u),{},{getOpenCount:()=>2}),i):!s&&c&&!a.value?null:r(rr,{autoLock:!0,visible:t,forceRender:s,getContainer:o},{default:e=>(u=T(T(T({},u),e),{afterClose:()=>{l?.(),a.value=!1}}),r(aa,u,i))})}}});function ca(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}var la=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:`none`},[`${t}-mask`]:T(T({},ca(`fixed`)),{zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:`none`}}),[`${t}-wrap`]:T(T({},ca(`fixed`)),{overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`})}},{[`${t}-root`]:kr(e)}]},ua=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:`fixed`,inset:0,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`},[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:T(T({},ee(e)),{pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:`0 auto`,paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:`break-word`},[`${t}-content`]:{position:`relative`,backgroundColor:e.modalContentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:`auto`,padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:T({position:`absolute`,top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:`pointer`,transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:`block`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:`${e.modalCloseBtnSize}px`,textAlign:`center`,textTransform:`none`,textRendering:`auto`},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?`transparent`:e.colorFillContent,textDecoration:`none`},"&:active":{backgroundColor:e.wireframe?`transparent`:e.colorFillContentHover}},M(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:`break-word`},[`${t}-footer`]:{textAlign:`end`,background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:`hidden`}})},{[`${t}-pure-panel`]:{top:`auto`,padding:0,display:`flex`,flexDirection:`column`,[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},da=e=>{let{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${n}-body-wrapper`]:T({},te()),[`${n}-body`]:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,[`${n}-title`]:{flex:`0 0 100%`,display:`block`,overflow:`hidden`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:`100%`,maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:`none`,marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:`end`,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, + ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:`none`}}},fa=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},pa=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},ma=P(`Modal`,e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,i=N(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:`transparent`,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[ua(i),da(i),fa(i),la(i),e.wireframe&&pa(i),Ur(i,`zoom`)]}),ha=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{ga={x:e.pageX,y:e.pageY},setTimeout(()=>ga=null,100)},!0);var Q=a({compatConfig:{MODE:3},name:`AModal`,inheritAttrs:!1,props:H({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:I.any,closable:{type:Boolean,default:void 0},closeIcon:I.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:I.any,okText:I.any,okType:String,cancelText:I.any,icon:I.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:R(),cancelButtonProps:R(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:R(),maskStyle:R(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:R()},{width:520,confirmLoading:!1,okType:`primary`}),setup(e,t){let{emit:n,slots:i,attrs:a}=t,[o]=_e(`Modal`),{prefixCls:s,rootPrefixCls:l,direction:u,getPopupContainer:d}=k(`modal`,e),[f,p]=ma(s);ie(e.visible===void 0,`Modal`,"`visible` will be removed in next major version, please use `open` instead.");let m=e=>{n(`update:visible`,!1),n(`update:open`,!1),n(`cancel`,e),n(`change`,!1)},h=e=>{n(`ok`,e)},g=()=>{let{okText:t=i.okText?.call(i),okType:n,cancelText:a=i.cancelText?.call(i),confirmLoading:s}=e;return r(c,null,[r(Hi,z({onClick:m},e.cancelButtonProps),{default:()=>[a||o.value.cancelText]}),r(Hi,z(z({},ri(n)),{},{loading:s,onClick:h},e.okButtonProps),{default:()=>[t||o.value.okText]})])};return()=>{let{prefixCls:t,visible:n,open:o,wrapClassName:c,centered:h,getContainer:_,closeIcon:v=i.closeIcon?.call(i),focusTriggerAfterClose:y=!0}=e,b=ha(e,[`prefixCls`,`visible`,`open`,`wrapClassName`,`centered`,`getContainer`,`closeIcon`,`focusTriggerAfterClose`]),x=V(c,{[`${s.value}-centered`]:!!h,[`${s.value}-wrap-rtl`]:u.value===`rtl`});return f(r(sa,z(z(z({},b),a),{},{rootClassName:p.value,class:V(p.value,a.class),getContainer:_||d?.value,prefixCls:s.value,wrapClassName:x,visible:o??n,onClose:m,focusTriggerAfterClose:y,transitionName:ne(l.value,`zoom`,e.transitionName),maskTransitionName:ne(l.value,`fade`,e.maskTransitionName),mousePosition:b.mousePosition??ga}),T(T({},i),{footer:i.footer||g,closeIcon:()=>r(`span`,{class:`${s.value}-close-x`},[v||r(de,{class:`${s.value}-close-icon`},null)])})))}}}),_a=()=>{let e=g(!1);return o(()=>{e.value=!0}),e},va={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:R(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function ya(e){return!!(e&&e.then)}var ba=a({compatConfig:{MODE:3},name:`ActionButton`,props:va,setup(e,t){let{slots:n}=t,i=g(!1),a=g(),s=g(!1),c,l=_a();f(()=>{e.autofocus&&(c=setTimeout(()=>{var e;return((e=me(a.value))?.focus)?.call(e)}))}),o(()=>{clearTimeout(c)});let u=function(){var t,n=[...arguments];(t=e.close)==null||t.call(e,...n)},d=e=>{ya(e)&&(s.value=!0,e.then(function(){l.value||(s.value=!1),u(...arguments),i.value=!1},e=>(l.value||(s.value=!1),i.value=!1,Promise.reject(e))))},p=t=>{let{actionFn:n}=e;if(i.value)return;if(i.value=!0,!n){u();return}let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!ya(r)){i.value=!1,u(t);return}}else if(n.length)r=n(e.close),i.value=!1;else if(r=n(),!r){u();return}d(r)};return()=>{let{type:t,prefixCls:i,buttonProps:o}=e;return r(Hi,z(z(z({},ri(t)),{},{onClick:p,loading:s.value,prefixCls:i},o),{},{ref:a}),n)}}});function xa(e){return typeof e==`function`?e():e}var Sa=a({name:`ConfirmDialog`,inheritAttrs:!1,props:`icon.onCancel.onOk.close.closable.zIndex.afterClose.visible.open.keyboard.centered.getContainer.maskStyle.okButtonProps.cancelButtonProps.okType.prefixCls.okCancel.width.mask.maskClosable.okText.cancelText.autoFocusButton.transitionName.maskTransitionName.type.title.content.direction.rootPrefixCls.bodyStyle.closeIcon.modalRender.focusTriggerAfterClose.wrapClassName.confirmPrefixCls.footer`.split(`.`),setup(e,t){let{attrs:n}=t,[i]=_e(`Modal`);return()=>{let{icon:t,onCancel:a,onOk:o,close:s,okText:c,closable:l=!1,zIndex:u,afterClose:d,keyboard:f,centered:p,getContainer:m,maskStyle:h,okButtonProps:g,cancelButtonProps:_,okCancel:v,width:y=416,mask:b=!0,maskClosable:x=!1,type:S,open:C,title:w,content:T,direction:E,closeIcon:D,modalRender:O,focusTriggerAfterClose:k,rootPrefixCls:A,bodyStyle:j,wrapClassName:M,footer:ee}=e,N=t;if(!t&&t!==null)switch(S){case`info`:N=r(he,null,null);break;case`success`:N=r(le,null,null);break;case`error`:N=r(fe,null,null);break;default:N=r(Se,null,null)}let P=e.okType||`primary`,te=e.prefixCls||`ant-modal`,F=`${te}-confirm`,I=n.style||{},re=v??S===`confirm`,ie=e.autoFocusButton===null?!1:e.autoFocusButton||`ok`,ae=`${te}-confirm`,oe=V(ae,`${ae}-${e.type}`,{[`${ae}-rtl`]:E===`rtl`},n.class),L=i.value,se=re&&r(ba,{actionFn:a,close:s,autofocus:ie===`cancel`,buttonProps:_,prefixCls:`${A}-btn`},{default:()=>[xa(e.cancelText)||L.cancelText]});return r(Q,{prefixCls:te,class:oe,wrapClassName:V({[`${ae}-centered`]:!!p},M),onCancel:e=>s?.({triggerCancel:!0},e),open:C,title:``,footer:``,transitionName:ne(A,`zoom`,e.transitionName),maskTransitionName:ne(A,`fade`,e.maskTransitionName),mask:b,maskClosable:x,maskStyle:h,style:I,bodyStyle:j,width:y,zIndex:u,afterClose:d,keyboard:f,centered:p,getContainer:m,closable:l,closeIcon:D,modalRender:O,focusTriggerAfterClose:k},{default:()=>[r(`div`,{class:`${F}-body-wrapper`},[r(`div`,{class:`${F}-body`},[xa(N),w===void 0?null:r(`span`,{class:`${F}-title`},[xa(w)]),r(`div`,{class:`${F}-content`},[xa(T)])]),ee===void 0?r(`div`,{class:`${F}-btns`},[se,r(ba,{type:P,actionFn:o,close:s,autofocus:ie===`ok`,buttonProps:g,prefixCls:`${A}-btn`},{default:()=>[xa(c)||(re?L.okText:L.justOkText)]})]):xa(ee)])]})}}}),$=[],Ca=e=>{let t=document.createDocumentFragment(),n=T(T({},Be(e,[`parentContext`,`appContext`])),{close:o,open:!0}),i=null;function a(){i&&=(B(null,t),null);var n=[...arguments];let r=n.some(e=>e&&e.triggerCancel);e.onCancel&&r&&e.onCancel(()=>{},...n.slice(1));for(let e=0;e<$.length;e++)if($[e]===o){$.splice(e,1);break}}function o(){var t=[...arguments];n=T(T({},n),{open:!1,afterClose:()=>{typeof e.afterClose==`function`&&e.afterClose(),a.apply(this,t)}}),n.visible&&delete n.visible,s(n)}function s(e){n=typeof e==`function`?e(n):T(T({},n),e),i&&Ge(i,n,t)}let c=e=>{let t=ge,n=t.prefixCls,i=e.prefixCls||`${n}-modal`,a=t.iconPrefixCls,o=ce();return r(be,z(z({},t),{},{prefixCls:n}),{default:()=>[r(Sa,z(z({},e),{},{rootPrefixCls:n,prefixCls:i,iconPrefixCls:a,locale:o,cancelText:e.cancelText||o.cancelText}),null)]})};function l(n){let i=r(c,T({},n));return i.appContext=e.parentContext||e.appContext||i.appContext,B(i,t),i}return i=l(n),$.push(o),{destroy:o,update:s}};function wa(e){return T(T({},e),{type:`warning`})}function Ta(e){return T(T({},e),{type:`info`})}function Ea(e){return T(T({},e),{type:`success`})}function Da(e){return T(T({},e),{type:`error`})}function Oa(e){return T(T({},e),{type:`confirm`})}var ka=a({name:`HookModal`,inheritAttrs:!1,props:H({config:Object,afterClose:Function,destroyAction:Function,open:Boolean},{config:{width:520,okType:`primary`}}),setup(e,n){let{expose:i}=n,a=t(()=>e.open),o=t(()=>e.config),{direction:s,getPrefixCls:c}=ve(),l=c(`modal`),u=c(),d=()=>{var t,n;e?.afterClose(),(n=(t=o.value).afterClose)==null||n.call(t)},f=function(){e.destroyAction(...arguments)};i({destroy:f});let p=o.value.okCancel??o.value.type===`confirm`,[m]=_e(`Modal`,ye.Modal);return()=>r(Sa,z(z({prefixCls:l,rootPrefixCls:u},o.value),{},{close:f,open:a.value,afterClose:d,okText:o.value.okText||(p?m?.value.okText:m?.value.justOkText),direction:o.value.direction||s.value,cancelText:o.value.cancelText||m?.value.cancelText}),null)}}),Aa=0,ja=a({name:`ElementsHolder`,inheritAttrs:!1,setup(e,t){let{expose:n}=t,r=g([]);return n({addModal:e=>(r.value.push(e),r.value=r.value.slice(),()=>{r.value=r.value.filter(t=>t!==e)})}),()=>r.value.map(e=>e())}});function Ma(){let e=g(null),n=g([]);y(n,()=>{n.value.length&&([...n.value].forEach(e=>{e()}),n.value=[])},{immediate:!0});let i=t=>function(i){Aa+=1;let a=g(!0),o=g(null),s=g(l(i)),c=g({});y(()=>i,e=>{f(T(T({},v(e)?e.value:e),c.value))});let u=function(){a.value=!1;var e=[...arguments];let t=e.some(e=>e&&e.triggerCancel);s.value.onCancel&&t&&s.value.onCancel(()=>{},...e.slice(1))},d;d=e.value?.addModal(()=>r(ka,{key:`modal-${Aa}`,config:t(s.value),ref:o,open:a.value,destroyAction:u,afterClose:()=>{d?.()}},null)),d&&$.push(d);let f=e=>{s.value=T(T({},s.value),e)};return{destroy:()=>{o.value?u():n.value=[...n.value,u]},update:e=>{c.value=e,o.value?f(e):n.value=[...n.value,()=>f(e)]}}},a=t(()=>({info:i(Ta),success:i(Ea),error:i(Da),warning:i(wa),confirm:i(Oa)})),o=Symbol(`modalHolderKey`);return[a.value,()=>r(ja,{key:o,ref:e},null)]}function Na(e){return Ca(wa(e))}Q.useModal=Ma,Q.info=function(e){return Ca(Ta(e))},Q.success=function(e){return Ca(Ea(e))},Q.error=function(e){return Ca(Da(e))},Q.warning=Na,Q.warn=Na,Q.confirm=function(e){return Ca(Oa(e))},Q.destroyAll=function(){for(;$.length;){let e=$.pop();e&&e()}},Q.install=function(e){return e.component(Q.name,Q),e};var Pa=Q,Fa={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function Ia(e){for(var t=1;tE.value?.node.config||{}),G=n(()=>{if(!E.value)return[];let e=E.value.node;return e.type===`question`||e.type===`choice`?E.value.fields.filter(e=>e.field_key===W.value.field_key):e.type===`form`?E.value.fields.filter(e=>(W.value.field_keys||[]).includes(e.field_key)):[]});async function K(){f.value=!0;try{y.value=(await b.get(`/published-sops`)).items}catch(e){w.error(v(e))}finally{f.value=!1}}async function q(e){try{E.value=await b.post(`/runs`,{sop_id:e}),Object.keys(D).forEach(e=>delete D[e])}catch(e){w.error(v(e))}}async function J(){if(E.value){O.value=!0;try{E.value=await b.post(`/runs/${E.value.run.id}/answer`,{answers:{...D}}),Object.keys(D).forEach(e=>delete D[e])}catch(e){w.error(v(e))}finally{O.value=!1}}}function Y(e){return e.field_type}function X(){E.value=null,K()}return u(K),(n,i)=>{let u=x(`a-empty`),d=x(`a-button`),v=x(`a-input`),b=x(`a-textarea`),S=x(`a-input-number`),w=x(`a-radio`),K=x(`a-radio-group`),Z=x(`a-select`),Q=x(`a-date-picker`),$=x(`a-form-item`),re=x(`a-radio-button`),ie=x(`a-form`),ae=x(`a-spin`);return s(),h(`div`,A,[i[10]||=a(`div`,{class:`page-heading`},[a(`div`,null,[a(`h1`,null,`执行话术`),a(`p`,null,`选择已发布 SOP,系统会根据客户回答给出下一步。`)])],-1),r(ae,{spinning:f.value},{default:_(()=>[E.value?(s(),h(`div`,M,[a(`aside`,N,[a(`span`,P,`RUN-`+t(String(E.value.run.id).padStart(5,`0`)),1),i[4]||=a(`h2`,null,`执行进行中`,-1),i[5]||=a(`p`,null,`客户回答会自动保存在当前执行记录中。`,-1),a(`div`,F,[i[1]||=a(`span`,null,`当前节点`,-1),a(`b`,null,t(E.value.node.title),1)]),a(`div`,I,[i[2]||=a(`span`,null,`已采集字段`,-1),a(`b`,null,t(Object.keys(E.value.run.answers||{}).length),1)]),a(`div`,L,[r(l(k)),i[3]||=a(`span`,null,`敏感信息请遵循企业数据规范`,-1)])]),a(`main`,R,[a(`div`,z,[a(`span`,{class:C({done:E.value.run.status===`completed`})},null,2),a(`b`,null,t(E.value.run.status===`completed`?`流程已完成`:`正在执行`),1)]),a(`div`,B,[a(`small`,null,t(E.value.node.type.toUpperCase()),1),a(`h1`,null,t(E.value.node.title),1),E.value.node.content?(s(),h(`blockquote`,V,t(E.value.node.content),1)):e(``,!0)]),E.value.run.status===`completed`?(s(),h(`div`,H,[r(l(m)),a(`h3`,null,t(E.value.node.type===`escalate`?`已转交处理`:`本次执行已完成`),1),a(`p`,null,t(E.value.node.content),1),r(d,{type:`primary`,onClick:X},{default:_(()=>[...i[6]||=[o(`执行另一套 SOP`,-1)]]),_:1})])):(s(),h(c,{key:1},[r(ie,{layout:`vertical`,class:`answer-form`},{default:_(()=>[(s(!0),h(c,null,p(G.value,e=>(s(),g($,{key:e.id,label:e.field_name,required:e.required},{default:_(()=>[Y(e)===`text`?(s(),g(v,{key:0,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t},null,8,[`value`,`onUpdate:value`])):Y(e)===`textarea`?(s(),g(b,{key:1,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t,rows:3},null,8,[`value`,`onUpdate:value`])):Y(e)===`number`?(s(),g(S,{key:2,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t,style:{width:`100%`}},null,8,[`value`,`onUpdate:value`])):Y(e)===`boolean`?(s(),g(K,{key:3,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t},{default:_(()=>[r(w,{value:!0},{default:_(()=>[...i[7]||=[o(`是`,-1)]]),_:1}),r(w,{value:!1},{default:_(()=>[...i[8]||=[o(`否`,-1)]]),_:1})]),_:1},8,[`value`,`onUpdate:value`])):Y(e)===`select`?(s(),g(Z,{key:4,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t,options:(e.options||[]).map(e=>({value:e,label:e}))},null,8,[`value`,`onUpdate:value`,`options`])):Y(e)===`multiselect`?(s(),g(Z,{key:5,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t,mode:`multiple`,options:(e.options||[]).map(e=>({value:e,label:e}))},null,8,[`value`,`onUpdate:value`,`options`])):Y(e)===`date`?(s(),g(Q,{key:6,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t,style:{width:`100%`}},null,8,[`value`,`onUpdate:value`])):(s(),g(v,{key:7,value:D[e.field_key],"onUpdate:value":t=>D[e.field_key]=t},null,8,[`value`,`onUpdate:value`]))]),_:2},1032,[`label`,`required`]))),128)),E.value.node.type===`choice`&&G.value.length===0?(s(),g($,{key:0},{default:_(()=>[r(K,{value:D[W.value.field_key],"onUpdate:value":i[0]||=e=>D[W.value.field_key]=e,class:`choice-group`},{default:_(()=>[(s(!0),h(c,null,p(W.value.options||[],e=>(s(),g(re,{key:e,value:e},{default:_(()=>[o(t(e),1)]),_:2},1032,[`value`]))),128))]),_:1},8,[`value`])]),_:1})):e(``,!0)]),_:1}),a(`div`,U,[a(`span`,null,t(G.value.length?`填写后继续下一步`:`确认当前话术已完成`),1),r(d,{type:`primary`,size:`large`,loading:O.value,onClick:J},{default:_(()=>[...i[9]||=[o(`继续下一步`,-1)]]),_:1},8,[`loading`])])],64))])])):(s(),h(`div`,ee,[(s(!0),h(c,null,p(y.value,e=>(s(),h(`button`,{key:e.id,class:`sop-entry surface`,onClick:t=>q(e.id)},[a(`span`,ne,t(String(e.id).padStart(2,`0`)),1),a(`div`,null,[a(`small`,null,t(e.scenario_name)+` · V`+t(e.version),1),a(`h2`,null,t(e.name),1),a(`p`,null,t(e.description||`按标准步骤执行这套话术流程。`),1)]),a(`span`,j,[r(l(T))])],8,te))),128)),y.value.length?e(``,!0):(s(),g(u,{key:0,description:`还没有已发布的 SOP`}))]))]),_:1},8,[`spinning`])])}}}),[[`__scopeId`,`data-v-6a3af49b`]]);export{W as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/ExecuteView-bT0HI80x.css b/codes/web/dist/assets/ExecuteView-bT0HI80x.css new file mode 100644 index 0000000..192f53d --- /dev/null +++ b/codes/web/dist/assets/ExecuteView-bT0HI80x.css @@ -0,0 +1 @@ +.execution-shell[data-v-6a3af49b]{max-width:1220px}.sop-catalog[data-v-6a3af49b]{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.sop-entry[data-v-6a3af49b]{text-align:left;cursor:pointer;grid-template-columns:40px 1fr 42px;align-items:start;gap:14px;min-height:150px;padding:22px;display:grid}.sop-entry[data-v-6a3af49b]:hover{border-color:#9ac8b8;box-shadow:0 8px 24px #20282512}.entry-seq[data-v-6a3af49b]{color:#8c9893;font-family:monospace;font-size:12px}.sop-entry small[data-v-6a3af49b]{color:var(--green);font-weight:650}.sop-entry h2[data-v-6a3af49b]{margin:8px 0 7px;font-family:Noto Serif SC,serif;font-size:20px}.sop-entry p[data-v-6a3af49b]{color:var(--muted);margin:0;line-height:1.6}.play[data-v-6a3af49b]{color:#fff;background:#202825;border-radius:4px;place-items:center;width:38px;height:38px;font-size:18px;display:grid}.run-workspace[data-v-6a3af49b]{grid-template-columns:270px minmax(0,1fr);gap:18px;display:grid}.run-context[data-v-6a3af49b]{color:#fff;background:#202825;border-radius:6px;align-self:start;padding:24px;position:sticky;top:86px}.run-label[data-v-6a3af49b]{color:#72c9ab;font-size:11px;font-weight:700}.run-context h2[data-v-6a3af49b]{margin:12px 0 8px;font-family:Noto Serif SC,serif}.run-context>p[data-v-6a3af49b]{color:#aebdb7;margin:0 0 28px;line-height:1.6}.context-meta[data-v-6a3af49b]{border-top:1px solid #3a4742;justify-content:space-between;align-items:center;padding:13px 0;display:flex}.context-meta span[data-v-6a3af49b]{color:#9eada7;font-size:12px}.privacy-note[data-v-6a3af49b]{color:#889b93;gap:8px;margin-top:28px;font-size:11px;display:flex}.conversation[data-v-6a3af49b]{min-height:590px;padding:30px 34px}.conversation-progress[data-v-6a3af49b]{color:#66736d;align-items:center;gap:8px;font-size:12px;display:flex}.conversation-progress span[data-v-6a3af49b]{background:#d08736;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #faefe1}.conversation-progress span.done[data-v-6a3af49b]{background:var(--green);box-shadow:0 0 0 4px #e4f1ec}.node-content[data-v-6a3af49b]{padding:44px 0 26px}.node-content small[data-v-6a3af49b]{color:var(--green);font-size:10px;font-weight:800}.node-content h1[data-v-6a3af49b]{margin:8px 0 22px;font-family:Noto Serif SC,serif;font-size:28px}.node-content blockquote[data-v-6a3af49b]{color:#29342f;border-left:3px solid var(--green);background:#f2f6f4;margin:0;padding:18px 20px;font-size:17px;line-height:1.8}.answer-form[data-v-6a3af49b]{max-width:680px}.choice-group[data-v-6a3af49b]{flex-wrap:wrap;display:flex}.run-actions[data-v-6a3af49b]{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:16px;margin:24px -34px -30px;padding:18px 34px;font-size:12px;display:flex}.completed-state[data-v-6a3af49b]{text-align:center;padding:40px 0}.completed-state>span[data-v-6a3af49b]{color:var(--green);font-size:50px}.completed-state h3[data-v-6a3af49b]{margin:14px 0 8px;font-family:Noto Serif SC,serif;font-size:24px}.completed-state p[data-v-6a3af49b]{color:var(--muted);margin:0 0 24px}@media (width<=800px){.sop-catalog[data-v-6a3af49b],.run-workspace[data-v-6a3af49b]{grid-template-columns:1fr}.run-context[data-v-6a3af49b]{position:static}.conversation[data-v-6a3af49b]{padding:22px}.run-actions[data-v-6a3af49b]{margin:24px -22px -22px;padding:16px 22px}.run-actions span[data-v-6a3af49b]{display:none}} diff --git a/codes/web/dist/assets/KnowledgeView-W6lPD5mD.js b/codes/web/dist/assets/KnowledgeView-W6lPD5mD.js new file mode 100644 index 0000000..faf7b88 --- /dev/null +++ b/codes/web/dist/assets/KnowledgeView-W6lPD5mD.js @@ -0,0 +1 @@ +import{A as e,Bt as t,D as n,F as r,I as i,O as a,P as o,Q as s,S as c,Tt as l,Y as u,_t as d,et as f,j as p,k as m,lt as h,n as g,r as _,t as v,tt as y,vt as b}from"./client-CO11mUW5.js";import{a as x}from"./config-provider-kwhtQ-D4.js";import{n as S,t as C}from"./DeleteOutlined-Dsl9pMnk.js";import{t as w}from"./PlusOutlined-5Urx-Evx.js";import{t as T}from"./BookOutlined-CNUY9qCc.js";var E={class:`page-shell`},D={class:`page-heading`},O={key:0,class:`knowledge-grid`},k={key:0,class:`risk-note`},A=_(i({__name:`KnowledgeView`,setup(i){let _=b(!1),A=b(!1),j=b([]),M=b([]),N=d({scenario_id:void 0,title:``,content:``,forbidden:``,risk_note:``}),P=n(()=>M.value.map(e=>({value:e.id,label:e.name})));async function F(){_.value=!0;try{let[e,t]=await Promise.all([v.get(`/knowledge-cards`),v.get(`/scenarios`)]);j.value=e.items,M.value=t.items}catch(e){x.error(g(e))}finally{_.value=!1}}async function I(){try{await v.post(`/knowledge-cards`,{scenario_id:N.scenario_id,title:N.title,content:{standard_copy:N.content,forbidden_copy:N.forbidden,risk_note:N.risk_note}}),x.success(`知识卡已发布`),A.value=!1,Object.assign(N,{scenario_id:void 0,title:``,content:``,forbidden:``,risk_note:``}),await F()}catch(e){x.error(g(e))}}function L(e){S.confirm({title:`归档“${e.title}”?`,okType:`danger`,async onOk(){await v.delete(`/knowledge-cards/${e.id}`),await F()}})}function R(e,t){return e.content?.[t]||``}return u(F),(n,i)=>{let u=y(`a-button`),d=y(`a-tag`),g=y(`a-empty`),v=y(`a-spin`),b=y(`a-select`),x=y(`a-form-item`),S=y(`a-input`),F=y(`a-textarea`),z=y(`a-form`),B=y(`a-drawer`);return s(),p(`div`,E,[a(`div`,D,[i[8]||=a(`div`,null,[a(`h1`,null,`知识卡`),a(`p`,null,`沉淀经过审核的标准表达、禁用语和风险提醒。`)],-1),r(u,{type:`primary`,onClick:i[0]||=e=>A.value=!0},{default:h(()=>[r(l(w)),i[7]||=o(`新建知识卡`,-1)]),_:1})]),r(v,{spinning:_.value},{default:h(()=>[j.value.length?(s(),p(`div`,O,[(s(!0),p(c,null,f(j.value,n=>(s(),p(`article`,{key:n.id,class:`knowledge-card surface`},[a(`header`,null,[a(`span`,null,[r(l(T))]),r(d,{color:`green`},{default:h(()=>[...i[9]||=[o(`已发布`,-1)]]),_:1})]),a(`h2`,null,t(n.title),1),a(`p`,null,t(R(n,`standard_copy`)||`暂无标准话术`),1),R(n,`risk_note`)?(s(),p(`div`,k,t(R(n,`risk_note`)),1)):e(``,!0),a(`footer`,null,[a(`span`,null,t(M.value.find(e=>e.id===n.scenario_id)?.name||`未分类场景`),1),r(u,{type:`text`,danger:``,"aria-label":`归档知识卡`,onClick:e=>L(n)},{default:h(()=>[r(l(C))]),_:1},8,[`onClick`])])]))),128))])):(s(),m(g,{key:1,description:`还没有知识卡`}))]),_:1},8,[`spinning`]),r(B,{open:A.value,"onUpdate:open":i[6]||=e=>A.value=e,title:`新建知识卡`,width:`520`},{default:h(()=>[r(z,{layout:`vertical`,model:N,onFinish:I},{default:h(()=>[r(x,{label:`所属场景`,name:`scenario_id`,rules:[{required:!0,message:`请选择场景`}]},{default:h(()=>[r(b,{value:N.scenario_id,"onUpdate:value":i[1]||=e=>N.scenario_id=e,options:P.value},null,8,[`value`,`options`])]),_:1}),r(x,{label:`标题`,name:`title`,rules:[{required:!0,message:`请输入标题`}]},{default:h(()=>[r(S,{value:N.title,"onUpdate:value":i[2]||=e=>N.title=e},null,8,[`value`])]),_:1}),r(x,{label:`标准话术`,name:`content`,rules:[{required:!0,message:`请输入标准话术`}]},{default:h(()=>[r(F,{value:N.content,"onUpdate:value":i[3]||=e=>N.content=e,rows:5},null,8,[`value`])]),_:1}),r(x,{label:`禁用表达`},{default:h(()=>[r(F,{value:N.forbidden,"onUpdate:value":i[4]||=e=>N.forbidden=e,rows:3},null,8,[`value`])]),_:1}),r(x,{label:`风险提醒`},{default:h(()=>[r(F,{value:N.risk_note,"onUpdate:value":i[5]||=e=>N.risk_note=e,rows:3},null,8,[`value`])]),_:1}),r(u,{type:`primary`,"html-type":`submit`,block:``},{default:h(()=>[...i[10]||=[o(`发布知识卡`,-1)]]),_:1})]),_:1},8,[`model`])]),_:1},8,[`open`])])}}}),[[`__scopeId`,`data-v-fc5e74e6`]]);export{A as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/KnowledgeView-zQYEMPl4.css b/codes/web/dist/assets/KnowledgeView-zQYEMPl4.css new file mode 100644 index 0000000..454b418 --- /dev/null +++ b/codes/web/dist/assets/KnowledgeView-zQYEMPl4.css @@ -0,0 +1 @@ +.knowledge-grid[data-v-fc5e74e6]{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.knowledge-card[data-v-fc5e74e6]{flex-direction:column;min-height:250px;padding:20px;display:flex}.knowledge-card header[data-v-fc5e74e6]{justify-content:space-between;display:flex}.knowledge-card header>span[data-v-fc5e74e6]{width:36px;height:36px;color:var(--green);background:#e8f3ef;border-radius:4px;place-items:center;display:grid}.knowledge-card h2[data-v-fc5e74e6]{margin:20px 0 10px;font-family:Noto Serif SC,serif;font-size:19px}.knowledge-card>p[data-v-fc5e74e6]{color:#4f5c56;margin:0;line-height:1.7}.risk-note[data-v-fc5e74e6]{color:#8b5b16;background:#fbf3e5;border-left:2px solid #c68a37;margin-top:14px;padding:9px 11px;font-size:12px}.knowledge-card footer[data-v-fc5e74e6]{color:var(--muted);justify-content:space-between;align-items:center;margin-top:auto;padding-top:18px;font-size:12px;display:flex}@media (width<=1050px){.knowledge-grid[data-v-fc5e74e6]{grid-template-columns:repeat(2,1fr)}}@media (width<=650px){.knowledge-grid[data-v-fc5e74e6]{grid-template-columns:1fr}} diff --git a/codes/web/dist/assets/LoginView-BEx5f_cA.css b/codes/web/dist/assets/LoginView-BEx5f_cA.css new file mode 100644 index 0000000..8ff353e --- /dev/null +++ b/codes/web/dist/assets/LoginView-BEx5f_cA.css @@ -0,0 +1 @@ +.login-page[data-v-265399d7]{background:#f8faf9;grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr);min-height:100vh;display:grid}.identity-panel[data-v-265399d7]{color:#fff;background:#202825;flex-direction:column;min-height:640px;padding:42px 54px;display:flex;position:relative;overflow:hidden}.identity-grid[data-v-265399d7]{opacity:.12;background-image:linear-gradient(#b7c4be 1px,#0000 1px),linear-gradient(90deg,#b7c4be 1px,#0000 1px);background-size:44px 44px;position:absolute;inset:0}.brand-lockup[data-v-265399d7]{align-items:center;gap:12px;font-family:Noto Serif SC,serif;font-size:18px;font-weight:700;display:flex;position:relative}.brand-symbol[data-v-265399d7]{border:1px solid #ffffff59;border-radius:5px;grid-template-columns:repeat(3,1fr);align-items:end;gap:3px;width:34px;height:34px;padding:6px;display:grid}.brand-symbol i[data-v-265399d7]{background:#6cc7a8;height:8px;display:block}.brand-symbol i[data-v-265399d7]:nth-child(2){height:15px}.brand-symbol i[data-v-265399d7]:nth-child(3){background:#ed8e6a;height:22px}.identity-copy[data-v-265399d7]{max-width:600px;margin:auto 0;position:relative}.eyebrow[data-v-265399d7]{font-size:12px;font-weight:700;color:#86d3b8!important}.identity-copy h1[data-v-265399d7]{letter-spacing:0;margin:20px 0 24px;font-family:Noto Serif SC,Songti SC,serif;font-size:clamp(38px,4.2vw,64px);line-height:1.2}.identity-copy p[data-v-265399d7]{color:#bdc8c3;max-width:510px;font-size:16px;line-height:1.8}.signal-line[data-v-265399d7]{color:#91a29b;align-items:center;gap:12px;font-size:12px;display:flex;position:relative}.signal-line b[data-v-265399d7]{background:#52615b;width:70px;height:1px}.login-panel[data-v-265399d7]{place-items:center;padding:40px;display:grid}.login-form-wrap[data-v-265399d7]{width:min(100%,390px)}.login-form-wrap h2[data-v-265399d7]{color:#202825;letter-spacing:0;margin:0;font-family:Noto Serif SC,serif;font-size:28px}.login-form-wrap>p[data-v-265399d7]{color:#728079;margin:8px 0 30px}.login-form-wrap[data-v-265399d7] .ant-form-item-label label{color:#46514c;font-weight:600}.login-form-wrap[data-v-265399d7] .ant-input-affix-wrapper{padding:10px 12px}.login-form-wrap[data-v-265399d7] .ant-btn-lg{height:44px;margin-top:8px}.login-note[data-v-265399d7]{color:#8a9691;align-items:center;gap:8px;margin-top:20px;font-size:12px;display:flex}.login-note span[data-v-265399d7]{background:#d5644a;border-radius:50%;width:7px;height:7px}.mobile-brand[data-v-265399d7]{display:none}@media (width<=860px){.login-page[data-v-265399d7]{grid-template-columns:1fr}.identity-panel[data-v-265399d7]{display:none}.login-panel[data-v-265399d7]{min-height:100vh;padding:28px}.mobile-brand[data-v-265399d7]{color:#16775b;margin-bottom:48px;font-family:Noto Serif SC,serif;font-weight:700;display:block}} diff --git a/codes/web/dist/assets/LoginView-CX7kNBHw.js b/codes/web/dist/assets/LoginView-CX7kNBHw.js new file mode 100644 index 0000000..5c16cb6 --- /dev/null +++ b/codes/web/dist/assets/LoginView-CX7kNBHw.js @@ -0,0 +1 @@ +import{F as e,I as t,N as n,O as r,P as i,Q as a,Tt as o,_t as s,a as c,j as l,lt as u,n as d,r as f,tt as p,vt as m}from"./client-CO11mUW5.js";import{a as h}from"./config-provider-kwhtQ-D4.js";import{t as g}from"./auth-D7KJ41TQ.js";import{h as _}from"./useApi-CROJJdhE-BlzMTLF9.js";var v={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z`}}]},name:`lock`,theme:`outlined`};function y(e){for(var t=1;t{let c=p(`a-input`),d=p(`a-form-item`),f=p(`a-input-password`),m=p(`a-button`),h=p(`a-form`);return a(),l(`main`,E,[s[7]||=n(`
销冠 SOP

SALES PRACTICE SYSTEM

把经验,变成
每天可执行的步骤。

场景配置、话术编排、版本发布与一线执行,在同一个工作台完成。

01结构化经验
`,1),r(`section`,D,[r(`div`,O,[s[3]||=r(`div`,{class:`mobile-brand`},`销冠 SOP`,-1),s[4]||=r(`h2`,null,`登录工作台`,-1),s[5]||=r(`p`,null,`使用企业账号进入经验执行系统`,-1),e(h,{layout:`vertical`,model:y,onFinish:b},{default:u(()=>[e(d,{label:`用户名`,name:`username`,rules:[{required:!0,message:`请输入用户名`}]},{default:u(()=>[e(c,{value:y.username,"onUpdate:value":s[0]||=e=>y.username=e,size:`large`,autocomplete:`username`},{prefix:u(()=>[e(o(T))]),_:1},8,[`value`])]),_:1}),e(d,{label:`密码`,name:`password`,rules:[{required:!0,message:`请输入密码`}]},{default:u(()=>[e(f,{value:y.password,"onUpdate:value":s[1]||=e=>y.password=e,size:`large`,autocomplete:`current-password`},{prefix:u(()=>[e(o(x))]),_:1},8,[`value`])]),_:1}),e(m,{type:`primary`,"html-type":`submit`,size:`large`,block:``,loading:v.value},{default:u(()=>[...s[2]||=[i(`进入平台`,-1)]]),_:1},8,[`loading`])]),_:1},8,[`model`]),s[6]||=r(`div`,{class:`login-note`},[r(`span`),i(`本地开发账号已预填`)],-1)])])])}}}),[[`__scopeId`,`data-v-265399d7`]]);export{k as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/PlayCircleOutlined-C2UGH7h6.js b/codes/web/dist/assets/PlayCircleOutlined-C2UGH7h6.js new file mode 100644 index 0000000..0896f79 --- /dev/null +++ b/codes/web/dist/assets/PlayCircleOutlined-C2UGH7h6.js @@ -0,0 +1 @@ +import{F as e,a as t}from"./client-CO11mUW5.js";var n={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z`}}]},name:`play-circle`,theme:`outlined`};function r(e){for(var t=1;t{let f=h(`a-tag`),m=h(`a-table`);return o(),l(`div`,v,[c[1]||=i(`div`,{class:`page-heading`},[i(`div`,null,[i(`h1`,null,`执行记录`),i(`p`,null,`查看 SOP 的实际使用情况和执行结果。`)])],-1),i(`section`,y,[n(m,{"row-key":`id`,loading:p.value,"data-source":x.value,pagination:{pageSize:20},columns:[{title:`执行编号`,dataIndex:`id`,width:130},{title:`SOP`,dataIndex:`sop_name`},{title:`状态`,dataIndex:`status`,width:110},{title:`结果`,dataIndex:`result`,width:120},{title:`开始时间`,dataIndex:`started_at`,width:190},{title:`完成时间`,dataIndex:`completed_at`,width:190}],scroll:{x:900}},{bodyCell:d(({column:n,record:r})=>[n.dataIndex===`id`?(o(),l(`code`,b,`RUN-`+t(String(r.id).padStart(5,`0`)),1)):n.dataIndex===`status`?(o(),u(f,{key:1,color:r.status===`completed`?`green`:`orange`},{default:d(()=>[a(t(C(r.status)),1)]),_:2},1032,[`color`])):n.dataIndex===`result`?(o(),l(s,{key:2},[a(t(r.result||`-`),1)],64)):n.dataIndex===`started_at`||n.dataIndex===`completed_at`?(o(),l(s,{key:3},[a(t(r[n.dataIndex]?new Date(r[n.dataIndex]).toLocaleString(`zh-CN`):`-`),1)],64)):e(``,!0)]),emptyText:d(()=>[...c[0]||=[i(`div`,{class:`empty-copy`},`还没有执行记录。发布 SOP 后即可开始执行。`,-1)]]),_:1},8,[`loading`,`data-source`])])])}}}),[[`__scopeId`,`data-v-4d911d56`]]);export{x as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/SOPEditorView-CmiIrIPT.js b/codes/web/dist/assets/SOPEditorView-CmiIrIPT.js new file mode 100644 index 0000000..614011c --- /dev/null +++ b/codes/web/dist/assets/SOPEditorView-CmiIrIPT.js @@ -0,0 +1,3 @@ +import{A as e,Bt as t,D as n,F as r,I as i,O as a,P as o,Q as s,S as c,Tt as l,Y as u,_t as d,a as f,et as p,j as m,k as h,lt as g,n as _,r as v,t as y,tt as b,vt as x,zt as ee}from"./client-CO11mUW5.js";import{a as S,on as C}from"./config-provider-kwhtQ-D4.js";import{n as w,t as T}from"./DeleteOutlined-Dsl9pMnk.js";import{t as E}from"./PlusOutlined-5Urx-Evx.js";import{t as te}from"./ArrowLeftOutlined-m6YdiMlD.js";import{h as D,m as O}from"./useApi-CROJJdhE-BlzMTLF9.js";var k={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z`}}]},name:`arrow-down`,theme:`outlined`};function A(e){for(var t=1;tF.value.find(e=>e.node_key===R.value)),V=n(()=>P.value?.status===`draft`),H=n(()=>P.value?.status===`reviewing`),U=[{value:`message`,label:`标准话术`},{value:`question`,label:`单项提问`},{value:`choice`,label:`选择判断`},{value:`condition`,label:`条件节点`},{value:`knowledge`,label:`知识卡`},{value:`escalate`,label:`转人工/转诊`},{value:`finish`,label:`结束`}],J=d({target_node_key:``,field:``,operator:`equals`,value:``});async function Y(){A.value=!0;try{let e=await y.get(`/sops/${k}`);N.value=e.sop,P.value=e.version,F.value=e.nodes.map(e=>({...e,config:e.config||{}})),L.value=e.edges.map(e=>({...e,condition:e.condition||{}})),R.value||=F.value[0]?.node_key||``}catch(e){S.error(_(e))}finally{A.value=!1}}function be(){let e=`node_${Date.now()}`;F.value.push({id:0,created_at:``,updated_at:``,node_key:e,type:`message`,title:`新步骤`,content:``,config:{},position_x:0,position_y:F.value.length*120}),R.value=e}function xe(e){if([`start`].includes(e.type))return S.warning(`开始节点不能删除`);w.confirm({title:`删除“${e.title}”?`,content:`与该节点关联的转移条件也会删除。`,okType:`danger`,onOk(){F.value=F.value.filter(t=>t.node_key!==e.node_key),L.value=L.value.filter(t=>t.source_node_key!==e.node_key&&t.target_node_key!==e.node_key),R.value=F.value[0]?.node_key||``}})}function X(e,t){let n=e+t;if(n<0||n>=F.value.length)return;let r=[...F.value];[r[e],r[n]]=[r[n],r[e]],r.forEach((e,t)=>e.position_y=t*120),F.value=r}function Z(e){return L.value.filter(t=>t.source_node_key===e)}function Se(){if(!z.value||!J.target_node_key)return;let e=J.field?{field:J.field,operator:J.operator,value:we(J.value)}:{};L.value.push({id:0,created_at:``,updated_at:``,source_node_key:z.value.node_key,target_node_key:J.target_node_key,condition:e,priority:Z(z.value.node_key).length}),Object.assign(J,{target_node_key:``,field:``,operator:`equals`,value:``})}function Ce(e){L.value=L.value.filter(t=>t!==e)}function we(e){return e===`true`?!0:e===`false`?!1:e!==``&&!Number.isNaN(Number(e))?Number(e):e}function Te(e){return!e||!e.field?`默认路径`:`${e.field} ${{equals:`等于`,not_equals:`不等于`,contains:`包含`,greater_than:`大于`,less_than:`小于`,exists:`已填写`,not_exists:`未填写`}[e.operator]||e.operator} ${e.value??``}`}async function Q(){j.value=!0;try{await y.put(`/sops/${k}/draft`,{start_node_key:P.value?.start_node_key||`start`,nodes:F.value.map(({node_key:e,type:t,title:n,content:r,config:i,position_x:a,position_y:o})=>({node_key:e,type:t,title:n,content:r,config:i,position_x:a,position_y:o})),edges:L.value.map(({source_node_key:e,target_node_key:t,condition:n,priority:r})=>({source_node_key:e,target_node_key:t,condition:n,priority:r}))}),S.success(`草稿已保存`),await Y()}catch(e){S.error(_(e))}finally{j.value=!1}}async function Ee(){try{let e=await y.post(`/sops/${k}/validate`);e.valid?S.success(`流程校验通过`):w.warning({title:`流程还不能发布`,content:e.problems.join(`;`)})}catch(e){S.error(_(e))}}async function De(){try{await Q(),await y.post(`/sops/${k}/submit-review`),S.success(`SOP 已提交审核`),await Y()}catch(e){S.error(_(e))}}async function Oe(){try{V.value&&await Q(),await y.post(`/sops/${k}/publish`),S.success(`SOP 已发布`),await Y()}catch(e){S.error(_(e))}}async function ke(){try{await y.post(`/sops/${k}/offline`),S.success(`SOP 已下线`),await Y()}catch(e){S.error(_(e))}}async function $(){try{await y.post(`/sops/${k}/versions`),S.success(`已创建新草稿版本`),await Y()}catch(e){S.error(_(e))}}return u(Y),(n,i)=>{let u=b(`a-button`),d=b(`a-input`),f=b(`a-form-item`),_=b(`a-select`),y=b(`a-textarea`),x=b(`a-switch`),S=b(`a-form`),w=b(`a-tag`),D=b(`a-empty`),O=b(`a-spin`);return s(),m(`div`,ne,[a(`header`,re,[a(`div`,ie,[r(u,{type:`text`,"aria-label":`返回场景`,onClick:i[0]||=e=>l(v).push(`/scenarios/${N.value?.scenario_id}`)},{default:g(()=>[r(l(te))]),_:1}),a(`div`,null,[a(`b`,null,t(N.value?.name||`SOP 编辑器`),1),a(`span`,null,`版本 `+t(P.value?.version)+` · `+t(V.value?`草稿`:H.value?`审核中`:P.value?.status===`offline`?`已下线`:`已发布`),1)])]),a(`div`,ae,[r(u,{onClick:Ee},{default:g(()=>[...i[12]||=[o(`校验流程`,-1)]]),_:1}),V.value?(s(),h(u,{key:0,loading:j.value,onClick:Q},{default:g(()=>[r(l(B)),i[13]||=o(`保存`,-1)]),_:1},8,[`loading`])):e(``,!0),V.value?(s(),h(u,{key:1,onClick:De},{default:g(()=>[r(l(W)),i[14]||=o(`提交审核`,-1)]),_:1})):e(``,!0),V.value||H.value?(s(),h(u,{key:2,type:`primary`,onClick:Oe},{default:g(()=>[r(l(W)),i[15]||=o(`发布`,-1)]),_:1})):e(``,!0),P.value?.status===`published`?(s(),h(u,{key:3,danger:``,onClick:ke},{default:g(()=>[...i[16]||=[o(`下线`,-1)]]),_:1})):e(``,!0),!V.value&&P.value?.status!==`reviewing`&&P.value?.status!==`published`?(s(),h(u,{key:4,type:`primary`,onClick:$},{default:g(()=>[r(l(E)),i[17]||=o(`创建新版本`,-1)]),_:1})):e(``,!0),P.value?.status===`published`?(s(),h(u,{key:5,type:`primary`,onClick:$},{default:g(()=>[r(l(E)),i[18]||=o(`创建新版本`,-1)]),_:1})):e(``,!0)])]),r(O,{spinning:A.value},{default:g(()=>[a(`main`,oe,[a(`aside`,G,[a(`div`,K,[i[19]||=a(`span`,null,`流程节点`,-1),V.value?(s(),h(u,{key:0,type:`text`,"aria-label":`添加节点`,onClick:be},{default:g(()=>[r(l(E))]),_:1})):e(``,!0)]),a(`div`,se,[(s(!0),m(c,null,p(F.value,(n,i)=>(s(),m(`button`,{key:n.node_key,class:ee({active:R.value===n.node_key}),onClick:e=>R.value=n.node_key},[a(`span`,le,t(String(i+1).padStart(2,`0`)),1),a(`span`,ue,[a(`b`,null,t(n.title),1),a(`small`,null,t(U.find(e=>e.value===n.type)?.label||n.type),1)]),V.value&&n.type!==`start`?(s(),m(`span`,de,[r(l(I),{onClick:C(e=>X(i,-1),[`stop`])},null,8,[`onClick`]),r(l(M),{onClick:C(e=>X(i,1),[`stop`])},null,8,[`onClick`])])):e(``,!0)],10,ce))),128))])]),z.value?(s(),m(`section`,fe,[a(`div`,pe,[a(`div`,null,[a(`span`,me,t(z.value.type.toUpperCase()),1),a(`h2`,null,t(z.value.title),1)]),V.value&&z.value.type!==`start`?(s(),h(u,{key:0,danger:``,type:`text`,onClick:i[1]||=e=>xe(z.value)},{default:g(()=>[r(l(T)),i[20]||=o(`删除`,-1)]),_:1})):e(``,!0)]),r(S,{layout:`vertical`,class:`property-form`},{default:g(()=>[a(`div`,he,[r(f,{label:`节点名称`},{default:g(()=>[r(d,{value:z.value.title,"onUpdate:value":i[2]||=e=>z.value.title=e,disabled:!V.value},null,8,[`value`,`disabled`])]),_:1}),r(f,{label:`节点类型`},{default:g(()=>[r(_,{value:z.value.type,"onUpdate:value":i[3]||=e=>z.value.type=e,disabled:!V.value||z.value.type===`start`,options:U},null,8,[`value`,`disabled`])]),_:1})]),r(f,{label:`标准话术 / 操作提示`},{default:g(()=>[r(y,{value:z.value.content,"onUpdate:value":i[4]||=e=>z.value.content=e,disabled:!V.value,rows:5,placeholder:`执行到此节点时展示给一线人员的内容`},null,8,[`value`,`disabled`])]),_:1}),[`question`,`choice`].includes(z.value.type)?(s(),m(`div`,ge,[r(f,{label:`写入字段标识`},{default:g(()=>[r(d,{value:z.value.config.field_key,"onUpdate:value":i[5]||=e=>z.value.config.field_key=e,disabled:!V.value,placeholder:`例如 pet_weight`},null,8,[`value`,`disabled`])]),_:1}),r(f,{label:`是否必填`},{default:g(()=>[r(x,{checked:z.value.config.required,"onUpdate:checked":i[6]||=e=>z.value.config.required=e,disabled:!V.value},null,8,[`checked`,`disabled`])]),_:1})])):e(``,!0),z.value.type===`choice`?(s(),h(f,{key:1,label:`可选项(每行一个)`},{default:g(()=>[r(y,{value:(z.value.config.options||[]).join(` +`),disabled:!V.value,rows:4,onChange:i[7]||=e=>z.value.config.options=e.target.value.split(` +`).filter(Boolean)},null,8,[`value`,`disabled`])]),_:1})):e(``,!0)]),_:1}),i[23]||=a(`div`,{class:`transition-head`},[a(`div`,null,[a(`b`,null,`下一步路径`),a(`span`,null,`按优先级匹配,默认路径建议放最后`)])],-1),a(`div`,_e,[(s(!0),m(c,null,p(Z(R.value),n=>(s(),m(`div`,{key:`${n.source_node_key}-${n.target_node_key}-${n.priority}`,class:`transition-row`},[i[21]||=a(`span`,{class:`route-line`},null,-1),a(`span`,ve,t(F.value.find(e=>e.node_key===n.target_node_key)?.title||n.target_node_key),1),r(w,null,{default:g(()=>[o(t(Te(n.condition)),1)]),_:2},1024),V.value?(s(),h(u,{key:0,type:`text`,danger:``,"aria-label":`删除路径`,onClick:e=>Ce(n)},{default:g(()=>[r(l(T))]),_:1},8,[`onClick`])):e(``,!0)]))),128)),Z(R.value).length?e(``,!0):(s(),m(`div`,ye,`还没有下一步路径`))]),V.value&&![`finish`,`escalate`].includes(z.value.type)?(s(),m(`div`,q,[r(_,{value:J.target_node_key,"onUpdate:value":i[8]||=e=>J.target_node_key=e,placeholder:`目标节点`,options:F.value.filter(e=>e.node_key!==R.value).map(e=>({value:e.node_key,label:e.title}))},null,8,[`value`,`options`]),r(d,{value:J.field,"onUpdate:value":i[9]||=e=>J.field=e,placeholder:`条件字段(留空为默认)`},null,8,[`value`]),r(_,{value:J.operator,"onUpdate:value":i[10]||=e=>J.operator=e,options:[{value:`equals`,label:`等于`},{value:`not_equals`,label:`不等于`},{value:`contains`,label:`包含`},{value:`greater_than`,label:`大于`},{value:`less_than`,label:`小于`},{value:`exists`,label:`已填写`}]},null,8,[`value`]),r(d,{value:J.value,"onUpdate:value":i[11]||=e=>J.value=e,placeholder:`条件值`},null,8,[`value`]),r(u,{onClick:Se},{default:g(()=>[r(l(E)),i[22]||=o(`添加路径`,-1)]),_:1})])):e(``,!0)])):(s(),h(D,{key:1,description:`请选择一个节点`,class:`surface editor-empty`}))])]),_:1},8,[`spinning`])])}}}),[[`__scopeId`,`data-v-06435891`]]);export{J as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/SOPEditorView-DdGSx6p0.css b/codes/web/dist/assets/SOPEditorView-DdGSx6p0.css new file mode 100644 index 0000000..2f17771 --- /dev/null +++ b/codes/web/dist/assets/SOPEditorView-DdGSx6p0.css @@ -0,0 +1 @@ +.editor-page[data-v-06435891]{background:#eef1ef;min-height:calc(100vh - 62px)}.editor-header[data-v-06435891]{border-bottom:1px solid var(--line);z-index:10;background:#fff;justify-content:space-between;align-items:center;gap:16px;min-height:66px;padding:10px 24px;display:flex;position:sticky;top:62px}.editor-title[data-v-06435891]{align-items:center;gap:8px;display:flex}.editor-title>div[data-v-06435891]{flex-direction:column;display:flex}.editor-title b[data-v-06435891]{font-size:15px}.editor-title span[data-v-06435891]{color:var(--muted);margin-top:3px;font-size:11px}.editor-workbench[data-v-06435891]{grid-template-columns:280px minmax(0,1fr);gap:16px;max-width:1500px;margin:0 auto;padding:18px;display:grid}.node-rail[data-v-06435891]{align-self:start;position:sticky;top:146px;overflow:hidden}.rail-title[data-v-06435891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;height:50px;padding:0 14px;font-weight:650;display:flex}.node-list[data-v-06435891]{padding:8px}.node-list button[data-v-06435891]{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;width:100%;min-height:58px;padding:7px 8px;display:grid}.node-list button[data-v-06435891]:hover{background:#f5f8f6}.node-list button.active[data-v-06435891]{background:#edf6f2;border-color:#b9d8cc}.node-index[data-v-06435891]{color:#88958f;font-family:monospace;font-size:11px}.node-meta[data-v-06435891]{flex-direction:column;min-width:0;display:flex}.node-meta b[data-v-06435891]{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.node-meta small[data-v-06435891]{color:var(--muted);margin-top:3px;font-size:11px}.node-move[data-v-06435891]{color:#87938e;gap:4px;display:flex}.node-move[data-v-06435891]>:hover{color:var(--green)}.node-editor[data-v-06435891]{align-self:start;min-height:600px;padding:24px}.node-editor-head[data-v-06435891]{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding-bottom:18px;display:flex}.node-editor-head h2[data-v-06435891]{margin:6px 0 0;font-family:Noto Serif SC,serif;font-size:22px}.node-type-mark[data-v-06435891]{color:var(--green);font-size:10px;font-weight:750}.property-form[data-v-06435891]{padding-top:22px}.property-grid[data-v-06435891]{grid-template-columns:1fr 1fr;gap:16px;display:grid}.transition-head[data-v-06435891]{border-top:1px solid var(--line);justify-content:space-between;margin:8px -24px 0;padding:18px 24px 10px;display:flex}.transition-head>div[data-v-06435891]{flex-direction:column;display:flex}.transition-head span[data-v-06435891]{color:var(--muted);margin-top:4px;font-size:11px}.transition-row[data-v-06435891]{border-bottom:1px solid #edf0ee;grid-template-columns:20px minmax(120px,1fr) auto 36px;align-items:center;gap:10px;min-height:48px;display:grid}.route-line[data-v-06435891]{background:var(--green);width:16px;height:1px}.route-target[data-v-06435891]{font-weight:600}.route-empty[data-v-06435891]{color:var(--muted);padding:20px 0;font-size:12px}.edge-builder[data-v-06435891]{grid-template-columns:1.1fr 1fr 120px 1fr auto;gap:8px;padding-top:16px;display:grid}.editor-empty[data-v-06435891]{place-items:center;min-height:400px;display:grid}@media (width<=1050px){.edge-builder[data-v-06435891]{grid-template-columns:1fr 1fr}.editor-workbench[data-v-06435891]{grid-template-columns:230px minmax(0,1fr)}}@media (width<=760px){.editor-header[data-v-06435891]{flex-direction:column;align-items:flex-start;padding:12px;top:62px}.editor-workbench[data-v-06435891]{grid-template-columns:1fr;padding:10px}.node-rail[data-v-06435891]{position:static}.property-grid[data-v-06435891],.edge-builder[data-v-06435891]{grid-template-columns:1fr}.node-editor[data-v-06435891]{padding:16px}.transition-head[data-v-06435891]{margin:8px -16px 0;padding:16px}} diff --git a/codes/web/dist/assets/ScenarioDetailView-B-4AAfC9.js b/codes/web/dist/assets/ScenarioDetailView-B-4AAfC9.js new file mode 100644 index 0000000..b3046ee --- /dev/null +++ b/codes/web/dist/assets/ScenarioDetailView-B-4AAfC9.js @@ -0,0 +1,2 @@ +import{A as e,Bt as t,D as n,F as r,I as i,O as a,P as o,Q as s,S as c,Tt as l,Y as u,_t as d,a as f,et as p,j as m,k as h,lt as g,n as _,r as v,t as y,tt as b,vt as x}from"./client-CO11mUW5.js";import{a as S}from"./config-provider-kwhtQ-D4.js";import{n as C,t as ee}from"./DeleteOutlined-Dsl9pMnk.js";import{t as w}from"./PlusOutlined-5Urx-Evx.js";import{t as T}from"./ArrowLeftOutlined-m6YdiMlD.js";import{h as E,m as D}from"./useApi-CROJJdhE-BlzMTLF9.js";var O={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z`}}]},name:`branches`,theme:`outlined`};function k(e){for(var t=1;tA.value?.status===`active`?`green`:`default`);async function Q(){k.value=!0;try{let e=await y.get(`/scenarios/${O}`);A.value=e.scenario,K.value=e.fields,q.value=e.sops}catch(e){S.error(_(e))}finally{k.value=!1}}async function ie(){try{let e=X.options_text.split(` +`).map(e=>e.trim()).filter(Boolean);await y.post(`/scenarios/${O}/fields`,{...X,options:e,validation:{},sort_order:K.value.length}),S.success(`字段已添加`),J.value=!1,Object.assign(X,{field_key:``,field_name:``,field_type:`text`,required:!1,options_text:``,sort_order:0}),await Q()}catch(e){S.error(_(e))}}async function ae(e){C.confirm({title:`删除字段“${e.field_name}”?`,content:`已经使用该字段的 SOP 节点可能需要重新配置。`,okType:`danger`,async onOk(){await y.delete(`/scenario-fields/${e.id}`),await Q()}})}async function oe(){try{let e=await y.post(`/scenarios/${O}/sops`,Z);S.success(`SOP 草稿已创建`),Y.value=!1,v.push(`/sops/${e.sop.id}`)}catch(e){S.error(_(e))}}function se(e){return{draft:`草稿`,published:`已发布`}[e]||e}return u(Q),(n,i)=>{let u=b(`a-button`),d=b(`a-tag`),f=b(`a-table`),_=b(`a-tab-pane`),y=b(`a-tabs`),x=b(`a-skeleton`),S=b(`a-input`),C=b(`a-form-item`),E=b(`a-select`),D=b(`a-textarea`),O=b(`a-checkbox`),Q=b(`a-form`),$=b(`a-modal`);return s(),m(`div`,M,[r(u,{type:`link`,class:`back-link`,onClick:i[0]||=e=>l(v).push(`/scenarios`)},{default:g(()=>[r(l(T)),i[12]||=o(`返回场景列表`,-1)]),_:1}),r(x,{loading:k.value,active:``},{default:g(()=>[A.value?(s(),m(`div`,N,[a(`div`,null,[a(`div`,P,[r(d,{color:re.value},{default:g(()=>[o(t(A.value.status===`active`?`使用中`:`草稿`),1)]),_:1},8,[`color`]),a(`span`,null,t(A.value.industry),1),a(`span`,null,t(A.value.role_name),1)]),a(`h1`,null,t(A.value.name),1),a(`p`,null,t(A.value.goal),1)]),a(`div`,te,`SCN-`+t(String(A.value.id).padStart(4,`0`)),1)])):e(``,!0),r(y,{"default-active-key":`fields`,class:`detail-tabs`},{default:g(()=>[r(_,{key:`fields`,tab:`场景字段`},{default:g(()=>[a(`section`,ne,[a(`div`,F,[i[14]||=a(`div`,null,[a(`b`,null,`采集字段`),a(`span`,{class:`toolbar-note`},`执行过程中收集的信息`)],-1),r(u,{type:`primary`,onClick:i[1]||=e=>J.value=!0},{default:g(()=>[r(l(w)),i[13]||=o(`添加字段`,-1)]),_:1})]),r(f,{"data-source":K.value,"row-key":`id`,pagination:!1,columns:[{title:`字段名称`,dataIndex:`field_name`},{title:`字段标识`,dataIndex:`field_key`},{title:`类型`,dataIndex:`field_type`,width:130},{title:`必填`,dataIndex:`required`,width:90},{title:``,key:`action`,width:70}]},{bodyCell:g(({column:n,record:i})=>[n.dataIndex===`field_key`?(s(),m(`code`,I,t(i.field_key),1)):n.dataIndex===`required`?(s(),h(d,{key:1,color:i.required?`orange`:`default`},{default:g(()=>[o(t(i.required?`必填`:`选填`),1)]),_:2},1032,[`color`])):n.key===`action`?(s(),h(u,{key:2,type:`text`,danger:``,"aria-label":`删除字段`,onClick:e=>ae(i)},{default:g(()=>[r(l(ee))]),_:1},8,[`onClick`])):e(``,!0)]),emptyText:g(()=>[...i[15]||=[a(`div`,{class:`empty-copy`},`还没有字段。先添加执行过程中需要收集的客户信息。`,-1)]]),_:1},8,[`data-source`])])]),_:1}),r(_,{key:`sops`,tab:`SOP 流程`},{default:g(()=>[a(`section`,L,[a(`div`,R,[i[17]||=a(`div`,null,[a(`b`,null,`话术流程`),a(`span`,{class:`toolbar-note`},`一个场景可以包含多套 SOP`)],-1),r(u,{type:`primary`,onClick:i[2]||=e=>Y.value=!0},{default:g(()=>[r(l(w)),i[16]||=o(`创建 SOP`,-1)]),_:1})]),q.value.length?(s(),m(`div`,z,[(s(!0),m(c,null,p(q.value,e=>(s(),m(`button`,{key:e.id,onClick:t=>l(v).push(`/sops/${e.id}`)},[a(`span`,V,[r(l(j))]),a(`span`,H,[a(`b`,null,t(e.name),1),a(`small`,null,t(e.description||`暂无说明`),1)]),r(d,{color:e.status===`published`?`green`:`default`},{default:g(()=>[o(t(se(e.status)),1)]),_:2},1032,[`color`]),a(`span`,U,t(new Date(e.updated_at).toLocaleDateString(`zh-CN`)),1)],8,B))),128))])):(s(),m(`div`,W,[r(l(j)),i[18]||=a(`p`,null,`还没有 SOP。创建一套流程,将经验变成连续动作。`,-1)]))])]),_:1})]),_:1})]),_:1},8,[`loading`]),r($,{open:J.value,"onUpdate:open":i[8]||=e=>J.value=e,title:`添加场景字段`,"ok-text":`添加字段`,onOk:ie},{default:g(()=>[r(Q,{layout:`vertical`,model:X},{default:g(()=>[a(`div`,G,[r(C,{label:`字段名称`},{default:g(()=>[r(S,{value:X.field_name,"onUpdate:value":i[3]||=e=>X.field_name=e,placeholder:`宠物体重`},null,8,[`value`])]),_:1}),r(C,{label:`字段标识`},{default:g(()=>[r(S,{value:X.field_key,"onUpdate:value":i[4]||=e=>X.field_key=e,placeholder:`pet_weight`},null,8,[`value`])]),_:1})]),r(C,{label:`字段类型`},{default:g(()=>[r(E,{value:X.field_type,"onUpdate:value":i[5]||=e=>X.field_type=e,options:[{value:`text`,label:`单行文本`},{value:`textarea`,label:`多行文本`},{value:`number`,label:`数字`},{value:`boolean`,label:`是/否`},{value:`select`,label:`单选`},{value:`multiselect`,label:`多选`},{value:`date`,label:`日期`}]},null,8,[`value`])]),_:1}),[`select`,`multiselect`].includes(X.field_type)?(s(),h(C,{key:0,label:`选项(每行一个)`},{default:g(()=>[r(D,{value:X.options_text,"onUpdate:value":i[6]||=e=>X.options_text=e,rows:4},null,8,[`value`])]),_:1})):e(``,!0),r(O,{checked:X.required,"onUpdate:checked":i[7]||=e=>X.required=e},{default:g(()=>[...i[19]||=[o(`执行时必须填写`,-1)]]),_:1},8,[`checked`])]),_:1},8,[`model`])]),_:1},8,[`open`]),r($,{open:Y.value,"onUpdate:open":i[11]||=e=>Y.value=e,title:`创建 SOP 草稿`,"ok-text":`创建并编排`,onOk:oe},{default:g(()=>[r(Q,{layout:`vertical`,model:Z},{default:g(()=>[r(C,{label:`SOP 名称`},{default:g(()=>[r(S,{value:Z.name,"onUpdate:value":i[9]||=e=>Z.name=e,placeholder:`问诊问药标准流程`},null,8,[`value`])]),_:1}),r(C,{label:`说明`},{default:g(()=>[r(D,{value:Z.description,"onUpdate:value":i[10]||=e=>Z.description=e,rows:4,placeholder:`这套流程适用于什么情况`},null,8,[`value`])]),_:1})]),_:1},8,[`model`])]),_:1},8,[`open`])])}}}),[[`__scopeId`,`data-v-a1877f4c`]]);export{K as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/ScenarioDetailView-DWNPSm13.css b/codes/web/dist/assets/ScenarioDetailView-DWNPSm13.css new file mode 100644 index 0000000..7184f41 --- /dev/null +++ b/codes/web/dist/assets/ScenarioDetailView-DWNPSm13.css @@ -0,0 +1 @@ +.back-link[data-v-a1877f4c]{color:var(--muted);margin:-4px 0 12px -14px}.detail-heading[data-v-a1877f4c]{color:#fff;background:#202825;border-radius:6px;justify-content:space-between;align-items:flex-end;gap:24px;min-height:150px;padding:28px;display:flex}.detail-heading h1[data-v-a1877f4c]{letter-spacing:0;margin:10px 0 8px;font-family:Noto Serif SC,serif;font-size:28px}.detail-heading p[data-v-a1877f4c]{color:#b8c4bf;max-width:720px;margin:0}.heading-tags[data-v-a1877f4c]{color:#a8b6b0;align-items:center;gap:10px;font-size:12px;display:flex}.scenario-code[data-v-a1877f4c]{color:#70817a;align-self:flex-start;font-size:12px}.detail-tabs[data-v-a1877f4c]{margin-top:18px}.toolbar>div[data-v-a1877f4c]{align-items:baseline;gap:12px;display:flex}.toolbar-note[data-v-a1877f4c]{color:var(--muted);font-size:12px}.field-grid[data-v-a1877f4c]{grid-template-columns:1fr 1fr;gap:14px;display:grid}code[data-v-a1877f4c]{color:#17654f;background:#eef5f2;border-radius:3px;padding:2px 5px}.sop-list button[data-v-a1877f4c]{text-align:left;border:0;border-bottom:1px solid var(--line);cursor:pointer;background:#fff;grid-template-columns:42px 1fr auto 100px;align-items:center;gap:14px;width:100%;min-height:74px;padding:12px 18px;display:grid}.sop-list button[data-v-a1877f4c]:hover{background:#f8faf9}.sop-icon[data-v-a1877f4c]{width:38px;height:38px;color:var(--green);background:#e8f3ef;border-radius:4px;place-items:center;display:grid}.sop-copy[data-v-a1877f4c]{flex-direction:column;min-width:0;display:flex}.sop-copy small[data-v-a1877f4c]{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;overflow:hidden}.sop-date[data-v-a1877f4c]{color:var(--muted);text-align:right;font-size:12px}.empty-state[data-v-a1877f4c]{color:#82908a;text-align:center;padding:64px 20px}.empty-state>span[data-v-a1877f4c]{font-size:32px}.empty-state p[data-v-a1877f4c]{margin:12px 0 0}@media (width<=650px){.detail-heading[data-v-a1877f4c]{flex-direction:column;align-items:flex-start}.scenario-code[data-v-a1877f4c]{display:none}.field-grid[data-v-a1877f4c]{grid-template-columns:1fr;gap:0}.sop-list button[data-v-a1877f4c]{grid-template-columns:36px 1fr auto}.sop-date[data-v-a1877f4c]{display:none}} diff --git a/codes/web/dist/assets/ScenariosView-CwB6WxAz.css b/codes/web/dist/assets/ScenariosView-CwB6WxAz.css new file mode 100644 index 0000000..d0f6fc4 --- /dev/null +++ b/codes/web/dist/assets/ScenariosView-CwB6WxAz.css @@ -0,0 +1 @@ +.scenario-name[data-v-3965a2e5]{cursor:pointer;flex-direction:column;max-width:460px;display:flex}.scenario-name b[data-v-3965a2e5]{font-size:14px}.scenario-name small[data-v-3965a2e5]{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;overflow:hidden}.form-grid[data-v-3965a2e5]{grid-template-columns:1fr 1fr;gap:14px;display:grid}[data-v-3965a2e5] .ant-table-row{cursor:pointer}@media (width<=600px){.form-grid[data-v-3965a2e5]{grid-template-columns:1fr;gap:0}} diff --git a/codes/web/dist/assets/ScenariosView-DZfzIhhk.js b/codes/web/dist/assets/ScenariosView-DZfzIhhk.js new file mode 100644 index 0000000..4806a14 --- /dev/null +++ b/codes/web/dist/assets/ScenariosView-DZfzIhhk.js @@ -0,0 +1 @@ +import{A as e,Bt as t,F as n,I as r,O as i,P as a,Q as o,S as s,Tt as c,Y as l,_t as u,j as d,k as f,lt as p,n as m,r as h,t as g,tt as _,vt as v}from"./client-CO11mUW5.js";import{a as y}from"./config-provider-kwhtQ-D4.js";import{t as b}from"./SearchOutlined-DRcWUFRC.js";import{t as x}from"./PlusOutlined-5Urx-Evx.js";import{h as S}from"./useApi-CROJJdhE-BlzMTLF9.js";var C={class:`page-shell`},w={class:`page-heading`},T={class:`surface`},E={class:`toolbar`},D={class:`muted`},O={key:0,class:`scenario-name`},k={class:`form-grid`},A=h(r({__name:`ScenariosView`,setup(r){let h=S(),A=v(!1),j=v(!1),M=v(``),N=v([]),P=u({name:``,industry:``,role_name:``,goal:``,trigger_text:``,visibility:`tenant`}),F=[{title:`场景名称`,dataIndex:`name`,key:`name`},{title:`行业`,dataIndex:`industry`,key:`industry`,width:140},{title:`适用角色`,dataIndex:`role_name`,key:`role_name`,width:160},{title:`状态`,dataIndex:`status`,key:`status`,width:110},{title:`更新时间`,dataIndex:`updated_at`,key:`updated_at`,width:180},{title:``,key:`action`,width:80}];async function I(){A.value=!0;try{N.value=(await g.get(`/scenarios`,{params:{keyword:M.value}})).items}finally{A.value=!1}}async function L(){try{let e=await g.post(`/scenarios`,P);y.success(`场景已创建`),j.value=!1,h.push(`/scenarios/${e.id}`)}catch(e){y.error(m(e))}}function R(e){return{draft:`草稿`,active:`使用中`,archived:`已归档`}[e]||e}return l(I),(r,l)=>{let u=_(`a-button`),m=_(`a-input`),g=_(`a-tag`),v=_(`a-table`),y=_(`a-form-item`),S=_(`a-textarea`),z=_(`a-radio`),B=_(`a-radio-group`),V=_(`a-form`),H=_(`a-drawer`);return o(),d(`div`,C,[i(`div`,w,[l[10]||=i(`div`,null,[i(`h1`,null,`场景与 SOP`),i(`p`,null,`从业务触发点开始,定义信息字段与可执行话术流程。`)],-1),n(u,{type:`primary`,onClick:l[0]||=e=>j.value=!0},{default:p(()=>[n(c(x)),l[9]||=a(`新建场景`,-1)]),_:1})]),i(`section`,T,[i(`div`,E,[n(m,{value:M.value,"onUpdate:value":l[1]||=e=>M.value=e,"allow-clear":``,placeholder:`搜索名称或行业`,style:{width:`280px`},onPressEnter:I},{prefix:p(()=>[n(c(b))]),_:1},8,[`value`]),i(`span`,D,`共 `+t(N.value.length)+` 个场景`,1)]),n(v,{columns:F,"data-source":N.value,loading:A.value,"row-key":`id`,pagination:!1,scroll:{x:800},"custom-row":e=>({onClick:()=>c(h).push(`/scenarios/${e.id}`)})},{bodyCell:p(({column:n,record:r})=>[n.key===`name`?(o(),d(`div`,O,[i(`b`,null,t(r.name),1),i(`small`,null,t(r.goal),1)])):n.key===`status`?(o(),f(g,{key:1,color:r.status===`active`?`green`:`default`},{default:p(()=>[a(t(R(r.status)),1)]),_:2},1032,[`color`])):n.key===`updated_at`?(o(),d(s,{key:2},[a(t(new Date(r.updated_at).toLocaleString(`zh-CN`)),1)],64)):n.key===`action`?(o(),f(u,{key:3,type:`link`,size:`small`},{default:p(()=>[...l[11]||=[a(`配置`,-1)]]),_:1})):e(``,!0)]),emptyText:p(()=>[...l[12]||=[i(`div`,{class:`empty-copy`},`还没有业务场景。创建第一个场景后,就可以配置字段和 SOP。`,-1)]]),_:1},8,[`data-source`,`loading`,`custom-row`])]),n(H,{open:j.value,"onUpdate:open":l[8]||=e=>j.value=e,title:`创建业务场景`,width:`520`,"destroy-on-close":!0},{default:p(()=>[n(V,{layout:`vertical`,model:P},{default:p(()=>[n(y,{label:`场景名称`,name:`name`,rules:[{required:!0,message:`请输入场景名称`}]},{default:p(()=>[n(m,{value:P.name,"onUpdate:value":l[2]||=e=>P.name=e,placeholder:`例如:宠物医生问诊问药`},null,8,[`value`])]),_:1}),i(`div`,k,[n(y,{label:`所属行业`,name:`industry`,rules:[{required:!0,message:`请输入行业`}]},{default:p(()=>[n(m,{value:P.industry,"onUpdate:value":l[3]||=e=>P.industry=e,placeholder:`宠物医疗`},null,8,[`value`])]),_:1}),n(y,{label:`适用角色`,name:`role_name`,rules:[{required:!0,message:`请输入角色`}]},{default:p(()=>[n(m,{value:P.role_name,"onUpdate:value":l[4]||=e=>P.role_name=e,placeholder:`医生、客服`},null,8,[`value`])]),_:1})]),n(y,{label:`执行目标`,name:`goal`,rules:[{required:!0,message:`请输入执行目标`}]},{default:p(()=>[n(S,{value:P.goal,"onUpdate:value":l[5]||=e=>P.goal=e,rows:3,placeholder:`这个场景最终要推动什么结果`},null,8,[`value`])]),_:1}),n(y,{label:`触发条件`,name:`trigger_text`,rules:[{required:!0,message:`请输入触发条件`}]},{default:p(()=>[n(S,{value:P.trigger_text,"onUpdate:value":l[6]||=e=>P.trigger_text=e,rows:3,placeholder:`什么时候进入这个场景`},null,8,[`value`])]),_:1}),n(y,{label:`可见范围`},{default:p(()=>[n(B,{value:P.visibility,"onUpdate:value":l[7]||=e=>P.visibility=e},{default:p(()=>[n(z,{value:`tenant`},{default:p(()=>[...l[13]||=[a(`全企业`,-1)]]),_:1}),n(z,{value:`team`},{default:p(()=>[...l[14]||=[a(`团队`,-1)]]),_:1}),n(z,{value:`private`},{default:p(()=>[...l[15]||=[a(`仅自己`,-1)]]),_:1})]),_:1},8,[`value`])]),_:1}),n(u,{type:`primary`,block:``,onClick:L},{default:p(()=>[...l[16]||=[a(`创建并继续配置`,-1)]]),_:1})]),_:1},8,[`model`])]),_:1},8,[`open`])])}}}),[[`__scopeId`,`data-v-3965a2e5`]]);export{A as default}; \ No newline at end of file diff --git a/codes/web/dist/assets/SearchOutlined-DRcWUFRC.js b/codes/web/dist/assets/SearchOutlined-DRcWUFRC.js new file mode 100644 index 0000000..b15181f --- /dev/null +++ b/codes/web/dist/assets/SearchOutlined-DRcWUFRC.js @@ -0,0 +1 @@ +import{F as e,a as t}from"./client-CO11mUW5.js";var n={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`};function r(e){for(var t=1;t_=e,y=Symbol();function b(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var x=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function S(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function C(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){O(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function w(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function T(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var E=typeof navigator==`object`?navigator:{userAgent:``},D=/Macintosh/.test(E.userAgent)&&/AppleWebKit/.test(E.userAgent)&&!/Safari/.test(E.userAgent),O=g?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!D?k:`msSaveOrOpenBlob`in E?A:j:()=>{};function k(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?T(r):w(r.href)?C(e,t,n):(r.target=`_blank`,T(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){T(r)},0))}function A(e,t=`download`,n){if(typeof e==`string`){if(w(e))C(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){T(t)})}}else navigator.msSaveOrOpenBlob(S(e,n),t)}function j(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return C(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(x.HTMLElement))||`safari`in x,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||D)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:M}=Object;function N(){let e=o(!0),t=e.run(()=>m({})),n=[],r=[],i=l({install(e){v(i),i._a=e,e.provide(y,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var P=()=>{};function F(e,t,n,r=P){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&s()&&c(i),i}function I(e,...t){e.forEach(e=>{e(...t)})}var L=e=>e(),R=Symbol(),z=Symbol();function B(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let r=t[n],i=e[n];e[n]=b(i)&&b(r)&&Object.hasOwn(e,n)&&!u(r)&&!d(r)?B(i,r):r}return e}var V=Symbol();function H(e){return!e||typeof e!=`object`||!Object.hasOwn(e,V)}var{assign:U}=Object;function W(e){return!!(u(e)&&e.effect)}function G(e,r,i,a){let{state:o,actions:s,getters:c}=r,u=i.state.value[e],d;function f(){return u||(i.state.value[e]=o?o():{}),U(t(i.state.value[e]),s,Object.keys(c||{}).reduce((t,r)=>(t[r]=l(n(()=>{v(i);let t=i._s.get(e);return c[r].call(t,t)})),t),{}))}return d=K(e,f,r,i,a,!0),d}function K(e,t,n={},i,s,c){let l,p=U({actions:{}},n),m={deep:!0},g,_,y=new Set,b=new Set,x,S=i.state.value[e];!c&&!S&&(i.state.value[e]={});let C;function w(t){let n;g=_=!1,typeof t==`function`?(t(i.state.value[e]),n={type:`patch function`,storeId:e,events:x}):(B(i.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:x});let a=C=Symbol();r().then(()=>{C===a&&(g=!0)}),_=!0,I(y,n,i.state.value[e])}let T=c?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{U(e,t)})}:P;function E(){l.stop(),y.clear(),b.clear(),i._s.delete(e)}let D=(t,n=``)=>{if(R in t)return t[z]=n,t;let r=function(){v(i);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}I(b,{args:n,name:r[z],store:k,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:k,n)}catch(e){throw I(o,e),e}return l instanceof Promise?l.then(e=>(I(a,e),e)).catch(e=>(I(o,e),Promise.reject(e))):(I(a,l),l)};return r[R]=!0,r[z]=n,r},O={_p:i,$id:e,$onAction:F.bind(null,b),$patch:w,$reset:T,$subscribe(t,n={}){if(y.has(t))return P;let r=F(y,t,n.detached,()=>a()),a=l.run(()=>f(()=>i.state.value[e],r=>{(n.flush===`sync`?_:g)&&t({storeId:e,type:`direct`,events:x},r)},U({},m,n)));return r},$dispose:E},k=a(O);i._s.set(e,k);let A=(i._a&&i._a.runWithContext||L)(()=>i._e.run(()=>(l=o()).run(()=>t({action:D}))));for(let t in A){let n=A[t];u(n)&&!W(n)||d(n)?c||(S&&H(n)&&(u(n)?n.value=S[t]:B(n,S[t])),i.state.value[e][t]=n):typeof n==`function`&&(A[t]=D(n,t),p.actions[t]=n)}return U(k,A),U(h(k),A),Object.defineProperty(k,"$state",{get:()=>i.state.value[e],set:e=>{w(t=>{U(t,e)})}}),i._p.forEach(e=>{let t=l.run(()=>e({store:k,app:i._a,pinia:i,options:p}));U(k,t)}),S&&c&&n.hydrate&&n.hydrate(k.$state,S),g=!0,_=!0,k}function q(t,n,r){let a,o=typeof n==`function`;a=o?r:n;function s(r,s){let c=e();return r||=c?i(y,null):null,r&&v(r),r=_,r._s.has(t)||(o?K(t,n,a,r):G(t,a,r)),r._s.get(t)}return s.$id=t,s}var J=q(`auth`,()=>{let e=m(null),t=m(localStorage.getItem(`access_token`)||``),r=n(()=>!!t.value);async function i(n,r){let i=await p.post(`/auth/login`,{username:n,password:r});t.value=i.access_token,e.value=i.user,localStorage.setItem(`access_token`,i.access_token),localStorage.setItem(`refresh_token`,i.refresh_token)}async function a(){t.value&&(e.value=await p.get(`/auth/me`))}function o(){t.value=``,e.value=null,localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`)}return{user:e,token:t,authenticated:r,login:i,loadUser:a,logout:o}});export{N as n,J as t}; \ No newline at end of file diff --git a/codes/web/dist/assets/client-CO11mUW5.js b/codes/web/dist/assets/client-CO11mUW5.js new file mode 100644 index 0000000..e45a49b --- /dev/null +++ b/codes/web/dist/assets/client-CO11mUW5.js @@ -0,0 +1,65 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));function u(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var d={},f=[],p=()=>{},m=()=>!1,h=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),g=e=>e.startsWith(`onUpdate:`),_=Object.assign,v=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,S=e=>A(e)===`[object Map]`,C=e=>A(e)===`[object Set]`,w=e=>A(e)===`[object Date]`,T=e=>typeof e==`function`,E=e=>typeof e==`string`,D=e=>typeof e==`symbol`,O=e=>typeof e==`object`&&!!e,ee=e=>(O(e)||T(e))&&T(e.then)&&T(e.catch),k=Object.prototype.toString,A=e=>k.call(e),te=e=>A(e).slice(8,-1),ne=e=>A(e)===`[object Object]`,re=e=>E(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,j=u(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ie=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ae=/-\w/g,M=ie(e=>e.replace(ae,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,se=ie(e=>e.replace(oe,`-$1`).toLowerCase()),N=ie(e=>e.charAt(0).toUpperCase()+e.slice(1)),ce=ie(e=>e?`on${N(e)}`:``),le=(e,t)=>!Object.is(e,t),ue=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},fe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},pe=e=>{let t=E(e)?Number(e):NaN;return isNaN(t)?e:t},me,he=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ge(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(ve);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function xe(e){let t=``;if(E(e))t=e;else if(x(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Oe=e=>E(e)?e:e==null?``:x(e)||O(e)&&(e.toString===k||!T(e.toString))?De(e)?Oe(e.value):JSON.stringify(e,ke,2):String(e),ke=(e,t)=>De(t)?ke(e,t.value):S(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ae(t,r)+` =>`]=n,e),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ae(e))}:D(t)?Ae(t):O(t)&&!x(t)&&!ne(t)?String(t):t,Ae=(e,t=``)=>D(e)?`Symbol(${e.description??t})`:e,P,je=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&P&&(P.active?(this.parent=P,this.index=(P.scopes||(P.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(P===this)P=this.prevScope;else{let e=P;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(ze){let e=ze;for(ze=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Re;){let t=Re;for(Re=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function We(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),qe(r),Je(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ge(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ke(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ke(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===et)||(e.globalVersion=et,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ge(e))))return;e.flags|=2;let t=e.dep,n=F,r=Ye;F=e,Ye=!0;try{Ue(e);let n=e.fn(e._value);(t.version===0||le(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{F=n,Ye=r,We(e),e.flags&=-3}}function qe(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Je(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Ye=!0,Xe=[];function Ze(){Xe.push(Ye),Ye=!1}function Qe(){let e=Xe.pop();Ye=e===void 0||e}function $e(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=F;F=void 0;try{t()}finally{F=e}}}var et=0,tt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},nt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!F||!Ye||F===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==F)t=this.activeLink=new tt(F,this),F.deps?(t.prevDep=F.depsTail,F.depsTail.nextDep=t,F.depsTail=t):F.deps=F.depsTail=t,rt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=F.depsTail,t.nextDep=void 0,F.depsTail.nextDep=t,F.depsTail=t,F.deps===t&&(F.deps=e)}return t}trigger(e){this.version++,et++,this.notify(e)}notify(e){Ve();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{He()}}};function rt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)rt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var it=new WeakMap,at=Symbol(``),ot=Symbol(``),st=Symbol(``);function I(e,t,n){if(Ye&&F){let t=it.get(e);t||it.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new nt),r.map=t,r.key=n),r.track()}}function ct(e,t,n,r,i,a){let o=it.get(e);if(!o){et++;return}let s=e=>{e&&e.trigger()};if(Ve(),t===`clear`)o.forEach(s);else{let i=x(e),a=i&&re(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===st||!D(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(st)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(at)),S(e)&&s(o.get(ot)));break;case`delete`:i||(s(o.get(at)),S(e)&&s(o.get(ot)));break;case`set`:S(e)&&s(o.get(at))}}He()}function lt(e,t){let n=it.get(e);return n&&n.get(t)}function ut(e){let t=L(e);return t===e?t:(I(t,`iterate`,st),Yt(e)?t:t.map(Qt))}function dt(e){return I(e=L(e),`iterate`,st),e}function ft(e,t){return Jt(e)?$t(qt(e)?Qt(t):t):Qt(t)}var pt={__proto__:null,[Symbol.iterator](){return mt(this,Symbol.iterator,e=>ft(this,e))},concat(...e){return ut(this).concat(...e.map(e=>x(e)?ut(e):e))},entries(){return mt(this,`entries`,e=>(e[1]=ft(this,e[1]),e))},every(e,t){return gt(this,`every`,e,t,void 0,arguments)},filter(e,t){return gt(this,`filter`,e,t,e=>e.map(e=>ft(this,e)),arguments)},find(e,t){return gt(this,`find`,e,t,e=>ft(this,e),arguments)},findIndex(e,t){return gt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return gt(this,`findLast`,e,t,e=>ft(this,e),arguments)},findLastIndex(e,t){return gt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return gt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return vt(this,`includes`,e)},indexOf(...e){return vt(this,`indexOf`,e)},join(e){return ut(this).join(e)},lastIndexOf(...e){return vt(this,`lastIndexOf`,e)},map(e,t){return gt(this,`map`,e,t,void 0,arguments)},pop(){return yt(this,`pop`)},push(...e){return yt(this,`push`,e)},reduce(e,...t){return _t(this,`reduce`,e,t)},reduceRight(e,...t){return _t(this,`reduceRight`,e,t)},shift(){return yt(this,`shift`)},some(e,t){return gt(this,`some`,e,t,void 0,arguments)},splice(...e){return yt(this,`splice`,e)},toReversed(){return ut(this).toReversed()},toSorted(e){return ut(this).toSorted(e)},toSpliced(...e){return ut(this).toSpliced(...e)},unshift(...e){return yt(this,`unshift`,e)},values(){return mt(this,`values`,e=>ft(this,e))}};function mt(e,t,n){let r=dt(e),i=r[t]();return r!==e&&!Yt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var ht=Array.prototype;function gt(e,t,n,r,i,a){let o=dt(e),s=o!==e&&!Yt(e),c=o[t];if(c!==ht[t]){let t=c.apply(e,a);return s?Qt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ft(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function _t(e,t,n,r){let i=dt(e),a=i!==e&&!Yt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ft(e,t)),n.call(this,t,ft(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ft(e,c):c}function vt(e,t,n){let r=L(e);I(r,`iterate`,st);let i=r[t](...n);return(i===-1||i===!1)&&Xt(n[0])?(n[0]=L(n[0]),r[t](...n)):i}function yt(e,t,n=[]){Ze(),Ve();let r=L(e)[t].apply(e,n);return He(),Qe(),r}var bt=u(`__proto__,__v_isRef,__isVue`),xt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(D));function St(e){D(e)||(e=String(e));let t=L(this);return I(t,`has`,e),t.hasOwnProperty(e)}var Ct=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Vt:Bt:i?zt:Rt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=x(e);if(!r){let e;if(a&&(e=pt[t]))return e;if(t===`hasOwnProperty`)return St}let o=Reflect.get(e,t,R(e)?e:n);if((D(t)?xt.has(t):bt(t))||(r||I(e,`get`,t),i))return o;if(R(o)){let e=a&&re(t)?o:o.value;return r&&O(e)?Gt(e):e}return O(o)?r?Gt(o):Ut(o):o}},wt=class extends Ct{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=x(e)&&re(t);if(!this._isShallow){let e=Jt(i);if(!Yt(n)&&!Jt(n)&&(i=L(i),n=L(n)),!a&&R(i)&&!R(n))return e||(i.value=n),!0}let o=a?Number(t)e,At=e=>Reflect.getPrototypeOf(e);function jt(e,t,n){return function(...r){let i=this.__v_raw,a=L(i),o=S(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),u=n?kt:t?$t:Qt;return!t&&I(a,`iterate`,c?ot:at),_(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}}})}}function Mt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Nt(e,t){let n={get(n){let r=this.__v_raw,i=L(r),a=L(n);e||(le(n,a)&&I(i,`get`,n),I(i,`get`,a));let{has:o}=At(i),s=t?kt:e?$t:Qt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&I(L(t),`iterate`,at),t.size},has(t){let n=this.__v_raw,r=L(n),i=L(t);return e||(le(t,i)&&I(r,`has`,t),I(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=L(a),s=t?kt:e?$t:Qt;return!e&&I(o,`iterate`,at),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return _(n,e?{add:Mt(`add`),set:Mt(`set`),delete:Mt(`delete`),clear:Mt(`clear`)}:{add(e){let n=L(this),r=At(n),i=L(e),a=!t&&!Yt(e)&&!Jt(e)?i:e;return r.has.call(n,a)||le(e,a)&&r.has.call(n,e)||le(i,a)&&r.has.call(n,i)||(n.add(a),ct(n,`add`,a,a)),this},set(e,n){!t&&!Yt(n)&&!Jt(n)&&(n=L(n));let r=L(this),{has:i,get:a}=At(r),o=i.call(r,e);o||=(e=L(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?le(n,s)&&ct(r,`set`,e,n,s):ct(r,`add`,e,n),this},delete(e){let t=L(this),{has:n,get:r}=At(t),i=n.call(t,e);i||=(e=L(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&ct(t,`delete`,e,void 0,a),o},clear(){let e=L(this),t=e.size!==0,n=e.clear();return t&&ct(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=jt(r,e,t)}),n}function Pt(e,t){let n=Nt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(b(n,r)&&r in t?n:t,r,i)}var Ft={get:Pt(!1,!1)},It={get:Pt(!1,!0)},Lt={get:Pt(!0,!1)},Rt=new WeakMap,zt=new WeakMap,Bt=new WeakMap,Vt=new WeakMap;function Ht(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ut(e){return Jt(e)?e:Kt(e,!1,Et,Ft,Rt)}function Wt(e){return Kt(e,!1,Ot,It,zt)}function Gt(e){return Kt(e,!0,Dt,Lt,Bt)}function Kt(e,t,n,r,i){if(!O(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Ht(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function qt(e){return Jt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Yt(e){return!!(e&&e.__v_isShallow)}function Xt(e){return e?!!e.__v_raw:!1}function L(e){let t=e&&e.__v_raw;return t?L(t):e}function Zt(e){return!b(e,`__v_skip`)&&Object.isExtensible(e)&&de(e,`__v_skip`,!0),e}var Qt=e=>O(e)?Ut(e):e,$t=e=>O(e)?Gt(e):e;function R(e){return e?e.__v_isRef===!0:!1}function en(e){return nn(e,!1)}function tn(e){return nn(e,!0)}function nn(e,t){return R(e)?e:new rn(e,t)}var rn=class{constructor(e,t){this.dep=new nt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:L(e),this._value=t?e:Qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Yt(e)||Jt(e);e=n?e:L(e),le(e,t)&&(this._rawValue=e,this._value=n?e:Qt(e),this.dep.trigger())}};function an(e){e.dep&&e.dep.trigger()}function on(e){return R(e)?e.value:e}var sn={get:(e,t,n)=>t===`__v_raw`?e:on(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return R(i)&&!R(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function cn(e){return qt(e)?e:new Proxy(e,sn)}function ln(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=pn(e,n);return t}var un=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=D(t)?t:String(t),this._raw=L(e);let r=!0,i=e;if(!x(e)||D(this._key)||!re(this._key))do r=!Xt(i)||Yt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=on(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&R(this._raw[this._key])){let t=this._object[this._key];if(R(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return lt(this._raw,this._key)}},dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function fn(e,t,n){return R(e)?e:T(e)?new dn(e):O(e)&&arguments.length>1?pn(e,t,n):en(e)}function pn(e,t,n){return new un(e,t,n)}var mn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new nt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=et-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&F!==this)return Be(this,!0),!0}get value(){let e=this.dep.track();return Ke(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function hn(e,t,n=!1){let r,i;return T(e)?r=e:(r=e.get,i=e.set),new mn(r,i,n)}var gn={},_n=new WeakMap,vn=void 0;function yn(e,t=!1,n=vn){if(n){let t=_n.get(n);t||_n.set(n,t=[]),t.push(e)}}function bn(e,t,n=d){let{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:c}=n,l=e=>i?e:Yt(e)||i===!1||i===0?xn(e,1):xn(e),u,f,m,h,g=!1,_=!1;if(R(e)?(f=()=>e.value,g=Yt(e)):qt(e)?(f=()=>l(e),g=!0):x(e)?(_=!0,g=e.some(e=>qt(e)||Yt(e)),f=()=>e.map(e=>{if(R(e))return e.value;if(qt(e))return l(e);if(T(e))return c?c(e,2):e()})):f=T(e)?t?c?()=>c(e,2):e:()=>{if(m){Ze();try{m()}finally{Qe()}}let t=vn;vn=u;try{return c?c(e,3,[h]):e(h)}finally{vn=t}}:p,t&&i){let e=f,t=i===!0?1/0:i;f=()=>xn(e(),t)}let y=Ne(),b=()=>{u.stop(),y&&y.active&&v(y.effects,u)};if(a&&t){let e=t;t=(...t)=>{let n=e(...t);return b(),n}}let S=_?Array(e.length).fill(gn):gn,C=e=>{if(!(!(u.flags&1)||!u.dirty&&!e)){if(t){let n=u.run();if(e||i||g||(_?n.some((e,t)=>le(e,S[t])):le(n,S))){m&&m();let e=vn;vn=u;try{let e=[n,S===gn?void 0:_&&S[0]===gn?[]:S,h];S=n,c?c(t,3,e):t(...e)}finally{vn=e}}}else u.run()}};return s&&s(C),u=new Ie(f),u.scheduler=o?()=>o(C,!1):C,h=e=>yn(e,!1,u),m=u.onStop=()=>{let e=_n.get(u);if(e){if(c)c(e,4);else for(let t of e)t();_n.delete(u)}},t?r?C(!0):S=u.run():o?o(C.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function xn(e,t=1/0,n){if(t<=0||!O(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,R(e))xn(e.value,t,n);else if(x(e))for(let r=0;r{xn(e,t,n)});else if(ne(e)){for(let r in e)xn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xn(e[r],t,n)}return e}function Sn(e,t,n,r){try{return r?e(...r):e()}catch(e){wn(e,t,n)}}function Cn(e,t,n,r){if(T(e)){let i=Sn(e,t,n,r);return i&&ee(i)&&i.catch(e=>{wn(e,t,n)}),i}if(x(e)){let i=[];for(let a=0;a>>1,i=z[r],a=zn(i);a=zn(n)?z.push(e):z.splice(Nn(t),0,e),e.flags|=1,Fn()}}function Fn(){jn||=An.then(Bn)}function In(e){if(!x(e))On&&e.id===-1?On.splice(kn+1,0,e):e.flags&1||(Dn.push(e),e.flags|=1);else for(let t=0;tzn(e)-zn(t));if(Dn.length=0,On){for(let t=0;te.id==null?e.flags&2?-1:1/0:e.id;function Bn(e){try{for(En=0;En{r._d&&ja(-1);let i=Un(t),a=Ea.length,o;try{o=e(...n)}finally{for(let e=Ea.length;e>a;e--)ka();Un(i),r._d&&ja(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Gn(e,t){if(Vn===null)return e;let n=go(Vn),r=e.dirs||=[];for(let e=0;e1)return n&&T(t)?t.call(r&&r.proxy):t}}function Yn(){return!!(eo()||Pi)}var Xn=Symbol.for(`v-scx`),Zn=()=>Jn(Xn);function Qn(e,t){return er(e,null,t)}function $n(e,t,n){return er(e,t,n)}function er(e,t,n=d){let{immediate:r,deep:i,flush:a,once:o}=n,s=_({},n),c=t&&r||!t&&a!==`post`,l;if(oo){if(a===`sync`){let e=Zn();l=e.__watcherHandles||=[]}else if(!c){let e=()=>{};return e.stop=p,e.resume=p,e.pause=p,e}}let u=W;s.call=(e,t,n)=>Cn(e,u,t,n);let f=!1;a===`post`?s.scheduler=e=>{V(e,u&&u.suspense)}:a!==`sync`&&(f=!0,s.scheduler=(e,t)=>{t?e():Pn(e)}),s.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};let m=bn(e,t,s);return oo&&(l?l.push(m):c&&m()),m}function tr(e,t,n){let r=this.proxy,i=E(e)?e.includes(`.`)?nr(r,e):()=>r[e]:e.bind(r,r),a;T(t)?a=t:(a=t.handler,n=t);let o=ro(this),s=er(i,a.bind(r),n);return o(),s}function nr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,or=e=>e&&(e.disabled||e.disabled===``),sr=e=>e&&(e.defer||e.defer===``),cr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,lr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,ur=(e,t)=>{let n=e&&e.to;return E(n)?t?t(n):null:n},dr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=or(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=or(e.props),r=e.target=ur(e.props,m),a=gr(r,e,h,p);r&&(o!==`svg`&&cr(r)?o=`svg`:o!==`mathml`&&lr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),hr(e,!1)))},S=e=>{let t=()=>{if(rr.get(e)===t){if(rr.delete(e),or(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),hr(e,!0)}x(e)}};rr.set(e,t),V(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),sr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),hr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=rr.get(e);if(u){u.flags|=8,rr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=or(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||cr(p)?o=`svg`:(o===`mathml`||lr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),ga(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=ur(t.props,m);e&&(t.target=e,fr(t,e,null,l,0))}else g&&fr(t,p,h,l,1);hr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=or(f),m=a||!p,h=rr.get(e);if(h&&(h.flags|=8,rr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),Xr(()=>{e.isUnmounting=!0}),e}var br=[Function,Array],xr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:br,onEnter:br,onAfterEnter:br,onEnterCancelled:br,onBeforeLeave:br,onLeave:br,onAfterLeave:br,onLeaveCancelled:br,onBeforeAppear:br,onAppear:br,onAfterAppear:br,onAppearCancelled:br},Sr=e=>{let t=e.subTree;return t.component?Sr(t.component):t},Cr={name:`BaseTransition`,props:xr,setup(e,{slots:t}){let n=eo(),r=yr();return()=>{let i=t.default&&jr(t.default(),!0),a=i&&i.length?wr(i):n.subTree?Ga():void 0;if(!a)return;let o=L(e),{mode:s}=o;if(r.isLeaving)return Or(a);let c=kr(a);if(!c)return Or(a);let l=Dr(c,o,r,n,e=>l=e);c.type!==H&&Ar(c,l);let u=n.subTree&&kr(n.subTree);if(u&&u.type!==H&&!Ia(u,c)&&Sr(n).type!==H){let e=Dr(u,o,r,n);if(Ar(u,e),s===`out-in`&&c.type!==H)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Or(a);s===`in-out`&&c.type!==H?e.delayLeave=(e,t,n)=>{let i=Er(r,u);i[String(u.key)]=u,e[_r]=()=>{t(),e[_r]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function wr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==H){t=n;break}}return t}var Tr=Cr;function Er(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Dr(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),S=Er(n,e),C=(e,t)=>{e&&Cn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted){if(a)r=g||c;else return}t[_r]&&t[_r](!0);let i=S[b];i&&Ia(e,i)&&i.el[_r]&&i.el[_r](),C(r,[t])},enter(t){if(S[b]===e)return;let r=l,i=u,o=d;if(!n.isMounted){if(a)r=_||l,i=v||u,o=y||d;else return}let s=!1;t[vr]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[vr]=void 0)};let c=t[vr].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[vr]&&t[vr](!0),n.isUnmounting)return r();C(f,[t]);let a=!1;t[_r]=n=>{a||(a=!0,r(),C(n?h:m,[t]),t[_r]=void 0,S[i]===e&&delete S[i])};let o=t[_r].bind(null,!1);S[i]=e,p?w(p,[t,o]):o()},clone(e){let a=Dr(e,t,n,r,i);return i&&i(a),a}};return T}function Or(e){if(zr(e))return e=Ha(e),e.children=null,e}function kr(e){if(!zr(e))return ar(e.type)&&e.children?wr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&T(n.default))return n.default()}}function Ar(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;Ar(ar(n.type)&&kr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jr(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;eIr(e,t&&(x(t)?t[a]:t),n,r,i));return}if(Rr(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ir(e,t,n,r.component.subTree);return}let a=r.shapeFlag&4?go(r.component):r.el,o=i?null:a,{i:s,r:c}=e,l=t&&t.r,u=s.refs===d?s.refs={}:s.refs,f=s.setupState,p=L(f),h=f===d?m:e=>!Pr(u,e)&&b(p,e),g=(e,t)=>!(t&&Pr(u,t));if(l!=null&&l!==c){if(Lr(t),E(l))u[l]=null,h(l)&&(f[l]=null);else if(R(l)){let e=t;g(l,e.k)&&(l.value=null),e.k&&(u[e.k]=null)}}if(T(c))Sn(c,s,12,[o,u]);else{let t=E(c),r=R(c);if(t||r){let s=()=>{if(e.f){let n=t?h(c)?f[c]:u[c]:g(c)||!e.k?c.value:u[e.k];if(i)x(n)&&v(n,a);else if(x(n))n.includes(a)||n.push(a);else if(t)u[c]=[a],h(c)&&(f[c]=u[c]);else{let t=[a];g(c,e.k)&&(c.value=t),e.k&&(u[e.k]=t)}}else t?(u[c]=o,h(c)&&(f[c]=o)):r&&(g(c,e.k)&&(c.value=o),e.k&&(u[e.k]=o))};if(o){let t=()=>{s(),Fr.delete(e)};t.id=-1,Fr.set(e,t),V(t,n)}else Lr(e),s()}}}function Lr(e){let t=Fr.get(e);t&&(t.flags|=8,Fr.delete(e))}he().requestIdleCallback,he().cancelIdleCallback;var Rr=e=>!!e.type.__asyncLoader,zr=e=>e.type.__isKeepAlive;function Br(e,t){Hr(e,`a`,t)}function Vr(e,t){Hr(e,`da`,t)}function Hr(e,t,n=W){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Wr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)zr(e.parent.vnode)&&Ur(r,t,n,e),e=e.parent}}function Ur(e,t,n,r){let i=Wr(t,e,r,!0);Zr(()=>{v(r[t],i)},n)}function Wr(e,t,n=W,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ze();let i=ro(n),a=Cn(t,n,e,r);return i(),Qe(),a};return r?i.unshift(a):i.push(a),a}}var Gr=e=>(t,n=W)=>{(!oo||e===`sp`)&&Wr(e,(...e)=>t(...e),n)},Kr=Gr(`bm`),qr=Gr(`m`),Jr=Gr(`bu`),Yr=Gr(`u`),Xr=Gr(`bum`),Zr=Gr(`um`),Qr=Gr(`sp`),$r=Gr(`rtg`),ei=Gr(`rtc`);function ti(e,t=W){Wr(`ec`,e,t)}var ni=`components`,ri=`directives`;function ii(e,t){return si(ni,e,!0,t)||e}var ai=Symbol.for(`v-ndc`);function oi(e){return si(ri,e)}function si(e,t,n=!0,r=!1){let i=Vn||W;if(i){let n=i.type;if(e===ni){let e=_o(n,!1);if(e&&(e===t||e===M(t)||e===N(M(t))))return n}let a=ci(i[e]||n[e],t)||ci(i.appContext[e],t);return!a&&r?n:a}}function ci(e,t){return e&&(e[t]||e[M(t)]||e[N(M(t))])}function li(e,t,n,r){let i,a=n&&n[r],o=x(e);if(o||E(e)){let n=o&&qt(e),r=!1,s=!1;n&&(r=!Yt(e),s=Jt(e),e=dt(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;re?ao(e)?go(e):ui(e.parent):null,di=_(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ui(e.parent),$root:e=>ui(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Si(e),$forceUpdate:e=>e.f||=()=>{Pn(e.update)},$nextTick:e=>e.n||=Mn.bind(e.proxy),$watch:e=>tr.bind(e)}),fi=(e,t)=>e!==d&&!e.__isScriptSetup&&b(e,t),pi={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:c}=e;if(t[0]!==`$`){let e=o[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else if(fi(r,t))return o[t]=1,r[t];else if(i!==d&&b(i,t))return o[t]=2,i[t];else if(b(a,t))return o[t]=3,a[t];else if(n!==d&&b(n,t))return o[t]=4,n[t];else _i&&(o[t]=0)}let l=di[t],u,f;if(l)return t===`$attrs`&&I(e.attrs,`get`,``),l(e);if((u=s.__cssModules)&&(u=u[t]))return u;if(n!==d&&b(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,b(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:i,ctx:a}=e;return fi(i,t)?(i[t]=n,!0):r!==d&&b(r,t)?(r[t]=n,!0):b(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:a,type:o}},s){let c;return!!(n[s]||e!==d&&s[0]!==`$`&&b(e,s)||fi(t,s)||b(a,s)||b(r,s)||b(di,s)||b(i.config.globalProperties,s)||(c=o.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get==null?b(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function mi(){return hi(`useAttrs`).attrs}function hi(e){let t=eo();return t.setupContext||=ho(t)}function gi(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var _i=!0;function vi(e){let t=Si(e),n=e.proxy,r=e.ctx;_i=!1,t.beforeCreate&&bi(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:o,watch:s,provide:c,inject:l,created:u,beforeMount:d,mounted:f,beforeUpdate:m,updated:h,activated:g,deactivated:_,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:S,render:C,renderTracked:w,renderTriggered:E,errorCaptured:D,serverPrefetch:ee,expose:k,inheritAttrs:A,components:te,directives:ne,filters:re}=t;if(l&&yi(l,r,null),o)for(let e in o){let t=o[e];T(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);O(t)&&(e.data=Ut(t))}if(_i=!0,a)for(let e in a){let t=a[e],i=yo({get:T(t)?t.bind(n,n):T(t.get)?t.get.bind(n,n):p,set:!T(t)&&T(t.set)?t.set.bind(n):p});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(s)for(let e in s)xi(s[e],r,n,e);if(c){let e=T(c)?c.call(n):c;Reflect.ownKeys(e).forEach(t=>{qn(t,e[t])})}u&&bi(u,e,`c`);function j(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Kr,d),j(qr,f),j(Jr,m),j(Yr,h),j(Br,g),j(Vr,_),j(ti,D),j(ei,w),j($r,E),j(Xr,y),j(Zr,S),j(Qr,ee),x(k)){if(k.length){let t=e.exposed||={};k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}C&&e.render===p&&(e.render=C),A!=null&&(e.inheritAttrs=A),te&&(e.components=te),ne&&(e.directives=ne),ee&&Nr(e)}function yi(e,t,n=p){x(e)&&(e=Di(e));for(let n in e){let r=e[n],i;i=O(r)?`default`in r?Jn(r.from||n,r.default,!0):Jn(r.from||n):Jn(r),R(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function bi(e,t,n){Cn(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,r){let i=r.includes(`.`)?nr(n,r):()=>n[r];if(E(e)){let n=t[e];T(n)&&$n(i,n)}else if(T(e))$n(i,e.bind(n));else if(O(e)){if(x(e))e.forEach(e=>xi(e,t,n,r));else{let r=T(e.handler)?e.handler.bind(n):t[e.handler];T(r)&&$n(i,r,e)}}}function Si(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Ci(c,e,o,!0)),Ci(c,t,o)),O(t)&&a.set(t,c),c}function Ci(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Ci(e,a,n,!0),i&&i.forEach(t=>Ci(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=wi[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var wi={data:Ti,props:ki,emits:ki,methods:Oi,computed:Oi,beforeCreate:B,created:B,beforeMount:B,mounted:B,beforeUpdate:B,updated:B,beforeDestroy:B,beforeUnmount:B,destroyed:B,unmounted:B,activated:B,deactivated:B,errorCaptured:B,serverPrefetch:B,components:Oi,directives:Oi,watch:Ai,provide:Ti,inject:Ei};function Ti(e,t){return t?e?function(){return _(T(e)?e.call(this,this):e,T(t)?t.call(this,this):t)}:t:e}function Ei(e,t){return Oi(Di(e),Di(t))}function Di(e){if(x(e)){let t={};for(let n=0;nt===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${M(t)}Modifiers`]||e[`${se(t)}Modifiers`];function Ii(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||d,i=n,a=t.startsWith(`update:`),o=a&&Fi(r,t.slice(7));o&&(o.trim&&(i=n.map(e=>E(e)?e.trim():e)),o.number&&(i=n.map(fe)));let s,c=r[s=ce(t)]||r[s=ce(M(t))];!c&&a&&(c=r[s=ce(se(t))]),c&&Cn(c,e,6,i);let l=r[s+`Once`];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Cn(l,e,6,i)}}var Li=new WeakMap;function Ri(e,t,n=!1){let r=n?Li:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!T(e)){let r=e=>{let n=Ri(e,t,!0);n&&(s=!0,_(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(O(e)&&r.set(e,null),null):(x(a)?a.forEach(e=>o[e]=null):_(o,a),O(e)&&r.set(e,o),o)}function zi(e,t){return!e||!h(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),b(e,t[0].toLowerCase()+t.slice(1))||b(e,se(t))||b(e,t))}function Bi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:l,renderCache:u,props:d,data:f,setupState:p,ctx:m,inheritAttrs:h}=e,_=Un(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ka(l.call(t,e,u,d,p,f,m)),y=s}else{let e=t;v=Ka(e.length>1?e(d,{attrs:s,slots:o,emit:c}):e(d,null)),y=t.props?s:Vi(s)}}catch(t){Ea.length=0,wn(t,e,1),v=U(H)}let b=v;if(y&&h!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(g)&&(y=Hi(y,a)),b=Ha(b,y,!1,!0))}return n.dirs&&(b=Ha(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Ar(ar(b.type)&&kr(b)||b,n.transition),v=b,Un(_),v}var Vi=e=>{let t;for(let n in e)(n===`class`||n===`style`||h(n))&&((t||={})[n]=e[n]);return t},Hi=(e,t)=>{let n={};for(let r in e)(!g(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ui(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Wi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(qi),Yi=e=>Object.getPrototypeOf(e)===qi;function Xi(e,t,n,r=!1){let i={},a=Ji();e.propsDefaults=Object.create(null),Qi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Wt(i):e.type.props?i:a,e.attrs=a}function Zi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=L(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{c=!0;let[n,r]=ta(e,t,!0);_(o,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return O(e)&&r.set(e,f),f;if(x(a))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,ia=e=>x(e)?e.map(Ka):[Ka(e)],aa=(e,t,n)=>{if(t._n)return t;let r=Wn((...e)=>ia(t(...e)),n);return r._c=!1,r},oa=(e,t,n)=>{let r=e._ctx;for(let n in e){if(ra(n))continue;let i=e[n];if(T(i))t[n]=aa(n,i,r);else if(i!=null){let e=ia(i);t[n]=()=>e}}},sa=(e,t)=>{let n=ia(t);e.slots.default=()=>n},ca=(e,t,n)=>{for(let r in t)(n||!ra(r))&&(e[r]=t[r])},la=(e,t,n)=>{let r=e.slots=Ji();if(e.vnode.shapeFlag&32){let e=t._;e?(ca(r,t,n),n&&de(r,`_`,e,!0)):oa(t,r)}else t&&sa(e,t)},ua=(e,t,n)=>{let{vnode:r,slots:i}=e,a=!0,o=d;if(r.shapeFlag&32){let e=t._;e?n&&e===1?a=!1:ca(i,t,n):(a=!t.$stable,oa(t,i)),o=t}else t&&(sa(e,t),o={default:1});if(a)for(let e in i)!ra(e)&&o[e]==null&&delete i[e]},V=Sa;function da(e){return fa(e)}function fa(e,t){let n=he();n.__VUE__=!0;let{insert:r,remove:i,patchProp:a,createElement:o,createText:s,createComment:c,setText:l,setElementText:u,parentNode:m,nextSibling:h,setScopeId:g=p,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ia(e,t)&&(r=me(e),ce(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case wa:y(e,t,n,r);break;case H:b(e,t,n,r);break;case Ta:e??x(t,n,r,o);break;case Ca:A(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?te(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,ve)}u!=null&&i?Ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&Ir(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=s(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=c(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),i(e),e=n;i(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),O(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,i,s,c,l,d)=>{let f,p,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(f=e.el=o(e.type,c,m&&m.is,m),h&8?u(f,e.children):h&16&&D(e.children,f,null,i,s,pa(e,c),l,d),_&&Kn(e,null,i,`created`),E(f,e,e.scopeId,l,i),m){for(let e in m)e!==`value`&&!j(e)&&a(f,e,null,m[e],c,i);`value`in m&&a(f,`value`,null,m.value,c),(p=m.onVnodeBeforeMount)&&Xa(p,i,e)}_&&Kn(e,null,i,`beforeMount`);let v=ha(s,g);v&&g.beforeEnter(f),r(f,t,n),((p=m&&m.onVnodeMounted)||v||_)&&V(()=>{try{p&&Xa(p,i,e),v&&g.enter(f),_&&Kn(e,null,i,`mounted`)}finally{}},s)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let c=t.el=e.el,{patchFlag:l,dynamicChildren:f,dirs:p}=t;l|=e.patchFlag&16;let m=e.props||d,h=t.props||d,g;if(n&&ma(n,!1),(g=h.onVnodeBeforeUpdate)&&Xa(g,n,t,e),p&&Kn(t,e,n,`beforeUpdate`),n&&ma(n,!0),f&&(!e.dynamicChildren||e.dynamicChildren.length!==f.length)&&(l=0,s=!1,f=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&u(c,``),f?ee(e.dynamicChildren,f,c,n,r,pa(t,i),o):s||M(e,t,c,null,n,r,pa(t,i),o,!1),l>0){if(l&16)k(c,m,h,n,i);else if(l&2&&m.class!==h.class&&a(c,`class`,null,h.class,i),l&4&&a(c,`style`,m.style,h.style,i),l&8){let e=t.dynamicProps;for(let t=0;t{g&&Xa(g,n,t,e),p&&Kn(t,e,n,`updated`)},r)},ee=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==d)for(let o in t)!j(o)&&!(o in n)&&a(e,o,t[o],null,i,r);for(let o in n){if(j(o))continue;let s=n[o],c=t[o];s!==c&&o!==`value`&&a(e,o,c,s,i,r)}`value`in n&&a(e,`value`,t.value,n.value,i)}},A=(e,t,n,i,a,o,c,l,u)=>{let d=t.el=e?e.el:s(``),f=t.anchor=e?e.anchor:s(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(l=l?l.concat(h):h),e==null?(r(d,n,i),r(f,n,i),D(t.children||[],n,f,a,o,c,l,u)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ee(e.dynamicChildren,m,n,a,o,c,l),(t.key!=null||a&&t===a.subTree)&&ga(e,t,!0)):M(e,t,n,f,a,o,c,l,u)},te=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ne(t,n,r,i,a,o,c):re(e,t,c)},ne=(e,t,n,r,i,a,o)=>{let s=e.component=$a(e,r,i);if(zr(e)&&(s.ctx.renderer=ve),so(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ie,o),!e.el){let r=s.subTree=U(H);b(null,r,t,n),e.placeholder=r.el}}else ie(s,e,t,n,i,a,o)},re=(e,t,n)=>{let r=t.component=e.component;if(Ui(e,t,n)){if(r.asyncDep&&!r.asyncResolved){ae(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ie=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=va(e);if(n){t&&(t.el=c.el,ae(e,t,o)),n.asyncDep.then(()=>{V(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;ma(e,!1),t?(t.el=c.el,ae(e,t,o)):t=c,n&&ue(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Xa(d,s,t,c),ma(e,!0);let f=Bi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),me(p),e,i,a),t.el=f.el,u===null&&Ki(e,f.el),r&&V(r,i),(d=t.props&&t.props.onVnodeUpdated)&&V(()=>Xa(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Rr(t);if(ma(e,!1),l&&ue(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Xa(o,d,t),ma(e,!0),s&&be){let t=()=>{e.subTree=Bi(e),be(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=Bi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&V(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;V(()=>Xa(o,d,e),i)}(t.shapeFlag&256||d&&Rr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&V(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ie(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Pn(u),ma(e,!0),l()},ae=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Zi(e,t.props,r,n),ua(e,t.children,n),Ze(),Ln(e),Qe()},M=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,d=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:m}=t;if(p>0){if(p&128){se(l,f,n,r,i,a,o,s,c);return}if(p&256){oe(l,f,n,r,i,a,o,s,c);return}}m&8?(d&16&&pe(l,i,a),f!==l&&u(n,f)):d&16?m&16?se(l,f,n,r,i,a,o,s,c):pe(l,i,a,!0):(d&8&&u(n,``),m&16&&D(f,n,r,i,a,o,s,c))},oe=(e,t,n,r,i,a,o,s,c)=>{e||=f,t||=f;let l=e.length,u=t.length,d=Math.min(l,u),p;for(p=0;pu?pe(e,i,a,!0,!1,d):D(t,n,r,i,a,o,s,c,d)},se=(e,t,n,r,i,a,o,s,c)=>{let l=0,u=t.length,d=e.length-1,p=u-1;for(;l<=d&&l<=p;){let r=e[l],u=t[l]=c?qa(t[l]):Ka(t[l]);if(Ia(r,u))v(r,u,n,null,i,a,o,s,c);else break;l++}for(;l<=d&&l<=p;){let r=e[d],l=t[p]=c?qa(t[p]):Ka(t[p]);if(Ia(r,l))v(r,l,n,null,i,a,o,s,c);else break;d--,p--}if(l>d){if(l<=p){let e=p+1,d=ep)for(;l<=d;)ce(e[l],i,a,!0),l++;else{let m=l,h=l,g=new Map;for(l=h;l<=p;l++){let e=t[l]=c?qa(t[l]):Ka(t[l]);e.key!=null&&g.set(e.key,l)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(l=0;l=b){ce(r,i,a,!0);continue}let u;if(r.key!=null)u=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Ia(r,t[_])){u=_;break}u===void 0?ce(r,i,a,!0):(C[u-h]=l+1,u>=S?S=u:x=!0,v(r,t[u],n,null,i,a,o,s,c),y++)}let w=x?_a(C):f;for(_=w.length-1,l=b-1;l>=0;l--){let e=h+l,d=t[e],f=t[e+1],p=e+1{let{el:s,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){N(e.component.subTree,t,n,a);return}if(d&128){e.suspense.move(t,n,a);return}if(d&64){c.move(e,t,n,ve);return}if(c===Ca){r(s,t,n);for(let e=0;el.enter(s),o));else{let{leave:a,delayLeave:o,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?i(s):r(s,t,n)},d=()=>{let e=s._isLeaving||!!s[_r];s._isLeaving&&s[_r](!0),l.persisted&&!e?u():a(s,()=>{u(),c&&c()})};o?o(s,u,d):d()}}else r(s,t,n)},ce=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ze(),Ir(s,null,n,e,!0),Qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Rr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Xa(_,t,e),u&6)fe(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Kn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,ve,r):l&&!l.hasOnce&&(a!==Ca||d>0&&d&64)?pe(l,t,n,!1,!0):(a===Ca&&d&384||!i&&u&16)&&pe(c,t,n),r&&le(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&V(()=>{_&&Xa(_,t,e),h&&Kn(e,null,t,`unmounted`),v&&(e.el=null)},n)},le=e=>{let{type:t,el:n,anchor:r,transition:a}=e;if(t===Ca){de(n,r);return}if(t===Ta){C(e);return}let o=()=>{i(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(e.shapeFlag&1&&a&&!a.persisted){let{leave:t,delayLeave:r}=a,i=()=>t(n,o);r?r(e.el,o,i):i()}else o()},de=(e,t)=>{let n;for(;e!==t;)n=h(e),i(e),e=n;i(t)},fe=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;ya(c),ya(l),r&&ue(r),i.stop(),a&&(a.flags|=8,ce(o,e,t,n)),s&&V(s,t),V(()=>{e.isUnmounted=!0},t)},pe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return me(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[ir];return n?h(n):t},ge=!1,_e=(e,t,n)=>{let r;e==null?t._vnode&&(ce(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ge||=(ge=!0,Ln(r),Rn(),!1)},ve={p:v,um:ce,m:N,r:le,mt:ne,mc:D,pc:M,pbc:ee,n:me,o:e},ye,be;return t&&([ye,be]=t(ve)),{render:_e,hydrate:ye,createApp:Ni(_e,ye)}}function pa({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function ma({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ha(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ga(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function va(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:va(t)}function ya(e){if(e)for(let t=0;te.__isSuspense;function Sa(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):In(e)}var Ca=Symbol.for(`v-fgt`),wa=Symbol.for(`v-txt`),H=Symbol.for(`v-cmt`),Ta=Symbol.for(`v-stc`),Ea=[],Da=null;function Oa(e=!1){Ea.push(Da=e?null:[])}function ka(){Ea.pop(),Da=Ea[Ea.length-1]||null}var Aa=1;function ja(e,t=!1){Aa+=e,e<0&&Da&&t&&(Da.hasOnce=!0)}function Ma(e){return e.dynamicChildren=Aa>0?Da||f:null,ka(),Aa>0&&Da&&Da.push(e),e}function Na(e,t,n,r,i,a){return Ma(za(e,t,n,r,i,a,!0))}function Pa(e,t,n,r,i){return Ma(U(e,t,n,r,i,!0))}function Fa(e){return e?e.__v_isVNode===!0:!1}function Ia(e,t){return e.type===t.type&&e.key===t.key}var La=({key:e})=>e??null,Ra=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:E(e)||R(e)||T(e)?{i:Vn,r:e,k:t,f:!!n}:e);function za(e,t=null,n=null,r=0,i=null,a=e===Ca?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&La(t),ref:t&&Ra(t),scopeId:Hn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Vn};return s?(Ja(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=E(n)?8:16),Aa>0&&!o&&Da&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Da.push(c),c}var U=Ba;function Ba(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ai)&&(e=H),Fa(e)){let r=Ha(e,t,!0);return n&&Ja(r,n),Aa>0&&!a&&Da&&(r.shapeFlag&6?Da[Da.indexOf(e)]=r:Da.push(r)),r.patchFlag=-2,r}if(vo(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:e,style:n}=t;e&&!E(e)&&(t.class=xe(e)),O(n)&&(Xt(n)&&!x(n)&&(n=_({},n)),t.style=ge(n))}let o=E(e)?1:xa(e)?128:ar(e)?64:O(e)?4:T(e)?2:0;return za(e,t,n,r,i,o,a,!0)}function Va(e){return e?Xt(e)||Yi(e)?_({},e):e:null}function Ha(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ya(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&La(l),ref:t&&t.ref?n&&a?x(a)?a.concat(Ra(t)):[a,Ra(t)]:Ra(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ca?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ha(e.ssContent),ssFallback:e.ssFallback&&Ha(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Ar(u,c.clone(u)),u}function Ua(e=` `,t=0){return U(wa,null,e,t)}function Wa(e,t){let n=U(Ta,null,e);return n.staticCount=t,n}function Ga(e=``,t=!1){return t?(Oa(),Pa(H,null,e)):U(H,null,e)}function Ka(e){return e==null||typeof e==`boolean`?U(H):x(e)?U(Ca,null,e.slice()):Fa(e)?qa(e):U(wa,null,String(e))}function qa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ha(e)}function Ja(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(x(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Ja(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Yi(t)?t._ctx=Vn:r===3&&Vn&&(Vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(T(t)){if(r&65){Ja(e,{default:t});return}t={default:t,_ctx:Vn},n=32}else t=String(t),r&64?(n=16,t=[Ua(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ya(...e){let t={};for(let n=0;nW||Vn,to,no;{let e=he(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};to=t(`__VUE_INSTANCE_SETTERS__`,e=>W=e),no=t(`__VUE_SSR_SETTERS__`,e=>oo=e)}var ro=e=>{let t=W;return to(e),e.scope.on(),()=>{e.scope.off(),to(t)}},io=()=>{W&&W.scope.off(),to(null)};function ao(e){return e.vnode.shapeFlag&4}var oo=!1;function so(e,t=!1,n=!1){t&&no(t);let{props:r,children:i}=e.vnode,a=ao(e);Xi(e,r,a,t),la(e,i,n||t);let o=a?co(e,t):void 0;return t&&no(!1),o}function co(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pi);let{setup:r}=n;if(r){Ze();let n=e.setupContext=r.length>1?ho(e):null,i=ro(e),a=Sn(r,e,0,[e.props,n]),o=ee(a);if(Qe(),i(),(o||e.sp)&&!Rr(e)&&Nr(e),o){if(a.then(io,io),t)return a.then(n=>{no(!0);try{lo(e,n,t)}finally{no(!1)}}).catch(t=>{wn(t,e,0)});e.asyncDep=a}else lo(e,a,t)}else po(e,t)}function lo(e,t,n){T(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:O(t)&&(e.setupState=cn(t)),po(e,n)}var uo,fo;function po(e,t,n){let r=e.type;if(!e.render){if(!t&&uo&&!r.render){let t=r.template||Si(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=uo(t,_(_({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||p,fo&&fo(e)}{let t=ro(e);Ze();try{vi(e)}finally{Qe(),t()}}}var mo={get(e,t){return I(e,`get`,``),e[t]}};function ho(e){return{attrs:new Proxy(e.attrs,mo),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function go(e){return e.exposed?e.exposeProxy||=new Proxy(cn(Zt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in di)return di[n](e)},has(e,t){return t in e||t in di}}):e.proxy}function _o(e,t=!0){return T(e)?e.displayName||e.name:e.name||t&&e.__name}function vo(e){return T(e)&&`__vccOpts`in e}var yo=(e,t)=>hn(e,t,oo);function bo(e,t,n){try{ja(-1);let r=arguments.length;return r===2?O(t)&&!x(t)?Fa(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Fa(n)&&(n=[n]),U(e,t,n))}finally{ja(1)}}var xo=`3.5.41`;function G(e,t){Co(e)&&(e=`100%`);var n=wo(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=t===360?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function So(e){return Math.min(1,Math.max(0,e))}function Co(e){return typeof e==`string`&&e.indexOf(`.`)!==-1&&parseFloat(e)===1}function wo(e){return typeof e==`string`&&e.indexOf(`%`)!==-1}function To(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Eo(e){return e<=1?`${Number(e)*100}%`:e}function Do(e){return e.length===1?`0`+e:String(e)}function Oo(e,t,n){return{r:G(e,255)*255,g:G(t,255)*255,b:G(n,255)*255}}function ko(e,t,n){e=G(e,255),t=G(t,255),n=G(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t1&&--n,n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jo(e,t,n){var r,i,a;if(e=G(e,360),t=G(t,100),n=G(n,100),t===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Ao(s,o,e+1/3),i=Ao(s,o,e),a=Ao(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Mo(e,t,n){e=G(e,255),t=G(t,255),n=G(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a=0,o=r,s=r-i,c=r===0?0:s/r;if(r===i)a=0;else{switch(r){case e:a=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Bo={aliceblue:`#f0f8ff`,antiquewhite:`#faebd7`,aqua:`#00ffff`,aquamarine:`#7fffd4`,azure:`#f0ffff`,beige:`#f5f5dc`,bisque:`#ffe4c4`,black:`#000000`,blanchedalmond:`#ffebcd`,blue:`#0000ff`,blueviolet:`#8a2be2`,brown:`#a52a2a`,burlywood:`#deb887`,cadetblue:`#5f9ea0`,chartreuse:`#7fff00`,chocolate:`#d2691e`,coral:`#ff7f50`,cornflowerblue:`#6495ed`,cornsilk:`#fff8dc`,crimson:`#dc143c`,cyan:`#00ffff`,darkblue:`#00008b`,darkcyan:`#008b8b`,darkgoldenrod:`#b8860b`,darkgray:`#a9a9a9`,darkgreen:`#006400`,darkgrey:`#a9a9a9`,darkkhaki:`#bdb76b`,darkmagenta:`#8b008b`,darkolivegreen:`#556b2f`,darkorange:`#ff8c00`,darkorchid:`#9932cc`,darkred:`#8b0000`,darksalmon:`#e9967a`,darkseagreen:`#8fbc8f`,darkslateblue:`#483d8b`,darkslategray:`#2f4f4f`,darkslategrey:`#2f4f4f`,darkturquoise:`#00ced1`,darkviolet:`#9400d3`,deeppink:`#ff1493`,deepskyblue:`#00bfff`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1e90ff`,firebrick:`#b22222`,floralwhite:`#fffaf0`,forestgreen:`#228b22`,fuchsia:`#ff00ff`,gainsboro:`#dcdcdc`,ghostwhite:`#f8f8ff`,goldenrod:`#daa520`,gold:`#ffd700`,gray:`#808080`,green:`#008000`,greenyellow:`#adff2f`,grey:`#808080`,honeydew:`#f0fff0`,hotpink:`#ff69b4`,indianred:`#cd5c5c`,indigo:`#4b0082`,ivory:`#fffff0`,khaki:`#f0e68c`,lavenderblush:`#fff0f5`,lavender:`#e6e6fa`,lawngreen:`#7cfc00`,lemonchiffon:`#fffacd`,lightblue:`#add8e6`,lightcoral:`#f08080`,lightcyan:`#e0ffff`,lightgoldenrodyellow:`#fafad2`,lightgray:`#d3d3d3`,lightgreen:`#90ee90`,lightgrey:`#d3d3d3`,lightpink:`#ffb6c1`,lightsalmon:`#ffa07a`,lightseagreen:`#20b2aa`,lightskyblue:`#87cefa`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#b0c4de`,lightyellow:`#ffffe0`,lime:`#00ff00`,limegreen:`#32cd32`,linen:`#faf0e6`,magenta:`#ff00ff`,maroon:`#800000`,mediumaquamarine:`#66cdaa`,mediumblue:`#0000cd`,mediumorchid:`#ba55d3`,mediumpurple:`#9370db`,mediumseagreen:`#3cb371`,mediumslateblue:`#7b68ee`,mediumspringgreen:`#00fa9a`,mediumturquoise:`#48d1cc`,mediumvioletred:`#c71585`,midnightblue:`#191970`,mintcream:`#f5fffa`,mistyrose:`#ffe4e1`,moccasin:`#ffe4b5`,navajowhite:`#ffdead`,navy:`#000080`,oldlace:`#fdf5e6`,olive:`#808000`,olivedrab:`#6b8e23`,orange:`#ffa500`,orangered:`#ff4500`,orchid:`#da70d6`,palegoldenrod:`#eee8aa`,palegreen:`#98fb98`,paleturquoise:`#afeeee`,palevioletred:`#db7093`,papayawhip:`#ffefd5`,peachpuff:`#ffdab9`,peru:`#cd853f`,pink:`#ffc0cb`,plum:`#dda0dd`,powderblue:`#b0e0e6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#ff0000`,rosybrown:`#bc8f8f`,royalblue:`#4169e1`,saddlebrown:`#8b4513`,salmon:`#fa8072`,sandybrown:`#f4a460`,seagreen:`#2e8b57`,seashell:`#fff5ee`,sienna:`#a0522d`,silver:`#c0c0c0`,skyblue:`#87ceeb`,slateblue:`#6a5acd`,slategray:`#708090`,slategrey:`#708090`,snow:`#fffafa`,springgreen:`#00ff7f`,steelblue:`#4682b4`,tan:`#d2b48c`,teal:`#008080`,thistle:`#d8bfd8`,tomato:`#ff6347`,turquoise:`#40e0d0`,violet:`#ee82ee`,wheat:`#f5deb3`,white:`#ffffff`,whitesmoke:`#f5f5f5`,yellow:`#ffff00`,yellowgreen:`#9acd32`};function Vo(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof e==`string`&&(e=Ko(e)),typeof e==`object`&&(qo(e.r)&&qo(e.g)&&qo(e.b)?(t=Oo(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):qo(e.h)&&qo(e.s)&&qo(e.v)?(r=Eo(e.s),i=Eo(e.v),t=No(e.h,r,i),o=!0,s=`hsv`):qo(e.h)&&qo(e.s)&&qo(e.l)&&(r=Eo(e.s),a=Eo(e.l),t=jo(e.h,r,a),o=!0,s=`hsl`),Object.prototype.hasOwnProperty.call(e,`a`)&&(n=e.a)),n=To(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Ho=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`,Uo=`[\\s|\\(]+(${Ho})[,|\\s]+(${Ho})[,|\\s]+(${Ho})\\s*\\)?`,Wo=`[\\s|\\(]+(${Ho})[,|\\s]+(${Ho})[,|\\s]+(${Ho})[,|\\s]+(${Ho})\\s*\\)?`,Go={CSS_UNIT:new RegExp(Ho),rgb:RegExp(`rgb`+Uo),rgba:RegExp(`rgba`+Wo),hsl:RegExp(`hsl`+Uo),hsla:RegExp(`hsla`+Wo),hsv:RegExp(`hsv`+Uo),hsva:RegExp(`hsva`+Wo),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ko(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Bo[e])e=Bo[e],t=!0;else if(e===`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var n=Go.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Go.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Go.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Go.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Go.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Go.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Go.hex8.exec(e),n?{r:Ro(n[1]),g:Ro(n[2]),b:Ro(n[3]),a:Lo(n[4]),format:t?`name`:`hex8`}:(n=Go.hex6.exec(e),n?{r:Ro(n[1]),g:Ro(n[2]),b:Ro(n[3]),format:t?`name`:`hex`}:(n=Go.hex4.exec(e),n?{r:Ro(n[1]+n[1]),g:Ro(n[2]+n[2]),b:Ro(n[3]+n[3]),a:Lo(n[4]+n[4]),format:t?`name`:`hex8`}:(n=Go.hex3.exec(e),n?{r:Ro(n[1]+n[1]),g:Ro(n[2]+n[2]),b:Ro(n[3]+n[3]),format:t?`name`:`hex`}:!1)))))))))}function qo(e){return!!Go.CSS_UNIT.exec(String(e))}var Jo=2,Yo=.16,Xo=.05,Zo=.05,Qo=.15,$o=5,es=4,ts=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function ns(e){var t=e.r,n=e.g,r=e.b,i=Mo(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function rs(e){var t=e.r,n=e.g,r=e.b;return`#${Po(t,n,r,!1)}`}function is(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function as(e,t,n){var r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Jo*t:Math.round(e.h)+Jo*t:n?Math.round(e.h)+Jo*t:Math.round(e.h)-Jo*t;return r<0?r+=360:r>=360&&(r-=360),r}function os(e,t,n){if(e.h===0&&e.s===0)return e.s;var r=n?e.s-Yo*t:t===es?e.s+Yo:e.s+Xo*t;return r>1&&(r=1),n&&t===$o&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ss(e,t,n){var r=n?e.v+Zo*t:e.v-Qo*t;return r>1&&(r=1),Number(r.toFixed(2))}function cs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Vo(e),i=$o;i>0;--i){var a=ns(r),o=rs(Vo({h:as(a,i,!0),s:os(a,i,!0),v:ss(a,i,!0)}));n.push(o)}n.push(rs(r));for(var s=1;s<=es;s+=1){var c=ns(r),l=rs(Vo({h:as(c,s),s:os(c,s),v:ss(c,s)}));n.push(l)}return t.theme===`dark`?ts.map(function(e){var r=e.index,i=e.opacity;return rs(is(Vo(t.backgroundColor||`#141414`),Vo(n[r]),i*100))}):n}var ls={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1890FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},K={},us={};Object.keys(ls).forEach(function(e){K[e]=cs(ls[e]),K[e].primary=K[e][5],us[e]=cs(ls[e],{theme:`dark`,backgroundColor:`#141414`}),us[e].primary=us[e][5]}),K.red,K.volcano;var ds=K.gold;K.orange,K.yellow,K.lime,K.green,K.cyan;var fs=K.blue;K.geekblue,K.purple,K.magenta,K.grey;var ps=Symbol(`iconContext`),ms=function(){return Jn(ps,{prefixCls:en(`anticon`),rootClassName:en(``),csp:en()})};function hs(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function gs(e,t){return e&&e.contains?e.contains(t):!1}var _s=`data-vc-order`,vs=`vc-icon-key`,ys=new Map;function bs(){var e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mark;return e?e.startsWith(`data-`)?e:`data-${e}`:vs}function xs(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Ss(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function Cs(e){return Array.from((ys.get(e)||e).children).filter(function(e){return e.tagName===`STYLE`})}function ws(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hs())return null;var n=t.csp,r=t.prepend,i=document.createElement(`style`);i.setAttribute(_s,Ss(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=e;var a=xs(t),o=a.firstChild;if(r){if(r===`queue`){var s=Cs(a).filter(function(e){return[`prepend`,`prependQueue`].includes(e.getAttribute(_s))});if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function Ts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Cs(xs(t)).find(function(n){return n.getAttribute(bs(t))===e})}function Es(e,t){var n=ys.get(e);if(!n||!gs(document,n)){var r=ws(``,t),i=r.parentNode;ys.set(e,i),e.removeChild(r)}}function Ds(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Es(xs(n),n);var r=Ts(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var i=ws(e,n);return i.setAttribute(bs(n),t),i}function Os(e){for(var t=1;t * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`;function Is(e){return e&&e.getRootNode&&e.getRootNode()}function Ls(e){return hs()?Is(e)instanceof ShadowRoot:!1}function Rs(e){return Ls(e)?Is(e):null}var zs=function(){var e=ms(),t=e.prefixCls,n=e.csp,r=eo(),i=Fs;t&&(i=i.replace(/anticon/g,t.value)),Mn(function(){if(hs()){var e=r.vnode.el,t=Rs(e);Ds(i,`@ant-design-vue-icons`,{prepend:!0,csp:n.value,attachTo:t})}})},Bs=[`icon`,`primaryColor`,`secondaryColor`];function Vs(e,t){if(e==null)return{};var n=Hs(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hs(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Us(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}tc(fs.primary);var hc=function(e,t){var n,r=dc({},e,t.attrs),i=r.class,a=r.icon,o=r.spin,s=r.rotate,c=r.tabindex,l=r.twoToneColor,u=r.onClick,d=pc(r,ic),f=ms(),p=f.prefixCls,m=f.rootClassName,h=(n={},fc(n,m.value,!!m.value),fc(n,p.value,!0),fc(n,`${p.value}-${a.name}`,!!a.name),fc(n,`${p.value}-spin`,!!o||a.name===`loading`),n),g=c;g===void 0&&u&&(g=-1);var _=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,v=ac(Ps(l),2),y=v[0],b=v[1];return U(`span`,dc({role:`img`,"aria-label":a.name},d,{onClick:u,class:[h,i],tabindex:g}),[U(Js,{icon:a,primaryColor:y,secondaryColor:b,style:_},null),U(rc,null,null)])};hc.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},hc.displayName=`AntdIcon`,hc.inheritAttrs=!1,hc.getTwoToneColor=nc,hc.setTwoToneColor=tc;var gc={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z`}},{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}}]},name:`check-circle`,theme:`outlined`};function _c(e){for(var t=1;t{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function xc(e,t){return function(){return e.apply(t,arguments)}}var{toString:Sc}=Object.prototype,{getPrototypeOf:Cc}=Object,{iterator:wc,toStringTag:Tc}=Symbol,Ec=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Dc=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Ec(n,t))return!0;n=Cc(n)}return!1},Oc=(e,t)=>e!=null&&Dc(e,t)?e[t]:void 0,kc=(e=>t=>{let n=Sc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ac=e=>(e=e.toLowerCase(),t=>kc(t)===e),jc=e=>t=>typeof t===e,{isArray:Mc}=Array,Nc=jc(`undefined`);function Pc(e){return e!==null&&!Nc(e)&&e.constructor!==null&&!Nc(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Fc=Ac(`ArrayBuffer`);function Ic(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Fc(e.buffer),t}var Lc=jc(`string`),q=jc(`function`),Rc=jc(`number`),zc=e=>typeof e==`object`&&!!e,Bc=e=>e===!0||e===!1,Vc=e=>{if(!zc(e))return!1;let t=Cc(e);return(t===null||t===Object.prototype||Cc(t)===null)&&!Dc(e,Tc)&&!Dc(e,wc)},Hc=e=>{if(!zc(e)||Pc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Uc=Ac(`Date`),Wc=Ac(`File`),Gc=e=>!!(e&&e.uri!==void 0),Kc=e=>e&&e.getParts!==void 0,qc=Ac(`Blob`),Jc=Ac(`FileList`),Yc=Ac(`Set`),Xc=e=>zc(e)&&q(e.pipe);function Zc(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Qc=Zc(),$c=Qc.FormData===void 0?void 0:Qc.FormData,el=e=>{if(!e)return!1;if($c&&e instanceof $c)return!0;let t=Cc(e);if(!t||t===Object.prototype||!q(e.append))return!1;let n=kc(e);return n===`formdata`||n===`object`&&q(e.toString)&&e.toString()===`[object FormData]`},tl=Ac(`URLSearchParams`),[nl,rl,il,al]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Ac),ol=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function sl(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Mc(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var ll=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ul=e=>!Nc(e)&&e!==ll;function dl(...e){let{caseless:t,skipUndefined:n}=ul(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&cl(r,i)||i,o=Ec(r,a)?r[a]:void 0;Vc(o)&&Vc(e)?r[a]=dl(o,e):Vc(e)?r[a]=dl({},e):Mc(e)?r[a]=e.slice():(!n||!Nc(e))&&(r[a]=e)};for(let t=0,n=e.length;t(sl(t,(t,r)=>{n&&q(t)?Object.defineProperty(e,r,{__proto__:null,value:xc(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pl=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ml=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},hl=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Cc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gl=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},_l=e=>{if(!e)return null;if(Mc(e))return e;let t=e.length;if(!Rc(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},vl=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Cc(Uint8Array)),yl=(e,t)=>{let n=(e&&e[wc]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},bl=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xl=Ac(`HTMLFormElement`),Sl=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Cl}=Object.prototype,wl=Ac(`RegExp`),Tl=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};sl(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},El=e=>{Tl(e,(t,n)=>{if(q(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(q(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Dl=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Mc(e)?r(e):r(String(e).split(t)),n},Ol=()=>{},kl=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Al(e){return!!(e&&q(e.append)&&e[Tc]===`FormData`&&e[wc])}var jl=e=>{let t=new WeakSet,n=e=>{if(zc(e)){if(t.has(e))return;if(Pc(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(Yc(e)){r=[];for(let t of e){let e=n(t);!Nc(e)&&r.push(e)}}else r=Mc(e)?[]:{},sl(e,(e,t)=>{let i=n(e);!Nc(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Ml=Ac(`AsyncFunction`),Nl=e=>e&&(zc(e)||q(e))&&q(e.then)&&q(e.catch),Pl=((e,t)=>e?setImmediate:t?((e,t)=>(ll.addEventListener(`message`,({source:n,data:r})=>{n===ll&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),ll.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,q(ll.postMessage)),Fl=typeof queueMicrotask<`u`?queueMicrotask.bind(ll):typeof process<`u`&&process.nextTick||Pl,Il=e=>e!=null&&q(e[wc]),J={isArray:Mc,isArrayBuffer:Fc,isBuffer:Pc,isFormData:el,isArrayBufferView:Ic,isString:Lc,isNumber:Rc,isBoolean:Bc,isObject:zc,isPlainObject:Vc,isEmptyObject:Hc,isReadableStream:nl,isRequest:rl,isResponse:il,isHeaders:al,isUndefined:Nc,isDate:Uc,isFile:Wc,isReactNativeBlob:Gc,isReactNative:Kc,isBlob:qc,isRegExp:wl,isFunction:q,isStream:Xc,isURLSearchParams:tl,isTypedArray:vl,isFileList:Jc,forEach:sl,merge:dl,extend:fl,trim:ol,stripBOM:pl,inherits:ml,toFlatObject:hl,kindOf:kc,kindOfTest:Ac,endsWith:gl,toArray:_l,forEachEntry:yl,matchAll:bl,isHTMLForm:xl,hasOwnProperty:Ec,hasOwnProp:Ec,hasOwnInPrototypeChain:Dc,getSafeProp:Oc,reduceDescriptors:Tl,freezeMethods:El,toObjectSet:Dl,toCamelCase:Sl,noop:Ol,toFiniteNumber:kl,findKey:cl,global:ll,isContextDefined:ul,isSpecCompliantForm:Al,toJSONObject:jl,isAsyncFn:Ml,isThenable:Nl,setImmediate:Pl,asap:Fl,isIterable:Il,isSafeIterable:e=>e!=null&&Dc(e,wc)&&Il(e)},Ll=J.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Rl=e=>{let t={},n,r,i;return e&&e.split(` +`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=J.hasOwnProp(t,n);!n||a&&J.hasOwnProp(Ll,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function zl(e){let t=0,n=e.length;for(;tt;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Bl=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Vl=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Hl(e,t){return J.isArray(e)?e.map(e=>Hl(e,t)):zl(String(e).replace(t,``))}var Ul=e=>Hl(e,Bl),Wl=e=>Hl(e,Vl);function Gl(e){let t=Object.create(null);return J.forEach(e.toJSON(),(e,n)=>{t[n]=Wl(e)}),t}var Kl=Symbol(`internals`);function ql(e){return e&&String(e).trim().toLowerCase()}function Jl(e){return e===!1||e==null?e:J.isArray(e)?e.map(Jl):Ul(String(e))}function Yl(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Xl=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Zl(e){let t=0,n=e.length;for(;tt;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function Ql(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r=t))return e;n+=e[r]}return n}function $l(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=Zl(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=Zl(i.slice(0,a));if(!Xl.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=Zl(i.slice(a+1));t[s]=Ql(c)}for(let e=0;e/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tu(e,t,n,r,i){if(J.isFunction(r))return r.call(this,t,n);if(i&&(t=n),J.isString(t)){if(J.isString(r))return t.indexOf(r)!==-1;if(J.isRegExp(r))return r.test(t)}}function nu(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ru(e,t){let n=J.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var Y=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=ql(t);if(!i)return;let a=J.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Jl(e))}let a=(e,t)=>J.forEach(e,(e,n)=>i(e,n,t));if(J.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(J.isString(e)&&(e=e.trim())&&!eu(e))a(Rl(e),t);else if(J.isObject(e)&&J.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!J.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],J.hasOwnProp(n,i)?(r=n[i],n[i]=J.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=ql(e),e){let n=J.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Yl(e);if(J.isFunction(t))return t.call(this,e,n);if(J.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=ql(e),e){let n=J.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||tu(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=ql(e),e){let i=J.findKey(n,e);i&&(!t||tu(n,n[i],i,t))&&(delete n[i],r=!0)}}return J.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||tu(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return J.forEach(this,(r,i)=>{let a=J.findKey(n,i);if(a){t[a]=Jl(r),delete t[i];return}let o=e?nu(i):String(i).trim();o!==i&&delete t[i],t[o]=Jl(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return J.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&J.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(` +`)}getSetCookie(){let e=this.get(`set-cookie`);return J.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return $l(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Kl]=this[Kl]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=ql(e);t[r]||(ru(n,e),t[r]=!0)}return J.isArray(e)?e.forEach(r):r(e),this}};Y.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),J.reduceDescriptors(Y.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),J.freezeMethods(Y);var iu=`[REDACTED ****]`;function au(e){if(J.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(J.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ou(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||J.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof Y&&(e=e.toJSON()),r.push(e);let t;if(J.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);J.isUndefined(r)||(t[n]=r)});else{if(!J.isPlainObject(e)&&au(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?iu:i(a);J.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function su(e){try{return String(e)}catch{return``}}function cu(e){return e.errors.map(e=>{try{return e&&e.message?su(e.message):su(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var X=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&J.isArray(t.errors)&&t.errors.length&&(s=cu(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&J.hasOwnProp(e,`redact`)?e.redact:void 0,n=J.isArray(t)&&t.length>0?ou(e,t):J.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};X.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,X.ERR_BAD_OPTION=`ERR_BAD_OPTION`,X.ECONNABORTED=`ECONNABORTED`,X.ETIMEDOUT=`ETIMEDOUT`,X.ECONNREFUSED=`ECONNREFUSED`,X.ERR_NETWORK=`ERR_NETWORK`,X.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,X.ERR_DEPRECATED=`ERR_DEPRECATED`,X.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,X.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,X.ERR_CANCELED=`ERR_CANCELED`,X.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,X.ERR_INVALID_URL=`ERR_INVALID_URL`,X.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function lu(e){return J.isPlainObject(e)||J.isArray(e)}function uu(e){return J.endsWith(e,`[]`)?e.slice(0,-2):e}function du(e,t,n){return e?e.concat(t).map(function(e,t){return e=uu(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function fu(e){return J.isArray(e)&&!e.some(lu)}var pu=J.toFlatObject(J,{},null,function(e){return/^is[A-Z]/.test(e)});function mu(e,t,n){if(!J.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!J.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&J.isSpecCompliantForm(t),u=[];if(!J.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(J.isDate(e))return e.toISOString();if(J.isBoolean(e))return e.toString();if(!l&&J.isBlob(e))throw new X(`Blob is not supported. Use a Buffer instead.`);if(J.isArrayBuffer(e)||J.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);throw new X(`Blob is not supported. Use a Buffer instead.`,X.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new X(`Object is too deeply nested (`+e+` levels). Max depth: `+c,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!J.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(J.isReactNative(t)&&J.isReactNativeBlob(e))return t.append(du(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(J.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(J.isArray(e)&&fu(e)||(J.isFileList(e)||J.endsWith(n,`[]`))&&(s=J.toArray(e)))return n=uu(n),s.forEach(function(e,r){!(J.isUndefined(e)||e===null)&&t.append(o===!0?du([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return lu(e)?!0:(t.append(du(i,n,a),d(e)),!1)}let h=Object.assign(pu,{defaultVisitor:m,convertValue:d,isVisitable:lu});function g(e,n,r=0){if(!J.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),J.forEach(e,function(e,a){(!(J.isUndefined(e)||e===null)&&i.call(t,e,J.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!J.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function hu(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function gu(e,t){this._pairs=[],e&&mu(e,this,t)}var _u=gu.prototype;_u.append=function(e,t){this._pairs.push([e,t])},_u.toString=function(e){let t=e?t=>e.call(this,t,hu):hu;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function vu(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function yu(e,t,n){if(!t)return e;e||=``;let r=J.isFunction(n)?{serialize:n}:n,i=J.getSafeProp(r,`encode`)||vu,a=J.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):J.isURLSearchParams(t)?t.toString():new gu(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var bu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){J.forEach(this.handlers,function(t){t!==null&&e(t)})}},xu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Su={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:gu,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Cu=s({hasBrowserEnv:()=>wu,hasStandardBrowserEnv:()=>Eu,hasStandardBrowserWebWorkerEnv:()=>Du,navigator:()=>Tu,origin:()=>Ou}),wu=typeof window<`u`&&typeof document<`u`,Tu=typeof navigator==`object`&&navigator||void 0,Eu=wu&&(!Tu||[`ReactNative`,`NativeScript`,`NS`].indexOf(Tu.product)<0),Du=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Ou=wu&&window.location.href||`http://localhost`,Z={...Cu,...Su};function ku(e,t){return mu(e,new Z.classes.URLSearchParams,{visitor:function(e,t,n,r){return Z.isNode&&J.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Au=100;function ju(e){if(e>Au)throw new X(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Au,X.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Mu(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)ju(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Nu(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r=e.length;return a=!a&&J.isArray(r)?r.length:a,s?(J.hasOwnProp(r,a)?r[a]=J.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!J.hasOwnProp(r,a)||!J.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&J.isArray(r[a])&&(r[a]=Nu(r[a])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){let n={};return J.forEachEntry(e,(e,r)=>{t(Mu(e),r,n,0)}),n}return null}var Fu=(e,t)=>e!=null&&J.hasOwnProp(e,t)?e[t]:void 0;function Iu(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Lu={transitional:xu,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=J.isObject(e);if(i&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return r?JSON.stringify(Pu(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Fu(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ku(e,t).toString();if((a=J.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Fu(this,`env`),r=n&&n.FormData;return mu(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Iu(e)):e}],transformResponse:[function(e){let t=Fu(this,`transitional`)||Lu.transitional,n=t&&t.forcedJSONParsing,r=Fu(this,`responseType`),i=r===`json`;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Fu(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?X.from(e,X.ERR_BAD_RESPONSE,this,null,Fu(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z.classes.FormData,Blob:Z.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Lu.headers[e]={}});function Ru(e,t){let n=this||Lu,r=t||n,i=Y.from(r.headers),a=r.data;return J.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function zu(e){return!!(e&&e.__CANCEL__)}var Bu=class extends X{constructor(e,t,n){super(e??`canceled`,X.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Vu(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new X(`Request failed with status code `+n.status,n.status>=400&&n.status<500?X.ERR_BAD_REQUEST:X.ERR_BAD_RESPONSE,n.config,n.request,n))}function Hu(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Uu(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Gu=(e,t,n=3)=>{let r=0,i=Uu(50,250);return Wu(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ku=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qu=(e,t=J.asap)=>(...n)=>t(()=>e(...n)),Ju=Z.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Z.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Z.origin),Z.navigator&&/(msie|trident)/i.test(Z.navigator.userAgent)):()=>!0,Yu=Z.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];J.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),J.isString(r)&&s.push(`path=${r}`),J.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),J.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var Qu=/^https?:(?!\/\/)/i,$u=/[\t\n\r]/g;function ed(e){let t=0;for(;t`${t}${n}${iu}`)}function rd(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${iu}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${iu}`);return n===-1?r:`${r}#${nd(t.slice(n+1))}`}function id(e,t){if(typeof e==`string`){let n=td(e);if(Qu.test(n))throw new X(`Invalid URL ${JSON.stringify(rd(n))}: missing "//" after protocol`,X.ERR_INVALID_URL,t)}}function ad(e,t,n,r){id(t,r);let i=!Xu(t);return e&&(i||n===!1)?(id(e,r),Zu(e,t)):t}var od=e=>e instanceof Y?{...e}:e,sd=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function cd(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function i(e,t,n,i){if(!J.isUndefined(t))return r(e,t,n,i);if(!J.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!J.isUndefined(t))return r(void 0,t)}function o(e,t){if(!J.isUndefined(t))return r(void 0,t);if(!J.isUndefined(e))return r(void 0,e)}function s(n){let r=J.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!J.isUndefined(r)){if(J.isPlainObject(r)){if(J.hasOwnProp(r,n))return r[n]}else return}let i=J.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(J.isPlainObject(i)&&J.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(J.hasOwnProp(t,a))return r(n,i);if(J.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(od(e),od(t),n,!0)};return J.forEach(sd({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=J.hasOwnProp(l,r)?l[r]:i,o=a(J.hasOwnProp(e,r)?e[r]:void 0,J.hasOwnProp(t,r)?t[r]:void 0,r);J.isUndefined(o)&&a!==c||(n[r]=o)}),J.hasOwnProp(t,`validateStatus`)&&J.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(J.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var ld=[`content-type`,`content-length`];function ud(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{ld.includes(t.toLowerCase())&&e.set(t,n)})}var dd=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function fd(e){let t=cd({},e),n=e=>J.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=Y.from(s),t.url=yu(ad(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=J.getSafeProp(c,`username`)||``,n=J.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?dd(n):``)))}catch(t){throw X.from(t,X.ERR_BAD_OPTION_VALUE,e)}}if(J.isFormData(r)&&(Z.hasStandardBrowserEnv||Z.hasStandardBrowserWebWorkerEnv||J.isReactNative(r)?s.setContentType(void 0):J.isFunction(r.getHeaders)&&ud(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Z.hasStandardBrowserEnv&&(J.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ju(t.url))){let e=a&&o&&Yu.read(o);e&&s.set(a,e)}return t}var pd=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=fd(e),i=r.data,a=Y.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=Y.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Vu(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new X(`Request aborted`,X.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new X(t&&t.message?t.message:`Network Error`,X.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||xu;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new X(t,i.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&J.forEach(Gl(a),function(e,t){h.setRequestHeader(t,e)}),J.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Gu(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Gu(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Bu(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Hu(r.url);if(_&&!Z.protocols.includes(_)){n(new X(`Unsupported protocol `+_+`:`,X.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},md=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof X?t:new Bu(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new X(`timeout of ${t}ms exceeded`,X.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>J.asap(o),s},hd=function*(e,t){let n=e.byteLength;if(!t||n{let i=gd(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},yd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,bd=(e,t,n)=>t+2e<=57?e-48:(e&223)-55,Sd=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Cd=e=>e===9||e===10||e===12||e===13||e===32,wd=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Td=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Ed=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Td(e):wd(n)},Dd=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e=55296&&n<=56319&&e+1=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Od(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Dd(t===-1?e:e.slice(0,t),Ed)}var kd=`1.19.0`,Ad=65536,{isFunction:jd}=J,Md=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Nd=e=>{if(!J.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Pd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fd=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Id=e=>{let t=J.global!==void 0&&J.global!==null?J.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=J.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?jd(i):typeof fetch==`function`,c=jd(a),l=jd(o);if(!s)return!1;let u=s&&jd(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Pd(()=>{let e=!1,t=new a(Z.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Pd(()=>J.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new X(`Response type '${e}' is not supported`,X.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new a(Z.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e+=``),J.isString(e))return(await d(e)).byteLength},g=async(e,t)=>J.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=fd(e),E=J.isNumber(w)&&w>-1,D=J.isNumber(T)&&T>-1,O=t=>J.hasOwnProp(e,t)?e[t]:void 0,ee=i||fetch;b=b?(b+``).toLowerCase():`text`;let k=md([l,d&&d.toAbortSignal()],_),A=null,te=k&&k.unsubscribe&&(()=>{k.unsubscribe()}),ne,re=null,j=()=>new X(`Request body larger than maxBodyLength limit`,X.ERR_BAD_REQUEST,e,A);try{let i,l=O(`auth`);if(l&&(i={username:J.getSafeProp(l,`username`)||``,password:J.getSafeProp(l,`password`)||``}),Fd(t)){let e=new URL(t,Z.origin);!i&&(e.username||e.password)&&(i={username:Nd(e.username),password:Nd(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Md((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&Od(t)>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,A);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ne=e,e>T))throw j()}let d=D&&(J.isReadableStream(s)||J.isStream(s)),_=(e,t,n)=>vd(e,Ad,e=>{if(D&&e>T)throw re=j();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ne??=await g(x,s),ne!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(J.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&Ku(ne,Gu(qu(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new X(`Stream request bodies are not supported by the current fetch implementation`,X.ERR_NOT_SUPPORT,e,A);J.isString(S)||(S=S?`include`:`omit`);let ie=c&&`credentials`in a.prototype;if(J.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+kd,!1);let ae={...C,signal:k,method:n.toUpperCase(),headers:Gl(x.normalize()),body:s,duplex:`half`,credentials:ie?S:void 0};A=c&&new a(t,ae);let M=await(c?ee(A,C):ee(t,ae)),oe=Y.from(M.headers);if(E){let t=J.toFiniteNumber(oe.getContentLength());if(t!=null&&t>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,A)}let se=p&&(b===`stream`||b===`response`);if(p&&M.body&&(v||E||se&&te)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=M[e]});let n=J.toFiniteNumber(oe.getContentLength()),[r,i]=v&&Ku(n,Gu(qu(v),!0))||[],a=0;M=new o(vd(M.body,Ad,t=>{if(E&&(a=t,a>w))throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,A);r&&r(t)},()=>{i&&i(),te&&te()}),t)}b||=`text`;let N=await m[J.findKey(m,b)||`text`](M,e);if(E&&!p&&!se){let t;if(N!=null&&(typeof N.byteLength==`number`?t=N.byteLength:typeof N.size==`number`?t=N.size:typeof N==`string`&&(t=typeof r==`function`?new r().encode(N).byteLength:N.length)),typeof t==`number`&&t>w)throw new X(`maxContentLength size of `+w+` exceeded`,X.ERR_BAD_RESPONSE,e,A)}return!se&&te&&te(),await new Promise((t,n)=>{Vu(t,n,{data:N,headers:Y.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:A})})}catch(t){if(te&&te(),k&&k.aborted&&k.reason instanceof X){let n=k.reason;throw n.config=e,A&&(n.request=A),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(re)throw A&&!re.request&&(re.request=A),re;if(t instanceof X)throw A&&!t.request&&(t.request=A),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new X(`Network Error`,X.ERR_NETWORK,e,A,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw X.from(t,t&&t.code,e,A,t&&t.response)}}},Ld=new Map,Rd=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Ld;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Id(t)),l=c;return c};Rd();var zd={http:null,xhr:pd,fetch:{get:Rd}};J.forEach(zd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Bd=e=>`- ${e}`,Vd=e=>J.isFunction(e)||e===null||e===!1;function Hd(e,t){e=J.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new X(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since : +`+e.map(Bd).join(` +`):` `+Bd(e[0]):`as no adapter specified`),X.ERR_NOT_SUPPORT)}return i}var Ud={getAdapter:Hd,adapters:zd};function Wd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bu(null,e)}function Gd(e){return Wd(e),e.headers=Y.from(e.headers),e.data=Ru.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Ud.getAdapter(e.adapter||Lu.adapter,e)(e).then(function(t){Wd(e),e.response=t;try{t.data=Ru.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Y.from(t.headers),t},function(t){if(!zu(t)&&(Wd(e),t&&t.response)){e.response=t.response;try{t.response.data=Ru.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Y.from(t.response.headers)}return Promise.reject(t)})}var Kd={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Kd[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var qd={};Kd.transitional=function(e,t,n){function r(e,t){return`[Axios v`+kd+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new X(r(i,` has been removed`+(t?` in `+t:``)),X.ERR_DEPRECATED);return t&&!qd[i]&&(qd[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},Kd.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Jd(e,t,n){if(typeof e!=`object`||!e)throw new X(`options must be an object`,X.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new X(`option `+a+` must be `+n,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X(`Unknown option `+a,X.ERR_BAD_OPTION)}}var Yd={assertOptions:Jd,validators:Kd},Q=Yd.validators,Xd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new bu,response:new bu}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(` +`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(` +`),r=t===-1?-1:n.indexOf(` +`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=` +`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=cd(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Yd.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean),legacyInterceptorReqResOrdering:Q.transitional(Q.boolean),advertiseZstdAcceptEncoding:Q.transitional(Q.boolean),validateStatusUndefinedResolves:Q.transitional(Q.boolean)},!1),r!=null&&(J.isFunction(r)?t.paramsSerializer={serialize:r}:Yd.assertOptions(r,{encode:Q.function,serialize:Q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Yd.assertOptions(t,{baseUrl:Q.spelling(`baseURL`),withXsrfToken:Q.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&J.merge(i.common,i[t.method]);i&&J.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=Y.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||xu;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Gd.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);uGd.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Gd.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Bu(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Qd(e){return function(t){return e.apply(null,t)}}function $d(e){return J.isObject(e)&&e.isAxiosError===!0}var ef={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ef).forEach(([e,t])=>{ef[t]=e});function tf(e){let t=new Xd(e),n=xc(Xd.prototype.request,t);return J.extend(n,Xd.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return tf(cd(e,t))},n}var $=tf(Lu);$.Axios=Xd,$.CanceledError=Bu,$.CancelToken=Zd,$.isCancel=zu,$.VERSION=kd,$.toFormData=mu,$.AxiosError=X,$.Cancel=$.CanceledError,$.all=function(e){return Promise.all(e)},$.spread=Qd,$.isAxiosError=$d,$.mergeConfig=cd,$.AxiosHeaders=Y,$.formToJSON=e=>Pu(J.isHTMLForm(e)?new FormData(e):e),$.getAdapter=Ud.getAdapter,$.HttpStatusCode=ef,$.default=$;var nf=$.create({baseURL:`/api/v1`,timeout:15e3});nf.interceptors.request.use(e=>{let t=localStorage.getItem(`access_token`);return t&&(e.headers.Authorization=`Bearer ${t}`),e}),nf.interceptors.response.use(e=>e,e=>(e.response?.status===401&&!e.config?.url?.includes(`/auth/login`)&&(localStorage.removeItem(`access_token`),localStorage.removeItem(`refresh_token`),window.location.pathname!==`/login`&&(window.location.href=`/login`)),Promise.reject(e)));var rf={async get(e,t){return(await nf.get(e,t)).data.data},async post(e,t){return(await nf.post(e,t)).data.data},async put(e,t){return(await nf.put(e,t)).data.data},async delete(e){return(await nf.delete(e)).data.data}};function af(e){return e?.response?.data?.message||e?.message||`操作失败,请稍后重试`}export{qn as $,Ga as A,we as At,Yn as B,Oe as Bt,mr as C,ln as Ct,yo as D,N as Dt,Ha as E,M as Et,U as F,h as Ft,Kr as G,Fa as H,o as Ht,Mr as I,Ce as It,Vr as J,Xr as K,eo as L,E as Lt,da as M,T as Mt,Wa as N,g as Nt,za as O,_ as Ot,Ua as P,O as Pt,Oa as Q,jr as R,D as Rt,Ca as S,fn as St,Cn as T,on as Tt,Mn as U,s as Ut,Jn as V,pe as Vt,Br as W,l as Wt,Zr as X,qr as Y,Yr as Z,To as _,Ut as _t,hc as a,mi as at,xr as b,tn as bt,ls as c,Qn as ct,zo as d,Me as dt,li as et,Po as f,Ne as ft,G as g,Pe as gt,Fo as h,Zt as ht,yc as i,Ar as it,Na as j,x as jt,Pa as k,se as kt,Vo as l,Wn as lt,Mo as m,R as mt,af as n,oi as nt,cs as o,yr as ot,ko as p,qt as pt,Jr as q,bc as r,Dr as rt,ds as s,$n as st,rf as t,ii as tt,Bo as u,Gn as ut,So as v,en as vt,wa as w,an as wt,H as x,L as xt,Tr as y,Wt as yt,bo as z,xe as zt}; \ No newline at end of file diff --git a/codes/web/dist/assets/config-provider-kwhtQ-D4.js b/codes/web/dist/assets/config-provider-kwhtQ-D4.js new file mode 100644 index 0000000..57a25f4 --- /dev/null +++ b/codes/web/dist/assets/config-provider-kwhtQ-D4.js @@ -0,0 +1,55 @@ +import{$ as e,At as t,C as n,D as r,Dt as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,It as d,K as f,L as p,Lt as m,M as h,Mt as g,Nt as _,Ot as v,Pt as y,R as b,Rt as x,S,T as C,Tt as w,U as ee,V as T,Vt as te,X as ne,Y as re,Z as ie,_ as ae,_t as oe,a as E,b as se,bt as D,ct as ce,d as le,f as ue,g as de,h as fe,i as pe,it as me,jt as he,kt as ge,l as _e,m as ve,o as ye,ot as be,p as xe,rt as Se,st as O,u as Ce,v as we,vt as Te,w as Ee,wt as De,x as Oe,xt as ke,y as Ae,z as je}from"./client-CO11mUW5.js";var Me=void 0,Ne=typeof window<`u`&&window.trustedTypes;if(Ne)try{Me=Ne.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Pe=Me?e=>Me.createHTML(e):e=>e,Fe=`http://www.w3.org/2000/svg`,Ie=`http://www.w3.org/1998/Math/MathML`,k=typeof document<`u`?document:null,Le=k&&k.createElement(`template`),Re={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?k.createElementNS(Fe,e):t===`mathml`?k.createElementNS(Ie,e):n?k.createElement(e,{is:n}):k.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>k.createTextNode(e),createComment:e=>k.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>k.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Le.innerHTML=Pe(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Le.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},A=`transition`,ze=`animation`,Be=Symbol(`_vtc`),Ve={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},He=v({},se,Ve),Ue=(e=>(e.displayName=`Transition`,e.props=He,e))((e,{slots:t})=>je(Ae,Ke(e),t)),We=(e,t=[])=>{he(e)?e.forEach(e=>e(...t)):e&&e(...t)},Ge=e=>e?he(e)?e.some(e=>e.length>1):e.length>1:!1;function Ke(e){let t={};for(let n in e)n in Ve||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=qe(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=_,onAppear:w=y,onAppearCancelled:ee=b}=t,T=(e,t,n,r)=>{e._enterCancelled=r,M(e,t?u:s),M(e,t?l:o),n&&n()},te=(e,t)=>{e._isLeaving=!1,M(e,d),M(e,p),M(e,f),t&&t()},ne=e=>(t,n)=>{let i=e?w:y,o=()=>T(t,e,n);We(i,[t,o]),Ye(()=>{M(t,e?c:a),j(t,e?u:s),Ge(i)||Ze(t,r,h,o)})};return v(t,{onBeforeEnter(e){We(_,[e]),j(e,a),j(e,o)},onBeforeAppear(e){We(C,[e]),j(e,c),j(e,l)},onEnter:ne(!1),onAppear:ne(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>te(e,t);j(e,d),e._enterCancelled?(j(e,f),tt(e)):(tt(e),j(e,f)),Ye(()=>{e._isLeaving&&(M(e,d),j(e,p),Ge(x)||Ze(e,r,g,n))}),We(x,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),We(b,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),We(ee,[e])},onLeaveCancelled(e){te(e),We(S,[e])}})}function qe(e){if(e==null)return null;if(y(e))return[Je(e.enter),Je(e.leave)];{let t=Je(e);return[t,t]}}function Je(e){return te(e)}function j(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Be]||(e[Be]=new Set)).add(t)}function M(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Be];n&&(n.delete(t),n.size||(e[Be]=void 0))}function Ye(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Xe=0;function Ze(e,t,n,r){let i=e._endId=++Xe,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Qe(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${A}Delay`),a=r(`${A}Duration`),o=$e(i,a),s=r(`${ze}Delay`),c=r(`${ze}Duration`),l=$e(s,c),u=null,d=0,f=0;t===A?o>0&&(u=A,d=o,f=a.length):t===ze?l>0&&(u=ze,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?A:ze:null,f=u?u===A?a.length:c.length:0);let p=u===A&&/\b(?:transform|all)(?:,|$)/.test(r(`${A}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function $e(e,t){for(;e.lengthet(t)+et(e[n])))}function et(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function tt(e){return(e?e.ownerDocument:document).body.offsetHeight}function nt(e,t,n){let r=e[Be];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var rt=Symbol(`_vod`),it=Symbol(`_vsh`),at={name:`show`,beforeMount(e,{value:t},{transition:n}){e[rt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):ot(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ot(e,!0),r.enter(e)):r.leave(e,()=>{ot(e,!1)}):ot(e,t))},beforeUnmount(e,{value:t}){ot(e,t)}};function ot(e,t){e.style.display=t?e[rt]:`none`,e[it]=!t}var st=Symbol(``),ct=/(?:^|;)\s*display\s*:/;function lt(e,t,n){let r=e.style,i=m(n),a=!1;if(n&&!i){if(t){if(m(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??dt(r,t,``)}else for(let e in t)n[e]??dt(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?dt(r,i,``):ht(e,i,!m(t)&&t?t[i]:void 0,o)||dt(r,i,o)}}else if(i){if(t!==n){let e=r[st];e&&(n+=`;`+e),r.cssText=n,a=ct.test(n)}}else t&&e.removeAttribute(`style`);rt in e&&(e[rt]=a?r.display:``,e[it]&&(r.display=`none`))}var ut=/\s*!important$/;function dt(e,t,n){if(he(n))n.forEach(n=>dt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=mt(e,t);ut.test(n)?e.setProperty(ge(r),n.replace(ut,``),`important`):e[r]=n}}var ft=[`Webkit`,`Moz`,`ms`],pt={};function mt(e,t){let n=pt[t];if(n)return n;let r=a(t);if(r!==`filter`&&r in e)return pt[t]=r;r=i(r);for(let n=0;nEt||=(Dt.then(()=>Et=0),Date.now());function kt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(he(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jt=(e,t,n,r,i,o)=>{let c=i===`svg`;t===`class`?nt(e,r,c):t===`style`?lt(e,n,r):s(t)?_(t)||St(e,t,n,r,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Mt(e,t,r,c))?(vt(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&_t(e,t,r,c,o,t!==`value`)):e._isVueCE&&(Nt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!m(r)))?vt(e,a(t),r,o,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),_t(e,t,r,c))};function Mt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&At(t)&&g(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return At(t)&&m(n)?!1:t in e}function Nt(e,t){let n=e._def.props;if(!n)return!1;let r=a(t);return Array.isArray(n)?n.some(e=>a(e)===r):Object.keys(n).some(e=>a(e)===r)}var Pt=new WeakMap,Ft=new WeakMap,It=Symbol(`_moveCb`),Lt=Symbol(`_enterCb`),Rt=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:v({},He,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=p(),r=be(),i,a;return ie(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!Ut(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(zt),i.forEach(Bt);let r=i.filter(Vt);tt(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;j(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[It]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[It]=null,M(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let s=ke(e),c=Ke(s),l=s.tag||S;if(i=[],a)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Qe(r);return a.removeChild(r),o}var Wt=[`ctrl`,`shift`,`alt`,`meta`],Gt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Wt.some(n=>e[`${n}Key`]&&!t.includes(n))},Kt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{Yt().render(...e)}),Zt=((...e)=>{let t=Yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=$t(e);if(!r)return;let i=t._component;!g(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Qt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Qt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function $t(e){return m(e)?document.querySelector(e):e}function en(e){"@babel/helpers - typeof";return en=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},en(e)}function tn(e,t){if(en(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(en(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nn(e){var t=tn(e,`string`);return en(t)==`symbol`?t:t+``}function rn(e,t,n){return(t=nn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;ttypeof e==`function`,sn=Array.isArray,cn=e=>typeof e==`string`,ln=e=>typeof e==`object`&&!!e,un=/^on[^a-z]/,dn=e=>un.test(e),fn=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pn=/-(\w)/g,mn=fn(e=>e.replace(pn,(e,t)=>t?t.toUpperCase():``)),hn=/\B([A-Z])/g,gn=fn(e=>e.replace(hn,`-$1`).toLowerCase()),_n=fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Object.prototype.hasOwnProperty,yn=(e,t)=>vn.call(e,t);function bn(e,t,n,r){let i=e[n];if(i!=null){let e=yn(i,`default`);if(e&&r===void 0){let e=i.default;r=i.type!==Function&&on(e)?e():e}i.type===Boolean&&(!yn(t,n)&&!e?r=!1:r===``&&(r=!0))}return r}function xn(e){return Object.keys(e).reduce((t,n)=>((n.startsWith(`data-`)||n.startsWith(`aria-`))&&(t[n]=e[n]),t),{})}function Sn(e){return typeof e==`number`?`${e}px`:e}function Cn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e==`function`?e(t):e??n}function wn(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}function F(){let e=[];for(let t=0;te!=null&&e!==``,En=e=>{let t=Object.keys(e),n={},r={},i={};for(let a=0,o=t.length;a0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return typeof e==`object`?e:(e.split(r).forEach(function(e){if(e){let r=e.split(i);if(r.length>1){let e=t?mn(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}}),n)},On=(e,t)=>e[t]!==void 0,kn=Symbol(`skipFlatten`),An=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=Array.isArray(e)?e:[e],r=[];return n.forEach(e=>{Array.isArray(e)?r.push(...An(e,t)):e&&e.type===S?e.key===kn?r.push(e):r.push(...An(e.children,t)):e&&l(e)?t&&!Bn(e)?r.push(e):t||r.push(e):Tn(e)&&r.push(e)}),r},jn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`default`,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return l(e)?e.type===S?t==="default"?An(e.children):[]:e.children&&e.children[t]?An(e.children[t](n)):[]:An(e.$slots[t]&&e.$slots[t](n))},Mn=e=>{let t=e?.vnode?.el||e&&(e.$el||e);for(;t&&!t.tagName;)t=t.nextSibling;return t},Nn=e=>{let t={};if(e.$&&e.$.vnode){let n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{let i=e.$props[r],a=gn(r);(i!==void 0||a in n)&&(t[r]=i)})}else if(l(e)&&typeof e.type==`object`){let n=e.props||{},r={};Object.keys(n).forEach(e=>{r[mn(e)]=n[e]});let i=e.type.props||{};Object.keys(i).forEach(e=>{let n=bn(i,r,e,r[e]);(n!==void 0||e in r)&&(t[e]=n)})}return t},Pn=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`default`,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i;if(e.$){let a=e[t];if(a!==void 0)return typeof a==`function`&&r?a(n):a;i=e.$slots[t],i=r&&i?i(n):i}else if(l(e)){let a=e.props&&e.props[t];if(a!==void 0&&e.props!==null)return typeof a==`function`&&r?a(n):a;e.type===S?i=e.children:e.children&&e.children[t]&&(i=e.children[t],i=r&&i?i(n):i)}return Array.isArray(i)&&(i=An(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function Fn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return n=e.$?P(P({},n),e.$attrs):P(P({},n),e.props),En(n)[t?`onEvents`:`events`]}function In(e){let t=((l(e)?e.props:e.$attrs)||{}).class||{},n={};return typeof t==`string`?t.split(` `).forEach(e=>{n[e.trim()]=!0}):Array.isArray(t)?F(t).split(` `).forEach(e=>{n[e.trim()]=!0}):n=P(P({},n),t),n}function Ln(e,t){let n=((l(e)?e.props:e.$attrs)||{}).style||{};if(typeof n==`string`)n=Dn(n,t);else if(t&&n){let e={};return Object.keys(n).forEach(t=>e[mn(t)]=n[t]),e}return n}function Rn(e){return e.length===1&&e[0].type===S}function zn(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function Bn(e){return e&&(e.type===Oe||e.type===S&&e.children.length===0||e.type===Ee&&e.children.trim()===``)}function Vn(e){return e&&e.type===Ee}function Hn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...e):e?.type===S?t.push(...Hn(e.children)):t.push(e)}),t.filter(e=>!Bn(e))}function Un(e){if(e){let t=Hn(e);return t.length?t:void 0}return e}function Wn(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!=`symbol`}function Gn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`default`;return t[n]??e[n]?.call(e)}var Kn=function(){return[...arguments]},qn=function(){return[...arguments]},Jn=e=>{let t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Yn(){return{type:[Function,Array]}}function I(e){return{type:Object,default:e}}function Xn(e){return{type:Boolean,default:e}}function Zn(e){return{type:Function,default:e}}function Qn(e,t){return{validator:()=>!0,default:e}}function $n(){return{validator:()=>!0}}function er(e){return{type:Array,default:e}}function tr(e){return{type:String,default:e}}function nr(e,t){return e?{type:e,default:t}:Qn(t)}var rr=`anticon`,ir=Symbol(`GlobalFormContextKey`),ar=t=>{e(ir,t)},or=()=>T(ir,{validateMessages:r(()=>void 0)}),sr=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:I(),input:I(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:I(),pageHeader:I(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:`ltr`},space:I(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:I(),pagination:I(),theme:I(),select:I(),wave:I()}),cr=Symbol(`configProvider`),lr={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:r(()=>rr),getPopupContainer:r(()=>()=>document.body),direction:r(()=>`ltr`)},ur=()=>T(cr,lr),dr=t=>e(cr,t),fr=Symbol(`DisabledContextKey`),pr=()=>T(fr,Te(void 0)),mr=t=>{let n=pr();return e(fr,r(()=>t.value??n.value)),t},hr={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:``,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`},gr={locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`Ok`,clear:`Clear`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,yearFormat:`YYYY`,dateFormat:`M/D/YYYY`,dayFormat:`D`,dateTimeFormat:`M/D/YYYY HH:mm:ss`,monthBeforeYear:!0,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`},_r={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},vr={lang:P({placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`]},gr),timePickerLocale:P({},_r)},yr=vr,L="${label} is not a valid ${type}",R={locale:`en`,Pagination:hr,DatePicker:vr,TimePicker:_r,Calendar:yr,global:{placeholder:`Please select`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckall:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`},PageHeader:{back:`Back`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:L,method:L,array:L,object:L,number:L,date:L,boolean:L,integer:L,float:L,regexp:L,email:L,url:L,hex:L},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:`Preview`},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`}},br=u({compatConfig:{MODE:3},name:`LocaleReceiver`,props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t,i=T(`localeData`,{}),a=r(()=>{let{componentName:t=`global`,defaultLocale:n}=e,r=n||R[t||`global`],{antLocale:a}=i,o=t&&a?a[t]:{};return P(P({},typeof r==`function`?r():r),o||{})}),o=r(()=>{let{antLocale:e}=i,t=e&&e.locale;return e&&e.exist&&!t?R.locale:t});return()=>{let t=e.children||n.default,{antLocale:r}=i;return t?.(a.value,o.value,r)}}});function xr(e,t,n){let i=T(`localeData`,{});return[r(()=>{let{antLocale:r}=i,a=w(t)||R[e||`global`],o=e&&r?r[e]:{};return P(P(P({},typeof a==`function`?a():a),o||{}),w(n)||{})})]}var Sr=br;function Cr(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wr=`%`,Tr=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(wr):e)||null}update(e,t){let n=Array.isArray(e)?e.join(wr):e,r=t(this.cache.get(n));r===null?this.cache.delete(n):this.cache.set(n,r)}},Er=`data-token-hash`,z=`data-css-hash`,Dr=`__cssinjs_instance__`;function Or(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Dr]=t.__cssinjs_instance__||e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${z}]`)).forEach(t=>{var n;let i=t.getAttribute(z);r[i]?t.__cssinjs_instance__===e&&((n=t.parentNode)==null||n.removeChild(t)):r[i]=!0})}return new Tr(e)}var kr=Symbol(`StyleContextKey`),Ar=()=>{let e=p(),t;if(e&&e.appContext){let n=e.appContext?.config?.globalProperties?.__ANTDV_CSSINJS_CACHE__;n?t=n:(t=Or(),e.appContext.config.globalProperties&&(e.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=t))}else t=Or();return t},jr={cache:Or(),defaultCache:!0,hashPriority:`low`},Mr=()=>{let e=Ar();return T(kr,D(P(P({},jr),{cache:e})))},Nr=t=>{let n=Mr(),r=D(P(P({},jr),{cache:Or()}));return O([()=>w(t),n],()=>{let e=P({},n.value),i=w(t);Object.keys(i).forEach(t=>{let n=i[t];i[t]!==void 0&&(e[t]=n)});let{cache:a}=i;e.cache=e.cache||Or(),e.defaultCache=!a&&n.value.defaultCache,r.value=e},{immediate:!0}),e(kr,r),r},Pr=Jn(u({name:`AStyleProvider`,inheritAttrs:!1,props:{autoClear:Xn(),mock:tr(),cache:I(),defaultCache:Xn(),hashPriority:tr(),container:nr(),ssrInline:Xn(),transformers:er(),linters:er()},setup(e,t){let{slots:n}=t;return Nr(e),()=>n.default?.call(n)}}));function Fr(e,t,n,r){let i=Mr(),a=D(``),o=D();ce(()=>{a.value=[e,...t.value].join(`%`)});let s=e=>{i.value.cache.update(e,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),null):[t-1,n]})};return O(a,(e,t)=>{t&&s(t),i.value.cache.update(e,e=>{let[t=0,r]=e||[],i=r||n();return[t+1,i]}),o.value=i.value.cache.get(a.value)[1]},{immediate:!0}),f(()=>{s(a.value)}),o}function Ir(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Lr(e,t){return e&&e.contains?e.contains(t):!1}var Rr=`data-vc-order`,zr=`vc-util-key`,Br=new Map;function Vr(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith(`data-`)?e:`data-${e}`:zr}function Hr(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function Ur(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function Wr(e){return Array.from((Br.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function Gr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ir())return null;let{csp:n,prepend:r}=t,i=document.createElement(`style`);i.setAttribute(Rr,Ur(r)),n?.nonce&&(i.nonce=n?.nonce),i.innerHTML=e;let a=Hr(t),{firstChild:o}=a;if(r){if(r===`queue`){let e=Wr(a).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(Rr)));if(e.length)return a.insertBefore(i,e[e.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function Kr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Wr(Hr(t)).find(n=>n.getAttribute(Vr(t))===e)}function qr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Kr(e,t);n&&Hr(t).removeChild(n)}function Jr(e,t){let n=Br.get(e);if(!n||!Lr(document,n)){let n=Gr(``,t),{parentNode:r}=n;Br.set(e,r),e.removeChild(n)}}function Yr(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Jr(Hr(n),n);let r=Kr(t,n);if(r)return n.csp?.nonce&&r.nonce!==n.csp?.nonce&&(r.nonce=n.csp?.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;let i=Gr(e,n);return i.setAttribute(Vr(n),t),i}function Xr(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0&&arguments[1],n={map:this.cache};return e.forEach(e=>{n=n?(n?.map)?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Xr(t,e)),this.deleteByPath(this.cache,e)}};Zr.MAX_CACHE_SIZE=20,Zr.MAX_CACHE_OFFSET=5;function Qr(){}var $r=Qr,ei=0,ti=class{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=ei,e.length===0&&$r(e.length>0,`[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function.`),ei+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},ni=new Zr;function ri(e){let t=Array.isArray(e)?e:[e];return ni.has(t)||ni.set(t,new ti(t)),ni.get(t)}var ii=new WeakMap;function ai(e){let t=ii.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof ti?t+=r.id:t+=r&&typeof r==`object`?ai(r):r}),ii.set(e,t)),t}function oi(e,t){return Cr(`${t}_${ai(e)}`)}var si=`random-${Date.now()}-${Math.random()}`.replace(/\./g,``),ci=`_bAmBoO_`;function li(e,t,n){var r;if(Ir()){Yr(e,si);let i=document.createElement(`div`);i.style.position=`fixed`,i.style.left=`0`,i.style.top=`0`,t?.(i),document.body.appendChild(i);let a=n?n(i):getComputedStyle(i).content?.includes(ci);return(r=i.parentNode)==null||r.removeChild(i),qr(si),a}return!1}var ui=void 0;function di(){return ui===void 0&&(ui=li(`@layer ${si} { .${si} { content: "${ci}"!important; } }`,e=>{e.className=si})),ui}var fi={},pi=`css`,mi=new Map;function hi(e){mi.set(e,(mi.get(e)||0)+1)}function gi(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Er}="${e}"]`).forEach(e=>{var n;e.__cssinjs_instance__===t&&((n=e.parentNode)==null||n.removeChild(e))})}var _i=0;function vi(e,t){mi.set(e,(mi.get(e)||0)-1);let n=Array.from(mi.keys()),r=n.filter(e=>(mi.get(e)||0)<=0);n.length-r.length>_i&&r.forEach(e=>{gi(e,t),mi.delete(e)})}var yi=(e,t,n,r)=>{let i=n.getDerivativeToken(e),a=P(P({},i),t);return r&&(a=r(a)),a};function bi(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te({}),i=Mr(),a=r(()=>P({},...t.value)),o=r(()=>ai(a.value)),s=r(()=>ai(n.value.override||fi));return Fr(`token`,r(()=>[n.value.salt||``,e.value.id,o.value,s.value]),()=>{let{salt:t=``,override:r=fi,formatToken:i,getComputedToken:o}=n.value,s=o?o(a.value,r,e.value):yi(a.value,r,e.value,i),c=oi(s,t);s._tokenKey=c,hi(c);let l=`${pi}-${Cr(c)}`;return s._hashId=l,[s,l]},e=>{vi(e[0]._tokenKey,i.value?.cache.instanceId)})}var xi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Si=`comm`,Ci=`rule`,wi=`decl`,Ti=`@import`,Ei=`@namespace`,Di=`@keyframes`,Oi=`@layer`,ki=Math.abs,Ai=String.fromCharCode;function ji(e){return e.trim()}function Mi(e,t,n){return e.replace(t,n)}function Ni(e,t){return e.charCodeAt(t)|0}function Pi(e,t,n){return e.slice(t,n)}function B(e){return e.length}function Fi(e){return e.length}function Ii(e,t){return t.push(e),e}var Li=1,Ri=1,zi=0,V=0,H=0,Bi=``;function Vi(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Li,column:Ri,length:o,return:``,siblings:s}}function Hi(){return H}function Ui(){return H=V>0?Ni(Bi,--V):0,Ri--,H===10&&(Ri=1,Li--),H}function U(){return H=V2||Ki(H)>3?``:` `}function Zi(e,t){for(;--t&&U()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return Gi(e,Wi()+(t<6&&W()==32&&U()==32))}function Qi(e){for(;U();)switch(H){case e:return V;case 34:case 39:e!==34&&e!==39&&Qi(H);break;case 40:e===41&&Qi(e);break;case 92:U();break}return V}function $i(e,t){for(;U()&&e+H!==57&&(e+H!==84||W()!==47););return`/*`+Gi(t,V-1)+`*`+Ai(e===47?e:U())}function ea(e){for(;!Ki(W());)U();return Gi(e,V)}function ta(e){return Ji(na(``,null,null,null,[``],e=qi(e),0,[0],e))}function na(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=U()){case 40:m!=108&&Ni(w,d-1)==58?(v++,w+=`(`):w+=Yi(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Yi(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=Ai(y);break}w+=Xi(m);break;case 92:w+=Zi(Wi()-1,7);continue;case 47:switch(W()){case 42:case 47:Ii(ia($i(U(),Wi()),t,n,c),c),(Ki(m||1)==5||Ki(W()||1)==5)&&B(w)&&Pi(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=B(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=Ai(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Mi(w,/\f/g,``)),p>0&&(B(w)-d||h===0)&&Ii(p>32?aa(w+`;`,r,n,d-1,c):aa(Mi(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(Ii(C=ra(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123){if(u===0)na(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Ni(w,3)===110)break;case 108:if(Ni(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?na(e,C,C,r&&Ii(ra(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):na(w,C,C,C,[``],S,0,s,S)}}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+B(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Ui()==125)continue}switch(w+=Ai(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(B(w)-1)*_,_=1;break;case 64:W()===45&&(w+=Yi(U())),f=W(),u=d=B(b=w+=ea(Wi())),y++;break;case 45:m===45&&B(w)==2&&(h=0)}}return a}function ra(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Fi(p),h=0,g=0,_=0;h0?p[v]+` `+y:Mi(y,/&\f/g,p[v])))&&(c[_++]=b);return Vi(e,t,n,i===0?Ci:s,c,l,u,d)}function ia(e,t,n,r){return Vi(e,t,n,Si,Ai(Hi()),Pi(e,2,-2),0,r)}function aa(e,t,n,r,i){return Vi(e,t,n,wi,Pi(e,0,r),Pi(e,r+1,-1),r,i)}function oa(e,t){for(var n=``,r=0;r`${t}:${e[t]}`).join(`;`)}var da,fa=!0;function pa(){var e;if(!da&&(da={},Ir())){let t=document.createElement(`div`);t.className=ca,t.style.position=`fixed`,t.style.visibility=`hidden`,t.style.top=`-9999px`,document.body.appendChild(t);let n=getComputedStyle(t).content||``;n=n.replace(/^"/,``).replace(/"$/,``),n.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);da[t]=n});let r=document.querySelector(`style[${ca}]`);r&&(fa=!1,(e=r.parentNode)==null||e.removeChild(r)),document.body.removeChild(t)}}function ma(e){return pa(),!!da[e]}function ha(e){let t=da[e],n=null;if(t&&Ir()){if(fa)n=la;else{let t=document.querySelector(`style[${z}="${da[e]}"]`);t?n=t.innerHTML:delete da[e]}}return[n,t]}var ga=Ir(),_a=`_skip_check_`,va=`_multi_value_`;function ya(e){return oa(ta(e),sa).replace(/\{%%%\:[^;];}/g,`;`)}function ba(e){return typeof e==`object`&&e&&(_a in e||va in e)}function xa(e,t,n){if(!t)return e;let r=`.${t}`,i=n===`low`?`:where(${r})`:r;return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,r=n.match(/^\w+/)?.[0]||``;return n=`${r}${i}${n.slice(r.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var Sa=new Set,Ca=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=Ca(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}if(m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>(t?.visit)?.call(t,e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!ba(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=xa(o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=Ca(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f=P(P({},f),m),d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!xi[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[va]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):e(o,t)}})}}),!n)d=`{${d}}`;else if(o&&di()){let e=o.split(`,`);d=`@layer ${e[e.length-1].trim()} {${d}}`,e.length>1&&(d=`@layer ${o}{%%%:%}${d}`)}return[d,f]};function wa(e,t){return Cr(`${e.join(`%`)}${t}`)}function Ta(e,t){let n=Mr(),i=r(()=>e.value.token._tokenKey),a=r(()=>[i.value,...e.value.path]),o=ga;return Fr(`style`,a,()=>{let{path:r,hashId:s,layer:c,nonce:l,clientOnly:u,order:d=0}=e.value,f=a.value.join(`|`);if(ma(f)){let[e,t]=ha(f);if(e)return[e,i.value,t,{},u,d]}let p=t(),{hashPriority:m,container:h,transformers:g,linters:_,cache:v}=n.value,[y,b]=Ca(p,{hashId:s,hashPriority:m,layer:c,path:r.join(`-`),transformers:g,linters:_}),x=ya(y),S=wa(a.value,x);if(o){let e={mark:z,prepend:`queue`,attachTo:h,priority:d},t=typeof l==`function`?l():l;t&&(e.csp={nonce:t});let n=Yr(x,S,e);n[Dr]=v.instanceId,n.setAttribute(Er,i.value),Object.keys(b).forEach(e=>{Sa.has(e)||(Sa.add(e),Yr(ya(b[e]),`_effect-${e}`,{mark:z,prepend:`queue`,attachTo:h}))})}return[x,i.value,S,b,u,d]},(e,t)=>{let[,,r]=e;(t||n.value.autoClear)&&ga&&qr(r,{mark:z})}),e=>e}function Ea(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=Array.from(e.cache.keys()).filter(e=>e.startsWith(`style%`)),r={},i={},a=``;function o(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=P(P({},i),{[Er]:n,[z]:r}),o=Object.keys(a).map(e=>{let t=a[e];return t?`${e}="${t}"`:null}).filter(e=>e).join(` `);return t?e:``}return n.map(t=>{let n=t.slice(6).replace(/%/g,`|`),[a,s,c,l,u,d]=e.cache.get(t)[1];if(u)return null;let f={"data-vc-order":`prependQueue`,"data-vc-priority":`${d}`},p=o(a,s,c,f);return i[n]=c,l&&Object.keys(l).forEach(e=>{r[e]||(r[e]=!0,p+=o(ya(l[e]),s,`_effect-${e}`,f))}),[d,p]}).filter(e=>e).sort((e,t)=>e[0]-t[0]).forEach(e=>{let[,t]=e;a+=t}),a+=o(`.${ca}{content:"${ua(i)}";}`,void 0,void 0,{[ca]:ca}),a}var G=class{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return e?`${e}-${this.name}`:this.name}},Da=`4.2.6`,K=function(){function e(t,n){if(t===void 0&&(t=``),n===void 0&&(n={}),t instanceof e)return t;typeof t==`number`&&(t=le(t)),this.originalInput=t;var r=_e(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t,n,r,i=e.r/255,a=e.g/255,o=e.b/255;return t=i<=.03928?i/12.92:((i+.055)/1.055)**2.4,n=a<=.03928?a/12.92:((a+.055)/1.055)**2.4,r=o<=.03928?o/12.92:((o+.055)/1.055)**2.4,.2126*t+.7152*n+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=ae(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return this.toHsl().s===0},e.prototype.toHsv=function(){var e=ve(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ve(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${n}%, ${r}%)`:`hsva(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHsl=function(){var e=xe(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=xe(this.r,this.g,this.b),t=Math.round(e.h*360),n=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${n}%, ${r}%)`:`hsla(${t}, ${n}%, ${r}%, ${this.roundA})`},e.prototype.toHex=function(e){return e===void 0&&(e=!1),ue(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return e===void 0&&(e=!1),`#`+this.toHex(e)},e.prototype.toHex8=function(e){return e===void 0&&(e=!1),fe(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return e===void 0&&(e=!1),`#`+this.toHex8(e)},e.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${n})`:`rgba(${e}, ${t}, ${n}, ${this.roundA})`},e.prototype.toPercentageRgb=function(){var e=function(e){return`${Math.round(de(e,255)*100)}%`};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(de(e,255)*100)};return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`},e.prototype.toName=function(){if(this.a===0)return`transparent`;if(this.a<1)return!1;for(var e=`#`+ue(this.r,this.g,this.b,!1),t=0,n=Object.entries(Ce);t=0;return!t&&r&&(e.startsWith(`hex`)||e===`name`)?e===`name`&&this.a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=we(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=we(n.l),new e(n)},e.prototype.tint=function(e){return e===void 0&&(e=10),this.mix(`white`,e)},e.prototype.shade=function(e){return e===void 0&&(e=10),this.mix(`black`,e)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=we(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=we(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100;return new e({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;o{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ka(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var Aa={blue:`#1677ff`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#eb2f96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},ja=P(P({},Aa),{colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function Ma(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t,{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:c,colorBgBase:l,colorTextBase:u}=e,d=n(c),f=n(i),p=n(a),m=n(o),h=n(s),g=r(l,u);return P(P({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new K(`#000`).setAlpha(.45).toRgbString(),colorWhite:`#fff`})}var Na=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Pa(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return P({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},Na(r))}var q=(e,t)=>new K(e).setAlpha(t).toRgbString(),Fa=(e,t)=>new K(e).darken(t).toHexString(),Ia=e=>{let t=ye(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},La=(e,t)=>{let n=e||`#fff`,r=t||`#000`;return{colorBgBase:n,colorTextBase:r,colorText:q(r,.88),colorTextSecondary:q(r,.65),colorTextTertiary:q(r,.45),colorTextQuaternary:q(r,.25),colorFill:q(r,.15),colorFillSecondary:q(r,.06),colorFillTertiary:q(r,.04),colorFillQuaternary:q(r,.02),colorBgLayout:Fa(n,4),colorBgContainer:Fa(n,0),colorBgElevated:Fa(n,0),colorBgSpotlight:q(r,.85),colorBorder:Fa(n,15),colorBorderSecondary:Fa(n,6)}};function Ra(e){let t=Array(10).fill(null).map((t,n)=>{let r=e*2.71828**((n-1)/5);return Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}var za=e=>{let t=Ra(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ba(e){let t=Object.keys(Aa).map(t=>{let n=ye(e[t]);return Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=P(P({},e),t),e),{});return P(P(P(P(P(P(P({},e),t),Ma(e,{generateColorPalettes:Ia,generateNeutralColorPalettes:La})),za(e.fontSize)),ka(e)),Oa(e)),Pa(e))}function Va(e){return e>=0&&e<=255}function Ha(e,t){let{r:n,g:r,b:i,a}=new K(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new K(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(Va(t)&&Va(a)&&Va(l))return new K({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new K({r:n,g:r,b:i,a:1}).toRgbString()}var Ua=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[e]});let i=P(P({},n),r),a=1200,o=1600,s=2e3;return P(P(P({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ha(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ha(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ha(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ha(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:a,screenXLMin:a,screenXLMax:1599,screenXXL:o,screenXXLMin:o,screenXXLMax:1999,screenXXXL:s,screenXXXLMin:s,boxShadowPopoverArrow:`3px 3px 7px rgba(0, 0, 0, 0.1)`,boxShadowCard:` + 0 1px 2px -2px ${new K(`rgba(0, 0, 0, 0.16)`).toRgbString()}, + 0 3px 6px 0 ${new K(`rgba(0, 0, 0, 0.12)`).toRgbString()}, + 0 5px 12px 4px ${new K(`rgba(0, 0, 0, 0.09)`).toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)`}),r)}var Ga={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},Ka=e=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:e.fontFamily}),qa=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),Ja=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),Ya=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),Xa=(e,t)=>{let{fontFamily:n,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`},[i]:{boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}}}}},Za=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:`outline-offset 0s, outline 0s`}),Qa=e=>({"&:focus-visible":P({},Za(e))});function $a(e,t,n){return i=>{let a=r(()=>i?.value),[o,s,c]=po(),{getPrefixCls:l,iconPrefixCls:u}=ur(),d=r(()=>l());return Ta(r(()=>({theme:o.value,token:s.value,hashId:c.value,path:[`Shared`,d.value]})),()=>[{"&":Ya(s.value)}]),[Ta(r(()=>({theme:o.value,token:s.value,hashId:c.value,path:[e,a.value,u.value]})),()=>{let{token:r,flush:i}=ao(s.value),o=typeof n==`function`?n(r):n,l=P(P({},o),s.value[e]),f=t(no(r,{componentCls:`.${a.value}`,prefixCls:a.value,iconCls:`.${u.value}`,antCls:`.${d.value}`},l),{hashId:c.value,prefixCls:a.value,rootPrefixCls:d.value,iconPrefixCls:u.value,overrideComponentToken:s.value[e]});return i(e,l),[Xa(s.value,a.value),f]}),c]}}var eo=typeof CSSINJS_STATISTIC<`u`,to=!0;function no(){var e=[...arguments];if(!eo)return P({},...e);to=!1;let t={};return e.forEach(e=>{Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>e[n]})})}),to=!0,t}var ro={};function io(){}function ao(e){let t,n=e,r=io;return eo&&(t=new Set,n=new Proxy(e,{get(e,n){return to&&t.add(n),e[n]}}),r=(e,n)=>{ro[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:r}}var oo=ri(Ba),so={token:ja,hashed:!0},co=Symbol(`DesignTokenContext`),lo=D(),uo=t=>{e(co,t),O(t,()=>{lo.value=w(t),De(lo)},{immediate:!0,deep:!0})},fo=u({props:{value:I()},setup(e,t){let{slots:n}=t;return uo(r(()=>e.value)),()=>n.default?.call(n)}});function po(){let e=T(co,r(()=>lo.value||so)),t=r(()=>`${Da}-${e.value.hashed||``}`),n=r(()=>e.value.theme||oo),i=bi(n,r(()=>[ja,e.value.token]),r(()=>({salt:t.value,override:P({override:e.value.token},e.value.components),formatToken:Wa})));return[n,r(()=>i.value[0]),r(()=>e.value.hashed?i.value[1]:``)]}var mo=u({compatConfig:{MODE:3},setup(){let[,e]=po(),t=r(()=>new K(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>o(`svg`,{style:t.value,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},[o(`g`,{fill:`none`,"fill-rule":`evenodd`},[o(`g`,{transform:`translate(24 31.67)`},[o(`ellipse`,{"fill-opacity":`.8`,fill:`#F5F5F7`,cx:`67.797`,cy:`106.89`,rx:`67.797`,ry:`12.668`},null),o(`path`,{d:`M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z`,fill:`#AEB8C2`},null),o(`path`,{d:`M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z`,fill:`url(#linearGradient-1)`,transform:`translate(13.56)`},null),o(`path`,{d:`M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z`,fill:`#F5F5F7`},null),o(`path`,{d:`M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z`,fill:`#DCE0E6`},null)]),o(`path`,{d:`M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z`,fill:`#DCE0E6`},null),o(`g`,{transform:`translate(149.65 15.383)`,fill:`#FFF`},[o(`ellipse`,{cx:`20.654`,cy:`3.167`,rx:`2.849`,ry:`2.815`},null),o(`path`,{d:`M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z`},null)])])])}});mo.PRESENTED_IMAGE_DEFAULT=!0;var ho=u({compatConfig:{MODE:3},setup(){let[,e]=po(),t=r(()=>{let{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e.value;return{borderColor:new K(t).onBackground(i).toHexString(),shadowColor:new K(n).onBackground(i).toHexString(),contentColor:new K(r).onBackground(i).toHexString()}});return()=>o(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},[o(`g`,{transform:`translate(0 1)`,fill:`none`,"fill-rule":`evenodd`},[o(`ellipse`,{fill:t.value.shadowColor,cx:`32`,cy:`33`,rx:`32`,ry:`7`},null),o(`g`,{"fill-rule":`nonzero`,stroke:t.value.borderColor},[o(`path`,{d:`M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z`},null),o(`path`,{d:`M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z`,fill:t.value.contentColor},null)])])])}});ho.PRESENTED_IMAGE_SIMPLE=!0;var go=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{height:`100%`,margin:`auto`}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},_o=$a(`Empty`,e=>{let{componentCls:t,controlHeightLG:n}=e;return[go(no(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875}))]}),vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=a.value,l=P(P({},e),r),{image:u=n.image?.call(n)||je(mo),description:d=n.description?.call(n)||void 0,imageStyle:f,class:p=``}=l,m=vo(l,[`image`,`description`,`imageStyle`,`class`]),h=typeof u==`function`?u():u,g=typeof h==`object`&&`type`in h&&h.type.PRESENTED_IMAGE_SIMPLE;return s(o(Sr,{componentName:`Empty`,children:e=>{let r=d===void 0?e.description:d,a=typeof r==`string`?r:`empty`,s=null;return s=typeof h==`string`?o(`img`,{alt:a,src:h},null):h,o(`div`,N({class:F(t,p,c.value,{[`${t}-normal`]:g,[`${t}-rtl`]:i.value===`rtl`})},m),[o(`div`,{class:`${t}-image`,style:f},[s]),r&&o(`p`,{class:`${t}-description`},[r]),n.default&&o(`div`,{class:`${t}-footer`},[Hn(n.default())])])}},null))}}});yo.PRESENTED_IMAGE_DEFAULT=()=>je(mo),yo.PRESENTED_IMAGE_SIMPLE=()=>je(ho);var bo=Jn(yo),xo=e=>{let{prefixCls:t}=Eo(`empty`,e);return(e=>{switch(e){case`Table`:case`List`:return o(bo,{image:bo.PRESENTED_IMAGE_SIMPLE},null);case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return o(bo,{image:bo.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return o(bo,null,null)}})(e.componentName)};function So(e){return o(xo,{componentName:e},null)}var Co=Symbol(`SizeContextKey`),wo=()=>T(Co,Te(void 0)),To=t=>{let n=wo();return e(Co,r(()=>t.value||n.value)),t},Eo=((e,t)=>{let n=wo(),i=pr(),a=T(cr,P(P({},lr),{renderEmpty:e=>je(xo,{componentName:e})})),o=r(()=>a.getPrefixCls(e,t.prefixCls)),s=r(()=>t.direction??a.direction?.value),c=r(()=>t.iconPrefixCls??a.iconPrefixCls.value),l=r(()=>a.getPrefixCls()),u=r(()=>a.autoInsertSpaceInButton?.value),d=a.renderEmpty,f=a.space,p=a.pageHeader,m=a.form,h=r(()=>t.getTargetContainer??a.getTargetContainer?.value),g=r(()=>t.getContainer??t.getPopupContainer??a.getPopupContainer?.value),_=r(()=>t.dropdownMatchSelectWidth??a.dropdownMatchSelectWidth?.value),v=r(()=>(t.virtual===void 0?a.virtual?.value!==!1:t.virtual!==!1)&&_.value!==!1),y=r(()=>t.size||n.value),b=r(()=>t.autocomplete??a.input?.value?.autocomplete),x=r(()=>t.disabled??i.value),S=r(()=>t.csp??a.csp),C=r(()=>t.wave??a.wave?.value);return{configProvider:a,prefixCls:o,direction:s,size:y,getTargetContainer:h,getPopupContainer:g,space:f,pageHeader:p,form:m,autoInsertSpaceInButton:u,renderEmpty:d,virtual:v,dropdownMatchSelectWidth:_,rootPrefixCls:l,getPrefixCls:a.getPrefixCls,autocomplete:b,csp:S,iconPrefixCls:c,disabled:x,select:a.select,wave:C}});function Do(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}function Mo(e){return((t=e)!=null&&typeof t==`object`&&!1===Array.isArray(t))==1&&Object.prototype.toString.call(e)===`[object Object]`;var t}var No=Object.prototype,Po=No.toString,Fo=No.hasOwnProperty,Io=/^\s*function (\w+)/;function Lo(e){var t=e?.type??e;if(t){var n=t.toString().match(Io);return n?n[1]:``}return``}var Ro=function(e){var t,n;return!1!==Mo(e)&&typeof(t=e.constructor)==`function`&&!1!==Mo(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`)},J=function(e){return e},zo=function(e,t){return Fo.call(e,t)},Bo=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e},Vo=Array.isArray||function(e){return Po.call(e)===`[object Array]`},Ho=function(e){return Po.call(e)===`[object Function]`},Uo=function(e){return Ro(e)&&zo(e,`_vueTypes_name`)},Wo=function(e){return Ro(e)&&(zo(e,`type`)||[`_vueTypes_name`,`validator`,`default`,`required`].some(function(t){return zo(e,t)}))};function Go(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ko(e,t,n){var r;n===void 0&&(n=!1);var i=!0,a=``;r=Ro(e)?e:{type:e};var o=Uo(r)?r._vueTypes_name+` - `:``;if(Wo(r)&&r.type!==null){if(r.type===void 0||!0===r.type||!r.required&&t===void 0)return i;Vo(r.type)?(i=r.type.some(function(e){return!0===Ko(e,t,!0)}),a=r.type.map(function(e){return Lo(e)}).join(` or `)):i=(a=Lo(r))===`Array`?Vo(t):a===`Object`?Ro(t):a===`String`||a===`Number`||a===`Boolean`||a===`Function`?function(e){if(e==null)return``;var t=e.constructor.toString().match(Io);return t?t[1]:``}(t)===a:t instanceof r.type}if(!i){var s=o+`value "`+t+`" should be of type "`+a+`"`;return!1===n?(J(s),!1):s}if(zo(r,`validator`)&&Ho(r.validator)){var c=J,l=[];if(J=function(e){l.push(e)},i=r.validator(t),J=c,!i){var u=(l.length>1?`* `:``)+l.join(` +* `);return l.length=0,!1===n?(J(u),i):u}}return i}function Y(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return e!==void 0||this.default?Ho(e)||!0===Ko(this,e,!0)?(this.default=Vo(e)?function(){return[].concat(e)}:Ro(e)?function(){return Object.assign({},e)}:e,this):(J(this._vueTypes_name+` - invalid default value: "`+e+`"`),this):this}}}),r=n.validator;return Ho(r)&&(n.validator=Go(r,n)),n}function X(e,t){var n=Y(e,t);return Object.defineProperty(n,"validate",{value:function(e){return Ho(this.validator)&&J(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: +`+JSON.stringify(this)),this.validator=Go(e,this),this}})}function qo(e,t,n){var r,i,a=(r=t,i={},Object.getOwnPropertyNames(r).forEach(function(e){i[e]=Object.getOwnPropertyDescriptor(r,e)}),Object.defineProperties({},i));if(a._vueTypes_name=e,!Ro(n))return a;var o,s=n.validator,c=jo(n,[`validator`]);if(Ho(s)){var l=a.validator;l&&=(o=l).__original??o,a.validator=Go(l?function(e){return l.call(this,e)&&s.call(this,e)}:s,a)}return Object.assign(a,c)}function Jo(e){return e.replace(/^(?!\s*$)/gm,` `)}var Yo=function(){return X(`any`,{})},Xo=function(){return X(`function`,{type:Function})},Zo=function(){return X(`boolean`,{type:Boolean})},Qo=function(){return X(`string`,{type:String})},$o=function(){return X(`number`,{type:Number})},es=function(){return X(`array`,{type:Array})},ts=function(){return X(`object`,{type:Object})},ns=function(){return Y(`integer`,{type:Number,validator:function(e){return Bo(e)}})},rs=function(){return Y(`symbol`,{validator:function(e){return typeof e==`symbol`}})};function is(e,t){if(t===void 0&&(t=`custom validation failed`),typeof e!=`function`)throw TypeError(`[VueTypes error]: You must provide a function as argument`);return Y(e.name||`<>`,{validator:function(n){var r=e(n);return r||J(this._vueTypes_name+` - `+t),r}})}function as(e){if(!Vo(e))throw TypeError(`[VueTypes error]: You must provide an array as argument.`);var t=`oneOf - value should be one of "`+e.join(`", "`)+`".`,n=e.reduce(function(e,t){if(t!=null){var n=t.constructor;e.indexOf(n)===-1&&e.push(n)}return e},[]);return Y(`oneOf`,{type:n.length>0?n:void 0,validator:function(n){var r=e.indexOf(n)!==-1;return r||J(t),r}})}function os(e){if(!Vo(e))throw TypeError(`[VueTypes error]: You must provide an array as argument`);for(var t=!1,n=[],r=0;r0&&n.some(function(e){return a.indexOf(e)===-1})){var o=n.filter(function(e){return a.indexOf(e)===-1});return J(o.length===1?`shape - required property "`+o[0]+`" is not defined.`:`shape - required properties "`+o.join(`", "`)+`" are not defined.`),!1}return a.every(function(n){if(t.indexOf(n)===-1)return!0===i._vueTypes_isLoose||(J(`shape - shape definition does not include a "`+n+`" property. Allowed keys: "`+t.join(`", "`)+`".`),!1);var a=Ko(e[n],r[n],!0);return typeof a==`string`&&J(`shape - "`+n+`" property validation error: + `+Jo(a)),!0===a})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Z=function(){function e(){}return e.extend=function(e){var t=this;if(Vo(e))return e.forEach(function(e){return t.extend(e)}),this;var n=e.name,r=e.validate,i=r!==void 0&&r,a=e.getter,o=a!==void 0&&a,s=jo(e,[`name`,`validate`,`getter`]);if(zo(this,n))throw TypeError(`[VueTypes error]: Type "`+n+`" already defined`);var c,l=s.type;return Uo(l)?(delete s.type,Object.defineProperty(this,n,o?{get:function(){return qo(n,l,s)}}:{value:function(){var e,t=qo(n,l,s);return t.validator&&=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments))),t}})):(c=o?{get:function(){var e=Object.assign({},s);return i?X(n,e):Y(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},s);return e=i?X(n,r):Y(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,c))},Oo(e,null,[{key:`any`,get:function(){return Yo()}},{key:`func`,get:function(){return Xo().def(this.defaults.func)}},{key:`bool`,get:function(){return Zo().def(this.defaults.bool)}},{key:`string`,get:function(){return Qo().def(this.defaults.string)}},{key:`number`,get:function(){return $o().def(this.defaults.number)}},{key:`array`,get:function(){return es().def(this.defaults.array)}},{key:`object`,get:function(){return ts().def(this.defaults.object)}},{key:`integer`,get:function(){return ns().def(this.defaults.integer)}},{key:`symbol`,get:function(){return rs()}}]),e}();function ds(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:``,number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return Ao(n,t),Oo(n,null,[{key:`sensibleDefaults`,get:function(){return ko({},this.defaults)},set:function(t){this.defaults=!1===t?{}:ko({},!0===t?e:t)}}]),n}(Z)).defaults=ko({},e),t}Z.defaults={},Z.custom=is,Z.oneOf=as,Z.instanceOf=cs,Z.oneOfType=os,Z.arrayOf=ss,Z.objectOf=ls,Z.shape=us,Z.utils={validate:function(e,t){return!0===Ko(t,e,!0)},toType:function(e,t,n){return n===void 0&&(n=!1),n?X(e,t):Y(e,t)}},function(e){function t(){return e.apply(this,arguments)||this}return Ao(t,e),t}(ds());var fs=ds({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});fs.extend([{name:`looseBool`,getter:!0,type:Boolean,default:void 0},{name:`style`,getter:!0,type:[String,Object],default:void 0},{name:`VueNode`,getter:!0,type:null}]);function ps(e){return e.default=void 0,e}function ms(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}var hs=e=>e!==void 0&&(e===`topLeft`||e===`topRight`)?`slide-down`:`slide-up`,gs=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},_s=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},vs=(e,t,n)=>n===void 0?`${e}-${t}`:n,ys=Symbol(`PortalContextKey`),bs=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};e(ys,{inTriggerContext:n.inTriggerContext,shouldRender:r(()=>{let{sPopupVisible:e,popupRef:n,forceRender:r,autoDestroy:i}=t||{},a=!1;return(e||n||r)&&(a=!0),!e&&i&&(a=!1),a})})},xs=()=>{bs({},{inTriggerContext:!1});let e=T(ys,{shouldRender:r(()=>!1),inTriggerContext:!1});return{shouldRender:r(()=>e.shouldRender.value||e.inTriggerContext===!1)}},Ss=u({compatConfig:{MODE:3},name:`Portal`,inheritAttrs:!1,props:{getContainer:fs.func.isRequired,didUpdate:Function},setup(e,t){let{slots:r}=t,i=!0,a,{shouldRender:s}=xs();function l(){s.value&&(a=e.getContainer())}c(()=>{i=!1,l()}),re(()=>{a||l()});let u=O(s,()=>{s.value&&!a&&(a=e.getContainer()),a&&u()});return ie(()=>{ee(()=>{var t;s.value&&((t=e.didUpdate)==null||t.call(e,e))})}),()=>s.value?i?r.default?.call(r):a?o(n,{to:a},r):null:null}}),Cs={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`};function ws(e){for(var t=1;tt.locale,e=>{oc(e&&e.Modal),i.antLocale=P(P({},e),{exist:!0})},{immediate:!0}),()=>r.default?.call(r)}});lc.install=function(e){return e.component(lc.name,lc),e};var uc=Jn(lc),dc=u({name:`Notice`,inheritAttrs:!1,props:[`prefixCls`,`duration`,`updateMark`,`noticeKey`,`closeIcon`,`closable`,`props`,`onClick`,`onClose`,`holder`,`visible`],setup(e,t){let{attrs:i,slots:a}=t,s,c=!1,l=r(()=>e.duration===void 0?4.5:e.duration),u=()=>{l.value&&!c&&(s=setTimeout(()=>{f()},l.value*1e3))},d=()=>{s&&=(clearTimeout(s),null)},f=t=>{t&&t.stopPropagation(),d();let{onClose:n,noticeKey:r}=e;n&&n(r)},p=()=>{d(),u()};return re(()=>{u()}),ne(()=>{c=!0,d()}),O([l,()=>e.updateMark,()=>e.visible],(e,t)=>{let[n,r,i]=e,[a,o,s]=t;(n!==a||r!==o||i!==s&&s)&&p()},{flush:`post`}),()=>{let{prefixCls:t,closable:r,closeIcon:s=a.closeIcon?.call(a),onClick:c,holder:l}=e,{class:p,style:m}=i,h=`${t}-notice`,g=Object.keys(i).reduce((e,t)=>((t.startsWith(`data-`)||t.startsWith(`aria-`)||t===`role`)&&(e[t]=i[t]),e),{}),_=o(`div`,N({class:F(h,p,{[`${h}-closable`]:r}),style:m,onMouseenter:d,onMouseleave:u,onClick:c},g),[o(`div`,{class:`${h}-content`},[a.default?.call(a)]),r?o(`a`,{tabindex:0,onClick:f,class:`${h}-close`},[s||o(`span`,{class:`${h}-close-x`},null)]):null]);return l?o(n,{to:l},{default:()=>_}):_}}}),fc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,animation:n=`fade`}=e,r=e.transitionName;return!r&&n&&(r=`${t}-${n}`),_s(r)}),u=(t,n)=>{let r=t.key||hc(),i=P(P({},t),{key:r}),{maxCount:a}=e,o=c.value.map(e=>e.notice.key).indexOf(r),s=c.value.concat();o===-1?(a&&c.value.length>=a&&(i.key=s[0].notice.key,i.updateMark=hc(),i.userPassKey=r,s.shift()),s.push({notice:i,holderCallback:n})):s.splice(o,1,{notice:i,holderCallback:n}),c.value=s},d=e=>{c.value=ke(c.value).filter(t=>{let{notice:{key:n,userPassKey:r}}=t;return(r||n)!==e})};return i({add:u,remove:d,notices:c}),()=>{let{prefixCls:t,closeIcon:r=a.closeIcon?.call(a,{prefixCls:t})}=e,i=c.value.map((n,i)=>{let{notice:a,holderCallback:l}=n,u=i===c.value.length-1?a.updateMark:void 0,{key:f,userPassKey:p}=a,{content:m}=a,h=P(P(P({prefixCls:t,closeIcon:typeof r==`function`?r({prefixCls:t}):r},a),a.props),{key:f,noticeKey:p||f,updateMark:u,onClose:e=>{var t;d(e),(t=a.onClose)==null||t.call(a)},onClick:a.onClick});return l?o(`div`,{key:f,class:`${t}-hook-holder`,ref:e=>{f!==void 0&&(e?(s.set(f,e),l(e,h)):s.delete(f))}},null):o(dc,N(N({},h),{},{class:F(h.class,e.hashId)}),{default:()=>[typeof m==`function`?m({prefixCls:t}):m]})}),u={[t]:1,[n.class]:!!n.class,[e.hashId]:!0};return o(`div`,{class:u,style:n.style||{top:`65px`,left:`50%`}},[o(Rt,N({tag:`div`},l.value),{default:()=>[i]})])}}});gc.newInstance=function(e,t){let n=e||{},{name:i=`notification`,getContainer:a,appContext:s,prefixCls:c,rootPrefixCls:l,transitionName:d,hasTransitionName:f,useStyle:p}=n,m=fc(n,[`name`,`getContainer`,`appContext`,`prefixCls`,`rootPrefixCls`,`transitionName`,`hasTransitionName`,`useStyle`]),h=document.createElement(`div`);a?a().appendChild(h):document.body.appendChild(h);let g=u({compatConfig:{MODE:3},name:`NotificationWrapper`,setup(e,n){let{attrs:a}=n,s=D(),u=r(()=>$.getPrefixCls(i,c)),[,m]=p(u);return re(()=>{t({notice(e){var t;(t=s.value)==null||t.add(e)},removeNotice(e){var t;(t=s.value)==null||t.remove(e)},destroy(){Xt(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:s})}),()=>{let e=$,t=e.getRootPrefixCls(l,u.value),n=f?d:`${u.value}-${d}`;return o(Ul,N(N({},e),{},{prefixCls:t}),{default:()=>[o(gc,N(N({ref:s},a),{},{prefixCls:u.value,transitionName:n,hashId:m.value}),null)]})}}}),_=o(g,m);_.appContext=s||_.appContext,Xt(_,h)};var _c=0,vc=Date.now();function yc(){let e=_c;return _c+=1,`rcNotification_${vc}_${e}`}var bc=u({name:`HookNotification`,inheritAttrs:!1,props:[`prefixCls`,`transitionName`,`animation`,`maxCount`,`closeIcon`,`hashId`,`remove`,`notices`,`getStyles`,`getClassName`,`onAllRemoved`,`getContainer`],setup(e,t){let{attrs:n,slots:i}=t,a=new Map,s=r(()=>e.notices),c=r(()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case`string`:t=e.animation;break;case`function`:t=e.animation().name;break;case`object`:t=e.animation.name;break;default:t=`${e.prefixCls}-fade`}return _s(t)}),l=t=>e.remove(t),u=Te({});O(s,()=>{let t={};Object.keys(u.value).forEach(e=>{t[e]=[]}),e.notices.forEach(e=>{let{placement:n=`topRight`}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))}),u.value=t});let d=r(()=>Object.keys(u.value));return()=>{let{prefixCls:t,closeIcon:r=i.closeIcon?.call(i,{prefixCls:t})}=e,f=d.value.map(i=>{let d=u.value[i],f=e.getClassName?.call(e,i),p=e.getStyles?.call(e,i),m=d.map((n,i)=>{let{notice:c,holderCallback:u}=n,d=i===s.value.length-1?c.updateMark:void 0,{key:f,userPassKey:p}=c,{content:m}=c,h=P(P(P({prefixCls:t,closeIcon:typeof r==`function`?r({prefixCls:t}):r},c),c.props),{key:f,noticeKey:p||f,updateMark:d,onClose:e=>{var t;l(e),(t=c.onClose)==null||t.call(c)},onClick:c.onClick});return u?o(`div`,{key:f,class:`${t}-hook-holder`,ref:e=>{f!==void 0&&(e?(a.set(f,e),u(e,h)):a.delete(f))}},null):o(dc,N(N({},h),{},{class:F(h.class,e.hashId)}),{default:()=>[typeof m==`function`?m({prefixCls:t}):m]})}),h={[t]:1,[`${t}-${i}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[f]:!!f};function g(){var t;d.length>0||(Reflect.deleteProperty(u.value,i),(t=e.onAllRemoved)==null||t.call(e))}return o(`div`,{key:i,class:h,style:n.style||p||{top:`65px`,left:`50%`}},[o(Rt,N(N({tag:`div`},c.value),{},{onAfterLeave:g}),{default:()=>[m]})])});return o(Ss,{getContainer:e.getContainer},{default:()=>[f]})}}}),xc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);idocument.body,Cc=0;function wc(){let e={};return[...arguments].forEach(t=>{t&&Object.keys(t).forEach(n=>{let r=t[n];r!==void 0&&(e[n]=r)})}),e}function Tc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{getContainer:t=Sc,motion:n,prefixCls:r,maxCount:i,getClassName:a,getStyles:s,onAllRemoved:c}=e,l=xc(e,[`getContainer`,`motion`,`prefixCls`,`maxCount`,`getClassName`,`getStyles`,`onAllRemoved`]),u=D([]),d=D(),f=(e,t)=>{let n=e.key||yc(),r=P(P({},e),{key:n}),a=u.value.map(e=>e.notice.key).indexOf(n),o=u.value.concat();a===-1?(i&&u.value.length>=i&&(r.key=o[0].notice.key,r.updateMark=yc(),r.userPassKey=n,o.shift()),o.push({notice:r,holderCallback:t})):o.splice(a,1,{notice:r,holderCallback:t}),u.value=o},p=e=>{u.value=u.value.filter(t=>{let{notice:{key:n,userPassKey:r}}=t;return(r||n)!==e})},m=()=>{u.value=[]},h=()=>o(bc,{ref:d,prefixCls:r,maxCount:i,notices:u.value,remove:p,getClassName:a,getStyles:s,animation:n,hashId:e.hashId,onAllRemoved:c,getContainer:t},null),g=D([]);return O(g,()=>{g.value.length&&(g.value.forEach(e=>{switch(e.type){case`open`:f(e.config);break;case`close`:p(e.key);break;case`destroy`:m()}}),g.value=[])}),[{open:e=>{let t=wc(l,e);(t.key===null||t.key===void 0)&&(t.key=`vc-notification-${Cc}`,Cc+=1),g.value=[...g.value,{type:`open`,config:t}]},close:e=>{g.value=[...g.value,{type:`close`,key:e}]},destroy:()=>{g.value=[...g.value,{type:`destroy`}]}},h]}var Ec=gc,Dc=e=>{let{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:c,fontSizeLG:l,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:m,zIndexPopup:h,messageNoticeContentPadding:g}=e,_=new G(`MessageMoveIn`,{"0%":{padding:0,transform:`translateY(-100%)`,opacity:0},"100%":{padding:p,transform:`translateY(0)`,opacity:1}}),v=new G(`MessageMoveOut`,{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:P(P({},Ka(e)),{position:`fixed`,top:f,left:`50%`,transform:`translateX(-50%)`,width:`100%`,pointerEvents:`none`,zIndex:h,[`${t}-move-up`]:{animationFillMode:`forwards`},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:_,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:`running`},[`${t}-move-up-leave`]:{animationName:v,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}})},{[`${t}-notice`]:{padding:p,textAlign:`center`,[n]:{verticalAlign:`text-bottom`,marginInlineEnd:f,fontSize:l},[`${t}-notice-content`]:{display:`inline-block`,padding:g,background:i,borderRadius:m,boxShadow:r,pointerEvents:`all`},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:o},[`${t}-warning ${n}`]:{color:s},[` + ${t}-info ${n}, + ${t}-loading ${n}`]:{color:c}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:`start`}}]},Oc=$a(`Message`,e=>[Dc(no(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}))],e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),kc={info:o(ic,null,null),success:o(Xs,null,null),error:o(Ps,null,null),warning:o(ec,null,null),loading:o(Es,null,null)},Ac=u({name:`PureContent`,inheritAttrs:!1,props:[`prefixCls`,`type`,`icon`],setup(e,t){let{slots:n}=t;return()=>o(`div`,{class:F(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||kc[e.type],o(`span`,null,[n.default?.call(n)])])}});u({name:`PurePanel`,inheritAttrs:!1,props:[`prefixCls`,`class`,`type`,`icon`,`content`],setup(e,t){let{slots:n,attrs:i}=t,{getPrefixCls:a}=ur(),s=r(()=>e.prefixCls||a(`message`)),[,c]=Oc(s);return o(dc,N(N({},i),{},{prefixCls:s.value,class:F(c.value,`${s.value}-notice-pure-panel`),noticeKey:`pure`,duration:null}),{default:()=>[o(Ac,{prefixCls:s.value,type:e.type,icon:e.icon},{default:()=>[n.default?.call(n)]})]})}});var jc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ii(`message`,e.prefixCls)),[,c]=Oc(s),l=()=>{let t=e.top??Mc;return{left:`50%`,transform:`translateX(-50%)`,top:typeof t==`number`?`${t}px`:t}},u=()=>F(c.value,e.rtl?`${s.value}-rtl`:``),d=()=>ms({prefixCls:s.value,animation:e.animation??`move-up`,transitionName:e.transitionName}),f=o(`span`,{class:`${s.value}-close-x`},[o(As,{class:`${s.value}-close-icon`},null)]),[p,m]=Tc({getStyles:l,prefixCls:s.value,getClassName:u,motion:d,closable:!1,closeIcon:f,duration:e.duration??Nc,getContainer:e.staticGetContainer??a.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(P(P({},p),{prefixCls:s,hashId:c})),m}}),Fc=0;function Ic(e){let t=D(null),n=Symbol(`messageHolderKey`),r=e=>{var n;(n=t.value)==null||n.close(e)},i=e=>{if(!t.value){let e=()=>{};return e.then=()=>{},e}let{open:n,prefixCls:i,hashId:a}=t.value,s=`${i}-notice`,{content:c,icon:l,type:u,key:d,class:f,onClose:p}=e,m=jc(e,[`content`,`icon`,`type`,`key`,`class`,`onClose`]),h=d;return h??=(Fc+=1,`antd-message-${Fc}`),wn(e=>(n(P(P({},m),{key:h,content:()=>o(Ac,{prefixCls:i,type:u,icon:typeof l==`function`?l():l},{default:()=>[typeof c==`function`?c():c]}),placement:`top`,class:F(u&&`${s}-${u}`,a,f),onClose:()=>{p?.(),e()}})),()=>{r(h)}))},a={open:i,destroy:e=>{var n;e===void 0?(n=t.value)==null||n.destroy():r(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{a[e]=(t,n,r)=>{let a;a=t&&typeof t==`object`&&`content`in t?t:{content:t};let o,s;typeof n==`function`?s=n:(o=n,s=r);let c=P(P({onClose:s,duration:o},a),{type:e});return i(c)}}),[a,()=>o(Pc,N(N({key:n},e),{},{ref:t}),null)]}function Lc(e){return Ic(e)}var Rc=3,zc,Q,Bc=1,Vc=``,Hc=`move-up`,Uc=!1,Wc=()=>document.body,Gc,Kc=!1;function qc(){return Bc++}function Jc(e){e.top!==void 0&&(zc=e.top,Q=null),e.duration!==void 0&&(Rc=e.duration),e.prefixCls!==void 0&&(Vc=e.prefixCls),e.getContainer!==void 0&&(Wc=e.getContainer,Q=null),e.transitionName!==void 0&&(Hc=e.transitionName,Q=null,Uc=!0),e.maxCount!==void 0&&(Gc=e.maxCount,Q=null),e.rtl!==void 0&&(Kc=e.rtl)}function Yc(e,t){if(Q){t(Q);return}Ec.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||Vc,rootPrefixCls:e.rootPrefixCls,transitionName:Hc,hasTransitionName:Uc,style:{top:zc},getContainer:Wc||e.getPopupContainer,maxCount:Gc,name:`message`,useStyle:Oc},e=>{if(Q){t(Q);return}Q=e,t(e)})}var Xc={info:ic,success:Xs,error:Ps,warning:ec,loading:Es},Zc=Object.keys(Xc);function Qc(e){let t=e.duration===void 0?Rc:e.duration,n=e.key||qc(),r=new Promise(r=>{let i=()=>(typeof e.onClose==`function`&&e.onClose(),r(!0));Yc(e,r=>{r.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t,r=Xc[e.type],i=r?o(r,null,null):``,a=F(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:Kc===!0});return o(`div`,{class:a},[typeof e.icon==`function`?e.icon():e.icon||i,o(`span`,null,[typeof e.content==`function`?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),i=()=>{Q&&Q.removeNotice(n)};return i.then=(e,t)=>r.then(e,t),i.promise=r,i}function $c(e){return Object.prototype.toString.call(e)===`[object Object]`&&!!e.content}var el={open:Qc,config:Jc,destroy(e){if(Q){if(e){let{removeNotice:t}=Q;t(e)}else{let{destroy:e}=Q;e(),Q=null}}}};function tl(e,t){e[t]=(n,r,i)=>$c(n)?e.open(P(P({},n),{type:t})):(typeof r==`function`&&(i=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:i}))}Zc.forEach(e=>tl(el,e)),el.warn=el.warning,el.useMessage=Lc;var nl=e=>{let{componentCls:t,width:n,notificationMarginEdge:r}=e,i=new G(`antNotificationTopFadeIn`,{"0%":{marginTop:`-100%`,opacity:0},"100%":{marginTop:0,opacity:1}}),a=new G(`antNotificationBottomFadeIn`,{"0%":{marginBottom:`-100%`,opacity:0},"100%":{marginBottom:0,opacity:1}}),o=new G(`antNotificationLeftFadeIn`,{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}}}},rl=e=>{let{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:c,colorWarning:l,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,motionDurationMid:h,motionEaseInOut:g,fontSize:_,lineHeight:v,width:y,notificationIconSize:b}=e,x=`${n}-notice`,S=new G(`antNotificationFadeIn`,{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),C=new G(`antNotificationFadeOut`,{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:P(P(P(P({},Ka(e)),{position:`fixed`,zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:`relative`},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:`auto auto`}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:`auto`,marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:g,animationFillMode:`both`,opacity:0,animationPlayState:`paused`},[`${n}-fade-leave`]:{animationTimingFunction:g,animationFillMode:`both`,animationDuration:h,animationPlayState:`paused`},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:`running`},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:C,animationPlayState:`running`}}),nl(e)),{"&-rtl":{direction:`rtl`,[`${n}-notice-btn`]:{float:`left`}}})},{[x]:{position:`relative`,width:y,maxWidth:`calc(100vw - ${m*2}px)`,marginBottom:a,marginInlineStart:`auto`,padding:p,overflow:`hidden`,lineHeight:v,wordWrap:`break-word`,background:f,borderRadius:o,boxShadow:r,[`${n}-close-icon`]:{fontSize:_,cursor:`pointer`},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:_},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+b,fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.marginSM+b,fontSize:_},[`${x}-icon`]:{position:`absolute`,fontSize:b,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${x}-close`]:{position:`absolute`,top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:`none`,width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:`flex`,alignItems:`center`,justifyContent:`center`,"&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?`transparent`:e.colorFillContent}},[`${x}-btn`]:{float:`right`,marginTop:e.marginSM}}},{[`${x}-pure-panel`]:{margin:0}}]},il=$a(`Notification`,e=>{let t=e.paddingMD,n=e.paddingLG;return[rl(no(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55}))]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function al(e,t){return t||o(`span`,{class:`${e}-close-x`},[o(As,{class:`${e}-close-icon`},null)])}o(ic,null,null),o(Xs,null,null),o(Ps,null,null),o(ec,null,null),o(Es,null,null);var ol={success:Xs,info:ic,error:Ps,warning:ec};function sl(e){let{prefixCls:t,icon:n,type:r,message:i,description:a,btn:s}=e,c=null;if(n)c=o(`span`,{class:`${t}-icon`},[Cn(n)]);else if(r){let e=ol[r];c=o(e,{class:`${t}-icon ${t}-icon-${r}`},null)}return o(`div`,{class:F({[`${t}-with-icon`]:c}),role:`alert`},[c,o(`div`,{class:`${t}-message`},[i]),o(`div`,{class:`${t}-description`},[a]),s&&o(`div`,{class:`${t}-btn`},[s])])}u({name:`PurePanel`,inheritAttrs:!1,props:[`prefixCls`,`icon`,`type`,`message`,`description`,`btn`,`closeIcon`],setup(e){let{getPrefixCls:t}=Eo(`notification`,e),n=r(()=>e.prefixCls||t(`notification`)),i=r(()=>`${n.value}-notice`),[,a]=il(n);return()=>o(dc,N(N({},e),{},{prefixCls:n.value,class:F(a.value,`${i.value}-pure-panel`),noticeKey:`pure`,duration:null,closable:e.closable,closeIcon:al(n.value,e.closeIcon)}),{default:()=>[o(sl,{prefixCls:i.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});function cl(e,t,n){let r;switch(t=typeof t==`number`?`${t}px`:t,n=typeof n==`number`?`${n}px`:n,e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n}}return r}function ll(e){return{name:`${e}-fade`}}var ul=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.prefixCls||i(`notification`)),s=t=>cl(t,e.top??dl,e.bottom??dl),[,c]=il(o),[l,u]=Tc({prefixCls:o.value,getStyles:s,getClassName:()=>F(c.value,{[`${o.value}-rtl`]:e.rtl}),motion:()=>ll(o.value),closable:!0,closeIcon:al(o.value),duration:fl,getContainer:()=>e.getPopupContainer?.call(e)||a.value?.call(a)||document.body,maxCount:e.maxCount,hashId:c.value,onAllRemoved:e.onAllRemoved});return n(P(P({},l),{prefixCls:o.value,hashId:c})),u}});function ml(e){let t=D(null),n=Symbol(`notificationHolderKey`),r=e=>{if(!t.value)return;let{open:n,prefixCls:r,hashId:i}=t.value,a=`${r}-notice`,{message:s,description:c,icon:l,type:u,btn:d,class:f}=e,p=ul(e,[`message`,`description`,`icon`,`type`,`btn`,`class`]);return n(P(P({placement:`topRight`},p),{content:()=>o(sl,{prefixCls:a,icon:typeof l==`function`?l():l,type:u,message:typeof s==`function`?s():s,description:typeof c==`function`?c():c,btn:typeof d==`function`?d():d},null),class:F(u&&`${a}-${u}`,i,f)}))},i={open:r,destroy:e=>{var n,r;e===void 0?(r=t.value)==null||r.destroy():(n=t.value)==null||n.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r(P(P({},t),{type:e}))}),[i,()=>o(pl,N(N({key:n},e),{},{ref:t}),null)]}function hl(e){return ml(e)}var gl={},_l=4.5,vl=`24px`,yl=`24px`,bl=``,xl=`topRight`,Sl=()=>document.body,Cl=null,wl=!1,Tl;function El(e){let{duration:t,placement:n,bottom:r,top:i,getContainer:a,closeIcon:o,prefixCls:s}=e;s!==void 0&&(bl=s),t!==void 0&&(_l=t),n!==void 0&&(xl=n),r!==void 0&&(yl=typeof r==`number`?`${r}px`:r),i!==void 0&&(vl=typeof i==`number`?`${i}px`:i),a!==void 0&&(Sl=a),o!==void 0&&(Cl=o),e.rtl!==void 0&&(wl=e.rtl),e.maxCount!==void 0&&(Tl=e.maxCount)}function Dl(e,t){let{prefixCls:n,placement:r=xl,getContainer:i=Sl,top:a,bottom:s,closeIcon:c=Cl,appContext:l}=e,{getPrefixCls:u}=Hl(),d=u(`notification`,n||bl),f=`${d}-${r}-${wl}`,p=gl[f];if(p){Promise.resolve(p).then(e=>{t(e)});return}let m=F(`${d}-${r}`,{[`${d}-rtl`]:wl===!0});Ec.newInstance({name:`notification`,prefixCls:n||bl,useStyle:il,class:m,style:cl(r,a??vl,s??yl),appContext:l,getContainer:i,closeIcon:e=>{let{prefixCls:t}=e;return o(`span`,{class:`${t}-close-x`},[Cn(c,{},o(As,{class:`${t}-close-icon`},null))])},maxCount:Tl,hasTransitionName:!0},e=>{gl[f]=e,t(e)})}var Ol={success:pe,info:Hs,error:Ks,warning:Rs};function kl(e){let{icon:t,type:n,description:r,message:i,btn:a}=e,s=e.duration===void 0?_l:e.duration;Dl(e,c=>{c.notice({content:e=>{let{prefixCls:s}=e,c=`${s}-notice`,l=null;if(t)l=()=>o(`span`,{class:`${c}-icon`},[Cn(t)]);else if(n){let e=Ol[n];l=()=>o(e,{class:`${c}-icon ${c}-icon-${n}`},null)}return o(`div`,{class:l?`${c}-with-icon`:``},[l&&l(),o(`div`,{class:`${c}-message`},[!r&&l?o(`span`,{class:`${c}-message-single-line-auto-margin`},null):null,Cn(i)]),o(`div`,{class:`${c}-description`},[Cn(r)]),a?o(`span`,{class:`${c}-btn`},[Cn(a)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}var Al={open:kl,close(e){Object.keys(gl).forEach(t=>Promise.resolve(gl[t]).then(t=>{t.removeNotice(e)}))},config:El,destroy(){Object.keys(gl).forEach(e=>{Promise.resolve(gl[e]).then(e=>{e.destroy()}),delete gl[e]})}};[`success`,`info`,`warning`,`error`].forEach(e=>{Al[e]=t=>Al.open(P(P({},t),{type:e}))}),Al.warn=Al.warning,Al.useNotification=hl;var jl=`-ant-${Date.now()}-${Math.random()}`;function Ml(e,t){let n={},r=(e,t)=>{let n=e.clone();return n=t?.(n)||n,n.toRgbString()},i=(e,t)=>{let i=new K(e),a=ye(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=a[1],n[`${t}-color-hover`]=a[4],n[`${t}-color-active`]=a[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=a[0],n[`${t}-color-deprecated-border`]=a[2]};if(t.primaryColor){i(t.primaryColor,`primary`);let e=new K(t.primaryColor),a=ye(e.toRgbString());a.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n[`primary-color-deprecated-l-35`]=r(e,e=>e.lighten(35)),n[`primary-color-deprecated-l-20`]=r(e,e=>e.lighten(20)),n[`primary-color-deprecated-t-20`]=r(e,e=>e.tint(20)),n[`primary-color-deprecated-t-50`]=r(e,e=>e.tint(50)),n[`primary-color-deprecated-f-12`]=r(e,e=>e.setAlpha(e.getAlpha()*.12));let o=new K(a[0]);n[`primary-color-active-deprecated-f-30`]=r(o,e=>e.setAlpha(e.getAlpha()*.3)),n[`primary-color-active-deprecated-d-02`]=r(o,e=>e.darken(2))}return t.successColor&&i(t.successColor,`success`),t.warningColor&&i(t.warningColor,`warning`),t.errorColor&&i(t.errorColor,`error`),t.infoColor&&i(t.infoColor,`info`),` + :root { + ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join(` +`)} + } + `.trim()}function Nl(e,t){let n=Ml(e,t);Ir()?Yr(n,`${jl}-dynamic-theme`):$r(!1,`ConfigProvider`,`SSR do not support dynamic theme with css variables.`)}var Pl=e=>{let[t,n]=po();return Ta(r(()=>({theme:t.value,token:n.value,hashId:``,path:[`ant-design-icons`,e.value]})),()=>[{[`.${e.value}`]:P(P({},qa()),{[`.${e.value} .${e.value}-icon`]:{display:`block`}})}])};function Fl(e,t){let n=r(()=>e?.value||{}),i=r(()=>n.value.inherit===!1||!t?.value?so:t.value);return r(()=>{if(!e?.value)return t?.value;let r=P({},i.value.components);return Object.keys(e.value.components||{}).forEach(t=>{r[t]=P(P({},r[t]),e.value.components[t])}),P(P(P({},i.value),n.value),{token:P(P({},i.value.token),n.value.token),components:r})})}var Il=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{P($,zl),$.prefixCls=Ll(),$.iconPrefixCls=Rl(),$.getPrefixCls=(e,t)=>t||(e?`${$.prefixCls}-${e}`:$.prefixCls),$.getRootPrefixCls=()=>$.prefixCls?$.prefixCls:Ll()});var Bl,Vl=e=>{Bl&&Bl(),Bl=ce(()=>{P(zl,oe(e)),P($,oe(e))}),e.theme&&Nl(Ll(),e.theme)},Hl=()=>({getPrefixCls:(e,t)=>t||(e?`${Ll()}-${e}`:Ll()),getIconPrefixCls:Rl,getRootPrefixCls:()=>$.prefixCls?$.prefixCls:Ll()}),Ul=u({compatConfig:{MODE:3},name:`AConfigProvider`,inheritAttrs:!1,props:sr(),setup(e,t){let{slots:n}=t,i=ur(),a=(t,n)=>{let{prefixCls:r=`ant`}=e;if(n)return n;let a=r||i.getPrefixCls(``);return t?`${a}-${t}`:a},s=r(()=>e.iconPrefixCls||i.iconPrefixCls.value||`anticon`),c=r(()=>s.value!==i.iconPrefixCls.value),l=r(()=>e.csp||i.csp?.value),u=Pl(s),d=Fl(r(()=>e.theme),r(()=>i.theme?.value)),f=t=>(e.renderEmpty||n.renderEmpty||i.renderEmpty||So)(t),p=r(()=>e.autoInsertSpaceInButton??i.autoInsertSpaceInButton?.value),m=r(()=>e.locale||i.locale?.value);O(m,()=>{zl.locale=m.value},{immediate:!0});let h=r(()=>e.direction||i.direction?.value),g=r(()=>e.space??i.space?.value),_=r(()=>e.virtual??i.virtual?.value),v=r(()=>e.dropdownMatchSelectWidth??i.dropdownMatchSelectWidth?.value),y=r(()=>e.getTargetContainer===void 0?i.getTargetContainer?.value:e.getTargetContainer),b=r(()=>e.getPopupContainer===void 0?i.getPopupContainer?.value:e.getPopupContainer),x=r(()=>e.pageHeader===void 0?i.pageHeader?.value:e.pageHeader),S=r(()=>e.input===void 0?i.input?.value:e.input),C=r(()=>e.pagination===void 0?i.pagination?.value:e.pagination),w=r(()=>e.form===void 0?i.form?.value:e.form),ee=r(()=>e.select===void 0?i.select?.value:e.select),T=r(()=>e.componentSize),te=r(()=>e.componentDisabled),ne=r(()=>e.wave??i.wave?.value),re={csp:l,autoInsertSpaceInButton:p,locale:m,direction:h,space:g,virtual:_,dropdownMatchSelectWidth:v,getPrefixCls:a,iconPrefixCls:s,theme:r(()=>d.value??i.theme?.value),renderEmpty:f,getTargetContainer:y,getPopupContainer:b,pageHeader:x,input:S,pagination:C,form:w,select:ee,componentSize:T,componentDisabled:te,transformCellText:r(()=>e.transformCellText),wave:ne},ie=r(()=>{let e=d.value||{},{algorithm:t,token:n}=e,r=Il(e,[`algorithm`,`token`]),i=t&&(!Array.isArray(t)||t.length>0)?ri(t):void 0;return P(P({},r),{theme:i,token:P(P({},ja),n)})}),ae=r(()=>{let t={};return m.value&&(t=m.value.Form?.defaultValidateMessages||R.Form?.defaultValidateMessages||{}),e.form&&e.form.validateMessages&&(t=P(P({},t),e.form.validateMessages)),t});dr(re),ar({validateMessages:ae}),To(T),mr(te);let oe=t=>{let r=c.value?u(n.default?.call(n)):n.default?.call(n);if(e.theme){let e=function(){return r}();r=o(fo,{value:ie.value},{default:()=>[e]})}return o(uc,{locale:m.value||t,ANT_MARK__:cc},{default:()=>[r]})};return ce(()=>{h.value&&(el.config({rtl:h.value===`rtl`}),Al.config({rtl:h.value===`rtl`}))}),()=>o(Sr,{children:(e,t,n)=>oe(n)},null)}});Ul.config=Vl,Ul.install=function(e){e.component(Ul.name,Ul)};export{Ir as $,P as $t,bo as A,An as At,K as B,Bn as Bt,gs as C,Kn as Ct,Eo as D,Hn as Dt,ps as E,Jn as Et,Za as F,Gn as Ft,xi as G,En as Gt,G as H,Vn as Ht,Qa as I,jn as It,ti as J,mn as Jt,bi as K,Tn as Kt,Ka as L,Ln as Lt,no as M,Pn as Mt,$a as N,Fn as Nt,To as O,Un as Ot,Ja as P,Nn as Pt,Lr as Q,Sn as Qt,qa as R,On as Rt,vs as S,tr as St,fs as T,$n as Tt,Ea as U,Wn as Ut,Da as V,Rn as Vt,Ta as W,kn as Wt,qr as X,xn as Xt,$r as Y,_n as Yt,Yr as Z,on as Zt,Es as _,Xn as _t,el as a,at as an,br as at,hs as b,I as bt,sc as c,yr as ct,Xs as d,pr as dt,N as en,Pr as et,Ks as f,mr as ft,As as g,er as gt,Ps as h,Qn as ht,hl as i,Xt as in,Sr as it,po as j,In as jt,xo as k,Mn as kt,ic as l,vr as lt,Rs as m,or as mt,$ as n,Rt as nn,Mr as nt,Lc as o,Kt as on,xr as ot,Hs as p,ur as pt,ri as q,F as qt,Al as r,Zt as rn,Nr as rt,uc as s,R as st,Ul as t,Ue as tn,Or as tt,ec as u,hr as ut,Ss as v,Yn as vt,ms as w,qn as wt,_s as x,nr as xt,bs as y,Zn as yt,Ga as z,zn as zt}; \ No newline at end of file diff --git a/codes/web/dist/assets/index-BM4AsfIr.css b/codes/web/dist/assets/index-BM4AsfIr.css new file mode 100644 index 0000000..73c6a79 --- /dev/null +++ b/codes/web/dist/assets/index-BM4AsfIr.css @@ -0,0 +1 @@ +html,body{width:100%;height:100%}input::-ms-clear{display:none}input::-ms-reveal{display:none}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:#0000;font-family:sans-serif;line-height:1.15}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit;margin-bottom:1em}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{text-align:left;caption-side:bottom;padding-top:.75em;padding-bottom:.3em}input,button,select,optgroup,textarea{color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner{border-style:none;padding:0}[type=button]::-moz-focus-inner{border-style:none;padding:0}[type=reset]::-moz-focus-inner{border-style:none;padding:0}[type=submit]::-moz-focus-inner{border-style:none;padding:0}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{resize:vertical;overflow:auto}fieldset{border:0;min-width:0;margin:0;padding:0}legend{width:100%;max-width:100%;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal;margin-bottom:.5em;padding:0;display:block}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button{height:auto}[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{background-color:#feffe6;padding:.2em}:root{color:#202825;font-synthesis:none;text-rendering:optimizelegibility;--ink:#202825;--muted:#69746f;--line:#dce2df;--surface:#fff;--canvas:#f4f6f5;--green:#16775b;--green-dark:#0f5843;--coral:#d5644a;--amber:#b97a20;background:#f4f6f5;font-family:IBM Plex Sans,Noto Sans SC,PingFang SC,sans-serif}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{min-width:320px}button,input,textarea,select{font:inherit;letter-spacing:0}.page-shell{max-width:1440px;margin:0 auto;padding:24px 28px 40px}.page-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;display:flex}.page-heading h1{letter-spacing:0;margin:0;font-family:Noto Serif SC,Songti SC,serif;font-size:26px;font-weight:700;line-height:1.3}.page-heading p{color:var(--muted);margin:6px 0 0;line-height:1.6}.page-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.surface{background:var(--surface);border:1px solid var(--line);border-radius:6px}.toolbar{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.muted{color:var(--muted)}.empty-copy{max-width:360px;color:var(--muted);text-align:center;margin:0 auto;line-height:1.7}.status-dot{background:var(--green);border-radius:50%;width:7px;height:7px;margin-right:7px;display:inline-block}.ant-btn{box-shadow:none;border-radius:5px}.ant-btn-primary{background:var(--green)}.ant-btn-primary:hover{background:var(--green-dark)!important}.ant-table-wrapper .ant-table{border-radius:0 0 6px 6px}.ant-table-wrapper .ant-table-thead>tr>th{color:#52605a;background:#f7f9f8;font-size:12px;font-weight:650}.ant-tag{border-radius:3px}.ant-modal-content,.ant-drawer-content{border-radius:6px!important}.ant-card{border-radius:6px}.ant-input,.ant-input-number,.ant-select-selector,.ant-input-affix-wrapper{border-radius:4px!important}@media (width<=760px){.page-shell{padding:18px 14px 28px}.page-heading{flex-direction:column}.page-actions{width:100%}.page-heading h1{font-size:23px}}.app-frame[data-v-c7268e13]{min-height:100vh}.side-panel[data-v-c7268e13]{height:100vh;position:sticky;top:0;overflow:hidden;background:#202825!important}.brand[data-v-c7268e13]{border-bottom:1px solid #ffffff17;align-items:center;gap:12px;height:78px;padding:0 20px;display:flex}.brand.compact[data-v-c7268e13]{justify-content:center;padding:0}.brand-mark[data-v-c7268e13]{border:1px solid #ffffff38;border-radius:5px;grid-template-columns:repeat(3,1fr);align-items:end;gap:3px;width:32px;height:32px;padding:5px;display:grid}.brand-mark span[data-v-c7268e13]{background:#66c8a6;border-radius:1px 1px 0 0}.brand-mark span[data-v-c7268e13]:first-child{height:8px}.brand-mark span[data-v-c7268e13]:nth-child(2){height:14px}.brand-mark span[data-v-c7268e13]:nth-child(3){background:#f0a07d;height:20px}.brand-copy[data-v-c7268e13]{color:#fff;flex-direction:column;min-width:0;display:flex}.brand-copy strong[data-v-c7268e13]{letter-spacing:0;font-family:Noto Serif SC,serif;font-size:16px}.brand-copy small[data-v-c7268e13]{color:#a7b7b0;margin-top:2px;font-size:11px}.side-panel[data-v-c7268e13] .ant-menu-dark{background:0 0;padding:12px 9px}.side-panel[data-v-c7268e13] .ant-menu-item{color:#b9c4c0;border-radius:4px;height:42px;margin:5px 0}.side-panel[data-v-c7268e13] .ant-menu-item-selected{color:#fff;background:#166b53!important}.sider-foot[data-v-c7268e13]{color:#91a29b;border-top:1px solid #ffffff14;align-items:center;gap:8px;height:52px;padding:0 20px;font-size:12px;display:flex;position:absolute;bottom:0;left:0;right:0}.sider-foot.compact[data-v-c7268e13]{justify-content:center;padding:0}.online-dot[data-v-c7268e13]{background:#67caa8;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #67caa81f}.topbar[data-v-c7268e13]{z-index:20;background:#fffffff0;border-bottom:1px solid #dce2df;align-items:center;gap:12px;height:62px;padding:0 22px;line-height:normal;display:flex;position:sticky;top:0}.collapse-button[data-v-c7268e13]{width:36px;height:36px}.topbar-title[data-v-c7268e13]{color:#52605a;flex:1;font-size:14px}.user-button[data-v-c7268e13]{cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:9px;padding:6px 8px;display:flex}.user-button[data-v-c7268e13]:hover{background:#f1f4f2}.avatar[data-v-c7268e13]{color:#126248;background:#e5f2ed;border-radius:4px;place-items:center;width:32px;height:32px;font-weight:700;display:grid}.user-copy[data-v-c7268e13]{text-align:left;flex-direction:column;display:flex}.user-copy strong[data-v-c7268e13]{font-size:13px}.user-copy small[data-v-c7268e13]{color:#7c8883;margin-top:2px;font-size:11px}.content-area[data-v-c7268e13]{background:#f4f6f5;min-width:0}@media (width<=760px){.side-panel[data-v-c7268e13],.user-copy[data-v-c7268e13]{display:none}.topbar[data-v-c7268e13]{padding:0 12px}} diff --git a/codes/web/dist/assets/index-DL8F6dio.js b/codes/web/dist/assets/index-DL8F6dio.js new file mode 100644 index 0000000..bf87675 --- /dev/null +++ b/codes/web/dist/assets/index-DL8F6dio.js @@ -0,0 +1,327 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CX7kNBHw.js","assets/client-CO11mUW5.js","assets/config-provider-kwhtQ-D4.js","assets/auth-D7KJ41TQ.js","assets/useApi-CROJJdhE-BlzMTLF9.js","assets/LoginView-BEx5f_cA.css","assets/DashboardView-DpoQIy_X.js","assets/PlusOutlined-5Urx-Evx.js","assets/AppstoreOutlined-BOx6VBGQ.js","assets/PlayCircleOutlined-C2UGH7h6.js","assets/DashboardView-PPsIN8E9.css","assets/ScenariosView-DZfzIhhk.js","assets/SearchOutlined-DRcWUFRC.js","assets/ScenariosView-CwB6WxAz.css","assets/ScenarioDetailView-B-4AAfC9.js","assets/DeleteOutlined-Dsl9pMnk.js","assets/ArrowLeftOutlined-m6YdiMlD.js","assets/ScenarioDetailView-DWNPSm13.css","assets/SOPEditorView-CmiIrIPT.js","assets/SOPEditorView-DdGSx6p0.css","assets/ExecuteView-DmAbM9s0.js","assets/ExecuteView-bT0HI80x.css","assets/RunHistoryView-BpCB2LRG.js","assets/RunHistoryView-B07xvIJS.css","assets/KnowledgeView-W6lPD5mD.js","assets/BookOutlined-CNUY9qCc.js","assets/KnowledgeView-zQYEMPl4.css"])))=>i.map(i=>d[i]); +import{$ as e,A as t,Bt as n,C as r,Ct as i,D as a,E as o,F as s,G as c,H as l,Ht as u,I as d,J as f,K as p,L as m,O as h,P as g,Q as _,S as v,St as y,Tt as b,U as x,Ut as S,V as C,W as w,Wt as T,X as E,Y as D,Z as O,_t as k,a as A,at as j,bt as M,c as N,ct as P,ft as F,gt as I,i as L,j as ee,k as R,lt as z,mt as B,nt as te,q as V,r as ne,s as re,st as H,tt as U,ut as ie,vt as W,w as ae,wt as oe,xt as se,yt as ce,z as le,zt as ue}from"./client-CO11mUW5.js";import{$ as de,$t as G,A as fe,At as pe,B as me,Bt as he,C as ge,Ct as _e,D as K,Dt as ve,E as ye,Et as be,F as xe,Ft as Se,G as Ce,Gt as we,H as Te,Ht as Ee,I as De,It as Oe,J as ke,Jt as Ae,K as je,Kt as Me,L as Ne,Lt as Pe,M as Fe,Mt as Ie,N as Le,Nt as Re,O as ze,Ot as Be,P as Ve,Pt as He,Q as Ue,Qt as We,R as Ge,Rt as Ke,S as qe,St as q,T as J,Tt as Je,U as Ye,Ut as Xe,V as Ze,Vt as Qe,W as $e,Wt as et,Xt as tt,Y as nt,Yt as rt,Zt as it,_ as at,_t as Y,a as ot,an as st,at as ct,b as lt,bt as ut,ct as dt,d as ft,dt as pt,en as X,et as mt,f as ht,ft as gt,g as _t,gt as vt,h as yt,ht as bt,i as xt,it as St,j as Ct,jt as wt,k as Tt,kt as Et,l as Dt,lt as Ot,m as kt,mt as At,nn as jt,nt as Mt,o as Nt,on as Pt,ot as Ft,p as It,pt as Lt,q as Rt,qt as Z,r as zt,rn as Bt,rt as Vt,s as Ht,st as Ut,t as Wt,tn as Gt,tt as Kt,u as qt,ut as Jt,vt as Yt,w as Xt,wt as Zt,x as Qt,xt as $t,y as en,yt as Q,z as tn,zt as nn}from"./config-provider-kwhtQ-D4.js";import{n as rn,t as an}from"./auth-D7KJ41TQ.js";import{$ as on,A as sn,B as cn,C as ln,D as un,E as dn,F as fn,G as pn,H as mn,I as hn,J as gn,K as _n,L as vn,M as yn,N as bn,O as $,P as xn,Q as Sn,R as Cn,S as wn,T as Tn,U as En,V as Dn,W as On,X as kn,Y as An,Z as jn,_ as Mn,a as Nn,b as Pn,c as Fn,ct as In,d as Ln,dt as Rn,et as zn,f as Bn,ft as Vn,g as Hn,h as Un,i as Wn,it as Gn,j as Kn,k as qn,l as Jn,lt as Yn,m as Xn,n as Zn,nt as Qn,o as $n,ot as er,p as tr,q as nr,r as rr,rt as ir,s as ar,t as or,tt as sr,u as cr,ut as lr,v as ur,w as dr,x as fr,y as pr,z as mr}from"./DeleteOutlined-Dsl9pMnk.js";import{t as hr}from"./SearchOutlined-DRcWUFRC.js";import{t as gr}from"./PlusOutlined-5Urx-Evx.js";import{t as _r}from"./ArrowLeftOutlined-m6YdiMlD.js";import{n as vr,t as yr}from"./AppstoreOutlined-BOx6VBGQ.js";import{t as br}from"./BookOutlined-CNUY9qCc.js";import{t as xr}from"./PlayCircleOutlined-C2UGH7h6.js";import{a as Sr,c as Cr,d as wr,f as Tr,g as Er,h as Dr,i as Or,l as kr,m as Ar,n as jr,o as Mr,p as Nr,r as Pr,s as Fr,t as Ir,u as Lr}from"./useApi-CROJJdhE-BlzMTLF9.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Rr=(function(){if(typeof Map<`u`)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){t===void 0&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){!zr||this.connected_||(document.addEventListener(`transitionend`,this.onTransitionEnd_),window.addEventListener(`resize`,this.refresh),Kr?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener(`DOMSubtreeModified`,this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zr||!this.connected_||(document.removeEventListener(`transitionend`,this.onTransitionEnd_),window.removeEventListener(`resize`,this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener(`DOMSubtreeModified`,this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?``:t;Gr.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||=new e,this.instance_},e.instance_=null,e}(),Jr=(function(e,t){for(var n=0,r=Object.keys(t);n`u`||!(Element instanceof Object))){if(!(e instanceof Yr(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)||(t.set(e,new si(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);if(!(typeof Element>`u`||!(Element instanceof Object))){if(!(e instanceof Yr(e).Element))throw TypeError(`parameter 1 is not of type "Element".`);var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ci(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ui=typeof WeakMap<`u`?new WeakMap:new Rr,di=function(){function e(t){if(!(this instanceof e))throw TypeError(`Cannot call a class as a function.`);if(!arguments.length)throw TypeError(`1 argument required, but only 0 present.`);var n=new li(t,qr.getInstance(),this);ui.set(this,n)}return e}();[`observe`,`unobserve`,`disconnect`].forEach(function(e){di.prototype[e]=function(){var t;return(t=ui.get(this))[e].apply(t,arguments)}});var fi=(function(){return Br.ResizeObserver===void 0?di:Br.ResizeObserver})(),pi=d({compatConfig:{MODE:3},name:`ResizeObserver`,props:{disabled:Boolean,onResize:Function},emits:[`resize`],setup(e,t){let{slots:n}=t,r=k({width:0,height:0,offsetHeight:0,offsetWidth:0}),i=null,a=null,o=()=>{a&&=(a.disconnect(),null)},s=t=>{let{onResize:n}=e,i=t[0].target,{width:a,height:o}=i.getBoundingClientRect(),{offsetWidth:s,offsetHeight:c}=i,l=Math.floor(a),u=Math.floor(o);if(r.width!==l||r.height!==u||r.offsetWidth!==s||r.offsetHeight!==c){let e={width:l,height:u,offsetWidth:s,offsetHeight:c};G(r,e),n&&Promise.resolve().then(()=>{n(G(G({},e),{offsetWidth:s,offsetHeight:c}),i)})}},c=m(),l=()=>{let{disabled:t}=e;if(t){o();return}let n=Et(c);n!==i&&(o(),i=n),!a&&n&&(a=new fi(s),a.observe(n))};return D(()=>{l()}),O(()=>{l()}),E(()=>{o()}),H(()=>e.disabled,()=>{l()},{flush:`post`}),()=>n.default?.call(n)[0]}});function mi(e){let t,n=n=>()=>{t=null,e(...n)},r=function(){t??=Rn(n([...arguments]))};return r.cancel=()=>{Rn.cancel(t),t=null},r}function hi(e){return e===window?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}function gi(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function _i(e,t,n){if(n!==void 0&&t.bottomt.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},yi.push(n),vi.forEach(t=>{n.eventHandlers[t]=Yn(e,t,()=>{n.affixList.forEach(e=>{let{lazyUpdatePosition:t}=e.exposed;t()},(t===`touchstart`||t===`touchmove`)&&lr?{passive:!0}:!1)})}))}function xi(e){let t=yi.find(t=>{let n=t.affixList.some(t=>t===e);return n&&(t.affixList=t.affixList.filter(t=>t!==e)),n});t&&t.affixList.length===0&&(yi=yi.filter(e=>e!==t),vi.forEach(e=>{let n=t.eventHandlers[e];n&&n.remove&&n.remove()}))}function Si(e,t){let{path:n,parentSelectors:r}=t;In(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:``}${e}${r.length?` Selector info: ${r.join(` -> `)}`:``}`)}function Ci(e){return(e.match(/:not\(([^)]*)\)/)?.[1]||``).split(/(\[[^[]*])|(?=[.#])/).filter(e=>e).length>1}function wi(e){return e.parentSelectors.reduce((e,t)=>e?t.includes(`&`)?t.replace(/&/g,e):`${e} ${t}`:t,``)}var Ti=(e,t,n)=>{let r=wi(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(Ci)&&Si(`Concat ':not' selector not support in legacy browsers.`,n)},Ei=(e,t,n)=>{switch(e){case`marginLeft`:case`marginRight`:case`paddingLeft`:case`paddingRight`:case`left`:case`right`:case`borderLeft`:case`borderLeftWidth`:case`borderLeftStyle`:case`borderLeftColor`:case`borderRight`:case`borderRightWidth`:case`borderRightStyle`:case`borderRightColor`:case`borderTopLeftRadius`:case`borderTopRightRadius`:case`borderBottomLeftRadius`:case`borderBottomRightRadius`:Si(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case`margin`:case`padding`:case`borderWidth`:case`borderStyle`:if(typeof t==`string`){let r=t.split(` `).map(e=>e.trim());r.length===4&&r[1]!==r[3]&&Si(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case`clear`:case`textAlign`:(t===`left`||t===`right`)&&Si(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case`borderRadius`:typeof t==`string`&&t.split(`/`).map(e=>e.trim()).reduce((e,t)=>{if(e)return e;let n=t.split(` `).map(e=>e.trim());return n.length>=2&&n[0]!==n[1]||n.length===3&&n[1]!==n[2]||n.length===4&&n[2]!==n[3]||e},!1)&&Si(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return}},Di=(e,t,n)=>{n.parentSelectors.some(e=>e.split(`,`).some(e=>e.split(`&`).length>2))&&Si("Should not use more than one `&` in a selector.",n)};function Oi(e){if(typeof e==`number`)return[e];let t=String(e).split(/\s+/),n=``,r=0;return t.reduce((e,t)=>(t.includes(`(`)?(n+=t,r+=t.split(`(`).length-1):t.includes(`)`)?(n+=` ${t}`,r-=t.split(`)`).length-1,r===0&&(e.push(n),n=``)):r>0?n+=` ${t}`:e.push(t),e),[])}function ki(e){return e.notSplit=!0,e}var Ai={inset:[`top`,`right`,`bottom`,`left`],insetBlock:[`top`,`bottom`],insetBlockStart:[`top`],insetBlockEnd:[`bottom`],insetInline:[`left`,`right`],insetInlineStart:[`left`],insetInlineEnd:[`right`],marginBlock:[`marginTop`,`marginBottom`],marginBlockStart:[`marginTop`],marginBlockEnd:[`marginBottom`],marginInline:[`marginLeft`,`marginRight`],marginInlineStart:[`marginLeft`],marginInlineEnd:[`marginRight`],paddingBlock:[`paddingTop`,`paddingBottom`],paddingBlockStart:[`paddingTop`],paddingBlockEnd:[`paddingBottom`],paddingInline:[`paddingLeft`,`paddingRight`],paddingInlineStart:[`paddingLeft`],paddingInlineEnd:[`paddingRight`],borderBlock:ki([`borderTop`,`borderBottom`]),borderBlockStart:ki([`borderTop`]),borderBlockEnd:ki([`borderBottom`]),borderInline:ki([`borderLeft`,`borderRight`]),borderInlineStart:ki([`borderLeft`]),borderInlineEnd:ki([`borderRight`]),borderBlockWidth:[`borderTopWidth`,`borderBottomWidth`],borderBlockStartWidth:[`borderTopWidth`],borderBlockEndWidth:[`borderBottomWidth`],borderInlineWidth:[`borderLeftWidth`,`borderRightWidth`],borderInlineStartWidth:[`borderLeftWidth`],borderInlineEndWidth:[`borderRightWidth`],borderBlockStyle:[`borderTopStyle`,`borderBottomStyle`],borderBlockStartStyle:[`borderTopStyle`],borderBlockEndStyle:[`borderBottomStyle`],borderInlineStyle:[`borderLeftStyle`,`borderRightStyle`],borderInlineStartStyle:[`borderLeftStyle`],borderInlineEndStyle:[`borderRightStyle`],borderBlockColor:[`borderTopColor`,`borderBottomColor`],borderBlockStartColor:[`borderTopColor`],borderBlockEndColor:[`borderBottomColor`],borderInlineColor:[`borderLeftColor`,`borderRightColor`],borderInlineStartColor:[`borderLeftColor`],borderInlineEndColor:[`borderRightColor`],borderStartStartRadius:[`borderTopLeftRadius`],borderStartEndRadius:[`borderTopRightRadius`],borderEndStartRadius:[`borderBottomLeftRadius`],borderEndEndRadius:[`borderBottomRightRadius`]};function ji(e){return{_skip_check_:!0,value:e}}var Mi={visit:e=>{let t={};return Object.keys(e).forEach(n=>{let r=e[n],i=Ai[n];if(i&&(typeof r==`number`||typeof r==`string`)){let e=Oi(r);i.length&&i.notSplit?i.forEach(e=>{t[e]=ji(r)}):i.length===1?t[i[0]]=ji(r):i.length===2?i.forEach((n,r)=>{t[n]=ji(e[r]??e[0])}):i.length===4?i.forEach((n,r)=>{t[n]=ji(e[r]??e[r-2]??e[0])}):t[n]=r}else t[n]=r}),t}},Ni=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Pi(e,t){let n=10**(t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var Fi={Theme:ke,createTheme:Rt,useStyleRegister:$e,useCacheToken:je,createCache:Kt,useStyleInject:Mt,useStyleProvider:Vt,Keyframes:Te,extractStyle:Ye,legacyLogicalPropertiesTransformer:Mi,px2remTransformer:function(){let{rootValue:e=16,precision:t=5,mediaQuery:n=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=(n,r)=>{if(!r)return n;let i=parseFloat(r);return i<=1?n:`${Pi(i/e,t)}rem`};return{visit:e=>{let t=G({},e);return Object.entries(e).forEach(e=>{let[i,a]=e;if(typeof a==`string`&&a.includes(`px`)){let e=a.replace(Ni,r);t[i]=e}!Ce[i]&&typeof a==`number`&&a!==0&&(t[i]=`${a}px`.replace(Ni,r));let o=i.trim();if(o.startsWith(`@`)&&o.includes(`px`)&&n){let e=i.replace(Ni,r);t[e]=t[i],delete t[i]}}),t}}},logicalPropertiesLinter:Ei,legacyNotSelectorLinter:Ti,parentSelectorLinter:Di,StyleProvider:mt},Ii=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`],Li=e=>({color:e.colorLink,textDecoration:`none`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),Ri=(e,t,n,r,i)=>{let a=e/2,o=a,s=n*1/Math.sqrt(2),c=a-n*(1-1/Math.sqrt(2)),l=a-1/Math.sqrt(2)*t,u=n*(Math.sqrt(2)-1)+1/Math.sqrt(2)*t,d=2*a-l,f=u,p=2*a-s,m=c,h=2*a-0,g=o,_=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),v=n*(Math.sqrt(2)-1);return{pointerEvents:`none`,width:e,height:e,overflow:`hidden`,"&::after":{content:`""`,position:`absolute`,width:_,height:_,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:i,zIndex:0,background:`transparent`},"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${v}px 100%, 50% ${v}px, ${2*a-v}px 100%, ${v}px 100%)`,`path('M 0 ${o} A ${n} ${n} 0 0 0 ${s} ${c} L ${l} ${u} A ${t} ${t} 0 0 1 ${d} ${f} L ${p} ${m} A ${n} ${n} 0 0 0 ${h} ${g} Z')`]},content:`""`}}};function zi(e,t){return Ii.reduce((n,r)=>{let i=e[`${r}-1`],a=e[`${r}-3`],o=e[`${r}-6`],s=e[`${r}-7`];return G(G({},n),t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}var Bi=e=>{let{componentCls:t}=e;return{[t]:{position:`fixed`,zIndex:e.zIndexPopup}}},Vi=Le(`Affix`,e=>[Bi(Fe(e,{zIndexPopup:e.zIndexBase+10}))]);function Hi(){return typeof window<`u`?window:null}var Ui;(function(e){e[e.None=0]=`None`,e[e.Prepare=1]=`Prepare`})(Ui||={});var Wi=d({compatConfig:{MODE:3},name:`AAffix`,inheritAttrs:!1,props:{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:Hi},prefixCls:String,onChange:Function,onTestUpdatePosition:Function},setup(e,t){let{slots:n,emit:r,expose:i,attrs:o}=t,c=M(),l=M(),u=k({affixStyle:void 0,placeholderStyle:void 0,status:Ui.None,lastAffix:!1,prevTarget:null,timeout:null}),d=m(),f=a(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),p=a(()=>e.offsetBottom),h=()=>{let{status:t,lastAffix:n}=u,{target:i}=e;if(t!==Ui.Prepare||!l.value||!c.value||!i)return;let a=i();if(!a)return;let o={status:Ui.None},s=hi(c.value);if(s.top===0&&s.left===0&&s.width===0&&s.height===0)return;let d=hi(a),m=gi(s,d,f.value),h=_i(s,d,p.value);if(s.top!==0||s.left!==0||s.width!==0||s.height!==0){if(m!==void 0){let e=`${s.width}px`,t=`${s.height}px`;o.affixStyle={position:`fixed`,top:m,width:e,height:t},o.placeholderStyle={width:e,height:t}}else if(h!==void 0){let e=`${s.width}px`,t=`${s.height}px`;o.affixStyle={position:`fixed`,bottom:h,width:e,height:t},o.placeholderStyle={width:e,height:t}}o.lastAffix=!!o.affixStyle,n!==o.lastAffix&&r(`change`,o.lastAffix),G(u,o)}},g=()=>{G(u,{status:Ui.Prepare,affixStyle:void 0,placeholderStyle:void 0})},_=mi(()=>{g()}),v=mi(()=>{let{target:t}=e,{affixStyle:n}=u;if(t&&n){let e=t();if(e&&c.value){let t=hi(e),r=hi(c.value),i=gi(r,t,f.value),a=_i(r,t,p.value);if(i!==void 0&&n.top===i||a!==void 0&&n.bottom===a)return}}g()});i({updatePosition:_,lazyUpdatePosition:v}),H(()=>e.target,e=>{let t=e?.()||null;u.prevTarget!==t&&(xi(d),t&&(bi(t,d),_()),u.prevTarget=t)}),H(()=>[e.offsetTop,e.offsetBottom],_),D(()=>{let{target:t}=e;t&&(u.timeout=setTimeout(()=>{bi(t(),d),_()}))}),O(()=>{h()}),E(()=>{clearTimeout(u.timeout),xi(d),_.cancel(),v.cancel()});let{prefixCls:y}=K(`affix`,e),[b,x]=Vi(y);return()=>{let{affixStyle:t,placeholderStyle:r,status:i}=u,a=Z({[y.value]:t,[x.value]:!0}),d=Gn(e,[`prefixCls`,`offsetTop`,`offsetBottom`,`target`,`onChange`,`onTestUpdatePosition`]);return b(s(pi,{onResize:_},{default:()=>[s(`div`,X(X(X({},d),o),{},{ref:c,"data-measure-status":i}),[t&&s(`div`,{style:r,"aria-hidden":`true`},null),s(`div`,{class:a,ref:l,style:t},[n.default?.call(n)])])]}))}}}),Gi=be(Wi);function Ki(e){return typeof e==`object`&&!!e&&e.nodeType===1}function qi(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function Ji(e,t){if(e.clientHeightt||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0}var Xi=function(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,c=typeof o==`function`?o:function(e){return e!==o};if(!Ki(e))throw TypeError(`Invalid target`);for(var l,u=document.scrollingElement||document.documentElement,d=[],f=e;Ki(f)&&c(f);){if((f=(l=f).parentElement??(l.getRootNode().host||null))===u){d.push(f);break}f!=null&&f===document.body&&Ji(f)&&!Ji(document.documentElement)||f!=null&&Ji(f,s)&&d.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),v=_.height,y=_.width,b=_.top,x=_.right,S=_.bottom,C=_.left,w=i===`start`||i===`nearest`?b:i===`end`?S:b+v/2,T=a===`center`?C+y/2:a===`end`?x:C,E=[],D=0;D=0&&C>=0&&S<=m&&x<=p&&b>=M&&S<=P&&C>=F&&x<=N)return E;var I=getComputedStyle(O),L=parseInt(I.borderLeftWidth,10),ee=parseInt(I.borderTopWidth,10),R=parseInt(I.borderRightWidth,10),z=parseInt(I.borderBottomWidth,10),B=0,te=0,V=`offsetWidth`in O?O.offsetWidth-O.clientWidth-L-R:0,ne=`offsetHeight`in O?O.offsetHeight-O.clientHeight-ee-z:0,re=`offsetWidth`in O?O.offsetWidth===0?0:j/O.offsetWidth:0,H=`offsetHeight`in O?O.offsetHeight===0?0:A/O.offsetHeight:0;if(u===O)B=i===`start`?w:i===`end`?w-m:i===`nearest`?Yi(g,g+m,m,ee,z,g+w,g+w+v,v):w-m/2,te=a===`start`?T:a===`center`?T-p/2:a===`end`?T-p:Yi(h,h+p,p,L,R,h+T,h+T+y,y),B=Math.max(0,B+g),te=Math.max(0,te+h);else{B=i===`start`?w-M-ee:i===`end`?w-P+z+ne:i===`nearest`?Yi(M,P,A,ee,z+ne,w,w+v,v):w-(M+A/2)+ne/2,te=a===`start`?T-F-L:a===`center`?T-(F+j/2)+V/2:a===`end`?T-N+R+V:Yi(F,N,j,L,R+V,T,T+y,y);var U=O.scrollLeft,ie=O.scrollTop;w+=ie-(B=Math.max(0,Math.min(ie+B/H,O.scrollHeight-A/H+ne))),T+=U-(te=Math.max(0,Math.min(U+te/re,O.scrollWidth-j/re+V)))}E.push({el:O,top:B,left:te})}return E};function Zi(e){return e===Object(e)&&Object.keys(e).length!==0}function Qi(e,t){t===void 0&&(t=`auto`);var n=`scrollBehavior`in document.body.style;e.forEach(function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)})}function $i(e){return e===!1?{block:`end`,inline:`nearest`}:Zi(e)?e:{block:`start`,inline:`nearest`}}function ea(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(Zi(t)&&typeof t.behavior==`function`)return t.behavior(n?Xi(e,t):[]);if(n){var r=$i(t);return Qi(Xi(e,r),r.behavior)}}function ta(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function na(e){return e!=null&&e===e.window}function ra(e,t){if(typeof window>`u`)return 0;let n=t?`scrollTop`:`scrollLeft`,r=0;return na(e)?r=e[t?`scrollY`:`scrollX`]:e instanceof Document?r=e.documentElement[n]:(e instanceof HTMLElement||e)&&(r=e[n]),e&&!na(e)&&typeof r!=`number`&&(r=(e.ownerDocument??e).documentElement?.[n]),r}function ia(e){let{getContainer:t=()=>window,callback:n,duration:r=450}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t(),a=ra(i,!0),o=Date.now(),s=()=>{let t=Date.now()-o,c=ta(t>r?r:t,a,e,r);na(i)?i.scrollTo(window.scrollX,c):i instanceof Document?i.documentElement.scrollTop=c:i.scrollTop=c,t{e(oa,t)},ca=()=>C(oa,{registerLink:aa,unregisterLink:aa,scrollTo:aa,activeLink:a(()=>``),handleClick:aa,direction:a(()=>`vertical`)}),la=e=>{let{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:i,colorPrimary:a,lineType:o,colorSplit:s}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:`transparent`,[t]:G(G({},Ne(e)),{position:`relative`,paddingInlineStart:i,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":G(G({},tn),{position:`relative`,display:`block`,marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:`absolute`,left:{_skip_check_:!0,value:0},top:0,height:`100%`,borderInlineStart:`${i}px ${o} ${s}`,content:`" "`},[`${t}-ink`]:{position:`absolute`,left:{_skip_check_:!0,value:0},display:`none`,transform:`translateY(-50%)`,transition:`top ${r} ease-in-out`,width:i,backgroundColor:a,[`&${t}-ink-visible`]:{display:`inline-block`}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:`none`}}}},ua=e=>{let{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:`relative`,"&::before":{position:`absolute`,left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:`" "`},[t]:{overflowX:`scroll`,position:`relative`,display:`flex`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:`absolute`,bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:i}}}}},da=Le(`Anchor`,e=>{let{fontSize:t,fontSizeLG:n,padding:r,paddingXXS:i}=e,a=Fe(e,{holderOffsetBlock:i,anchorPaddingBlock:i,anchorPaddingBlockSecondary:i/2,anchorPaddingInline:r,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[la(a),ua(a)]}),fa=d({compatConfig:{MODE:3},name:`AAnchorLink`,inheritAttrs:!1,props:Vn({prefixCls:String,href:String,title:bt(),target:String,customTitleProps:ut()},{href:`#`}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,i=null,{handleClick:a,scrollTo:o,unregisterLink:c,registerLink:l,activeLink:u}=ca(),{prefixCls:d}=K(`anchor`,e),f=t=>{let{href:n}=e;a(t,{title:i,href:n}),o(n)};return H(()=>e.href,(e,t)=>{x(()=>{c(t),l(e)})}),D(()=>{l(e.href)}),p(()=>{c(e.href)}),()=>{let{href:t,target:a,title:o=n.title,customTitleProps:c={}}=e,l=d.value;i=typeof o==`function`?o(c):o;let p=u.value===t,m=Z(`${l}-link`,{[`${l}-link-active`]:p},r.class),h=Z(`${l}-link-title`,{[`${l}-link-title-active`]:p});return s(`div`,X(X({},r),{},{class:m}),[s(`a`,{class:h,href:t,title:typeof i==`string`?i:``,target:a,onClick:f},[n.customTitle?n.customTitle(c):i]),n.default?.call(n)])}}});function pa(){return window}function ma(e,t){if(!e.getClientRects().length)return 0;let n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}var ha=/#([\S ]+)$/,ga=d({compatConfig:{MODE:3},name:`AAnchor`,inheritAttrs:!1,props:{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:vt(),direction:J.oneOf([`vertical`,`horizontal`]).def(`vertical`),onChange:Function,onClick:Function},setup(e,t){let{emit:n,attrs:r,slots:i,expose:o}=t,{prefixCls:c,getTargetContainer:l,direction:u}=K(`anchor`,e),d=a(()=>e.direction??`vertical`),f=W(null),m=W(),h=k({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=W(null),_=a(()=>{let{getContainer:t}=e;return t||l?.value||pa}),v=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=[],r=_.value();return h.links.forEach(i=>{let a=ha.exec(i.toString());if(!a)return;let o=document.getElementById(a[1]);if(o){let a=ma(o,r);at.top>e.top?t:e).link:``},y=t=>{let{getCurrentAnchor:r}=e;g.value!==t&&(g.value=typeof r==`function`?r(t):t,n(`change`,t))},b=t=>{let{offsetTop:n,targetOffset:r}=e;y(t);let i=ha.exec(t);if(!i)return;let a=document.getElementById(i[1]);if(!a)return;let o=_.value(),s=ra(o,!0)+ma(a,o);s-=r===void 0?n||0:r,h.animating=!0,ia(s,{callback:()=>{h.animating=!1},getContainer:_.value})};o({scrollTo:b});let S=()=>{if(h.animating)return;let{offsetTop:t,bounds:n,targetOffset:r}=e,i=v(r===void 0?t||0:r,n);y(i)},C=()=>{let e=m.value.querySelector(`.${c.value}-link-title-active`);if(e&&f.value){let t=d.value===`horizontal`;f.value.style.top=t?``:`${e.offsetTop+e.clientHeight/2}px`,f.value.style.height=t?``:`${e.clientHeight}px`,f.value.style.left=t?`${e.offsetLeft}px`:``,f.value.style.width=t?`${e.clientWidth}px`:``,t&&ea(e,{scrollMode:`if-needed`,block:`nearest`})}};sa({registerLink:e=>{h.links.includes(e)||h.links.push(e)},unregisterLink:e=>{let t=h.links.indexOf(e);t!==-1&&h.links.splice(t,1)},activeLink:g,scrollTo:b,handleClick:(e,t)=>{n(`click`,e,t)},direction:d}),D(()=>{x(()=>{let e=_.value();h.scrollContainer=e,h.scrollEvent=Yn(h.scrollContainer,`scroll`,S),S()})}),p(()=>{h.scrollEvent&&h.scrollEvent.remove()}),O(()=>{if(h.scrollEvent){let e=_.value();h.scrollContainer!==e&&(h.scrollContainer=e,h.scrollEvent.remove(),h.scrollEvent=Yn(h.scrollContainer,`scroll`,S),S())}C()});let w=e=>Array.isArray(e)?e.map(e=>{let{children:t,key:n,href:r,target:a,class:o,style:c,title:l}=e;return s(fa,{key:n,href:r,target:a,class:o,style:c,title:l,customTitleProps:e},{default:()=>[d.value===`vertical`?w(t):null],customTitle:i.customTitle})}):null,[T,E]=da(c);return()=>{let{offsetTop:t,affix:n,showInkInFixed:a}=e,o=c.value,l=Z(`${o}-ink`,{[`${o}-ink-visible`]:g.value}),p=Z(E.value,e.wrapperClass,`${o}-wrapper`,{[`${o}-wrapper-horizontal`]:d.value===`horizontal`,[`${o}-rtl`]:u.value===`rtl`}),h=Z(o,{[`${o}-fixed`]:!n&&!a}),v=G({maxHeight:t?`calc(100vh - ${t}px)`:`100vh`},e.wrapperStyle),y=s(`div`,{class:p,style:v,ref:m},[s(`div`,{class:h},[s(`span`,{class:l,ref:f},null),Array.isArray(e.items)?w(e.items):i.default?.call(i)])]);return T(n?s(Gi,X(X({},r),{},{offsetTop:t,target:_.value}),{default:()=>[y]}):y)}}});ga.Link=fa,ga.install=function(e){return e.component(ga.name,ga),e.component(ga.Link.name,ga.Link),e};var _a=ga;function va(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function ya(e,t){let{label:n,value:r,options:i}=e||{};return{label:n||(t?`children`:`label`),value:r||`value`,options:i||`options`}}function ba(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],{label:i,value:a,options:o}=ya(t,!1);function s(e,t){e.forEach(e=>{let c=e[i];if(t||!(o in e)){let n=e[a];r.push({key:va(e,r.length),groupOption:t,data:e,label:c,value:n})}else{let t=c;t===void 0&&n&&(t=e.label),r.push({key:va(e,r.length),group:!0,data:e,label:t}),s(e[o],!0)}})}return s(e,!1),r}function xa(e){let t=G({},e);return`props`in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Sa(e,t){if(!t||!t.length)return null;let n=!1;function r(e,t){let[i,...a]=t;if(!i)return[e];let o=e.split(i);return n||=o.length>1,o.reduce((e,t)=>[...e,...r(t,a)],[]).filter(e=>e)}let i=r(e,t);return n?i:null}function Ca(){return``}function wa(e){return e?e.ownerDocument:window.document}function Ta(){}var Ea=()=>({action:J.oneOfType([J.string,J.arrayOf(J.string)]).def([]),showAction:J.any.def([]),hideAction:J.any.def([]),getPopupClassNameFromAlign:J.any.def(Ca),onPopupVisibleChange:Function,afterPopupVisibleChange:J.func.def(Ta),popup:J.any,arrow:J.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:J.string.def(`rc-trigger-popup`),popupClassName:J.string.def(``),popupPlacement:String,builtinPlacements:J.object,popupTransitionName:String,popupAnimation:J.any,mouseEnterDelay:J.number.def(0),mouseLeaveDelay:J.number.def(.1),zIndex:Number,focusDelay:J.number.def(0),blurDelay:J.number.def(.15),getPopupContainer:Function,getDocument:J.func.def(wa),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:J.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),Da={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Oa=G(G({},Da),{mobile:{type:Object}}),ka=G(G({},Da),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Aa(e){let{prefixCls:t,visible:n,zIndex:r,mask:i,maskAnimation:a,maskTransitionName:o}=e;if(!i)return null;let c={};return(o||a)&&(c=Xt({prefixCls:t,transitionName:o,animation:a})),s(Gt,X({appear:!0},c),{default:()=>[ie(s(`div`,{style:{zIndex:r},class:`${t}-mask`},null),[[te(`if`),n]])]})}Aa.displayName=`Mask`;var ja=d({compatConfig:{MODE:3},name:`MobilePopupInner`,inheritAttrs:!1,props:Oa,emits:[`mouseenter`,`mouseleave`,`mousedown`,`touchstart`,`align`],setup(e,t){let{expose:n,slots:r}=t,i=W();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{let{zIndex:t,visible:n,prefixCls:a,mobile:{popupClassName:o,popupStyle:c,popupMotion:l={},popupRender:u}={}}=e,d=G({zIndex:t},c),f=pe(r.default?.call(r));f.length>1&&(f=s(`div`,{class:`${a}-content`},[f])),u&&(f=u(f));let p=Z(a,o);return s(Gt,X({ref:i},l),{default:()=>[n?s(`div`,{class:p,style:d},[f]):null]})}}}),Ma=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Na=[`measure`,`align`,null,`motion`],Pa=((e,t)=>{let n=M(null),r=M(),i=M(!1);function a(e){i.value||(n.value=e)}function o(){Rn.cancel(r.value)}function s(e){o(),r.value=Rn(()=>{let t=n.value;switch(n.value){case`align`:t=`motion`;break;case`motion`:t=`stable`}a(t),e?.()})}return H(e,()=>{a(`measure`)},{immediate:!0,flush:`post`}),D(()=>{H(n,()=>{n.value===`measure`&&t(),n.value&&(r.value=Rn(()=>Ma(void 0,void 0,void 0,function*(){let e=Na.indexOf(n.value),t=Na[e+1];t&&e!==-1&&a(t)})))},{immediate:!0,flush:`post`})}),p(()=>{i.value=!0,o()}),[n,s]}),Fa=(e=>{let t=M({width:0,height:0});function n(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}return[a(()=>{let n={};if(e.value){let{width:r,height:i}=t.value;e.value.indexOf(`height`)!==-1&&i?n.height=`${i}px`:e.value.indexOf(`minHeight`)!==-1&&i&&(n.minHeight=`${i}px`),e.value.indexOf(`width`)!==-1&&r?n.width=`${r}px`:e.value.indexOf(`minWidth`)!==-1&&r&&(n.minWidth=`${r}px`)}return n}),n]});function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Uo(e,t,n,r){var i=Lo.clone(e),a={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),Lo.mix(i,a)}function Wo(e){var t,n,r;if(!Lo.isWindow(e)&&e.nodeType!==9)t=Lo.offset(e),n=Lo.outerWidth(e),r=Lo.outerHeight(e);else{var i=Lo.getWindow(e);t={left:Lo.getWindowScrollLeft(i),top:Lo.getWindowScrollTop(i)},n=Lo.viewportWidth(i),r=Lo.viewportHeight(i)}return t.width=n,t.height=r,t}function Go(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return n===`c`?s+=a/2:n===`b`&&(s+=a),r===`c`?o+=i/2:r===`r`&&(o+=i),{left:o,top:s}}function Ko(e,t,n,r,i){var a=Go(t,n[1]),o=Go(e,n[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function qo(e,t,n){return e.leftn.right}function Jo(e,t,n){return e.topn.bottom}function Yo(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function rs(e,t,n){var r=n.target||t;return ts(e,Wo(r),n,!ns(r,n.overflow&&n.overflow.alwaysByViewport))}rs.__getOffsetParent=zo,rs.__getVisibleRectForElement=Ho;function is(e,t,n){var r,i,a=Lo.getDocument(e),o=a.defaultView||a.parentWindow,s=Lo.getWindowScrollLeft(o),c=Lo.getWindowScrollTop(o),l=Lo.viewportWidth(o),u=Lo.viewportHeight(o);r=`pageX`in t?t.pageX:s+t.clientX,i=`pageY`in t?t.pageY:c+t.clientY;var d={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+l&&i>=0&&i<=c+u,p=[n.points[0],`cc`];return ts(e,d,La(La({},n),{},{points:p}),f)}function as(e,t){return e===t?!0:!e||!t?!1:`pageX`in t&&`pageY`in t?e.pageX===t.pageX&&e.pageY===t.pageY:`clientX`in t&&`clientY`in t&&e.clientX===t.clientX&&e.clientY===t.clientY}function os(e,t){e!==document.activeElement&&Ue(t,e)&&typeof e.focus==`function`&&e.focus()}function ss(e,t){let n=null,r=null;function i(e){let[{target:i}]=e;if(!document.documentElement.contains(i))return;let{width:a,height:o}=i.getBoundingClientRect(),s=Math.floor(a),c=Math.floor(o);(n!==s||r!==c)&&Promise.resolve().then(()=>{t({width:s,height:c})}),n=s,r=c}let a=new fi(i);return e&&a.observe(e),()=>{a.disconnect()}}var cs=((e,t)=>{let n=!1,r=null;function i(){clearTimeout(r)}function a(o){if(!n||o===!0){if(e()===!1)return;n=!0,i(),r=setTimeout(()=>{n=!1},t.value)}else i(),r=setTimeout(()=>{n=!1,a()},t.value)}return[a,()=>{n=!1,i()}]});function ls(){this.__data__=[],this.size=0}function us(e,t){return e===t||e!==e&&t!==t}function ds(e,t){for(var n=e.length;n--;)if(us(e[n][0],t))return n;return-1}var fs=Array.prototype.splice;function ps(e){var t=this.__data__,n=ds(t,e);return n<0?!1:(n==t.length-1?t.pop():fs.call(t,n,1),--this.size,!0)}function ms(e){var t=this.__data__,n=ds(t,e);return n<0?void 0:t[n][1]}function hs(e){return ds(this.__data__,e)>-1}function gs(e,t){var n=this.__data__,r=ds(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function _s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Zs?new qs:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e{let{disabled:t,target:n,align:r,onAlign:a}=e;if(!t&&n&&o.value){let e=o.value,t,s=Gc(n),c=Kc(n);i.value.element=s,i.value.point=c,i.value.align=r;let{activeElement:l}=document;return s&&Sn(s)?t=rs(e,s,r):c&&(t=is(e,c,r)),os(l,e),a&&t&&a(e,t),!0}return!1},a(()=>e.monitorBufferTime)),l=W({cancel:()=>{}}),u=W({cancel:()=>{}}),d=()=>{let t=e.target,n=Gc(t),r=Kc(t);o.value!==u.value.element&&(u.value.cancel(),u.value.element=o.value,u.value.cancel=ss(o.value,s)),(i.value.element!==n||!as(i.value.point,r)||!Uc(i.value.align,e.align))&&(s(),l.value.element!==n&&(l.value.cancel(),l.value.element=n,l.value.cancel=ss(n,s)))};D(()=>{x(()=>{d()})}),O(()=>{x(()=>{d()})}),H(()=>e.disabled,e=>{e?c():s()},{immediate:!0,flush:`post`});let f=W(null);return H(()=>e.monitorWindowResize,e=>{e?f.value||=Yn(window,`resize`,s):f.value&&=(f.value.remove(),null)},{flush:`post`}),E(()=>{l.value.cancel(),u.value.cancel(),f.value&&f.value.remove(),c()}),n({forceAlign:()=>s(!0)}),()=>{let e=r?.default();return e?on(e[0],{ref:o},!0,!0):null}}}),Jc=d({compatConfig:{MODE:3},name:`PopupInner`,inheritAttrs:!1,props:Da,emits:[`mouseenter`,`mouseleave`,`mousedown`,`touchstart`,`align`],setup(e,t){let{expose:n,attrs:r,slots:i}=t,o=M(),c=M(),l=M(),[u,d]=Fa(y(e,`stretch`)),f=()=>{e.stretch&&d(e.getRootDomNode())},p=M(!1),m;H(()=>e.visible,t=>{clearTimeout(m),t?m=setTimeout(()=>{p.value=e.visible}):p.value=!1},{immediate:!0});let[h,g]=Pa(p,f),_=M(),v=()=>e.point?e.point:e.getRootDomNode,b=()=>{var e;(e=o.value)==null||e.forceAlign()},x=(t,n)=>{var r;let i=e.getClassNameFromAlign(n),a=l.value;l.value!==i&&(l.value=i),h.value===`align`&&(a===i?g(()=>{var e;(e=_.value)==null||e.call(_)}):Promise.resolve().then(()=>{b()}),(r=e.onAlign)==null||r.call(e,t,n))},S=a(()=>{let t=typeof e.animation==`object`?e.animation:Xt(e);return[`onAfterEnter`,`onAfterLeave`].forEach(e=>{let n=t[e];t[e]=e=>{g(),h.value=`stable`,n?.(e)}}),t}),C=()=>new Promise(e=>{_.value=e});H([S,h],()=>{!S.value&&h.value===`motion`&&g()},{immediate:!0}),n({forceAlign:b,getElement:()=>c.value.$el||c.value});let w=a(()=>!(e.align?.points&&(h.value===`align`||h.value===`stable`)));return()=>{let{zIndex:t,align:n,prefixCls:a,destroyPopupOnHide:d,onMouseenter:f,onMouseleave:m,onTouchstart:g=()=>{},onMousedown:_}=e,y=h.value,b=[G(G({},u.value),{zIndex:t,opacity:y===`motion`||y===`stable`||!p.value?null:0,pointerEvents:!p.value&&y!==`stable`?`none`:null}),r.style],T=pe(i.default?.call(i,{visible:e.visible}));T.length>1&&(T=s(`div`,{class:`${a}-content`},[T]));let E=Z(a,r.class,l.value,!e.arrow&&`${a}-arrow-hidden`),D=p.value||!e.visible?ge(S.value.name,S.value):{};return s(Gt,X(X({ref:c},D),{},{onBeforeEnter:C}),{default:()=>!d||e.visible?ie(s(qc,{target:v(),key:`popup`,ref:o,monitorWindowResize:!0,disabled:w.value,align:n,onAlign:x},{default:()=>s(`div`,{class:E,onMouseenter:f,onMouseleave:m,onMousedown:Pt(_,[`capture`]),[lr?`onTouchstartPassive`:`onTouchstart`]:Pt(g,[`capture`]),style:b},[T])}),[[st,p.value]]):null})}}}),Yc=d({compatConfig:{MODE:3},name:`Popup`,inheritAttrs:!1,props:ka,setup(e,t){let{attrs:n,slots:r,expose:i}=t,a=M(!1),o=M(!1),c=M(),l=M();return H([()=>e.visible,()=>e.mobile],()=>{a.value=e.visible,e.visible&&e.mobile&&(o.value=!0)},{immediate:!0,flush:`post`}),i({forceAlign:()=>{var e;(e=c.value)==null||e.forceAlign()},getElement:()=>c.value?.getElement()}),()=>{let t=G(G(G({},e),n),{visible:a.value}),i=o.value?s(ja,X(X({},t),{},{mobile:e.mobile,ref:c}),{default:r.default}):s(Jc,X(X({},t),{},{ref:c}),{default:r.default});return s(`div`,{ref:l},[s(Aa,t,null),i])}}});function Xc(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Zc(e,t,n){let r=e[t]||{};return G(G({},r),n)}function Qc(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e==`function`?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){let e=this.getDerivedStateFromProps(He(this),G(G({},this.$data),n));if(e===null)return;n=G(G({},n),e||{})}G(this.$data,n),this._.isMounted&&this.$forceUpdate(),x(()=>{t&&t()})},__emit(){let e=[].slice.call(arguments,0),t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;let n=this.$props[t]||this.$attrs[t];if(e.length&&n){if(Array.isArray(n))for(let t=0,r=n.length;t{let{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?Zc(r,t,n):n}),n=M(null);return{vcTriggerContext:C(`vcTriggerContext`,{}),popupRef:n,setPopupRef:e=>{n.value=e},triggerRef:M(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){let e=this.$props,t;return t=this.popupVisible===void 0?!!e.defaultPopupVisible:!!e.popupVisible,el.forEach(e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){e(`vcTriggerContext`,{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),en(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rn.cancel(this.attachId)},methods:{updatedCal(){let e=this.$props;if(this.$data.sPopupVisible){let t;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Yn(t,`mousedown`,this.onDocumentClick)),this.touchOutsideHandler||=(t||=e.getDocument(this.getRootDomNode()),Yn(t,`touchstart`,this.onDocumentClick,lr?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t||=e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Yn(t,`scroll`,this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Yn(window,`blur`,this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){let{mouseEnterDelay:t}=this.$props;this.fireEvents(`onMouseenter`,e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents(`onMousemove`,e),this.setPoint(e)},onMouseleave(e){this.fireEvents(`onMouseleave`,e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){let{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Ue(this.popupRef?.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);let{vcTriggerContext:t={}}=this;t.onPopupMouseleave&&t.onPopupMouseleave(e)},onFocus(e){this.fireEvents(`onFocus`,e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents(`onMousedown`,e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents(`onTouchstart`,e),this.preTouchTime=Date.now()},onBlur(e){Ue(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents(`onBlur`,e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents(`onContextmenu`,e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents(`onClick`,e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();let t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){let{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;let t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!Ue(n,t)||this.isContextMenuOnly())&&!Ue(r,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){return this.popupRef?.getElement()||null},getRootDomNode(){let{getTriggerDOMNode:e}=this.$props;if(e){let t=this.triggerRef?.$el?.nodeName===`#comment`?null:Et(this.triggerRef);return Et(e(t))}try{let e=this.triggerRef?.$el?.nodeName===`#comment`?null:Et(this.triggerRef);if(e)return e}catch{}return Et(this)},handleGetPopupClassFromAlign(e){let t=[],{popupPlacement:n,builtinPlacements:r,prefixCls:i,alignPoint:a,getPopupClassNameFromAlign:o}=this.$props;return n&&r&&t.push(Qc(r,i,e,a)),o&&t.push(o(e)),t.join(` `)},getPopupAlign(){let{popupPlacement:e,popupAlign:t,builtinPlacements:n}=this.$props;return e&&n?Zc(n,e,t):t},getComponent(){let e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[lr?`onTouchstartPassive`:`onTouchstart`]=this.onPopupMouseDown;let{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:r}=this,{prefixCls:i,destroyPopupOnHide:a,popupClassName:o,popupAnimation:c,popupTransitionName:l,popupStyle:u,mask:d,maskAnimation:f,maskTransitionName:p,zIndex:m,stretch:h,alignPoint:g,mobile:_,arrow:v,forceRender:y}=this.$props,{sPopupVisible:b,point:x}=this.$data,S=G(G({prefixCls:i,arrow:v,destroyPopupOnHide:a,visible:b,point:g?x:null,align:this.align,animation:c,getClassNameFromAlign:t,stretch:h,getRootDomNode:n,mask:d,zIndex:m,transitionName:l,maskAnimation:f,maskTransitionName:p,class:o,style:u,onAlign:r.onPopupAlign||Ta},e),{ref:this.setPopupRef,mobile:_,forceRender:y});return s(Yc,S,{default:this.$slots.popup||(()=>Ie(this,`popup`))})},attachParent(e){Rn.cancel(this.attachId);let{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode(),i;t?(r||t.length===0)&&(i=t(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(e):this.attachId=Rn(()=>{this.attachParent(e)})},getContainer(){let{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement(`div`);return n.style.position=`absolute`,n.style.top=`0`,n.style.left=`0`,n.style.width=`100%`,this.attachParent(n),n},setPopupVisible(e,t){let{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==e&&(Ke(this,`popupVisible`)||this.setState({sPopupVisible:e,prevPopupVisible:r}),i&&i(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){let{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){let r=t*1e3;if(this.clearDelayTimer(),r){let t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,t),this.clearDelayTimer()},r)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&=(clearTimeout(this.delayTimer),null)},clearOutsideHandler(){this.clickOutsideHandler&&=(this.clickOutsideHandler.remove(),null),this.contextmenuOutsideHandler1&&=(this.contextmenuOutsideHandler1.remove(),null),this.contextmenuOutsideHandler2&&=(this.contextmenuOutsideHandler2.remove(),null),this.touchOutsideHandler&&=(this.touchOutsideHandler.remove(),null)},createTwoChains(e){let t=()=>{},n=Re(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){let{action:e,showAction:t}=this.$props;return e.indexOf(`click`)!==-1||t.indexOf(`click`)!==-1},isContextMenuOnly(){let{action:e}=this.$props;return e===`contextmenu`||e.length===1&&e[0]===`contextmenu`},isContextmenuToShow(){let{action:e,showAction:t}=this.$props;return e.indexOf(`contextmenu`)!==-1||t.indexOf(`contextmenu`)!==-1},isClickToHide(){let{action:e,hideAction:t}=this.$props;return e.indexOf(`click`)!==-1||t.indexOf(`click`)!==-1},isMouseEnterToShow(){let{action:e,showAction:t}=this.$props;return e.indexOf(`hover`)!==-1||t.indexOf(`mouseenter`)!==-1},isMouseLeaveToHide(){let{action:e,hideAction:t}=this.$props;return e.indexOf(`hover`)!==-1||t.indexOf(`mouseleave`)!==-1},isFocusToShow(){let{action:e,showAction:t}=this.$props;return e.indexOf(`focus`)!==-1||t.indexOf(`focus`)!==-1},isBlurToHide(){let{action:e,hideAction:t}=this.$props;return e.indexOf(`focus`)!==-1||t.indexOf(`blur`)!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)==null||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);let n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){let{$attrs:e}=this,t=ve(Oe(this)),{alignPoint:n,getPopupContainer:r}=this.$props,i=t[0];this.childOriginEvents=Re(i);let a={key:`trigger`};a.onContextmenu=this.isContextmenuToShow()?this.onContextmenu:this.createTwoChains(`onContextmenu`),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[lr?`onTouchstartPassive`:`onTouchstart`]=this.onTouchstart):(a.onClick=this.createTwoChains(`onClick`),a.onMousedown=this.createTwoChains(`onMousedown`),a[lr?`onTouchstartPassive`:`onTouchstart`]=this.createTwoChains(`onTouchstart`)),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,n&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains(`onMouseenter`),a.onMouseleave=this.isMouseLeaveToHide()?this.onMouseleave:this.createTwoChains(`onMouseleave`),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains(`onFocus`),a.onBlur=e=>{e&&(!e.relatedTarget||!Ue(e.target,e.relatedTarget))&&this.createTwoChains(`onBlur`)(e)});let o=Z(i&&i.props&&i.props.class,e.class);o&&(a.class=o);let c=on(i,G(G({},a),{ref:`triggerRef`}),!0,!0),l=s(qn,{key:`portal`,getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return s(v,null,[c,l])}}),nl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},il=d({name:`SelectTrigger`,inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:J.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:J.oneOfType([Number,Boolean]).def(!0),popupElement:J.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:r,expose:i}=t,o=a(()=>{let{dropdownMatchSelectWidth:t}=e;return rl(t)}),c=W();return i({getPopupElement:()=>c.value}),()=>{let t=G(G({},e),r),{empty:i=!1}=t,{visible:a,dropdownAlign:l,prefixCls:u,popupElement:d,dropdownClassName:f,dropdownStyle:p,direction:m=`ltr`,placement:h,dropdownMatchSelectWidth:g,containerWidth:_,dropdownRender:v,animation:y,transitionName:b,getPopupContainer:x,getTriggerDOMNode:S,onPopupVisibleChange:C,onPopupMouseEnter:w,onPopupFocusin:T,onPopupFocusout:E}=nl(t,[`empty`]),D=`${u}-dropdown`,O=d;v&&(O=v({menuNode:d,props:e}));let k=y?`${D}-${y}`:b,A=G({minWidth:`${_}px`},p);return typeof g==`number`?A.width=`${g}px`:g&&(A.width=`${_}px`),s(tl,X(X({},e),{},{showAction:C?[`click`]:[],hideAction:C?[`click`]:[],popupPlacement:h||(m===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:o.value,prefixCls:D,popupTransitionName:k,popupAlign:l,popupVisible:a,getPopupContainer:x,popupClassName:Z(f,{[`${D}-empty`]:i}),popupStyle:A,getTriggerDOMNode:S,onPopupVisibleChange:C}),{default:n.default,popup:()=>s(`div`,{ref:c,onMouseenter:w,onFocusin:T,onFocusout:E},[O])})}}}),al=(e,t)=>{let{slots:n}=t,{class:r,customizeIcon:i,customizeIconProps:a,onMousedown:c,onClick:u}=e,d;return d=typeof i==`function`?i(a):l(i)?o(i):i,s(`span`,{class:r,onMousedown:e=>{e.preventDefault(),c&&c(e)},style:{userSelect:`none`,WebkitUserSelect:`none`},unselectable:`on`,onClick:u,"aria-hidden":!0},[d===void 0?s(`span`,{class:r.split(/\s+/).map(e=>`${e}-icon`)},[n.default?.call(n)]):d])};al.inheritAttrs=!1,al.displayName=`TransBtn`,al.props={class:String,customizeIcon:J.any,customizeIconProps:J.any,onMousedown:Function,onClick:Function};var ol=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(e,t,n)=>{var i;(i=r.value)==null||i.setSelectionRange(e,t,n)},select:()=>{var e;(e=r.value)==null||e.select()},getSelectionStart:()=>r.value?.selectionStart,getSelectionEnd:()=>r.value?.selectionEnd,getScrollTop:()=>r.value?.scrollTop}),()=>{let{tag:t,value:n}=e,i=ol(e,[`tag`,`value`]);return s(t,X(X({},i),{},{ref:r,value:n}),null)}}});function cl(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function ll(e){let t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function ul(e){return Array.prototype.slice.apply(e).map(t=>`${t}: ${e.getPropertyValue(t)};`).join(``)}function dl(e){return Object.keys(e).reduce((t,n)=>(e[n]==null||(t+=`${n}: ${e[n]};`),t),``)}var fl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.value,l],()=>{l.value||(c.value=e.value)},{immediate:!0});let u=e=>{n(`change`,e)},d=e=>{l.value=!0,e.target.composing=!0,n(`compositionstart`,e)},f=e=>{l.value=!1,e.target.composing=!1,n(`compositionend`,e);let t=document.createEvent(`HTMLEvents`);t.initEvent(`input`,!0,!0),e.target.dispatchEvent(t),u(e)},p=t=>{if(l.value&&e.lazy){c.value=t.target.value;return}n(`input`,t)},m=e=>{n(`blur`,e)},h=e=>{n(`focus`,e)},g=()=>{o.value&&o.value.focus()},_=()=>{o.value&&o.value.blur()},v=e=>{n(`keydown`,e)},y=e=>{n(`keyup`,e)};i({focus:g,blur:_,input:a(()=>o.value?.input),setSelectionRange:(e,t,n)=>{var r;(r=o.value)==null||r.setSelectionRange(e,t,n)},select:()=>{var e;(e=o.value)==null||e.select()},getSelectionStart:()=>o.value?.getSelectionStart(),getSelectionEnd:()=>o.value?.getSelectionEnd(),getScrollTop:()=>o.value?.getScrollTop()});let b=e=>{n(`mousedown`,e)},x=e=>{n(`paste`,e)},S=a(()=>e.style&&typeof e.style!=`string`?dl(e.style):e.style);return()=>{let{style:t,lazy:n}=e,i=fl(e,[`style`,`lazy`]);return s(sl,X(X(X({},i),r),{},{style:S.value,onInput:p,onChange:u,onBlur:m,onFocus:h,ref:o,value:c.value,onCompositionstart:d,onCompositionend:f,onKeyup:y,onKeydown:v,onPaste:x,onMousedown:b}),null)}}}),ml={inputRef:J.any,prefixCls:String,id:String,inputElement:J.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:J.oneOfType([J.number,J.string]),attrs:J.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},hl=d({compatConfig:{MODE:3},name:`SelectInput`,inheritAttrs:!1,props:ml,setup(e){let t=null,n=C(`VCSelectContainerEvent`);return()=>{let{prefixCls:r,id:i,inputElement:a,disabled:o,tabindex:c,autofocus:l,autocomplete:u,editable:d,activeDescendantId:f,value:p,onKeydown:m,onMousedown:h,onChange:g,onPaste:_,onCompositionstart:v,onCompositionend:y,onFocus:b,onBlur:x,open:S,inputRef:C,attrs:w}=e,T=a||s(pl,null,null),E=T.props||{},{onKeydown:D,onInput:O,onFocus:k,onBlur:A,onMousedown:j,onCompositionstart:M,onCompositionend:N,style:P}=E;return T=on(T,G(G(G(G(G({type:`search`},E),{id:i,ref:C,disabled:o,tabindex:c,lazy:!1,autocomplete:u||`off`,autofocus:l,class:Z(`${r}-selection-search-input`,T?.props?.class),role:`combobox`,"aria-expanded":S,"aria-haspopup":`listbox`,"aria-owns":`${i}_list`,"aria-autocomplete":`list`,"aria-controls":`${i}_list`,"aria-activedescendant":f}),w),{value:d?p:``,readonly:!d,unselectable:d?null:`on`,style:G(G({},P),{opacity:d?null:0}),onKeydown:e=>{m(e),D&&D(e)},onMousedown:e=>{h(e),j&&j(e)},onInput:e=>{g(e),O&&O(e)},onCompositionstart(e){v(e),M&&M(e)},onCompositionend(e){y(e),N&&N(e)},onPaste:_,onFocus:function(){clearTimeout(t),k&&k(arguments.length<=0?void 0:arguments[0]),b&&b(arguments.length<=0?void 0:arguments[0]),n?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){var e=[...arguments];t=setTimeout(()=>{A&&A(e[0]),x&&x(e[0]),n?.blur(e[0])},100)}}),T.type===`textarea`?{}:{type:`search`}),!0,!0),T}}}),gl=Symbol(`OverflowContextProviderKey`),_l=d({compatConfig:{MODE:3},name:`OverflowContextProvider`,inheritAttrs:!1,props:{value:{type:Object}},setup(t,n){let{slots:r}=n;return e(gl,a(()=>t.value)),()=>r.default?.call(r)}}),vl=()=>C(gl,a(()=>null)),yl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.responsive&&!e.display),o=W();r({itemNodeRef:o});function c(t){e.registerSize(e.itemKey,t)}return E(()=>{c(null)}),()=>{let{prefixCls:t,invalidate:r,item:a,renderItem:l,responsive:u,registerSize:d,itemKey:f,display:p,order:m,component:h=`div`}=e,g=yl(e,[`prefixCls`,`invalidate`,`item`,`renderItem`,`responsive`,`registerSize`,`itemKey`,`display`,`order`,`component`]),_=n.default?.call(n),v=l&&a!==bl?l(a):_,y;r||(y={opacity:+!i.value,height:i.value?0:bl,overflowY:i.value?`hidden`:bl,order:u?m:bl,pointerEvents:i.value?`none`:bl,position:i.value?`absolute`:bl});let b={};return i.value&&(b[`aria-hidden`]=!0),s(pi,{disabled:!u,onResize:e=>{let{offsetWidth:t}=e;c(t)}},{default:()=>s(h,X(X(X({class:Z(!r&&t),style:y},b),g),{},{ref:o}),{default:()=>[v]})})}}}),Sl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(!i.value){let{component:t=`div`}=e,i=Sl(e,[`component`]);return s(t,X(X({},i),r),{default:()=>[n.default?.call(n)]})}let t=i.value,{className:a}=t,o=Sl(t,[`className`]),{class:c}=r,l=Sl(r,[`class`]);return s(_l,{value:null},{default:()=>[s(xl,X(X(X({class:Z(a,c)},o),l),e),n)]})}}}),wl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.ssr===`full`),c=M(null),l=a(()=>c.value||0),u=M(new Map),d=M(0),f=M(0),p=M(0),m=M(null),h=M(null),g=a(()=>h.value===null&&o.value?2**53-1:h.value||0),_=M(!1),v=a(()=>`${e.prefixCls}-item`),y=a(()=>Math.max(d.value,f.value)),b=a(()=>!!(e.data.length&&e.maxCount===Tl)),x=a(()=>e.maxCount===El),S=a(()=>b.value||typeof e.maxCount==`number`&&e.data.length>e.maxCount),C=a(()=>{let t=e.data;return b.value?t=c.value===null&&o.value?e.data:e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount==`number`&&(t=e.data.slice(0,e.maxCount)),t}),w=a(()=>b.value?e.data.slice(g.value+1):e.data.slice(C.value.length)),T=(t,n)=>typeof e.itemKey==`function`?e.itemKey(t):(e.itemKey&&t?.[e.itemKey])??n,E=a(()=>e.renderItem||(e=>e)),D=(t,n)=>{h.value=t,n||(_.value=t{c.value=t.clientWidth},k=(e,t)=>{let n=new Map(u.value);t===null?n.delete(e):n.set(e,t),u.value=n},A=(e,t)=>{d.value=f.value,f.value=t},j=(e,t)=>{p.value=t},N=e=>u.value.get(T(C.value[e],e));return H([l,u,f,p,()=>e.itemKey,C],()=>{if(l.value&&y.value&&C.value){let t=p.value,n=C.value.length,r=n-1;if(!n){D(0),m.value=null;return}for(let e=0;el.value){D(e-1),m.value=t-n-p.value+f.value;break}}e.suffix&&N(0)+p.value>l.value&&(m.value=null)}}),()=>{let t=_.value&&!!w.value.length,{itemComponent:r,renderRawItem:a,renderRawRest:o,renderRest:c,prefixCls:l=`rc-overflow`,suffix:u,component:d=`div`,id:f,onMousedown:p}=e,{class:h,style:y}=n,D=wl(n,[`class`,`style`]),M={};m.value!==null&&b.value&&(M={position:`absolute`,left:`${m.value}px`,top:0});let N={prefixCls:v.value,responsive:b.value,component:r,invalidate:x.value},P=a?(e,t)=>{let n=T(e,t);return s(_l,{key:n,value:G(G({},N),{order:t,item:e,itemKey:n,registerSize:k,display:t<=g.value})},{default:()=>[a(e,t)]})}:(e,t)=>{let n=T(e,t);return s(xl,X(X({},N),{},{order:t,key:n,item:e,renderItem:E.value,itemKey:n,registerSize:k,display:t<=g.value}),null)},F=()=>null,I={order:t?g.value:2**53-1,className:`${v.value} ${v.value}-rest`,registerSize:A,display:t};if(o)o&&(F=()=>s(_l,{value:G(G({},N),I)},{default:()=>[o(w.value)]}));else{let e=c||Dl;F=()=>s(xl,X(X({},N),I),{default:()=>typeof e==`function`?e(w.value):e})}return s(pi,{disabled:!b.value,onResize:O},{default:()=>s(d,X({id:f,class:Z(!x.value&&l,h),style:y,onMousedown:p,role:e.role},D),{default:()=>[C.value.map(P),S.value?F():null,u&&s(xl,X(X({},N),{},{order:g.value,class:`${v.value}-suffix`,registerSize:j,display:!0,style:M}),{default:()=>u}),i.default?.call(i)]})})}}});Ol.Item=Cl,Ol.RESPONSIVE=Tl,Ol.INVALIDATE=El;var kl=Ol,Al=Symbol(`TreeSelectLegacyContextPropsKey`);function jl(t){return e(Al,t)}function Ml(){return C(Al,{})}var Nl={id:String,prefixCls:String,values:J.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:J.any,placeholder:J.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:J.oneOfType([J.number,J.string]),compositionStatus:Boolean,removeIcon:J.any,choiceTransitionName:String,maxTagCount:J.oneOfType([J.number,J.string]),maxTagTextLength:Number,maxTagPlaceholder:J.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Pl=e=>{e.preventDefault(),e.stopPropagation()},Fl=d({name:`MultipleSelectSelector`,inheritAttrs:!1,props:Nl,setup(e){let t=M(),n=M(0),r=M(!1),i=Ml(),o=a(()=>`${e.prefixCls}-selection`),c=a(()=>e.open||e.mode===`tags`?e.searchValue:``),l=a(()=>e.mode===`tags`||e.showSearch&&(e.open||r.value)),u=W(``);P(()=>{u.value=c.value}),D(()=>{H(u,()=>{n.value=t.value.scrollWidth},{flush:`post`,immediate:!0})});function d(t,n,r,i,a){return s(`span`,{class:Z(`${o.value}-item`,{[`${o.value}-item-disabled`]:r}),title:typeof t==`string`||typeof t==`number`?t.toString():void 0},[s(`span`,{class:`${o.value}-item-content`},[n]),i&&s(al,{class:`${o.value}-item-remove`,onMousedown:Pl,onClick:a,customizeIcon:e.removeIcon},{default:()=>[g(`×`)]})])}function f(t,n,r,a,o,c){let l=t=>{Pl(t),e.onToggleOpen(!open)},u=c;return i.keyEntities&&(u=i.keyEntities[t]?.node||{}),s(`span`,{key:t,onMousedown:l},[e.tagRender({label:n,value:t,disabled:r,closable:a,onClose:o,option:u})])}function p(t){let{disabled:n,label:r,value:i,option:a}=t,o=!e.disabled&&!n,s=r;if(typeof e.maxTagTextLength==`number`&&(typeof r==`string`||typeof r==`number`)){let t=String(s);t.length>e.maxTagTextLength&&(s=`${t.slice(0,e.maxTagTextLength)}...`)}let c=n=>{var r;n&&n.stopPropagation(),(r=e.onRemove)==null||r.call(e,t)};return typeof e.tagRender==`function`?f(i,s,n,o,c,a):d(r,s,n,o,c)}function m(t){let{maxTagPlaceholder:n=e=>`+ ${e.length} ...`}=e,r=typeof n==`function`?n(t):n;return d(r,r,!1)}let h=t=>{let n=t.target.composing;u.value=t.target.value,n||e.onInputChange(t)};return()=>{let{id:i,prefixCls:a,values:d,open:f,inputRef:_,placeholder:y,disabled:b,autofocus:x,autocomplete:S,activeDescendantId:C,tabindex:w,compositionStatus:T,onInputPaste:E,onInputKeyDown:D,onInputMouseDown:O,onInputCompositionStart:k,onInputCompositionEnd:A}=e,j=s(`div`,{class:`${o.value}-search`,style:{width:n.value+`px`},key:`input`},[s(hl,{inputRef:_,open:f,prefixCls:a,id:i,inputElement:null,disabled:b,autofocus:x,autocomplete:S,editable:l.value,activeDescendantId:C,value:u.value,onKeydown:D,onMousedown:O,onChange:h,onPaste:E,onCompositionstart:k,onCompositionend:A,tabindex:w,attrs:un(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),s(`span`,{ref:t,class:`${o.value}-search-mirror`,"aria-hidden":!0},[u.value,g(`\xA0`)])]),M=s(kl,{prefixCls:`${o.value}-overflow`,data:d,renderItem:p,renderRest:m,suffix:j,itemKey:`key`,maxCount:e.maxTagCount,key:`overflow`},null);return s(v,null,[M,!d.length&&!c.value&&!T&&s(`span`,{class:`${o.value}-placeholder`},[y])])}}}),Il={inputElement:J.any,id:String,prefixCls:String,values:J.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:J.any,placeholder:J.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:J.oneOfType([J.number,J.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Ll=d({name:`SingleSelector`,setup(e){let t=M(!1),n=a(()=>e.mode===`combobox`),r=a(()=>n.value||e.showSearch),i=a(()=>{let r=e.searchValue||``;return n.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),o=Ml();H([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});let c=a(()=>e.mode!==`combobox`&&!e.open&&!e.showSearch?!1:!!i.value||e.compositionStatus),l=a(()=>{let t=e.values[0];return t&&(typeof t.label==`string`||typeof t.label==`number`)?t.label.toString():void 0}),u=()=>{if(e.values[0])return null;let t=c.value?{visibility:`hidden`}:void 0;return s(`span`,{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])},d=n=>{n.target.composing||(t.value=!0,e.onInputChange(n))};return()=>{let{inputElement:t,prefixCls:a,id:f,values:p,inputRef:m,disabled:h,autofocus:g,autocomplete:_,activeDescendantId:y,open:b,tabindex:x,optionLabelRender:S,onInputKeyDown:C,onInputMouseDown:w,onInputPaste:T,onInputCompositionStart:E,onInputCompositionEnd:D}=e,O=p[0],k=null;if(O&&o.customSlots){let e=O.key??O.value,t=o.keyEntities[e]?.node||{};k=o.customSlots[t.slots?.title]||o.customSlots.title||O.label,typeof k==`function`&&(k=k(t))}else k=S&&O?S(O.option):O?.label;return s(v,null,[s(`span`,{class:`${a}-selection-search`},[s(hl,{inputRef:m,prefixCls:a,id:f,open:b,inputElement:t,disabled:h,autofocus:g,autocomplete:_,editable:r.value,activeDescendantId:y,value:i.value,onKeydown:C,onMousedown:w,onChange:d,onPaste:T,onCompositionstart:E,onCompositionend:D,tabindex:x,attrs:un(e,!0)},null)]),!n.value&&O&&!c.value&&s(`span`,{class:`${a}-selection-item`,title:l.value},[s(v,{key:O.key??O.value},[k])]),u()])}}});Ll.props=Il,Ll.inheritAttrs=!1;function Rl(e){return![$.ESC,$.SHIFT,$.BACKSPACE,$.TAB,$.WIN_KEY,$.ALT,$.META,$.WIN_KEY_RIGHT,$.CTRL,$.SEMICOLON,$.EQUALS,$.CAPS_LOCK,$.CONTEXT_MENU,$.F1,$.F2,$.F3,$.F4,$.F5,$.F6,$.F7,$.F8,$.F9,$.F10,$.F11,$.F12].includes(e)}function zl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;p(()=>{clearTimeout(n)});function r(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,r]}function Bl(){let e=t=>{e.current=t};return e}var Vl=d({name:`Selector`,inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:J.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:J.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:J.oneOfType([J.number,J.string]),disabled:{type:Boolean,default:void 0},placeholder:J.any,removeIcon:J.any,maxTagCount:J.oneOfType([J.number,J.string]),maxTagTextLength:Number,maxTagPlaceholder:J.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t,r=Bl(),i=W(!1),[a,o]=zl(0),c=t=>{let{which:n}=t;(n===$.UP||n===$.DOWN)&&t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n===$.ENTER&&e.mode===`tags`&&!i.value&&!e.open&&e.onSearchSubmit(t.target.value),Rl(n)&&e.onToggleOpen(!0)},l=()=>{o(!0)},u=null,d=t=>{e.onSearch(t,!0,i.value)!==!1&&e.onToggleOpen(!0)},f=()=>{i.value=!0},p=t=>{i.value=!1,e.mode!==`combobox`&&d(t.target.value)},m=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){let e=u.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);n=n.replace(e,u)}u=null,d(n)},h=e=>{let{clipboardData:t}=e;u=t.getData(`text`)},g=e=>{let{target:t}=e;t!==r.current&&(document.body.style.msTouchAction===void 0?r.current.focus():setTimeout(()=>{r.current.focus()}))},_=t=>{let n=a();t.target!==r.current&&!n&&t.preventDefault(),(e.mode!==`combobox`&&(!e.showSearch||!n)||!e.open)&&(e.open&&e.onSearch(``,!0,!1),e.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{let{prefixCls:t,domRef:n,mode:a}=e,o={inputRef:r,onInputKeyDown:c,onInputMouseDown:l,onInputChange:m,onInputPaste:h,compositionStatus:i.value,onInputCompositionStart:f,onInputCompositionEnd:p},u=s(a===`multiple`||a===`tags`?Fl:Ll,X(X({},e),o),null);return s(`div`,{ref:n,class:`${t}-selector`,onClick:g,onMousedown:_},[u])}}});function Hl(e,t,n){function r(r){let i=r.target;i.shadowRoot&&r.composed&&(i=r.composedPath()[0]||i);let a=[e[0]?.value,(e[1]?.value)?.getPopupElement()];t.value&&a.every(e=>e&&!e.contains(i)&&e!==i)&&n(!1)}D(()=>{window.addEventListener(`mousedown`,r)}),p(()=>{window.removeEventListener(`mousedown`,r)})}function Ul(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=M(!1),n,r=()=>{clearTimeout(n)};return D(()=>{r()}),[t,(i,a)=>{r(),n=setTimeout(()=>{t.value=i,a&&a()},e)},r]}var Wl=Symbol(`BaseSelectContextKey`);function Gl(t){return e(Wl,t)}function Kl(){return C(Wl,{})}var ql=(()=>{if(typeof navigator>`u`||typeof window>`u`)return!1;let e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substring(0,4))});function Jl(e){if(!B(e))return k(e);let t=new Proxy({},{get(t,n,r){return Reflect.get(e.value,n,r)},set(t,n,r){return e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return k(t)}var Yl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:J.any,emptyOptions:Boolean}),Ql=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:J.any,placeholder:J.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:J.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:J.any,clearIcon:J.any,removeIcon:J.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),$l=()=>G(G({},Zl()),Ql());function eu(e){return e===`tags`||e===`multiple`}var tu=d({compatConfig:{MODE:3},name:`BaseSelect`,inheritAttrs:!1,props:Vn($l(),{showAction:[],notFoundContent:`Not Found`}),setup(t,n){let{attrs:r,expose:o,slots:c}=n,l=a(()=>eu(t.mode)),u=a(()=>t.showSearch===void 0?l.value||t.mode===`combobox`:t.showSearch),d=M(!1);D(()=>{d.value=ql()});let f=Ml(),m=M(null),h=Bl(),_=M(null),v=M(null),y=M(null),b=W(!1),[x,S,C]=Ul();o({focus:()=>{var e;(e=v.value)==null||e.focus()},blur:()=>{var e;(e=v.value)==null||e.blur()},scrollTo:e=>y.value?.scrollTo(e)});let w=a(()=>{if(t.mode!==`combobox`)return t.searchValue;let e=t.displayValues[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``}),T=t.open===void 0?t.defaultOpen:t.open,E=M(T),O=M(T),k=e=>{E.value=t.open===void 0?e:t.open,O.value=E.value};H(()=>t.open,()=>{k(t.open)});let A=a(()=>!t.notFoundContent&&t.emptyOptions);P(()=>{O.value=E.value,(t.disabled||A.value&&O.value&&t.mode===`combobox`)&&(O.value=!1)});let j=a(()=>!A.value&&O.value),N=e=>{let n=e===void 0?!O.value:e;O.value!==n&&!t.disabled&&(k(n),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(n),!n&&re.value&&(re.value=!1,S(!1,()=>{V.value=!1,b.value=!1})))},F=a(()=>(t.tokenSeparators||[]).some(e=>[` +`,`\r +`].includes(e))),I=(e,n,r)=>{var i,a;let o=!0,s=e;(i=t.onActiveValueChange)==null||i.call(t,null);let c=r?null:Sa(e,t.tokenSeparators);return t.mode!==`combobox`&&c&&(s=``,(a=t.onSearchSplit)==null||a.call(t,c),N(!1),o=!1),t.onSearch&&w.value!==s&&t.onSearch(s,{source:n?`typing`:`effect`}),o},L=e=>{var n;!e||!e.trim()||(n=t.onSearch)==null||n.call(t,e,{source:`submit`})};H(O,()=>{!O.value&&!l.value&&t.mode!==`combobox`&&I(``,!1,!1)},{immediate:!0,flush:`post`}),H(()=>t.disabled,()=>{E.value&&t.disabled&&k(!1),t.disabled&&!b.value&&S(!1)},{immediate:!0});let[ee,R]=zl(),z=function(e){var n;let r=ee(),{which:i}=e;if(i===$.ENTER&&(t.mode!==`combobox`&&e.preventDefault(),O.value||N(!0)),R(!!w.value),i===$.BACKSPACE&&!r&&l.value&&!w.value&&t.displayValues.length){let e=[...t.displayValues],n=null;for(let t=e.length-1;t>=0;--t){let r=e[t];if(!r.disabled){e.splice(t,1),n=r;break}}n&&t.onDisplayValuesChange(e,{type:`remove`,values:[n]})}var a=[...arguments].slice(1);O.value&&y.value&&y.value.onKeydown(e,...a),(n=t.onKeydown)==null||n.call(t,e,...a)},B=function(e){var n=[...arguments].slice(1);O.value&&y.value&&y.value.onKeyup(e,...n),t.onKeyup&&t.onKeyup(e,...n)},te=e=>{let n=t.displayValues.filter(t=>t!==e);t.onDisplayValuesChange(n,{type:`remove`,values:[e]})},V=M(!1),ne=function(){S(!0),t.disabled||(t.onFocus&&!V.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes(`focus`)&&N(!0)),V.value=!0},re=W(!1),U=function(){if(re.value||(b.value=!0,S(!1,()=>{V.value=!1,b.value=!1,N(!1)}),t.disabled))return;let e=w.value;e&&(t.mode===`tags`?t.onSearch(e,{source:`submit`}):t.mode===`multiple`&&t.onSearch(``,{source:`blur`})),t.onBlur&&t.onBlur(...arguments)},ie=()=>{re.value=!0},ae=()=>{re.value=!1};e(`VCSelectContainerEvent`,{focus:ne,blur:U});let oe=[];D(()=>{oe.forEach(e=>clearTimeout(e)),oe.splice(0,oe.length)}),p(()=>{oe.forEach(e=>clearTimeout(e)),oe.splice(0,oe.length)});let se=function(e){var n;let{target:r}=e,i=_.value?.getPopupElement();if(i&&i.contains(r)){let e=setTimeout(()=>{var t;let n=oe.indexOf(e);n!==-1&&oe.splice(n,1),C(),!d.value&&!i.contains(document.activeElement)&&((t=v.value)==null||t.focus())});oe.push(e)}var a=[...arguments].slice(1);(n=t.onMousedown)==null||n.call(t,e,...a)},ce=M(null),le=()=>{};return D(()=>{H(j,()=>{if(j.value){let e=Math.ceil(m.value?.offsetWidth);ce.value!==e&&!Number.isNaN(e)&&(ce.value=e)}},{immediate:!0,flush:`post`})}),Hl([m,_],j,N),Gl(Jl(G(G({},i(t)),{open:O,triggerOpen:j,showSearch:u,multiple:l,toggleOpen:N}))),()=>{let e=G(G({},t),r),{prefixCls:n,id:i,open:a,defaultOpen:o,mode:d,showSearch:p,searchValue:b,onSearch:S,allowClear:C,clearIcon:T,showArrow:E,inputIcon:D,disabled:k,loading:A,getInputElement:M,getPopupContainer:P,placement:ee,animation:R,transitionName:V,dropdownStyle:ne,dropdownClassName:re,dropdownMatchSelectWidth:H,dropdownRender:U,dropdownAlign:W,showAction:oe,direction:ue,tokenSeparators:de,tagRender:fe,optionLabelRender:pe,onPopupScroll:me,onDropdownVisibleChange:he,onFocus:ge,onBlur:_e,onKeyup:K,onKeydown:ve,onMousedown:ye,onClear:be,omitDomProps:xe,getRawInputElement:Se,displayValues:Ce,onDisplayValuesChange:we,emptyOptions:Te,activeDescendantId:Ee,activeValue:De,OptionList:Oe}=e,ke=Yl(e,`prefixCls.id.open.defaultOpen.mode.showSearch.searchValue.onSearch.allowClear.clearIcon.showArrow.inputIcon.disabled.loading.getInputElement.getPopupContainer.placement.animation.transitionName.dropdownStyle.dropdownClassName.dropdownMatchSelectWidth.dropdownRender.dropdownAlign.showAction.direction.tokenSeparators.tagRender.optionLabelRender.onPopupScroll.onDropdownVisibleChange.onFocus.onBlur.onKeyup.onKeydown.onMousedown.onClear.omitDomProps.getRawInputElement.displayValues.onDisplayValuesChange.emptyOptions.activeDescendantId.activeValue.OptionList`.split(`.`)),Ae=d===`combobox`&&M&&M()||null,je=typeof Se==`function`&&Se(),Me=G({},ke),Ne;je&&(Ne=e=>{N(e)}),Xl.forEach(e=>{delete Me[e]}),xe?.forEach(e=>{delete Me[e]});let Pe=E===void 0?A||!l.value&&d!==`combobox`:E,Fe;Pe&&(Fe=s(al,{class:Z(`${n}-arrow`,{[`${n}-arrow-loading`]:A}),customizeIcon:D,customizeIconProps:{loading:A,searchValue:w.value,open:O.value,focused:x.value,showSearch:u.value}},null));let Ie;!k&&C&&(Ce.length||w.value)&&(Ie=s(al,{class:`${n}-clear`,onMousedown:()=>{be?.(),we([],{type:`clear`,values:Ce}),I(``,!1,!1)},customizeIcon:T},{default:()=>[g(`×`)]}));let Le=s(Oe,{ref:y},G(G({},f.customSlots),{option:c.option})),Re=Z(n,r.class,{[`${n}-focused`]:x.value,[`${n}-multiple`]:l.value,[`${n}-single`]:!l.value,[`${n}-allow-clear`]:C,[`${n}-show-arrow`]:Pe,[`${n}-disabled`]:k,[`${n}-loading`]:A,[`${n}-open`]:O.value,[`${n}-customize-input`]:Ae,[`${n}-show-search`]:u.value}),ze=s(il,{ref:_,disabled:k,prefixCls:n,visible:j.value,popupElement:Le,containerWidth:ce.value,animation:R,transitionName:V,dropdownStyle:ne,dropdownClassName:re,direction:ue,dropdownMatchSelectWidth:H,dropdownRender:U,dropdownAlign:W,placement:ee,getPopupContainer:P,empty:Te,getTriggerDOMNode:()=>h.current,onPopupVisibleChange:Ne,onPopupMouseEnter:le,onPopupFocusin:ie,onPopupFocusout:ae},{default:()=>je?Xe(je)&&on(je,{ref:h},!1,!0):s(Vl,X(X({},t),{},{domRef:h,prefixCls:n,inputElement:Ae,ref:v,id:i,showSearch:u.value,mode:d,activeDescendantId:Ee,tagRender:fe,optionLabelRender:pe,values:Ce,open:O.value,onToggleOpen:N,activeValue:De,searchValue:w.value,onSearch:I,onSearchSubmit:L,onRemove:te,tokenWithEnter:F.value}),null)}),Be;return Be=je?ze:s(`div`,X(X({},Me),{},{class:Re,ref:m,onMousedown:se,onKeydown:z,onKeyup:B}),[x.value&&!O.value&&s(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0},"aria-live":`polite`},[`${Ce.map(e=>{let{label:t,value:n}=e;return[`number`,`string`].includes(typeof t)?t:n}).join(`, `)}`]),ze,Fe,Ie]),Be}}}),nu=(e,t)=>{let{height:n,offset:r,prefixCls:i,onInnerResize:a}=e,{slots:o}=t,c={},l={display:`flex`,flexDirection:`column`};return r!==void 0&&(c={height:`${n}px`,position:`relative`,overflow:`hidden`},l=G(G({},l),{transform:`translateY(${r}px)`,position:`absolute`,left:0,right:0,top:0})),s(`div`,{style:c},[s(pi,{onResize:e=>{let{offsetHeight:t}=e;t&&a&&a()}},{default:()=>[s(`div`,{style:l,class:Z({[`${i}-holder-inner`]:i})},[o.default?.call(o)])]})])};nu.displayName=`Filter`,nu.inheritAttrs=!1,nu.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var ru=(e,t)=>{let{setRef:n}=e,{slots:r}=t,i=pe(r.default?.call(r));return i&&i.length?o(i[0],{ref:n}):i};ru.props={setRef:{type:Function,default:()=>{}}};var iu=20;function au(e){return`touches`in e?e.touches[0].pageY:e.pageY}var ou=d({compatConfig:{MODE:3},name:`ScrollBar`,inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Bl(),thumbRef:Bl(),visibleTimeout:null,state:k({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:`post`}},mounted(){var e,t;(e=this.scrollbarRef.current)==null||e.addEventListener(`touchstart`,this.onScrollbarTouchStart,lr?{passive:!1}:!1),(t=this.thumbRef.current)==null||t.addEventListener(`touchstart`,this.onMouseDown,lr?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener(`mousemove`,this.onMouseMove),window.addEventListener(`mouseup`,this.onMouseUp),this.thumbRef.current.addEventListener(`touchmove`,this.onMouseMove,lr?{passive:!1}:!1),this.thumbRef.current.addEventListener(`touchend`,this.onMouseUp)},removeEvents(){window.removeEventListener(`mousemove`,this.onMouseMove),window.removeEventListener(`mouseup`,this.onMouseUp),this.scrollbarRef.current.removeEventListener(`touchstart`,this.onScrollbarTouchStart,lr?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener(`touchstart`,this.onMouseDown,lr?{passive:!1}:!1),this.thumbRef.current.removeEventListener(`touchmove`,this.onMouseMove,lr?{passive:!1}:!1),this.thumbRef.current.removeEventListener(`touchend`,this.onMouseUp)),Rn.cancel(this.moveRaf)},onMouseDown(e){let{onStartMove:t}=this.$props;G(this.state,{dragging:!0,pageY:au(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){let{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(Rn.cancel(this.moveRaf),t){let t=r+(au(e)-n),a=this.getEnableScrollRange(),o=this.getEnableHeightRange(),s=o?t/o:0,c=Math.ceil(s*a);this.moveRaf=Rn(()=>{i(c)})}},onMouseUp(){let{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){let{height:e,scrollHeight:t}=this.$props,n=e/t*100;return n=Math.max(n,iu),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){let{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){let{height:e}=this.$props;return e-this.getSpinHeight()||0},getTop(){let{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){let{height:e,scrollHeight:t}=this.$props;return t>e}},render(){let{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+`px`,i=this.getTop()+`px`,a=this.showScroll(),o=a&&t;return s(`div`,{ref:this.scrollbarRef,class:Z(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:`8px`,top:0,bottom:0,right:0,position:`absolute`,display:o?void 0:`none`},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[s(`div`,{ref:this.thumbRef,class:Z(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:`100%`,height:r,top:i,left:0,position:`absolute`,background:`rgba(0, 0, 0, 0.5)`,borderRadius:`99px`,cursor:`pointer`,userSelect:`none`},onMousedown:this.onMouseDown},null)])}});function su(e,t,n,r){let i=new Map,a=new Map,o=W(Symbol(`update`));H(e,()=>{o.value=Symbol(`update`)});let s;function c(){Rn.cancel(s)}function l(){c(),s=Rn(()=>{i.forEach((e,t)=>{if(e&&e.offsetParent){let{offsetHeight:n}=e;a.get(t)!==n&&(o.value=Symbol(`update`),a.set(t,e.offsetHeight))}})})}function u(e,a){let o=t(e),s=i.get(o);a?(i.set(o,a.$el||a),l()):i.delete(o),!s!=!a&&(a?n?.(e):r?.(e))}return E(()=>{c()}),[u,l,a,o]}function cu(e,t,n,r,i,a,o,s){let c;return l=>{if(l==null){s();return}Rn.cancel(c);let u=t.value,d=r.itemHeight;if(typeof l==`number`)o(l);else if(l&&typeof l==`object`){let t,{align:r}=l;`index`in l?{index:t}=l:t=u.findIndex(e=>i(e)===l.key);let{offset:s=0}=l,f=(l,p)=>{if(l<0||!e.value)return;let m=e.value.clientHeight,h=!1,g=p;if(m){let a=p||r,c=0,l=0,f=0,_=Math.min(u.length,t);for(let e=0;e<=_;e+=1){let r=i(u[e]);l=c;let a=n.get(r);f=l+(a===void 0?d:a),c=f,e===t&&a===void 0&&(h=!0)}let v=e.value.scrollTop,y=null;switch(a){case`top`:y=l-s;break;case`bottom`:y=f-m+s;break;default:{let e=v+m;le&&(g=`bottom`)}}y!==null&&y!==v&&o(y)}c=Rn(()=>{h&&a(),f(l-1,g)},2)};f(5)}}}var lu=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),uu=((e,t)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(a){let o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],s=a<0&&e.value||a>0&&t.value;return o&&s?(clearTimeout(r),n=!1):(!s||n)&&i(),!n&&s}});function du(e,t,n,r){let i=0,a=null,o=null,s=!1,c=uu(t,n);function l(t){if(!e.value)return;Rn.cancel(a);let{deltaY:n}=t;i+=n,o=n,!c(n)&&(lu||t.preventDefault(),a=Rn(()=>{r(i*(s?10:1)),i=0}))}function u(t){e.value&&(s=t.detail===o)}return[l,u]}var fu=14/15;function pu(e,t,n){let r=!1,i=0,a=null,o=null,s=()=>{a&&(a.removeEventListener(`touchmove`,c),a.removeEventListener(`touchend`,l))},c=e=>{if(r){let t=Math.ceil(e.touches[0].pageY),r=i-t;i=t,n(r)&&e.preventDefault(),clearInterval(o),o=setInterval(()=>{r*=fu,(!n(r,!0)||Math.abs(r)<=.1)&&clearInterval(o)},16)}},l=()=>{r=!1,s()},u=e=>{s(),e.touches.length===1&&!r&&(r=!0,i=Math.ceil(e.touches[0].pageY),a=e.target,a.addEventListener(`touchmove`,c,{passive:!1}),a.addEventListener(`touchend`,l))},d=()=>{};D(()=>{document.addEventListener(`touchmove`,d,{passive:!1}),H(e,e=>{t.value.removeEventListener(`touchstart`,u),s(),clearInterval(o),e&&t.value.addEventListener(`touchstart`,u,{passive:!1})},{immediate:!0})}),p(()=>{document.removeEventListener(`touchmove`,d)})}var mu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let a=i(e,t+n,{}),c=o(e);return s(ru,{key:c,setRef:t=>r(e,t)},{default:()=>[a]})})}var vu=d({compatConfig:{MODE:3},name:`List`,inheritAttrs:!1,props:{prefixCls:String,data:J.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t,r=a(()=>{let{height:t,itemHeight:n,virtual:r}=e;return!!(r!==!1&&t&&n)}),i=a(()=>{let{height:t,itemHeight:n,data:i}=e;return r.value&&i&&n*i.length>t}),o=k({scrollTop:0,scrollMoving:!1}),s=a(()=>e.data||hu),c=M([]);H(s,()=>{c.value=se(s.value).slice()},{immediate:!0});let l=M(e=>void 0);H(()=>e.itemKey,e=>{typeof e==`function`?l.value=e:l.value=t=>t?.[e]},{immediate:!0});let u=M(),d=M(),f=M(),m=e=>l.value(e),h={getKey:m};function g(e){let t;t=typeof e==`function`?e(o.scrollTop):e;let n=T(t);u.value&&(u.value.scrollTop=n),o.scrollTop=n}let[_,v,y,b]=su(c,m,null,null),S=k({scrollHeight:void 0,start:0,end:0,offset:void 0}),C=M(0);D(()=>{x(()=>{C.value=d.value?.offsetHeight||0})}),O(()=>{x(()=>{C.value=d.value?.offsetHeight||0})}),H([r,c],()=>{r.value||G(S,{scrollHeight:void 0,start:0,end:c.value.length-1,offset:void 0})},{immediate:!0}),H([r,c,C,i],()=>{r.value&&!i.value&&G(S,{scrollHeight:C.value,start:0,end:c.value.length-1,offset:void 0}),u.value&&(o.scrollTop=u.value.scrollTop)},{immediate:!0}),H([i,r,()=>o.scrollTop,c,b,()=>e.height,C],()=>{if(!r.value||!i.value)return;let t=0,n,a,s,l=c.value.length,u=c.value,d=o.scrollTop,{itemHeight:f,height:p}=e,h=d+p;for(let e=0;e=d&&(n=e,a=t),s===void 0&&c>h&&(s=e),t=c}n===void 0&&(n=0,a=0,s=Math.ceil(p/f)),s===void 0&&(s=l-1),s=Math.min(s+1,l),G(S,{scrollHeight:t,start:n,end:s,offset:a})},{immediate:!0});let w=a(()=>S.scrollHeight-e.height);function T(e){let t=e;return Number.isNaN(w.value)||(t=Math.min(t,w.value)),t=Math.max(t,0),t}let E=a(()=>o.scrollTop<=0),A=a(()=>o.scrollTop>=w.value),j=uu(E,A);function N(e){g(e)}function F(t){var n;let{scrollTop:r}=t.currentTarget;r!==o.scrollTop&&g(r),(n=e.onScroll)==null||n.call(e,t)}let[I,L]=du(r,E,A,e=>{g(t=>t+e)});pu(r,u,(e,t)=>!j(e,t)&&(I({preventDefault(){},deltaY:e}),!0));function ee(e){r.value&&e.preventDefault()}let R=()=>{u.value&&(u.value.removeEventListener(`wheel`,I,lr?{passive:!1}:!1),u.value.removeEventListener(`DOMMouseScroll`,L),u.value.removeEventListener(`MozMousePixelScroll`,ee))};P(()=>{x(()=>{u.value&&(R(),u.value.addEventListener(`wheel`,I,lr?{passive:!1}:!1),u.value.addEventListener(`DOMMouseScroll`,L),u.value.addEventListener(`MozMousePixelScroll`,ee))})}),p(()=>{R()}),n({scrollTo:cu(u,c,y,e,m,v,g,()=>{var e;(e=f.value)==null||e.delayHidden()})});let z=a(()=>{let t=null;return e.height&&(t=G({[e.fullHeight?`height`:`maxHeight`]:e.height+`px`},gu),r.value&&(t.overflowY=`hidden`,o.scrollMoving&&(t.pointerEvents=`none`))),t});return H([()=>S.start,()=>S.end,c],()=>{if(e.onVisibleChange){let t=c.value.slice(S.start,S.end+1);e.onVisibleChange(t,c.value)}},{flush:`post`}),{state:o,mergedData:c,componentStyle:z,onFallbackScroll:F,onScrollBar:N,componentRef:u,useVirtual:r,calRes:S,collectHeight:v,setInstance:_,sharedConfig:h,scrollBarRef:f,fillerInnerRef:d,delayHideScrollBar:()=>{var e;(e=f.value)==null||e.delayHidden()}}},render(){let e=G(G({},this.$props),this.$attrs),{prefixCls:t=`rc-virtual-list`,height:n,itemHeight:r,fullHeight:i,data:a,itemKey:o,virtual:c,component:l=`div`,onScroll:u,children:d=this.$slots.default,style:f,class:p}=e,m=mu(e,[`prefixCls`,`height`,`itemHeight`,`fullHeight`,`data`,`itemKey`,`virtual`,`component`,`onScroll`,`children`,`style`,`class`]),h=Z(t,p),{scrollTop:g}=this.state,{scrollHeight:_,offset:v,start:y,end:b}=this.calRes,{componentStyle:x,onFallbackScroll:S,onScrollBar:C,useVirtual:w,collectHeight:T,sharedConfig:E,setInstance:D,mergedData:O,delayHideScrollBar:k}=this;return s(`div`,X({style:G(G({},f),{position:`relative`}),class:h},m),[s(l,{class:`${t}-holder`,style:x,ref:`componentRef`,onScroll:S,onMouseenter:k},{default:()=>[s(nu,{prefixCls:t,height:_,offset:v,onInnerResize:T,ref:`fillerInnerRef`},{default:()=>_u(O,y,b,D,d,E)})]}),w&&s(ou,{ref:`scrollBarRef`,prefixCls:t,scrollTop:g,height:n,scrollHeight:_,count:O.length,onScroll:C,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function yu(e,t,n){let r=W(e());return H(t,(t,i)=>{n?n(t,i)&&(r.value=e()):r.value=e()}),r}function bu(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var xu=Symbol(`SelectContextKey`);function Su(t){return e(xu,t)}function Cu(){return C(xu,{})}var wu=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i`${i.prefixCls}-item`),l=yu(()=>o.flattenOptions,[()=>i.open,()=>o.flattenOptions],e=>e[0]),u=Bl(),d=e=>{e.preventDefault()},f=e=>{u.current&&u.current.scrollTo(typeof e==`number`?{index:e}:e)},p=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=l.value.length;for(let r=0;r1&&arguments[1]!==void 0&&arguments[1];m.activeIndex=e;let n={source:t?`keyboard`:`mouse`},r=l.value[e];if(!r){o.onActiveValue(null,-1,n);return}o.onActiveValue(r.value,e,n)};H([()=>l.value.length,()=>i.searchValue],()=>{h(o.defaultActiveFirstOption===!1?-1:p(0))},{immediate:!0});let g=e=>o.rawValues.has(e)&&i.mode!==`combobox`;H([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&o.rawValues.size===1){let e=Array.from(o.rawValues)[0],t=se(l.value).findIndex(t=>{let{data:n}=t;return n[o.fieldNames.value]===e});t!==-1&&(h(t),x(()=>{f(t)}))}i.open&&x(()=>{var e;(e=u.current)==null||e.scrollTo(void 0)})},{immediate:!0,flush:`post`});let _=e=>{e!==void 0&&o.onSelect(e,{selected:!o.rawValues.has(e)}),i.multiple||i.toggleOpen(!1)},y=e=>typeof e.label==`function`?e.label():e.label;function b(e){let t=l.value[e];if(!t)return null;let n=t.data||{},{value:r}=n,{group:a}=t,o=un(n,!0),c=y(t);return t?s(`div`,X(X({"aria-label":typeof c==`string`&&!a?c:null},o),{},{key:e,role:a?`presentation`:`option`,id:`${i.id}_list_${e}`,"aria-selected":g(r)}),[r]):null}return n({onKeydown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case $.N:case $.P:case $.UP:case $.DOWN:{let e=0;if(t===$.UP?e=-1:t===$.DOWN?e=1:bu()&&n&&(t===$.N?e=1:t===$.P&&(e=-1)),e!==0){let t=p(m.activeIndex+e,e);f(t),h(t,!0)}break}case $.ENTER:{let t=l.value[m.activeIndex];t&&!t.data.disabled?_(t.value):_(void 0),i.open&&e.preventDefault();break}case $.ESC:i.toggleOpen(!1),i.open&&e.stopPropagation()}},onKeyup:()=>{},scrollTo:e=>{f(e)}}),()=>{let{id:e,notFoundContent:t,onPopupScroll:n}=i,{menuItemSelectedIcon:a,fieldNames:f,virtual:p,listHeight:x,listItemHeight:S}=o,C=r.option,{activeIndex:w}=m,T=Object.keys(f).map(e=>f[e]);return l.value.length===0?s(`div`,{role:`listbox`,id:`${e}_list`,class:`${c.value}-empty`,onMousedown:d},[t]):s(v,null,[s(`div`,{role:`listbox`,id:`${e}_list`,style:{height:0,width:0,overflow:`hidden`}},[b(w-1),b(w),b(w+1)]),s(vu,{itemKey:`key`,ref:u,data:l.value,height:x,itemHeight:S,fullHeight:!1,onMousedown:d,onScroll:n,virtual:p},{default:(e,t)=>{let{group:n,groupOption:r,data:i,value:o}=e,{key:l}=i,u=typeof e.label==`function`?e.label():e.label;if(n){let e=i.title??(Tu(u)&&u);return s(`div`,{class:Z(c.value,`${c.value}-group`),title:e},[C?C(i):u===void 0?l:u])}let{disabled:d,title:f,children:p,style:m,class:v,className:b}=i,x=wu(i,[`disabled`,`title`,`children`,`style`,`class`,`className`]),S=Gn(x,T),E=g(o),D=`${c.value}-option`,O=Z(c.value,D,v,b,{[`${D}-grouped`]:r,[`${D}-active`]:w===t&&!d,[`${D}-disabled`]:d,[`${D}-selected`]:E}),k=y(e),A=!a||typeof a==`function`||E,j=typeof k==`number`?k:k||o,M=Tu(j)?j.toString():void 0;return f!==void 0&&(M=f),s(`div`,X(X({},S),{},{"aria-selected":E,class:O,title:M,onMousemove:e=>{x.onMousemove&&x.onMousemove(e),!(w===t||d)&&h(t)},onClick:e=>{d||_(o),x.onClick&&x.onClick(e)},style:m}),[s(`div`,{class:`${D}-content`},[C?C(i):j]),Xe(a)||E,A&&s(al,{class:`${c.value}-option-state`,customizeIcon:a,customizeIconProps:{isSelected:E}},{default:()=>[E?`✓`:null]})])}})])}}}),Du=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0&&arguments[1];return pe(e).map((e,n)=>{if(!Xe(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,children:a,props:o}=e;if(t||!r)return Ou(e);let s=a&&a.default?a.default():void 0,c=o?.label||a.label?.call(a)||i;return G(G({key:`__RC_SELECT_GRP__${i===null?n:String(i)}__`},o),{label:c,options:ku(s||[])})}).filter(e=>e)}function Au(e,t,n){let r=M(),i=M(),a=M(),o=M([]);return H([e,t],()=>{e.value?o.value=se(e.value).slice():o.value=ku(t.value)},{immediate:!0,deep:!0}),P(()=>{let e=o.value,t=new Map,s=new Map,c=n.value;function l(e){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];for(let r=0;r0&&arguments[0]!==void 0?arguments[0]:W(``),t=`rc_select_${Nu()}`;return e.value||t}function Fu(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Iu(e,t){return Fu(e).join(``).toUpperCase().includes(t)}var Lu=((e,t,n,r,i)=>a(()=>{let a=n.value,o=i?.value,s=r?.value;if(!a||s===!1)return e.value;let{options:c,label:l,value:u}=t.value,d=[],f=typeof s==`function`,p=a.toUpperCase(),m=f?s:(e,t)=>o?Iu(t[o],p):t[c]?Iu(t[l===`children`?`label`:l],p):Iu(t[u],p),h=f?e=>xa(e):e=>e;return e.value.forEach(e=>{if(e[c]){if(m(a,h(e)))d.push(e);else{let t=e[c].filter(e=>m(a,h(e)));t.length&&d.push(G(G({},e),{[c]:t}))}return}m(a,h(e))&&d.push(e)}),d})),Ru=((e,t)=>{let n=M({values:new Map,options:new Map});return[a(()=>{let{values:r,options:i}=n.value,a=e.value.map(e=>e.label===void 0?G(G({},e),{label:r.get(e.value)?.label}):e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.value.get(e.value)||i.get(e.value))}),n.value.values=o,n.value.options=s,a}),e=>t.value.get(e)||n.value.options.get(e)]});function zu(e,t){let{defaultValue:n,value:r=W()}=t||{},i=typeof e==`function`?e():e;r.value!==void 0&&(i=b(r)),n!==void 0&&(i=typeof n==`function`?n():n);let a=W(i),o=W(i);P(()=>{let e=r.value===void 0?a.value:r.value;t.postState&&(e=t.postState(e)),o.value=e});function s(e){let n=o.value;a.value=e,se(o.value)!==e&&t.onChange&&t.onChange(e,n)}return H(r,()=>{a.value=r.value}),[o,s]}var Bu=[`inputValue`];function Vu(){return G(G({},Ql()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:J.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:J.any,defaultValue:J.any,onChange:Function,children:Array})}function Hu(e){return!e||typeof e!=`object`}var Uu=d({compatConfig:{MODE:3},name:`VcSelect`,inheritAttrs:!1,props:Vn(Vu(),{prefixCls:`vc-select`,autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:r,slots:i}=t,o=Pu(y(e,`id`)),c=a(()=>eu(e.mode)),l=a(()=>!!(!e.options&&e.children)),u=a(()=>e.filterOption===void 0&&e.mode===`combobox`?!1:e.filterOption),d=a(()=>ya(e.fieldNames,l.value)),[f,p]=zu(``,{value:a(()=>e.searchValue===void 0?e.inputValue:e.searchValue),postState:e=>e||``}),m=Au(y(e,`options`),y(e,`children`),d),{valueOptions:h,labelOptions:g,options:_}=m,v=t=>Fu(t).map(t=>{let n,r,i,a;Hu(t)?n=t:(i=t.key,r=t.label,n=t.value??i);let o=h.value.get(n);return o&&(r===void 0&&(r=o?.[e.optionLabelProp||d.value.label]),i===void 0&&(i=o?.key??n),a=o?.disabled),{label:r,value:n,key:i,disabled:a,option:o}}),[b,x]=zu(e.defaultValue,{value:y(e,`value`)}),[S,C]=Ru(a(()=>{let t=v(b.value);return e.mode===`combobox`&&!t[0]?.value?[]:t}),h),w=a(()=>{if(!e.mode&&S.value.length===1){let e=S.value[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return S.value.map(e=>G(G({},e),{label:(typeof e.label==`function`?e.label():e.label)??e.value}))}),T=a(()=>new Set(S.value.map(e=>e.value)));P(()=>{if(e.mode===`combobox`){let e=S.value[0]?.value;e!=null&&p(String(e))}},{flush:`post`});let E=(e,t)=>{let n=t??e;return{[d.value.value]:e,[d.value.label]:n}},D=M();P(()=>{if(e.mode!==`tags`){D.value=_.value;return}let t=_.value.slice(),n=e=>h.value.has(e);[...S.value].sort((e,t)=>e.value{let r=e.value;n(r)||t.push(E(r,e.label))}),D.value=t});let O=Lu(D,d,f,u,y(e,`optionFilterProp`)),k=a(()=>e.mode!==`tags`||!f.value||O.value.some(t=>t[e.optionFilterProp||`value`]===f.value)?O.value:[E(f.value),...O.value]),A=a(()=>e.filterSort?[...k.value].sort((t,n)=>e.filterSort(t,n)):k.value),j=a(()=>ba(A.value,{fieldNames:d.value,childrenAsData:l.value})),N=t=>{let n=v(t);if(x(n),e.onChange&&(n.length!==S.value.length||n.some((e,t)=>S.value[t]?.value!==e?.value))){let t=e.labelInValue?n.map(e=>G(G({},e),{originLabel:e.label,label:typeof e.label==`function`?e.label():e.label})):n.map(e=>e.value),r=n.map(e=>xa(C(e.value)));e.onChange(c.value?t:t[0],c.value?r:r[0])}},[F,I]=dn(null),[L,ee]=dn(0),R=a(()=>e.defaultActiveFirstOption===void 0?e.mode!==`combobox`:e.defaultActiveFirstOption),z=function(t,n){let{source:r=`keyboard`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ee(n),e.backfill&&e.mode===`combobox`&&t!==null&&r===`keyboard`&&I(String(t))},B=(t,n)=>{let r=()=>{let n=C(t),r=n?.[d.value.label];return[e.labelInValue?{label:typeof r==`function`?r():r,originLabel:r,value:t,key:n?.key??t}:t,xa(n)]};if(n&&e.onSelect){let[t,n]=r();e.onSelect(t,n)}else if(!n&&e.onDeselect){let[t,n]=r();e.onDeselect(t,n)}},te=(t,n)=>{let r,i=!c.value||n.selected;r=i?c.value?[...S.value,t]:[t]:S.value.filter(e=>e.value!==t),N(r),B(t,i),e.mode===`combobox`?I(``):(!c.value||e.autoClearSearchValue)&&(p(``),I(``))},V=(e,t)=>{N(e),(t.type===`remove`||t.type===`clear`)&&t.values.forEach(e=>{B(e.value,!1)})},ne=(t,n)=>{var r;if(p(t),I(null),n.source===`submit`){let e=(t||``).trim();if(e){let t=Array.from(new Set([...T.value,e]));N(t),B(e,!0),p(``)}return}n.source!==`blur`&&(e.mode===`combobox`&&N(t),(r=e.onSearch)==null||r.call(e,t))},re=t=>{let n=t;e.mode!==`tags`&&(n=t.map(e=>g.value.get(e)?.value).filter(e=>e!==void 0));let r=Array.from(new Set([...T.value,...n]));N(r),r.forEach(e=>{B(e,!0)})},H=a(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Su(Jl(G(G({},m),{flattenOptions:j,onActiveValue:z,defaultActiveFirstOption:R,onSelect:te,menuItemSelectedIcon:y(e,`menuItemSelectedIcon`),rawValues:T,fieldNames:d,virtual:H,listHeight:y(e,`listHeight`),listItemHeight:y(e,`listItemHeight`),childrenAsData:l})));let U=W();n({focus(){var e;(e=U.value)==null||e.focus()},blur(){var e;(e=U.value)==null||e.blur()},scrollTo(e){var t;(t=U.value)==null||t.scrollTo(e)}});let ie=a(()=>Gn(e,`id.mode.prefixCls.backfill.fieldNames.inputValue.searchValue.onSearch.autoClearSearchValue.onSelect.onDeselect.dropdownMatchSelectWidth.filterOption.filterSort.optionFilterProp.optionLabelProp.options.children.defaultActiveFirstOption.menuItemSelectedIcon.virtual.listHeight.listItemHeight.value.defaultValue.labelInValue.onChange`.split(`.`)));return()=>s(tu,X(X(X({},ie.value),r),{},{id:o,prefixCls:e.prefixCls,ref:U,omitDomProps:Bu,mode:e.mode,displayValues:w.value,onDisplayValuesChange:V,searchValue:f.value,onSearch:ne,onSearchSplit:re,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Eu,emptyOptions:!j.value.length,activeValue:F.value,activeDescendantId:`${o}_list_${L.value}`}),i)}}),Wu=()=>null;Wu.isSelectOption=!0,Wu.displayName=`ASelectOption`;var Gu=()=>null;Gu.isSelectOptGroup=!0,Gu.displayName=`ASelectOptGroup`;var Ku=Uu,qu={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`};function Ju(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},{loading:n,multiple:r,prefixCls:i,hasFeedback:a,feedbackIcon:o,showArrow:c}=e,l=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),f=e.removeIcon||t.removeIcon&&t.removeIcon(),p=u??s(yt,null,null),m=e=>s(v,null,[c!==!1&&e,a&&o]),h=null;if(l!==void 0)h=m(l);else if(n)h=m(s(at,{spin:!0},null));else{let e=`${i}-suffix`;h=t=>{let{open:n,showSearch:r}=t;return m(s(n&&r?hr:Xu,{class:e},null))}}let g=null;g=d===void 0?r?s(ed,null,null):null:d;let _=null;return _=f===void 0?s(_t,null,null):f,{clearIcon:p,suffixIcon:h,itemIcon:g,removeIcon:_}}var nd=Symbol(`ContextProps`),rd=Symbol(`InternalContextProps`),id=function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a(()=>!0),r=W(new Map);m(),H([n,r],()=>{}),e(nd,t),e(rd,{addFormItemField:(e,t)=>{r.value.set(e,t),r.value=new Map(r.value)},removeFormItemField:e=>{r.value.delete(e),r.value=new Map(r.value)}})},ad={id:a(()=>void 0),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},od={addFormItemField:()=>{},removeFormItemField:()=>{}},sd=()=>{let t=C(rd,od),n=Symbol(`FormItemFieldKey`),r=m();return t.addFormItemField(n,r.type),p(()=>{t.removeFormItemField(n)}),e(rd,od),e(nd,ad),C(nd,ad)},cd=d({compatConfig:{MODE:3},name:`AFormItemRest`,setup(t,n){let{slots:r}=n;return e(rd,od),e(nd,ad),()=>r.default?.call(r)}}),ld=Tn({}),ud=d({name:`NoFormStatus`,setup(e,t){let{slots:n}=t;return ld.useProvide({}),()=>n.default?.call(n)}});function dd(e,t,n){return Z({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n})}var fd=(e,t)=>t||e,pd=`[object Symbol]`;function md(e){return typeof e==`symbol`||On(e)&&An(e)==pd}function hd(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=Bd)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Wd(e){return function(){return e}}var Gd=function(){try{var e=nr(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Kd=Ud(Gd?function(e,t){return Gd(e,`toString`,{configurable:!0,enumerable:!1,value:Wd(t),writable:!0})}:Pd);function qd(e,t){for(var n=-1,r=e==null?0:e.length;++n-1}function $d(e,t,n){t==`__proto__`&&Gd?Gd(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ef=Object.prototype.hasOwnProperty;function tf(e,t,n){var r=e[t];(!(ef.call(e,t)&&us(r,n))||n===void 0&&!(t in e))&&$d(e,t,n)}function nf(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a0&&n(s)?t>1?kf(s,t-1,n,r,i):vc(i,s):r||(i[i.length]=s)}return i}function Af(e){return e!=null&&e.length?kf(e,1):[]}function jf(e){return Kd(af(e,void 0,Af),e+``)}var Mf=hn(Object.getPrototypeOf,Object),Nf=`[object Object]`,Pf=Function.prototype,Ff=Object.prototype,If=Pf.toString,Lf=Ff.hasOwnProperty,Rf=If.call(Object);function zf(e){if(!On(e)||An(e)!=Nf)return!1;var t=Mf(e);if(t===null)return!0;var n=Lf.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&If.call(n)==Rf}function Bf(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=t||n<0||d&&r>=a}function _(){var e=Hm();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(Hm())}function x(){var e=Hm(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function qm(e){return On(e)&&xn(e)}function Jm(e,t,n){for(var r=-1,i=e==null?0:e.length;++r-1?i[a?t[o]:o]:void 0}}var Zm=Math.max;function Qm(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Nd(n);return i<0&&(i=Zm(r+i,0)),Jd(e,Nm(t,3),i)}var $m=Xm(Qm);function eh(e){for(var t=-1,n=e==null?0:e.length,r={};++t=120&&u.length>=120)?new qs(o&&u):void 0}u=e[0];var d=-1,f=s[0];outer:for(;++d1,t}),nf(e,Zf(e),n),r&&(n=pm(n,dh|fh|ph,uh));for(var i=t.length;i--;)lh(n,t[i]);return n});function hh(e,t,n,r){if(!gn(e))return e;t=Sf(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i=xh){var l=t?null:bh(e);if(l)return tc(l);o=!1,i=Ys,c=new qs}else c=t?[]:s;outer:for(;++r{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Ah[t];return[Pn(r,i,a,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Mh=new Te(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),Nh=new Te(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Ph=new Te(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),Fh=new Te(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),Ih=new Te(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),Lh=new Te(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),Rh=new Te(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),zh=new Te(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),Bh={"slide-up":{inKeyframes:Mh,outKeyframes:Nh},"slide-down":{inKeyframes:Ph,outKeyframes:Fh},"slide-left":{inKeyframes:Ih,outKeyframes:Lh},"slide-right":{inKeyframes:Rh,outKeyframes:zh}},Vh=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Bh[t];return[Pn(r,i,a,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Hh=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:`hidden`,transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Uh=e=>{let{controlPaddingHorizontal:t}=e;return{position:`relative`,display:`block`,minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:`border-box`}},Wh=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:G(G({},Ne(e)),{position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:Mh},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:Ph},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Nh},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Fh},"&-hidden":{display:`none`},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:G(G({},Uh(e)),{color:e.colorTextDisabled}),[`${r}`]:G(G({},Uh(e)),{cursor:`pointer`,transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":G({flex:`auto`},tn),"&-state":{flex:`none`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:`rtl`}})},Vh(e,`slide-up`),Vh(e,`slide-down`),jh(e,`move-up`),jh(e,`move-down`)]},Gh=2;function Kh(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e,i=(n-t)/2-r;return[i,Math.ceil(i/2)]}function qh(e,t){let{componentCls:n,iconCls:r}=e,i=`${n}-selection-overflow`,a=e.controlHeightSM,[o]=Kh(e);return{[`${n}-multiple${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,[i]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`100%`,display:`inline-flex`}},[`${n}-selector`]:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:`${o-Gh}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:`text`},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:`not-allowed`},"&:after":{display:`inline-block`,width:0,margin:`${Gh}px 0`,lineHeight:`${a}px`,content:`"\\a0"`}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:`relative`,display:`flex`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,height:a,marginTop:Gh,marginBottom:Gh,lineHeight:`${a-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:`default`,transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:`none`,marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.paddingXS/2,overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":G(G({},Ge()),{display:`inline-block`,color:e.colorIcon,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:`inline-flex`,position:`relative`,maxWidth:`100%`,marginInlineStart:e.inputPaddingHorizontalBase-o,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:`100%`,minWidth:4.1},"&-mirror":{position:`absolute`,top:0,insetInlineStart:0,insetInlineEnd:`auto`,zIndex:999,whiteSpace:`pre`,visibility:`hidden`}},[`${n}-selection-placeholder `]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`}}}}function Jh(e){let{componentCls:t}=e,n=Fe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=Kh(e);return[qh(e),qh(n,`sm`),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:`auto`},[`${t}-selection-search`]:{marginInlineStart:r}}},qh(Fe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),`lg`)]}function Yh(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.controlHeight-e.lineWidth*2,o=Math.ceil(e.fontSize*1.25);return{[`${n}-single${t?`${n}-${t}`:``}`]:{fontSize:e.fontSize,[`${n}-selector`]:G(G({},Ne(e)),{display:`flex`,borderRadius:i,[`${n}-selection-search`]:{position:`absolute`,top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:`100%`}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:`relative`,userSelect:`none`},[`${n}-selection-placeholder`]:{transition:`none`,pointerEvents:`none`},[[`&:after`,`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(`,`)]:{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:o},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:`100%`,height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:`none`},[`${n}-selection-search`]:{position:`static`,width:`100%`},[`${n}-selection-placeholder`]:{position:`absolute`,insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:`none`}}}}}}}function Xh(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Yh(e),Yh(Fe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),`sm`),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.fontSize*1.5}}}},Yh(Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),`lg`)]}var Zh=e=>{let{componentCls:t}=e;return{position:`relative`,backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:`pointer`},[`${t}-show-search&`]:{cursor:`text`,input:{cursor:`auto`,color:`inherit`}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:`not-allowed`,[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:`not-allowed`}}}},Qh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{componentCls:r,borderHoverColor:i,outlineColor:a,antCls:o}=t,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:G(G({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},$h=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:`transparent`,border:`none`,outline:`none`,appearance:`none`,"&::-webkit-search-cancel-button":{display:`none`,"-webkit-appearance":`none`}}}},eg=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:G(G({},Ne(e)),{position:`relative`,display:`inline-block`,cursor:`pointer`,[`&:not(${t}-customize-input) ${t}-selector`]:G(G({},Zh(e)),$h(e)),[`${t}-selection-item`]:G({flex:1,fontWeight:`normal`},tn),[`${t}-selection-placeholder`]:G(G({},tn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`}),[`${t}-arrow`]:G(G({},Ge()),{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:`center`,pointerEvents:`none`,display:`flex`,alignItems:`center`,[r]:{verticalAlign:`top`,transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:`top`},[`&:not(${t}-suffix)`]:{pointerEvents:`auto`}},[`${t}-disabled &`]:{cursor:`not-allowed`},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:n,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,background:e.colorBgContainer,cursor:`pointer`,opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:`auto`,"&:before":{display:`block`},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},tg=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:`transparent !important`,borderColor:`transparent !important`,boxShadow:`none !important`},[`&${t}-in-form-item`]:{width:`100%`}}},eg(e),Xh(e),Jh(e),Wh(e),{[`${t}-rtl`]:{direction:`rtl`}},Qh(t,Fe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),Qh(`${t}-status-error`,Fe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),Qh(`${t}-status-warning`,Fe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Hn(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ng=Le(`Select`,(e,t)=>{let{rootPrefixCls:n}=t;return[tg(Fe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1}))]},e=>({zIndexPopup:e.zIndexPopupBase+50})),rg=()=>G(G({},Gn(Vu(),[`inputIcon`,`mode`,`getInputElement`,`getRawInputElement`,`backfill`])),{value:$t([Array,Object,String,Number]),defaultValue:$t([Array,Object,String,Number]),notFoundContent:J.any,suffixIcon:J.any,itemIcon:J.any,size:q(),mode:q(),bordered:Y(!0),transitionName:String,choiceTransitionName:q(``),popupClassName:String,dropdownClassName:String,placement:q(),status:q(),"onUpdate:value":Q()}),ig=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,ag=d({compatConfig:{MODE:3},name:`ASelect`,Option:Wu,OptGroup:Gu,inheritAttrs:!1,props:Vn(rg(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:ig,slots:Object,setup(e,t){let{attrs:n,emit:r,slots:i,expose:o}=t,c=W(),l=sd(),u=ld.useInject(),d=a(()=>fd(u.status,e.status)),f=()=>{var e;(e=c.value)==null||e.focus()},p=()=>{var e;(e=c.value)==null||e.blur()},m=e=>{var t;(t=c.value)==null||t.scrollTo(e)},h=a(()=>{let{mode:t}=e;if(t!==`combobox`)return t===ig?`combobox`:t}),{prefixCls:g,direction:_,configProvider:v,renderEmpty:y,size:b,getPrefixCls:x,getPopupContainer:S,disabled:C,select:w}=K(`select`,e),{compactSize:T,compactItemClassnames:E}=ln(g,_),D=a(()=>T.value||b.value),O=pt(),k=a(()=>C.value??O.value),[A,j]=ng(g),M=a(()=>x()),N=a(()=>e.placement===void 0?_.value===`rtl`?`bottomRight`:`bottomLeft`:e.placement),P=a(()=>qe(M.value,lt(N.value),e.transitionName)),F=a(()=>Z({[`${g.value}-lg`]:D.value===`large`,[`${g.value}-sm`]:D.value===`small`,[`${g.value}-rtl`]:_.value===`rtl`,[`${g.value}-borderless`]:!e.bordered,[`${g.value}-in-form-item`]:u.isFormItemInput},dd(g.value,d.value,u.hasFeedback),E.value,j.value)),I=function(){var e=[...arguments];r(`update:value`,e[0]),r(`change`,...e),l.onFieldChange()},L=e=>{r(`blur`,e),l.onFieldBlur()};o({blur:p,focus:f,scrollTo:m});let ee=a(()=>h.value===`multiple`||h.value===`tags`),R=a(()=>e.showArrow===void 0?e.loading||!(ee.value||h.value===`combobox`):e.showArrow);return()=>{let{notFoundContent:t,listHeight:r=256,listItemHeight:a=24,popupClassName:o,dropdownClassName:d,virtual:f,dropdownMatchSelectWidth:p,id:m=l.id.value,placeholder:b=i.placeholder?.call(i),showArrow:x}=e,{hasFeedback:C,feedbackIcon:T}=u,{}=v,E;E=t===void 0?i.notFoundContent?i.notFoundContent():h.value===`combobox`?null:y?.(`Select`)||s(Tt,{componentName:`Select`},null):t;let{suffixIcon:D,itemIcon:O,removeIcon:M,clearIcon:N}=td(G(G({},e),{multiple:ee.value,prefixCls:g.value,hasFeedback:C,feedbackIcon:T,showArrow:R.value}),i),z=Gn(e,[`prefixCls`,`suffixIcon`,`itemIcon`,`removeIcon`,`clearIcon`,`size`,`bordered`,`status`]),B=Z(o||d,{[`${g.value}-dropdown-${_.value}`]:_.value===`rtl`},j.value);return A(s(Ku,X(X(X({ref:c,virtual:f,dropdownMatchSelectWidth:p},z),n),{},{showSearch:e.showSearch??w?.value?.showSearch,placeholder:b,listHeight:r,listItemHeight:a,mode:h.value,prefixCls:g.value,direction:_.value,inputIcon:D,menuItemSelectedIcon:O,removeIcon:M,clearIcon:N,notFoundContent:E,class:[F.value,n.class],getPopupContainer:S?.value,dropdownClassName:B,onChange:I,onBlur:L,id:m,dropdownRender:z.dropdownRender||i.dropdownRender,transitionName:P.value,children:i.default?.call(i),tagRender:e.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:C||x,disabled:k.value}),{option:i.option}))}}});ag.install=function(e){return e.component(ag.name,ag),e.component(ag.Option.displayName,ag.Option),e.component(ag.OptGroup.displayName,ag.OptGroup),e};var og=ag.Option,sg=ag.OptGroup,cg=()=>null;cg.isSelectOption=!0,cg.displayName=`AAutoCompleteOption`;var lg=()=>null;lg.isSelectOptGroup=!0,lg.displayName=`AAutoCompleteOptGroup`;function ug(e){return e?.type?.isSelectOption||e?.type?.isSelectOptGroup}var dg=()=>G(G({},Gn(rg(),[`loading`,`mode`,`optionLabelProp`,`labelInValue`])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:`zoom`},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),fg=cg,pg=lg,mg=d({compatConfig:{MODE:3},name:`AAutoComplete`,inheritAttrs:!1,props:dg(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:i}=t;nt(!(`dataSource`in n),`AutoComplete`,"`dataSource` slot is deprecated, please use props `options` instead."),nt(!(`options`in n),`AutoComplete`,"`options` slot is deprecated, please use props `options` instead."),nt(!e.dropdownClassName,`AutoComplete`,"`dropdownClassName` is deprecated, please use `popupClassName` instead.");let a=W(),o=()=>{let e=pe(n.default?.call(n));return e.length?e[0]:void 0};i({focus:()=>{var e;(e=a.value)==null||e.focus()},blur:()=>{var e;(e=a.value)==null||e.blur()}});let{prefixCls:c}=K(`select`,e);return()=>{let{size:t,dataSource:i,notFoundContent:l=n.notFoundContent?.call(n)}=e,u,{class:d}=r,f={[d]:!!d,[`${c.value}-lg`]:t===`large`,[`${c.value}-sm`]:t===`small`,[`${c.value}-show-search`]:!0,[`${c.value}-auto-complete`]:!0};if(e.options===void 0){let e=n.dataSource?.call(n)||n.options?.call(n)||[];u=e.length&&ug(e[0])?e:i?i.map(e=>{if(Xe(e))return e;switch(typeof e){case`string`:return s(cg,{key:e,value:e},{default:()=>[e]});case`object`:return s(cg,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}let p=Gn(G(G(G({},e),r),{mode:ag.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:o,notFoundContent:l,class:f,popupClassName:e.popupClassName||e.dropdownClassName,ref:a}),[`dataSource`,`loading`]);return s(ag,p,X({default:()=>[u]},Gn(n,[`default`,`dataSource`,`options`])))}}}),hg=G(mg,{Option:cg,OptGroup:lg,install(e){return e.component(mg.name,mg),e.component(cg.displayName,cg),e.component(lg.displayName,lg),e}}),gg=(e,t,n,r,i)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),_g=e=>{let{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:a,fontSizeLG:o,lineHeight:s,borderRadiusLG:c,motionEaseInOutCirc:l,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:p,paddingMD:m,paddingContentHorizontalLG:h}=e;return{[t]:G(G({},Ne(e)),{position:`relative`,display:`flex`,alignItems:`center`,padding:`${f}px ${p}px`,wordWrap:`break-word`,borderRadius:c,[`&${t}-rtl`]:{direction:`rtl`},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:`none`,fontSize:a,lineHeight:s},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:`hidden`,opacity:1,transition:`max-height ${n} ${l}, opacity ${n} ${l}, + padding-top ${n} ${l}, padding-bottom ${n} ${l}, + margin-bottom ${n} ${l}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:`0 !important`,paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:`flex-start`,paddingInline:h,paddingBlock:m,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:`block`,marginBottom:r,color:d,fontSize:o},[`${t}-description`]:{display:`block`}},[`${t}-banner`]:{marginBottom:0,border:`0 !important`,borderRadius:0}}},vg=e=>{let{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:a,colorWarningBorder:o,colorWarningBg:s,colorError:c,colorErrorBorder:l,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":gg(i,r,n,e,t),"&-info":gg(p,f,d,e,t),"&-warning":gg(s,o,a,e,t),"&-error":G(G({},gg(u,l,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},yg=e=>{let{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:a,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:`hidden`,fontSize:a,lineHeight:`${a}px`,backgroundColor:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},bg=e=>[_g(e),vg(e),yg(e)],xg=Le(`Alert`,e=>{let{fontSizeHeading3:t}=e;return[bg(Fe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12}))]}),Sg={success:ft,info:Dt,error:yt,warning:qt},Cg={success:L,info:It,error:ht,warning:kt},wg=_e(`success`,`info`,`warning`,`error`),Tg=d({compatConfig:{MODE:3},name:`AAlert`,inheritAttrs:!1,props:{type:J.oneOf(wg),closable:{type:Boolean,default:void 0},closeText:J.any,message:J.any,description:J.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:J.any,closeIcon:J.any,onClose:Function},setup(e,t){let{slots:n,emit:r,attrs:i,expose:o}=t,{prefixCls:c,direction:l}=K(`alert`,e),[u,d]=xg(c),f=M(!1),p=M(!1),m=M(),h=e=>{e.preventDefault();let t=m.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,f.value=!0,r(`close`,e)},g=()=>{var t;f.value=!1,p.value=!0,(t=e.afterClose)==null||t.call(e)},_=a(()=>{let{type:t}=e;return t===void 0?e.banner?`warning`:`info`:t});o({animationEnd:g});let v=M({});return()=>{let{banner:t,closeIcon:r=n.closeIcon?.call(n)}=e,{closable:a,showIcon:o}=e,y=e.closeText??n.closeText?.call(n),b=e.description??n.description?.call(n),x=e.message??n.message?.call(n),S=e.icon??n.icon?.call(n),C=n.action?.call(n);o=t&&o===void 0?!0:o;let w=(b?Cg:Sg)[_.value]||null;y&&(a=!0);let T=c.value,E=Z(T,{[`${T}-${_.value}`]:!0,[`${T}-closing`]:f.value,[`${T}-with-description`]:!!b,[`${T}-no-icon`]:!o,[`${T}-banner`]:!!t,[`${T}-closable`]:a,[`${T}-rtl`]:l.value===`rtl`,[d.value]:!0}),D=a?s(`button`,{type:`button`,onClick:h,class:`${T}-close-icon`,tabindex:0},[y?s(`span`,{class:`${T}-close-text`},[y]):r===void 0?s(_t,null,null):r]):null,O=S&&(Xe(S)?on(S,{class:`${T}-icon`}):s(`span`,{class:`${T}-icon`},[S]))||s(w,{class:`${T}-icon`},null),k=ge(`${T}-motion`,{appear:!1,css:!0,onAfterLeave:g,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight=`0px`}});return u(p.value?null:s(Gt,k,{default:()=>[ie(s(`div`,X(X({role:`alert`},i),{},{style:[i.style,v.value],class:[i.class,E],"data-show":!f.value,ref:m}),[o?O:null,s(`div`,{class:`${T}-content`},[x?s(`div`,{class:`${T}-message`},[x]):null,b?s(`div`,{class:`${T}-description`},[b]):null]),C?s(`div`,{class:`${T}-action`},[C]):null,D]),[[st,!f.value]])]}))}}}),Eg=be(Tg),Dg=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Og=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function kg(){let[,e]=Ct();return a(()=>{let t=Og(e.value),n=new Map,r=-1,i={};return{matchHandlers:{},dispatch(e){return i=e,n.forEach(e=>e(i)),n.size>=1},subscribe(e){return n.size||this.register(),r+=1,n.set(r,e),e(i),r},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];r?.mql.removeListener(r?.listener)}),n.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],r=t=>{let{matches:n}=t;this.dispatch(G(G({},i),{[e]:n}))},a=window.matchMedia(n);a.addListener(r),this.matchHandlers[n]={mql:a,listener:r},r(a)})},responsiveMap:t}})}function Ag(){let e=M({}),t=null,n=kg();return D(()=>{t=n.value.subscribe(t=>{e.value=t})}),E(()=>{n.value.unsubscribe(t)}),e}function jg(e){let t=M();return P(()=>{t.value=e()},{flush:`sync`}),t}var Mg=e=>{let{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:a,containerSize:o,containerSizeLG:s,containerSizeSM:c,textFontSize:l,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:m,lineWidth:h,lineType:g}=e,_=(e,t,i)=>({width:e,height:e,lineHeight:`${e-h*2}px`,borderRadius:`50%`,[`&${n}-square`]:{borderRadius:i},[`${n}-string`]:{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transformOrigin:`0 center`},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:G(G(G(G({},Ne(e)),{position:`relative`,display:`inline-block`,overflow:`hidden`,color:a,whiteSpace:`nowrap`,textAlign:`center`,verticalAlign:`middle`,background:i,border:`${h}px ${g} transparent`,"&-image":{background:`transparent`},[`${t}-image-img`]:{display:`block`}}),_(o,l,f)),{"&-lg":G({},_(s,u,p)),"&-sm":G({},_(c,d,m)),"> img":{display:`block`,width:`100%`,height:`100%`,objectFit:`cover`}})}},Ng=e=>{let{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:`inline-flex`,[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},Pg=Le(`Avatar`,e=>{let{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=Fe(e,{avatarBg:n,avatarColor:t});return[Mg(r),Ng(r)]},e=>{let{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:a,fontSizeXL:o,fontSizeHeading3:s,marginXS:c,marginXXS:l,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((a+o)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:l,groupOverlapping:-c,groupBorderColor:u}}),Fg=Symbol(`AvatarContextKey`),Ig=()=>C(Fg,{}),Lg=t=>e(Fg,t),Rg=d({compatConfig:{MODE:3},name:`AAvatar`,inheritAttrs:!1,props:{prefixCls:String,shape:{type:String,default:`circle`},size:{type:[Number,String,Object],default:()=>`default`},src:String,srcset:String,icon:J.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,i=M(!0),o=M(!1),c=M(1),l=M(null),u=M(null),{prefixCls:d}=K(`avatar`,e),[f,p]=Pg(d),m=Ig(),h=a(()=>e.size==="default"?m.size:e.size),g=Ag(),_=jg(()=>{if(typeof e.size!=`object`)return;let t=Dg.find(e=>g.value[e]);return e.size[t]}),v=e=>_.value?{width:`${_.value}px`,height:`${_.value}px`,lineHeight:`${_.value}px`,fontSize:`${e?_.value/2:18}px`}:{},y=()=>{if(!l.value||!u.value)return;let t=l.value.offsetWidth,n=u.value.offsetWidth;if(t!==0&&n!==0){let{gap:r=4}=e;r*2{let{loadError:t}=e;t?.()!==!1&&(i.value=!1)};return H(()=>e.src,()=>{x(()=>{i.value=!0,c.value=1})}),H(()=>e.gap,()=>{x(()=>{y()})}),D(()=>{x(()=>{y(),o.value=!0})}),()=>{let{shape:t,src:a,alt:g,srcset:_,draggable:x,crossOrigin:S}=e,C=m.shape??t,w=Se(n,e,`icon`),T=d.value,E={[`${r.class}`]:!!r.class,[T]:!0,[`${T}-lg`]:h.value===`large`,[`${T}-sm`]:h.value===`small`,[`${T}-${C}`]:!0,[`${T}-image`]:a&&i.value,[`${T}-icon`]:w,[p.value]:!0},D=typeof h.value==`number`?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:w?`${h.value/2}px`:`18px`}:{},O=n.default?.call(n),k;if(a&&i.value)k=s(`img`,{draggable:x,src:a,srcset:_,onError:b,alt:g,crossorigin:S},null);else if(w)k=w;else if(o.value||c.value!==1){let e=`scale(${c.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n=typeof h.value==`number`?{lineHeight:`${h.value}px`}:{};k=s(pi,{onResize:y},{default:()=>[s(`span`,{class:`${T}-string`,ref:l,style:G(G({},n),t)},[O])]})}else k=s(`span`,{class:`${T}-string`,ref:l,style:{opacity:0}},[O]);return f(s(`span`,X(X({},r),{},{ref:u,class:E,style:[D,v(!!w),r.style]}),[k]))}}}),zg={adjustX:1,adjustY:1},Bg=[0,0],Vg={left:{points:[`cr`,`cl`],overflow:zg,offset:[-4,0],targetOffset:Bg},right:{points:[`cl`,`cr`],overflow:zg,offset:[4,0],targetOffset:Bg},top:{points:[`bc`,`tc`],overflow:zg,offset:[0,-4],targetOffset:Bg},bottom:{points:[`tc`,`bc`],overflow:zg,offset:[0,4],targetOffset:Bg},topLeft:{points:[`bl`,`tl`],overflow:zg,offset:[0,-4],targetOffset:Bg},leftTop:{points:[`tr`,`tl`],overflow:zg,offset:[-4,0],targetOffset:Bg},topRight:{points:[`br`,`tr`],overflow:zg,offset:[0,-4],targetOffset:Bg},rightTop:{points:[`tl`,`tr`],overflow:zg,offset:[4,0],targetOffset:Bg},bottomRight:{points:[`tr`,`br`],overflow:zg,offset:[0,4],targetOffset:Bg},rightBottom:{points:[`bl`,`br`],overflow:zg,offset:[4,0],targetOffset:Bg},bottomLeft:{points:[`tl`,`bl`],overflow:zg,offset:[0,4],targetOffset:Bg},leftBottom:{points:[`br`,`bl`],overflow:zg,offset:[-4,0],targetOffset:Bg}},Hg={prefixCls:String,id:String,overlayInnerStyle:J.any},Ug=d({compatConfig:{MODE:3},name:`TooltipContent`,props:Hg,setup(e,t){let{slots:n}=t;return()=>s(`div`,{class:`${e.prefixCls}-inner`,id:e.id,role:`tooltip`,style:e.overlayInnerStyle},[n.overlay?.call(n)])}}),Wg=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:J.string.def(`rc-tooltip`),mouseEnterDelay:J.number.def(.1),mouseLeaveDelay:J.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:J.object.def(()=>({})),arrowContent:J.any.def(null),tipId:String,builtinPlacements:J.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:r,expose:i}=t,a=M(),o=()=>{let{prefixCls:t,tipId:r,overlayInnerStyle:i}=e;return[e.arrow?s(`div`,{class:`${t}-arrow`,key:`arrow`},[Se(n,e,`arrowContent`)]):null,s(Ug,{key:`content`,prefixCls:t,id:r,overlayInnerStyle:i},{overlay:n.overlay})]};i({getPopupDomNode:()=>a.value.getPopupDomNode(),triggerDOM:a,forcePopupAlign:()=>a.value?.forcePopupAlign()});let c=M(!1),l=M(!1);return P(()=>{let{destroyTooltipOnHide:t}=e;if(typeof t==`boolean`)c.value=t;else if(t&&typeof t==`object`){let{keepParent:e}=t;c.value=e===!0,l.value=e===!1}}),()=>{let{overlayClassName:t,trigger:i,mouseEnterDelay:u,mouseLeaveDelay:d,overlayStyle:f,prefixCls:p,afterVisibleChange:m,transitionName:h,animation:g,placement:_,align:v,destroyTooltipOnHide:y,defaultVisible:b}=e,x=Wg(e,[`overlayClassName`,`trigger`,`mouseEnterDelay`,`mouseLeaveDelay`,`overlayStyle`,`prefixCls`,`afterVisibleChange`,`transitionName`,`animation`,`placement`,`align`,`destroyTooltipOnHide`,`defaultVisible`]),S=G({},x);e.visible!==void 0&&(S.popupVisible=e.visible);let C=G(G(G({popupClassName:t,prefixCls:p,action:i,builtinPlacements:Vg,popupPlacement:_,popupAlign:v,afterPopupVisibleChange:m,popupTransitionName:h,popupAnimation:g,defaultPopupVisible:b,destroyPopupOnHide:c.value,autoDestroy:l.value,mouseLeaveDelay:d,popupStyle:f,mouseEnterDelay:u},S),r),{onPopupVisibleChange:e.onVisibleChange||Gg,onPopupAlign:e.onPopupAlign||Gg,ref:a,arrow:!!e.arrow,popup:o()});return s(tl,C,{default:n.default})}}}),qg=(()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ut(),overlayInnerStyle:ut(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:ut(),builtinPlacements:ut(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})),Jg={adjustX:1,adjustY:1},Yg={adjustX:0,adjustY:0},Xg=[0,0];function Zg(e){return typeof e==`boolean`?e?Jg:Yg:G(G({},Yg),e)}function Qg(e){let{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:a}=e,o={left:{points:[`cr`,`cl`],offset:[-4,0]},right:{points:[`cl`,`cr`],offset:[4,0]},top:{points:[`bc`,`tc`],offset:[0,-4]},bottom:{points:[`tc`,`bc`],offset:[0,4]},topLeft:{points:[`bl`,`tc`],offset:[-(n+t),-4]},leftTop:{points:[`tr`,`cl`],offset:[-4,-(r+t)]},topRight:{points:[`br`,`tc`],offset:[n+t,-4]},rightTop:{points:[`tl`,`cr`],offset:[4,-(r+t)]},bottomRight:{points:[`tr`,`bc`],offset:[n+t,4]},rightBottom:{points:[`bl`,`cr`],offset:[4,r+t]},bottomLeft:{points:[`tl`,`bc`],offset:[-(n+t),4]},leftBottom:{points:[`br`,`cl`],offset:[-4,r+t]}};return Object.keys(o).forEach(e=>{o[e]=a?G(G({},o[e]),{overflow:Zg(i),targetOffset:Xg}):G(G({},Vg[e]),{overflow:Zg(i)}),o[e].ignoreShake=!0}),o}function $g(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),t_=[`success`,`processing`,`error`,`default`,`warning`];function n_(e){return!(arguments.length>1&&arguments[1]!==void 0)||arguments[1]?[...e_,...Ii].includes(e):Ii.includes(e)}function r_(e){return t_.includes(e)}function i_(e,t){let n=n_(t),r=Z({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a[`--antd-arrow-background-color`]=t),{className:r,overlayStyle:i,arrowStyle:a}}function a_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return e.map(e=>`${t}${e}`).join(`,`)}function o_(e){let{sizePopupArrow:t,contentRadius:n,borderRadiusOuter:r,limitVerticalRadius:i}=e,a=t/2-Math.ceil(r*(Math.sqrt(2)-1)),o=(n>12?n+2:12)-a;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:i?8-a:o}}function s_(e,t){let{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:a,borderRadiusOuter:o,boxShadowPopoverArrow:s}=e,{colorBg:c,showArrowCls:l,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=o_({sizePopupArrow:r,contentRadius:u,borderRadiusOuter:o,limitVerticalRadius:d}),m=r/2+i;return{[n]:{[`${n}-arrow`]:[G(G({position:`absolute`,zIndex:1,display:`block`},Ri(r,a,o,c,s)),{"&:before":{background:c}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(`,`)]:{bottom:0,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(`,`)]:{top:0,transform:`translateY(-100%)`},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:0},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:0},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[a_([`&-placement-topLeft`,`&-placement-top`,`&-placement-topRight`].map(e=>e+=`:not(&-arrow-hidden)`),l)]:{paddingBottom:m},[a_([`&-placement-bottomLeft`,`&-placement-bottom`,`&-placement-bottomRight`].map(e=>e+=`:not(&-arrow-hidden)`),l)]:{paddingTop:m},[a_([`&-placement-leftTop`,`&-placement-left`,`&-placement-leftBottom`].map(e=>e+=`:not(&-arrow-hidden)`),l)]:{paddingRight:{_skip_check_:!0,value:m}},[a_([`&-placement-rightTop`,`&-placement-right`,`&-placement-rightBottom`].map(e=>e+=`:not(&-arrow-hidden)`),l)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}var c_=e=>{let{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:s,boxShadowSecondary:c,paddingSM:l,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:G(G(G(G({},Ne(e)),{position:`absolute`,zIndex:o,display:`block`,"&":[{width:`max-content`},{width:`intrinsic`}],maxWidth:n,visibility:`visible`,"&-hidden":{display:`none`},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${l/2}px ${u}px`,color:r,textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:i,borderRadius:a,boxShadow:c},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${t}-inner`]:{borderRadius:Math.min(a,8)}},[`${t}-content`]:{position:`relative`}}),zi(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:`rtl`}})},s_(Fe(e,{borderRadiusOuter:d}),{colorBg:`var(--antd-arrow-background-color)`,showArrowCls:``,contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`}}]},l_=((e,t)=>Le(`Tooltip`,e=>{if(t?.value===!1)return[];let{borderRadius:n,colorTextLightSolid:r,colorBgDefault:i,borderRadiusOuter:a}=e;return[c_(Fe(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:i,tooltipRadiusOuter:a>4?4:a})),Mn(e,`zoom-big-fast`)]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}})(e)),u_=(e,t)=>{let n={},r=G({},e);return t.forEach(t=>{e&&t in e&&(n[t]=e[t],delete r[t])}),{picked:n,omitted:r}},d_=()=>G(G({},qg()),{title:J.any}),f_=()=>({trigger:`hover`,align:{},placement:`top`,mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),p_=d({compatConfig:{MODE:3},name:`ATooltip`,inheritAttrs:!1,props:Vn(d_(),{trigger:`hover`,align:{},placement:`top`,mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i,expose:o}=t,{prefixCls:c,getPopupContainer:l,direction:u,rootPrefixCls:d}=K(`tooltip`,e),f=a(()=>e.open??e.visible),p=W($g([e.open,e.visible])),m=W(),h;H(f,e=>{Rn.cancel(h),h=Rn(()=>{p.value=!!e})});let g=()=>{let t=e.title??n.title;return!t&&t!==0},_=e=>{let t=g();f.value===void 0&&(p.value=!t&&e),t||(r(`update:visible`,e),r(`visibleChange`,e),r(`update:open`,e),r(`openChange`,e))};o({getPopupDomNode:()=>m.value.getPopupDomNode(),open:p,forcePopupAlign:()=>m.value?.forcePopupAlign()});let v=a(()=>{let{builtinPlacements:t,autoAdjustOverflow:n,arrow:r,arrowPointAtCenter:i}=e,a=i;return typeof r==`object`&&(a=r.pointAtCenter??i),t||Qg({arrowPointAtCenter:a,autoAdjustOverflow:n})}),y=e=>e||e===``,b=e=>{let t=e.type;if(typeof t==`object`&&e.props&&((t.__ANT_BUTTON===!0||t===`button`)&&y(e.props.disabled)||t.__ANT_SWITCH===!0&&(y(e.props.disabled)||y(e.props.loading))||t.__ANT_RADIO===!0&&y(e.props.disabled))){let{picked:t,omitted:n}=u_(Pe(e),[`position`,`left`,`right`,`top`,`bottom`,`float`,`display`,`zIndex`]),r=G(G({display:`inline-block`},t),{cursor:`not-allowed`,lineHeight:1,width:e.props&&e.props.block?`100%`:void 0}),i=G(G({},n),{pointerEvents:`none`}),a=on(e,{style:i},!0);return s(`span`,{style:r,class:`${c.value}-disabled-compatible-wrapper`},[a])}return e},x=()=>e.title??n.title?.call(n),S=(e,t)=>{let n=v.value,r=Object.keys(n).find(e=>n[e].points[0]===t.points?.[0]&&n[e].points[1]===t.points?.[1]);if(r){let n=e.getBoundingClientRect(),i={top:`50%`,left:`50%`};r.indexOf(`top`)>=0||r.indexOf(`Bottom`)>=0?i.top=`${n.height-t.offset[1]}px`:(r.indexOf(`Top`)>=0||r.indexOf(`bottom`)>=0)&&(i.top=`${-t.offset[1]}px`),r.indexOf(`left`)>=0||r.indexOf(`Right`)>=0?i.left=`${n.width-t.offset[0]}px`:(r.indexOf(`right`)>=0||r.indexOf(`Left`)>=0)&&(i.left=`${-t.offset[0]}px`),e.style.transformOrigin=`${i.left} ${i.top}`}},C=a(()=>i_(c.value,e.color)),w=a(()=>i[`data-popover-inject`]),[T,E]=l_(c,a(()=>!w.value));return()=>{let{openClassName:t,overlayClassName:r,overlayStyle:a,overlayInnerStyle:o}=e,h=ve(n.default?.call(n))??null;h=h.length===1?h[0]:h;let y=p.value;if(f.value===void 0&&g()&&(y=!1),!h)return null;let w=b(Xe(h)&&!Qe(h)?h:s(`span`,null,[h])),D=Z({[t||`${c.value}-open`]:!0,[w.props&&w.props.class]:w.props&&w.props.class}),O=Z(r,{[`${c.value}-rtl`]:u.value===`rtl`},C.value.className,E.value),k=G(G({},C.value.overlayStyle),o),A=C.value.arrowStyle,j=G(G(G({},i),e),{prefixCls:c.value,arrow:!!e.arrow,getPopupContainer:l?.value,builtinPlacements:v.value,visible:y,ref:m,overlayClassName:O,overlayStyle:G(G({},A),a),overlayInnerStyle:k,onVisibleChange:_,onPopupAlign:S,transitionName:qe(d.value,`zoom-big-fast`,e.transitionName)});return T(s(Kg,j,{default:()=>[p.value?on(w,{class:D}):w],arrowContent:()=>s(`span`,{class:`${c.value}-arrow-content`},null),overlay:x}))}}}),m_=be(p_),h_=e=>{let{componentCls:t,popoverBg:n,popoverColor:r,width:i,fontWeightStrong:a,popoverPadding:o,boxShadowSecondary:s,colorTextHeading:c,borderRadiusLG:l,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:G(G({},Ne(e)),{position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,"--antd-arrow-background-color":f,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-inner`]:{backgroundColor:n,backgroundClip:`padding-box`,borderRadius:l,boxShadow:s,padding:o},[`${t}-title`]:{minWidth:i,marginBottom:d,color:c,fontWeight:a},[`${t}-inner-content`]:{color:r}})},s_(e,{colorBg:`var(--antd-arrow-background-color)`}),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,[`${t}-content`]:{display:`inline-block`}}}]},g_=e=>{let{componentCls:t}=e;return{[t]:Ii.map(n=>{let r=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:`transparent`}}}})}},__=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:i,paddingSM:a,controlHeight:o,fontSize:s,lineHeight:c,padding:l}=e,u=o-Math.round(s*c),d=u/2,f=u/2-n,p=l;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${p}px ${f}px`,borderBottom:`${n}px ${r} ${i}`},[`${t}-inner-content`]:{padding:`${a}px ${p}px`}}}},v_=Le(`Popover`,e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,i=Fe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[h_(i),g_(i),r&&__(i),Mn(i,`zoom-big`)]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),y_=d({compatConfig:{MODE:3},name:`APopover`,inheritAttrs:!1,props:Vn(G(G({},qg()),{content:bt(),title:bt()}),G(G({},f_()),{trigger:`hover`,placement:`top`,mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:r,attrs:i}=t,o=W();nt(e.visible===void 0,`popover`,"`visible` will be removed in next major version, please use `open` instead."),n({getPopupDomNode:()=>{var e;return((e=o.value)?.getPopupDomNode)?.call(e)}});let{prefixCls:c,configProvider:l}=K(`popover`,e),[u,d]=v_(c),f=a(()=>l.getPrefixCls()),p=()=>{let{title:t=ve(r.title?.call(r)),content:n=ve(r.content?.call(r))}=e,i=!!(Array.isArray(t)?t.length:t),a=!!(Array.isArray(n)?n.length:t);return!i&&!a?null:s(v,null,[i&&s(`div`,{class:`${c.value}-title`},[t]),s(`div`,{class:`${c.value}-inner-content`},[n])])};return()=>{let t=Z(e.overlayClassName,d.value);return u(s(m_,X(X(X({},Gn(e,[`title`,`content`])),i),{},{prefixCls:c.value,ref:o,overlayClassName:t,transitionName:qe(f.value,`zoom-big`,e.transitionName),"data-popover-inject":!0}),{title:p,default:r.default}))}}}),b_=be(y_),x_=d({compatConfig:{MODE:3},name:`AAvatarGroup`,inheritAttrs:!1,props:{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:`top`},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:`default`},shape:{type:String,default:`circle`}},setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o}=K(`avatar`,e),c=a(()=>`${i.value}-group`),[l,u]=Pg(i);return P(()=>{Lg({size:e.size,shape:e.shape})}),()=>{let{maxPopoverPlacement:t=`top`,maxCount:i,maxStyle:a,maxPopoverTrigger:d=`hover`,shape:f}=e,p={[c.value]:!0,[`${c.value}-rtl`]:o.value===`rtl`,[`${r.class}`]:!!r.class,[u.value]:!0},m=Se(n,e),h=pe(m).map((e,t)=>on(e,{key:`avatar-key-${t}`})),g=h.length;if(i&&i[s(Rg,{style:a,shape:f},{default:()=>[`+${g-i}`]})]})),l(s(`div`,X(X({},r),{},{class:p,style:r.style}),[e]))}return l(s(`div`,X(X({},r),{},{class:p,style:r.style}),[h]))}}});Rg.Group=x_,Rg.install=function(e){return e.component(Rg.name,Rg),e.component(x_.name,x_),e};var S_=Rg;function C_(e){let{prefixCls:t,value:n,current:r,offset:i=0}=e,a;return i&&(a={position:`absolute`,top:`${i}00%`,left:0}),s(`p`,{style:a,class:Z(`${t}-only-unit`,{current:r})},[n])}function w_(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}var T_=d({compatConfig:{MODE:3},name:`SingleNumber`,props:{prefixCls:String,value:String,count:Number},setup(e){let t=a(()=>Number(e.value)),n=a(()=>Math.abs(e.count)),r=k({prevValue:t.value,prevCount:n.value}),i=()=>{r.prevValue=t.value,r.prevCount=n.value},o=W();return H(t,()=>{clearTimeout(o.value),o.value=setTimeout(()=>{i()},1e3)},{flush:`post`}),E(()=>{clearTimeout(o.value)}),()=>{let a,o={},c=t.value;if(r.prevValue===c||Number.isNaN(c)||Number.isNaN(r.prevValue))a=[C_(G(G({},e),{current:!0}))],o={transition:`none`};else{a=[];let t=c+10,i=[];for(let e=c;e<=t;e+=1)i.push(e);let s=i.findIndex(e=>e%10===r.prevValue);a=i.map((t,n)=>{let r=t%10;return C_(G(G({},e),{value:r,offset:n-s,current:n===s}))});let l=r.prevCounti()},[a])}}}),E_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=G(G({},e),n),{prefixCls:a,count:o,title:c,show:l,component:u=`sup`,class:d,style:f}=t,p=E_(t,[`prefixCls`,`count`,`title`,`show`,`component`,`class`,`style`]),m=G(G({},p),{style:f,"data-show":e.show,class:Z(i.value,d),title:c}),h=o;if(o&&Number(o)%1==0){let e=String(o).split(``);h=e.map((t,n)=>s(T_,{prefixCls:i.value,count:Number(o),value:t,key:e.length-n},null))}f&&f.borderColor&&(m.style=G(G({},f),{boxShadow:`0 0 0 1px ${f.borderColor} inset`}));let g=ve(r.default?.call(r));return g&&g.length?on(g,{class:Z(`${i.value}-custom-component`)},!1):s(u,m,{default:()=>[h]})}}}),k_=new Te(`antStatusProcessing`,{"0%":{transform:`scale(0.8)`,opacity:.5},"100%":{transform:`scale(2.4)`,opacity:0}}),A_=new Te(`antZoomBadgeIn`,{"0%":{transform:`scale(0) translate(50%, -50%)`,opacity:0},"100%":{transform:`scale(1) translate(50%, -50%)`}}),j_=new Te(`antZoomBadgeOut`,{"0%":{transform:`scale(1) translate(50%, -50%)`},"100%":{transform:`scale(0) translate(50%, -50%)`,opacity:0}}),M_=new Te(`antNoWrapperZoomBadgeIn`,{"0%":{transform:`scale(0)`,opacity:0},"100%":{transform:`scale(1)`}}),N_=new Te(`antNoWrapperZoomBadgeOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0)`,opacity:0}}),P_=new Te(`antBadgeLoadingCircle`,{"0%":{transformOrigin:`50%`},"100%":{transform:`translate(50%, -50%) rotate(360deg)`,transformOrigin:`50%`}}),F_=e=>{let{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:i,badgeShadowSize:a,badgeHeightSm:o,motionDurationSlow:s,badgeStatusSize:c,marginXS:l,badgeRibbonOffset:u}=e,d=`${r}-scroll-number`,f=`${r}-ribbon`,p=`${r}-ribbon-wrapper`,m=zi(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r}}}}),h=zi(e,(e,t)=>{let{darkColor:n}=t;return{[`&${f}-color-${e}`]:{background:n,color:n}}});return{[t]:G(G(G(G({},Ne(e)),{position:`relative`,display:`inline-block`,width:`fit-content`,lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:`nowrap`,textAlign:`center`,background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:o,height:o,fontSize:e.badgeFontSizeSm,lineHeight:`${o}px`,borderRadius:o/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:`100%`,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${s}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:`absolute`,top:0,insetInlineEnd:0,transform:`translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&${n}-spin`]:{animationName:P_,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}},[`&${t}-status`]:{lineHeight:`inherit`,verticalAlign:`baseline`,[`${t}-status-dot`]:{position:`relative`,top:-1,display:`inline-block`,width:c,height:c,verticalAlign:`middle`,borderRadius:`50%`},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:`visible`,color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderWidth:a,borderStyle:`solid`,borderColor:`inherit`,borderRadius:`50%`,animationName:k_,animationDuration:e.badgeProcessingDuration,animationIterationCount:`infinite`,animationTimingFunction:`ease-in-out`,content:`""`}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:l,color:e.colorText,fontSize:e.fontSize}}}),m),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:A_,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`${t}-zoom-leave`]:{animationName:j_,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:`both`},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:M_,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:N_,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:`middle`},[`${d}-custom-component, ${t}-count`]:{transform:`none`},[`${d}-custom-component, ${d}`]:{position:`relative`,top:`auto`,display:`block`,transformOrigin:`50% 50%`}},[`${d}`]:{overflow:`hidden`,[`${d}-only`]:{position:`relative`,display:`inline-block`,height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:`preserve-3d`,WebkitBackfaceVisibility:`hidden`,[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:`preserve-3d`,WebkitBackfaceVisibility:`hidden`}},[`${d}-symbol`]:{verticalAlign:`top`}},"&-rtl":{direction:`rtl`,[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:`translate(-50%, -50%)`}}}),[`${p}`]:{position:`relative`},[`${f}`]:G(G(G(G({},Ne(e)),{position:`absolute`,top:l,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${i}px`,whiteSpace:`nowrap`,backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:`absolute`,top:`100%`,width:u,height:u,color:`currentcolor`,border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:`top`,filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:`transparent`,borderBlockEndColor:`transparent`}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:`transparent`,borderInlineStartColor:`transparent`}},"&-rtl":{direction:`rtl`}})}},I_=Le(`Badge`,e=>{let{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i,marginXS:a,colorBorderBg:o}=e,s=Math.round(t*n),c=i,l=s-2*c,u=e.colorBgContainer,d=r,f=e.colorError,p=e.colorErrorHover,m=t,h=r/2,g=r,_=r/2;return[F_(Fe(e,{badgeFontHeight:s,badgeShadowSize:c,badgeZIndex:`auto`,badgeHeight:l,badgeTextColor:u,badgeFontWeight:`normal`,badgeFontSize:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:o,badgeHeightSm:m,badgeDotSize:h,badgeFontSizeSm:g,badgeStatusSize:_,badgeProcessingDuration:`1.2s`,badgeRibbonOffset:a,badgeRibbonCornerTransform:`scaleY(0.75)`,badgeRibbonCornerFilter:`brightness(75%)`}))]}),L_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);in_(e.color,!1)),d=a(()=>[i.value,`${i.value}-placement-${e.placement}`,{[`${i.value}-rtl`]:o.value===`rtl`,[`${i.value}-color-${e.color}`]:u.value}]);return()=>{let{class:t,style:a}=n,o=L_(n,[`class`,`style`]),f={},p={};return e.color&&!u.value&&(f.background=e.color,p.color=e.color),c(s(`div`,X({class:`${i.value}-wrapper ${l.value}`},o),[r.default?.call(r),s(`div`,{class:[d.value,t,l.value],style:G(G({},f),a)},[s(`span`,{class:`${i.value}-text`},[e.text||r.text?.call(r)]),s(`div`,{class:`${i.value}-corner`,style:p},null)])]))}}}),z_=e=>!isNaN(parseFloat(e))&&isFinite(e),B_=d({compatConfig:{MODE:3},name:`ABadge`,Ribbon:R_,inheritAttrs:!1,props:{count:J.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:`default`},color:String,text:J.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o}=K(`badge`,e),[c,l]=I_(i),u=a(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),d=a(()=>u.value===`0`||u.value===0),f=a(()=>e.count===null||d.value&&!e.showZero),p=a(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&f.value),m=a(()=>e.dot&&!d.value),h=a(()=>m.value?``:u.value),g=a(()=>(h.value===null||h.value===void 0||h.value===``||d.value&&!e.showZero)&&!m.value),_=W(e.count),v=W(h.value),y=W(m.value);H([()=>e.count,h,m],()=>{g.value||(_.value=e.count,v.value=h.value,y.value=m.value)},{immediate:!0});let b=a(()=>n_(e.color,!1)),x=a(()=>({[`${i.value}-status-dot`]:p.value,[`${i.value}-status-${e.status}`]:!!e.status,[`${i.value}-color-${e.color}`]:b.value})),S=a(()=>e.color&&!b.value?{background:e.color,color:e.color}:{}),C=a(()=>({[`${i.value}-dot`]:y.value,[`${i.value}-count`]:!y.value,[`${i.value}-count-sm`]:e.size===`small`,[`${i.value}-multiple-words`]:!y.value&&v.value&&v.value.toString().length>1,[`${i.value}-status-${e.status}`]:!!e.status,[`${i.value}-color-${e.color}`]:b.value}));return()=>{let{offset:t,title:a,color:u}=e,d=r.style,f=Se(n,e,`text`),m=i.value,h=_.value,y=pe(n.default?.call(n));y=y.length?y:null;let w=!!(!g.value||n.count),T=(()=>{if(!t)return G({},d);let e={marginTop:z_(t[1])?`${t[1]}px`:t[1]};return o.value===`rtl`?e.left=`${parseInt(t[0],10)}px`:e.right=`${-parseInt(t[0],10)}px`,G(G({},e),d)})(),E=a??(typeof h==`string`||typeof h==`number`?h:void 0),D=w||!f?null:s(`span`,{class:`${m}-status-text`},[f]),O=typeof h==`object`||h===void 0&&n.count?on(h??n.count?.call(n),{style:T},!1):null,k=Z(m,{[`${m}-status`]:p.value,[`${m}-not-a-wrapper`]:!y,[`${m}-rtl`]:o.value===`rtl`},r.class,l.value);if(!y&&p.value){let e=T.color;return c(s(`span`,X(X({},r),{},{class:k,style:T}),[s(`span`,{class:x.value,style:S.value},null),s(`span`,{style:{color:e},class:`${m}-status-text`},[f])]))}let A=ge(y?`${m}-zoom`:``,{appear:!1}),j=G(G({},T),e.numberStyle);return u&&!b.value&&(j||={},j.background=u),c(s(`span`,X(X({},r),{},{class:k}),[y,s(Gt,A,{default:()=>[ie(s(O_,{prefixCls:e.scrollNumberPrefixCls,show:w,class:C.value,count:v.value,title:E,style:j,key:`scrollNumber`},{default:()=>[O]}),[[st,w]])]}),D]))}}});B_.install=function(e){return e.component(B_.name,B_),e.component(R_.name,R_),e};var V_=B_,H_={adjustX:1,adjustY:1},U_=[0,0],W_={topLeft:{points:[`bl`,`tl`],overflow:H_,offset:[0,-4],targetOffset:U_},topCenter:{points:[`bc`,`tc`],overflow:H_,offset:[0,-4],targetOffset:U_},topRight:{points:[`br`,`tr`],overflow:H_,offset:[0,-4],targetOffset:U_},bottomLeft:{points:[`tl`,`bl`],overflow:H_,offset:[0,4],targetOffset:U_},bottomCenter:{points:[`tc`,`bc`],overflow:H_,offset:[0,4],targetOffset:U_},bottomRight:{points:[`tr`,`br`],overflow:H_,offset:[0,4],targetOffset:U_}},G_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.visible,e=>{e!==void 0&&(o.value=e)});let c=W();i({triggerRef:c});let l=t=>{e.visible===void 0&&(o.value=!1),r(`overlayClick`,t)},u=t=>{e.visible===void 0&&(o.value=t),r(`visibleChange`,t)},d=()=>{let t=n.overlay?.call(n),r={prefixCls:`${e.prefixCls}-menu`,onClick:l};return s(v,{key:et},[e.arrow&&s(`div`,{class:`${e.prefixCls}-arrow`},null),on(t,r,!1)])},f=a(()=>{let{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),p=()=>{let t=n.default?.call(n);return o.value&&t?on(t[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):t},m=a(()=>!e.hideAction&&e.trigger.indexOf(`contextmenu`)!==-1?[`click`]:e.hideAction);return()=>{let{prefixCls:t,arrow:n,showAction:r,overlayStyle:i,trigger:a,placement:l,align:h,getPopupContainer:g,transitionName:_,animation:v,overlayClassName:y}=e,b=G_(e,[`prefixCls`,`arrow`,`showAction`,`overlayStyle`,`trigger`,`placement`,`align`,`getPopupContainer`,`transitionName`,`animation`,`overlayClassName`]);return s(tl,X(X({},b),{},{prefixCls:t,ref:c,popupClassName:Z(y,{[`${t}-show-arrow`]:n}),popupStyle:i,builtinPlacements:W_,action:a,showAction:r,hideAction:m.value||[],popupPlacement:l,popupAlign:h,popupTransitionName:_,popupAnimation:v,popupVisible:o.value,stretch:f.value?`minWidth`:``,onPopupVisibleChange:u,getPopupContainer:g}),{popup:d,default:p})}}}),q_=()=>({arrow:$t([Boolean,Object]),trigger:{type:[Array,String]},menu:ut(),overlay:J.any,visible:Y(),open:Y(),disabled:Y(),danger:Y(),autofocus:Y(),align:ut(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:ut(),forceRender:Y(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Y(),destroyPopupOnHide:Y(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),J_=tr(),Y_=()=>G(G({},q_()),{type:J_.type,size:String,htmlType:J_.htmlType,href:String,disabled:Y(),prefixCls:String,icon:J.any,title:String,loading:J_.loading,onClick:Yt()}),X_={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function Z_(e){for(var t=1;t{let{componentCls:t,antCls:n,paddingXS:r,opacityLoading:i}=e;return{[`${t}-button`]:{whiteSpace:`nowrap`,[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:`default`,pointerEvents:`none`,opacity:i},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},tv=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},nv=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,dropdownArrowOffset:a,sizePopupArrow:o,antCls:s,iconCls:c,motionDurationMid:l,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:g,boxShadowPopoverArrow:_}=e;return[{[t]:G(G({},Ne(e)),{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:-i+o/2,zIndex:-9999,opacity:1e-4,content:`""`},[`${t}-wrap`]:{position:`relative`,[`${s}-btn > ${c}-down`]:{fontSize:m},[`${c}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:`rotate(180deg)`}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:`none`},[` + &-show-arrow${t}-placement-topLeft, + &-show-arrow${t}-placement-top, + &-show-arrow${t}-placement-topRight + `]:{paddingBottom:i},[` + &-show-arrow${t}-placement-bottomLeft, + &-show-arrow${t}-placement-bottom, + &-show-arrow${t}-placement-bottomRight + `]:{paddingTop:i},[`${t}-arrow`]:G({position:`absolute`,zIndex:1,display:`block`},Ri(o,e.borderRadiusXS,e.borderRadiusOuter,g,_)),[` + &-placement-top > ${t}-arrow, + &-placement-topLeft > ${t}-arrow, + &-placement-topRight > ${t}-arrow + `]:{bottom:i,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[` + &-placement-bottom > ${t}-arrow, + &-placement-bottomLeft > ${t}-arrow, + &-placement-bottomRight > ${t}-arrow + `]:{top:i,transform:`translateY(-100%)`},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateY(-100%) translateX(-50%)`},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft, + &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft, + &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom, + &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom, + &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight, + &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Mh},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft, + &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft, + &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top, + &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top, + &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight, + &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ph},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft, + &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom, + &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Nh},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft, + &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top, + &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Fh}})},{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul,li":{listStyle:`none`},ul:{marginInline:`0.3em`}},[`${t}, ${t}-menu-submenu`]:{[n]:G(G({padding:f,listStyleType:`none`,backgroundColor:g,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary},De(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`,borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"> a":{color:`inherit`,transition:`all ${l}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}}},[`${n}-item, ${n}-submenu-title`]:G(G({clear:`both`,margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:`normal`,fontSize:d,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${l}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},De(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:`not-allowed`,"&:hover":{color:p,backgroundColor:g,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorTextDescription,fontSize:m,fontStyle:`normal`}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Vh(e,`slide-up`),Vh(e,`slide-down`),jh(e,`move-up`),jh(e,`move-down`),Mn(e,`zoom-big`)]]},rv=Le(`Dropdown`,(e,t)=>{let{rootPrefixCls:n}=t,{marginXXS:r,sizePopupArrow:i,controlHeight:a,fontSize:o,lineHeight:s,paddingXXS:c,componentCls:l,borderRadiusOuter:u,borderRadiusLG:d}=e,f=(a-o*s)/2,{dropdownArrowOffset:p}=o_({sizePopupArrow:i,contentRadius:d,borderRadiusOuter:u}),m=Fe(e,{menuCls:`${l}-menu`,rootPrefixCls:n,dropdownArrowDistance:i/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:f,dropdownEdgeChildPadding:c});return[nv(m),ev(m),tv(m)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),iv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{i(`update:visible`,e),i(`visibleChange`,e),i(`update:open`,e),i(`openChange`,e)},{prefixCls:c,direction:l,getPopupContainer:u}=K(`dropdown`,e),d=a(()=>`${c.value}-button`),[f,p]=rv(c);return()=>{let t=G(G({},e),r),{type:i=`default`,disabled:a,danger:c,loading:m,htmlType:h,class:g=``,overlay:_=n.overlay?.call(n),trigger:v,align:y,open:b,visible:x,onVisibleChange:S,placement:C=l.value===`rtl`?`bottomLeft`:`bottomRight`,href:w,title:T,icon:E=n.icon?.call(n)||s($_,null,null),mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:j,onClick:M,"onUpdate:open":N}=t,P=iv(t,[`type`,`disabled`,`danger`,`loading`,`htmlType`,`class`,`overlay`,`trigger`,`align`,`open`,`visible`,`onVisibleChange`,`placement`,`href`,`title`,`icon`,`mouseEnterDelay`,`mouseLeaveDelay`,`overlayClassName`,`overlayStyle`,`destroyPopupOnHide`,`onClick`,`onUpdate:open`]),F={align:y,disabled:a,trigger:a?[]:v,placement:C,getPopupContainer:u?.value,onOpenChange:o,mouseEnterDelay:D,mouseLeaveDelay:O,open:b??x,overlayClassName:k,overlayStyle:A,destroyPopupOnHide:j},I=s(Ln,{danger:c,type:i,disabled:a,loading:m,onClick:M,htmlType:h,href:w,title:T},{default:n.default}),L=s(Ln,{danger:c,type:i,icon:E},null);return f(s(av,X(X({},P),{},{class:Z(d.value,g,p.value)}),{default:()=>[n.leftButton?n.leftButton({button:I}):I,s(mv,F,{default:()=>[n.rightButton?n.rightButton({button:L}):L],overlay:()=>_})]}))}}}),sv={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`};function cv(e){for(var t=1;tC(dv,void 0),pv=t=>{let{prefixCls:n,mode:r,selectable:i,validator:o,onClick:s,expandIcon:c}=fv()||{};e(dv,{prefixCls:a(()=>t.prefixCls?.value??n?.value),mode:a(()=>t.mode?.value??r?.value),selectable:a(()=>t.selectable?.value??i?.value),validator:t.validator??o,onClick:t.onClick??s,expandIcon:t.expandIcon??c?.value})},mv=d({compatConfig:{MODE:3},name:`ADropdown`,inheritAttrs:!1,props:Vn(q_(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:`bottomLeft`,trigger:`hover`}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:i}=t,{prefixCls:o,rootPrefixCls:c,direction:l,getPopupContainer:u}=K(`dropdown`,e),[d,f]=rv(o),p=a(()=>{let{placement:t=``,transitionName:n}=e;return n===void 0?t.includes(`top`)?`${c.value}-slide-down`:`${c.value}-slide-up`:n});pv({prefixCls:a(()=>`${o.value}-menu`),expandIcon:a(()=>s(`span`,{class:`${o.value}-menu-submenu-arrow`},[s(uv,{class:`${o.value}-menu-submenu-arrow-icon`},null)])),mode:a(()=>`vertical`),selectable:a(()=>!1),onClick:()=>{},validator:e=>{let{mode:t}=e;nt(!t||t===`vertical`,`Dropdown`,`mode="${t}" is not supported for Dropdown's Menu.`)}});let m=()=>{var t;let r=e.overlay||n.overlay?.call(n),i=Array.isArray(r)?r[0]:r;if(!i)return null;let a=i.props||{};ir(!a.mode||a.mode===`vertical`,`Dropdown`,`mode="${a.mode}" is not supported for Dropdown's Menu.`);let{selectable:c=!1,expandIcon:l=((t=i.children)?.expandIcon)?.call(t)}=a,u=l!==void 0&&Xe(l)?l:s(`span`,{class:`${o.value}-menu-submenu-arrow`},[s(uv,{class:`${o.value}-menu-submenu-arrow-icon`},null)]);return Xe(i)?on(i,{mode:`vertical`,selectable:c,expandIcon:()=>u}):i},h=a(()=>{let t=e.placement;if(!t)return l.value===`rtl`?`bottomRight`:`bottomLeft`;if(t.includes(`Center`)){let e=t.slice(0,t.indexOf(`Center`));return ir(!t.includes(`Center`),`Dropdown`,`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t}),g=a(()=>typeof e.visible==`boolean`?e.visible:e.open),_=e=>{i(`update:visible`,e),i(`visibleChange`,e),i(`update:open`,e),i(`openChange`,e)};return()=>{let{arrow:t,trigger:i,disabled:a,overlayClassName:c}=e,v=n.default?.call(n)[0],y=on(v,G({class:Z(v?.props?.class,{[`${o.value}-rtl`]:l.value===`rtl`},`${o.value}-trigger`)},a?{disabled:a}:{})),b=Z(c,f.value,{[`${o.value}-rtl`]:l.value===`rtl`}),x=a?[]:i,S;x&&x.includes(`contextmenu`)&&(S=!0);let C=Qg({arrowPointAtCenter:typeof t==`object`&&t.pointAtCenter,autoAdjustOverflow:!0}),w=Gn(G(G(G({},e),r),{visible:g.value,builtinPlacements:C,overlayClassName:b,arrow:!!t,alignPoint:S,prefixCls:o.value,getPopupContainer:u?.value,transitionName:p.value,trigger:x,onVisibleChange:_,placement:h.value}),[`overlay`,`onUpdate:visible`]);return d(s(K_,w,{default:()=>[y],overlay:m}))}}});mv.Button=ov;var hv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let i=Se(n,e,`overlay`);return i?s(mv,X(X({},e.dropdownProps),{},{overlay:i,placement:`bottom`}),{default:()=>[s(`span`,{class:`${r}-overlay-link`},[t,s(Xu,null,null)])]}):t},c=e=>{i(`click`,e)};return()=>{let t=Se(n,e,`separator`)??`/`,i=Se(n,e),{class:l,style:u}=r,d=hv(r,[`class`,`style`]),f;return f=e.href===void 0?s(`span`,X({class:`${a.value}-link`,onClick:c},d),[i]):s(`a`,X({class:`${a.value}-link`,onClick:c},d),[i]),f=o(f,a.value),i==null?null:s(`li`,{class:l,style:u},[f,t&&s(`span`,{class:`${a.value}-separator`},[t])])}}});function _v(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o{e(yv,t)},xv=()=>C(yv),Sv=Symbol(`ForceRenderKey`),Cv=t=>{e(Sv,t)},wv=()=>C(Sv,!1),Tv=Symbol(`menuFirstLevelContextKey`),Ev=t=>{e(Tv,t)},Dv=()=>C(Tv,!0),Ov=d({compatConfig:{MODE:3},name:`MenuContextProvider`,inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t,r=xv(),i=G({},r);return e.mode!==void 0&&(i.mode=y(e,`mode`)),e.overflowDisabled!==void 0&&(i.overflowDisabled=y(e,`overflowDisabled`)),bv(i),()=>n.default?.call(n)}}),kv=Symbol(`siderCollapsed`),Av=Symbol(`siderHookProvider`),jv=`$$__vc-menu-more__key`,Mv=Symbol(`KeyPathContext`),Nv=()=>C(Mv,{parentEventKeys:a(()=>[]),parentKeys:a(()=>[]),parentInfo:{}}),Pv=(t,n,r)=>{let{parentEventKeys:i,parentKeys:o}=Nv(),s=a(()=>[...i.value,t]),c=a(()=>[...o.value,n]);return e(Mv,{parentEventKeys:s,parentKeys:c,parentInfo:r}),c},Fv=Symbol(`measure`),Iv=d({compatConfig:{MODE:3},setup(t,n){let{slots:r}=n;return e(Fv,!0),()=>r.default?.call(r)}}),Lv=()=>C(Fv,!1);function Rv(e){let{mode:t,rtl:n,inlineIndent:r}=xv();return a(()=>t.value===`inline`?n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`}:null)}var zv=0,Bv=d({compatConfig:{MODE:3},name:`AMenuItem`,inheritAttrs:!1,props:{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:J.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ut()},slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i}=t,o=m(),c=Lv(),l=typeof o.vnode.key==`symbol`?String(o.vnode.key):o.vnode.key;ir(typeof o.vnode.key!=`symbol`,`MenuItem`,`MenuItem \`:key="${String(l)}"\` not support Symbol type`);let u=`menu_item_${++zv}_$$_${l}`,{parentEventKeys:d,parentKeys:f}=Nv(),{prefixCls:h,activeKeys:g,disabled:_,changeActiveKeys:v,rtl:y,inlineCollapsed:b,siderCollapsed:x,onItemClick:S,selectedKeys:C,registerMenuInfo:w,unRegisterMenuInfo:T}=xv(),E=Dv(),D=M(!1),O=a(()=>[...f.value,l]);w(u,{eventKey:u,key:l,parentEventKeys:d,parentKeys:f,isLeaf:!0}),p(()=>{T(u)}),H(g,()=>{D.value=!!g.value.find(e=>e===l)},{immediate:!0});let k=a(()=>_.value||e.disabled),A=a(()=>C.value.includes(l)),j=a(()=>{let t=`${h.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:D.value,[`${t}-selected`]:A.value,[`${t}-disabled`]:k.value}}),N=t=>({key:l,eventKey:u,keyPath:O.value,eventKeyPath:[...d.value,u],domEvent:t,item:G(G({},e),i)}),P=e=>{if(k.value)return;let t=N(e);r(`click`,e),S(t)},F=e=>{k.value||(v(O.value),r(`mouseenter`,e))},I=e=>{k.value||(v([]),r(`mouseleave`,e))},L=e=>{if(r(`keydown`,e),e.which===$.ENTER){let t=N(e);r(`click`,e),S(t)}},ee=e=>{v(O.value),r(`focus`,e)},R=(e,t)=>{let n=s(`span`,{class:`${h.value}-title-content`},[t]);return(!e||Xe(t)&&t.type===`span`)&&t&&b.value&&E&&typeof t==`string`?s(`div`,{class:`${h.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},z=Rv(a(()=>O.value.length));return()=>{if(c)return null;let t=e.title??n.title?.call(n),r=pe(n.default?.call(n)),a=r.length,o=t;t===void 0?o=E&&a?r:``:t===!1&&(o=``);let u={title:o};!x.value&&!b.value&&(u.title=null,u.open=!1);let d={};e.role===`option`&&(d[`aria-selected`]=A.value);let f=e.icon??n.icon?.call(n,e);return s(m_,X(X({},u),{},{placement:y.value?`left`:`right`,overlayClassName:`${h.value}-inline-collapsed-tooltip`}),{default:()=>[s(kl.Item,X(X(X({component:`li`},i),{},{id:e.id,style:G(G({},i.style||{}),z.value),class:[j.value,{[`${i.class}`]:!!i.class,[`${h.value}-item-only-child`]:(f?a+1:a)===1}],role:e.role||`menuitem`,tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},d),{},{onMouseenter:F,onMouseleave:I,onClick:P,onKeydown:L,onFocus:ee,title:typeof t==`string`?t:void 0}),{default:()=>[on(typeof f==`function`?f(e.originItemValue):f,{class:`${h.value}-item-icon`},!1),R(f,r)]})]})}}}),Vv={adjustX:1,adjustY:1},Hv={topLeft:{points:[`bl`,`tl`],overflow:Vv,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Vv,offset:[0,7]},leftTop:{points:[`tr`,`tl`],overflow:Vv,offset:[-4,0]},rightTop:{points:[`tl`,`tr`],overflow:Vv,offset:[4,0]}},Uv={topLeft:{points:[`bl`,`tl`],overflow:Vv,offset:[0,-7]},bottomLeft:{points:[`tl`,`bl`],overflow:Vv,offset:[0,7]},rightTop:{points:[`tr`,`tl`],overflow:Vv,offset:[-4,0]},leftTop:{points:[`tl`,`tr`],overflow:Vv,offset:[4,0]}},Wv={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`},Gv=d({compatConfig:{MODE:3},name:`PopupTrigger`,inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:[`visibleChange`],setup(e,t){let{slots:n,emit:r}=t,i=M(!1),{getPopupContainer:o,rtl:c,subMenuOpenDelay:l,subMenuCloseDelay:u,builtinPlacements:d,triggerSubMenuAction:f,forceSubMenuRender:m,motion:h,defaultMotions:g,rootClassName:_}=xv(),v=wv(),y=a(()=>c.value?G(G({},Uv),d.value):G(G({},Hv),d.value)),b=a(()=>Wv[e.mode]),x=M();H(()=>e.visible,e=>{Rn.cancel(x.value),x.value=Rn(()=>{i.value=e})},{immediate:!0}),p(()=>{Rn.cancel(x.value)});let S=e=>{r(`visibleChange`,e)},C=a(()=>{let t=h.value||g.value?.[e.mode]||g.value?.other,n=typeof t==`function`?t():t;return n?ge(n.name,{css:!0}):void 0});return()=>{let{prefixCls:t,popupClassName:r,mode:a,popupOffset:d,disabled:p}=e;return s(tl,{prefixCls:t,popupClassName:Z(`${t}-popup`,{[`${t}-rtl`]:c.value},r,_.value),stretch:a===`horizontal`?`minWidth`:null,getPopupContainer:o.value,builtinPlacements:y.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:d&&{offset:d},action:p?[]:[f.value],mouseEnterDelay:l.value,mouseLeaveDelay:u.value,onPopupVisibleChange:S,forceRender:v||m.value,popupAnimation:C.value},{popup:n.popup,default:n.default})}}}),Kv=(e,t)=>{let{slots:n,attrs:r}=t,{prefixCls:i,mode:a}=xv();return s(`ul`,X(X({},r),{},{class:Z(i.value,`${i.value}-sub`,`${i.value}-${a.value===`inline`?`inline`:`vertical`}`),"data-menu-list":!0}),[n.default?.call(n)])};Kv.displayName=`SubMenuList`;var qv=d({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t,r=a(()=>`inline`),{motion:i,mode:o,defaultMotions:c}=xv(),l=a(()=>o.value===r.value),u=W(!l.value),d=a(()=>l.value?e.open:!1);H(o,()=>{l.value&&(u.value=!1)},{flush:`post`});let f=a(()=>{let t=i.value||c.value?.[r.value]||c.value?.other,n=typeof t==`function`?t():t;return G(G({},n),{appear:e.keyPath.length<=1})});return()=>u.value?null:s(Ov,{mode:r.value},{default:()=>[s(Gt,f.value,{default:()=>[ie(s(Kv,{id:e.id},{default:()=>[n.default?.call(n)]}),[[st,d.value]])]})]})}}),Jv=0,Yv=d({compatConfig:{MODE:3},name:`ASubMenu`,inheritAttrs:!1,props:{icon:J.any,title:J.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ut()},slots:Object,setup(e,t){let{slots:n,attrs:r,emit:i}=t;var o;Ev(!1);let c=Lv(),l=m(),u=typeof l.vnode.key==`symbol`?String(l.vnode.key):l.vnode.key;ir(typeof l.vnode.key!=`symbol`,`SubMenu`,`SubMenu \`:key="${String(u)}"\` not support Symbol type`);let d=Me(u)?u:`sub_menu_${++Jv}_$$_not_set_key`,f=e.eventKey??(Me(u)?`sub_menu_${++Jv}_$$_${u}`:d),{parentEventKeys:h,parentInfo:g,parentKeys:_}=Nv(),y=a(()=>[..._.value,d]),b={eventKey:f,key:d,parentEventKeys:h,childrenEventKeys:M([]),parentKeys:_};(o=g.childrenEventKeys)==null||o.value.push(f),p(()=>{g.childrenEventKeys&&(g.childrenEventKeys.value=g.childrenEventKeys?.value.filter(e=>e!=f))}),Pv(f,d,b);let{prefixCls:x,activeKeys:S,disabled:C,changeActiveKeys:w,mode:T,inlineCollapsed:E,openKeys:D,overflowDisabled:O,onOpenChange:k,registerMenuInfo:A,unRegisterMenuInfo:j,selectedSubMenuKeys:N,expandIcon:P,theme:F}=xv(),I=u!=null,L=!c&&(wv()||!I);Cv(L),(c&&I||!c&&!I||L)&&(A(f,b),p(()=>{j(f)}));let ee=a(()=>`${x.value}-submenu`),R=a(()=>C.value||e.disabled),z=M(),B=M(),te=a(()=>D.value.includes(d)),V=a(()=>!O.value&&te.value),ne=a(()=>N.value.includes(d)),re=M(!1);H(S,()=>{re.value=!!S.value.find(e=>e===d)},{immediate:!0});let U=e=>{R.value||(i(`titleClick`,e,d),T.value===`inline`&&k(d,!te.value))},ie=e=>{R.value||(w(y.value),i(`mouseenter`,e))},W=e=>{R.value||(w([]),i(`mouseleave`,e))},ae=Rv(a(()=>y.value.length)),oe=e=>{T.value!==`inline`&&k(d,e)},se=()=>{w(y.value)},ce=f&&`${f}-popup`,le=a(()=>Z(x.value,`${x.value}-${e.theme||F.value}`,e.popupClassName)),ue=(t,n)=>{if(!n)return E.value&&!_.value.length&&t&&typeof t==`string`?s(`div`,{class:`${x.value}-inline-collapsed-noicon`},[t.charAt(0)]):s(`span`,{class:`${x.value}-title-content`},[t]);let r=Xe(t)&&t.type===`span`;return s(v,null,[on(typeof n==`function`?n(e.originItemValue):n,{class:`${x.value}-item-icon`},!1),r?t:s(`span`,{class:`${x.value}-title-content`},[t])])},de=a(()=>T.value!==`inline`&&y.value.length>1?`vertical`:T.value),fe=a(()=>T.value===`horizontal`?`vertical`:T.value),pe=a(()=>de.value===`horizontal`?`vertical`:de.value),me=()=>{let t=ee.value,r=e.icon??n.icon?.call(n,e),i=e.expandIcon||n.expandIcon||P.value,a=ue(Se(n,e,`title`),r);return s(`div`,{style:ae.value,class:`${t}-title`,tabindex:R.value?null:-1,ref:z,title:typeof a==`string`?a:null,"data-menu-id":d,"aria-expanded":V.value,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":R.value,onClick:U,onFocus:se},[a,T.value!==`horizontal`&&i?i(G(G({},e),{isOpen:V.value})):s(`i`,{class:`${t}-arrow`},null)])};return()=>{if(c)return I?n.default?.call(n):null;let t=ee.value,i=()=>null;if(!O.value&&T.value!==`inline`){let r=T.value===`horizontal`?[0,8]:[10,0];i=()=>s(Gv,{mode:de.value,prefixCls:t,visible:!e.internalPopupClose&&V.value,popupClassName:le.value,popupOffset:e.popupOffset||r,disabled:R.value,onVisibleChange:oe},{default:()=>[me()],popup:()=>s(Ov,{mode:pe.value},{default:()=>[s(Kv,{id:ce,ref:B},{default:n.default})]})})}else i=()=>s(Gv,null,{default:me});return s(Ov,{mode:fe.value},{default:()=>[s(kl.Item,X(X({component:`li`},r),{},{role:`none`,class:Z(t,`${t}-${T.value}`,r.class,{[`${t}-open`]:V.value,[`${t}-active`]:re.value,[`${t}-selected`]:ne.value,[`${t}-disabled`]:R.value}),onMouseenter:ie,onMouseleave:W,"data-submenu-id":d}),{default:()=>s(v,null,[i(),!O.value&&s(qv,{id:ce,open:V.value,keyPath:y.value},{default:n.default})])})]})}}});function Xv(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function Zv(e,t){e.classList?e.classList.add(t):Xv(e,t)||(e.className=`${e.className} ${t}`)}function Qv(e,t){e.classList?e.classList.remove(t):Xv(e,t)&&(e.className=` ${e.className} `.replace(` ${t} `,` `))}var $v=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`ant-motion-collapse`;return{name:e,appear:arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,css:!0,onBeforeEnter:t=>{t.style.height=`0px`,t.style.opacity=`0`,Zv(t,e)},onEnter:e=>{x(()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity=`1`})},onAfterEnter:t=>{t&&(Qv(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{Zv(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout(()=>{e.style.height=`0px`,e.style.opacity=`0`})},onAfterLeave:t=>{t&&(Qv(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},ey=d({compatConfig:{MODE:3},name:`AMenuItemGroup`,inheritAttrs:!1,props:{title:J.any,originItemValue:ut()},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=xv(),o=a(()=>`${i.value}-item-group`),c=Lv();return()=>c?n.default?.call(n):s(`li`,X(X({},r),{},{onClick:e=>e.stopPropagation(),class:o.value}),[s(`div`,{title:typeof e.title==`string`?e.title:void 0,class:`${o.value}-title`},[Se(n,e,`title`)]),s(`ul`,{class:`${o.value}-list`},[n.default?.call(n)])])}}),ty=d({compatConfig:{MODE:3},name:`AMenuDivider`,props:{prefixCls:String,dashed:Boolean},setup(e){let{prefixCls:t}=xv(),n=a(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>s(`li`,{class:n.value},null)}}),ny=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(e&&typeof e==`object`){let i=e,{label:a,children:o,key:c,type:l}=i,u=ny(i,[`label`,`children`,`key`,`type`]),d=c??`tmp-${r}`,f=n?n.parentKeys.slice():[],p=[],m={eventKey:d,key:d,parentEventKeys:W(f),parentKeys:W(f),childrenEventKeys:W(p),isLeaf:!1};if(o||l===`group`){if(l===`group`){let r=ry(o,t,n);return s(ey,X(X({key:d},u),{},{title:a,originItemValue:e}),{default:()=>[r]})}t.set(d,m),n&&n.childrenEventKeys.push(d);let r=ry(o,t,{childrenEventKeys:p,parentKeys:[].concat(f,d)});return s(Yv,X(X({key:d},u),{},{title:a,originItemValue:e}),{default:()=>[r]})}return l===`divider`?s(ty,X({key:d},u),null):(m.isLeaf=!0,t.set(d,m),s(Bv,X(X({key:d},u),{},{originItemValue:e}),{default:()=>[a]}))}return null}).filter(e=>e)}function iy(e){let t=M([]),n=M(!1),r=M(new Map);return H(()=>e.items,()=>{let i=new Map;n.value=!1,e.items?(n.value=!0,t.value=ry(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var ay=e=>{let{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},oy=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:`rtl`},[`${t}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},sy=e=>G({},xe(e)),cy=(e,t)=>{let{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:o,colorSubItemBg:s,colorItemBgSelected:c,colorActiveBarHeight:l,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:m,menuItemPaddingInline:h,motionDurationMid:g,colorItemTextHover:_,lineType:v,colorSplit:y,colorItemTextDisabled:b,colorDangerItemText:x,colorDangerItemTextHover:S,colorDangerItemTextSelected:C,colorDangerItemBgActive:w,colorDangerItemBgSelected:T,colorItemBgHover:E,menuSubMenuBg:D,colorItemTextSelectedHorizontal:O,colorItemBgSelectedHorizontal:k}=e;return{[`${n}-${t}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:G({},sy(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${b} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:_}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:c}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:G({},sy(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:o},[`&${n}-horizontal`]:G(G({},t===`dark`?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:`absolute`,insetInline:h,bottom:0,borderBottom:`${l}px solid transparent`,transition:`border-color ${f} ${p}`,content:`""`},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:l,borderBottomColor:O}},"&-selected":{color:O,backgroundColor:k,"&::after":{borderBottomWidth:l,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${v} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform ${g} ${m}`,`opacity ${g} ${m}`].join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(`,`)}}}}}},ly=e=>{let{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=e,c=i+a+o;return{[`${t}-item`]:{position:`relative`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:c}}},uy=e=>{let{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionDurationMid:s,motionEaseOut:c,paddingXL:l,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m}=e,h={height:r,lineHeight:`${r}px`,listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":G({[`&${t}-root`]:{boxShadow:`none`}},ly(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:G(G({},ly(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${o*2.5}px)`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${c}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:`center`}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:`clip`,[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:`inline-block`,opacity:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:G(G({},tn),{paddingInline:p})}}]},dy=e=>{let{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,motionEaseOut:o,iconCls:s,controlHeightSM:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(`,`),[`${t}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${o}`,`margin ${r} ${a}`,`color ${r}`].join(`,`),"+ span":{marginInlineStart:c-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(`,`)}},[`${t}-item-icon`]:G({},Ge()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},fy=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:`absolute`,width:a*.6,height:a*.15,backgroundColor:`currentcolor`,borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(-${o})`},"&::after":{transform:`rotate(-45deg) translateY(${o})`}}}}},py=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,lineHeight:s,paddingXS:c,padding:l,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:m,menuArrowSize:h,menuArrowOffset:g,lineType:_,menuPanelMaskInset:v}=e;return[{"":{[`${n}`]:G(G({},Ve()),{"&-hidden":{display:`none`}})},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:G(G(G(G(G(G(G({},Ne(e)),Ve()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${c}px ${l}px`,fontSize:r,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:u,borderStyle:_,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:`dashed`}}}),dy(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${l}px`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:f,background:`transparent`,borderRadius:p,boxShadow:`none`,transformOrigin:`0 0`,"&::before":{position:`absolute`,inset:`${v}px 0 0`,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`}},"&-placement-rightTop::before":{top:0,insetInlineStart:v},[`> ${n}`]:G(G(G({borderRadius:p},dy(e)),fy(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})}}),fy(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${g})`},"&::after":{transform:`rotate(45deg) translateX(-${g})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${g})`},"&::before":{transform:`rotate(45deg) translateX(${g})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},my=((e,t)=>Le(`Menu`,(e,n)=>{let{overrideComponentToken:r}=n;if(t?.value===!1)return[];let{colorBgElevated:i,colorPrimary:a,colorError:o,colorErrorHover:s,colorTextLightSolid:c}=e,{controlHeightLG:l,fontSize:u}=e,d=u/7*5,f=Fe(e,{menuItemHeight:l,menuItemPaddingInline:e.margin,menuArrowSize:d,menuHorizontalHeight:l*1.15,menuArrowOffset:`${d*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),p=new me(c).setAlpha(.65).toRgbString(),m=Fe(f,{colorItemText:p,colorItemTextHover:c,colorGroupTitle:p,colorItemTextSelected:c,colorItemBg:`#001529`,colorSubItemBg:`#000c17`,colorItemBgActive:`transparent`,colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new me(c).setAlpha(.25).toRgbString(),colorDangerItemText:o,colorDangerItemTextHover:s,colorDangerItemTextSelected:c,colorDangerItemBgActive:o,colorDangerItemBgSelected:o,menuSubMenuBg:`#001529`,colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},G({},r));return[py(f),ay(f),uy(f),cy(f,`light`),cy(m,`dark`),oy(f),Hh(f),Vh(f,`slide-up`),Vh(f,`slide-down`),Mn(f,`zoom-big`)]},e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:a,colorItemTextHover:a,colorItemTextHoverHorizontal:t,colorGroupTitle:o,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:p,colorItemBgActive:l,colorSubItemBg:c,colorItemBgSelected:f,colorItemBgSelectedHorizontal:`transparent`,colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:e.marginXXS}})(e)),hy=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:`light`},mode:{type:String,default:`vertical`},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:`hover`},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),gy=[],_y=d({compatConfig:{MODE:3},name:`AMenu`,inheritAttrs:!1,props:hy(),slots:Object,setup(e,t){let{slots:n,emit:i,attrs:o}=t,{direction:c,getPrefixCls:l}=K(`menu`,e),u=fv(),d=a(()=>l(`menu`,e.prefixCls||u?.prefixCls?.value)),[f,p]=my(d,a(()=>!u)),m=M(new Map),h=C(kv,W(void 0)),g=a(()=>h.value===void 0?e.inlineCollapsed:h.value),{itemsNodes:_}=iy(e),y=M(!1);D(()=>{y.value=!0}),P(()=>{ir(e.inlineCollapsed!==!0||e.mode===`inline`,`Menu`,"`inlineCollapsed` should only be used when `mode` is inline."),ir(h.value===void 0||e.inlineCollapsed!==!0,`Menu`,"`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});let x=W([]),S=W([]),w=W({});H(m,()=>{let e={};for(let t of m.value.values())e[t.key]=t;w.value=e},{flush:`post`}),P(()=>{if(e.activeKey!==void 0){let t=[],n=e.activeKey?w.value[e.activeKey]:void 0;t=n&&e.activeKey!==void 0?Ch([].concat(b(n.parentKeys),e.activeKey)):[],vv(x.value,t)||(x.value=t)}}),H(()=>e.selectedKeys,e=>{e&&(S.value=e.slice())},{immediate:!0,deep:!0});let T=W([]);H([w,S],()=>{let e=[];S.value.forEach(t=>{let n=w.value[t];n&&(e=e.concat(b(n.parentKeys)))}),e=Ch(e),vv(T.value,e)||(T.value=e)},{immediate:!0});let E=t=>{if(e.selectable){let{key:n}=t,r=S.value.includes(n),a;a=e.multiple?r?S.value.filter(e=>e!==n):[...S.value,n]:[n];let o=G(G({},t),{selectedKeys:a});vv(a,S.value)||(e.selectedKeys===void 0&&(S.value=a),i(`update:selectedKeys`,a),r&&e.multiple?i(`deselect`,o):i(`select`,o))}F.value!==`inline`&&!e.multiple&&O.value.length&&ee(gy)},O=W([]);H(()=>e.openKeys,function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O.value;vv(O.value,e)||(O.value=e.slice())},{immediate:!0,deep:!0});let k,A=t=>{clearTimeout(k),k=setTimeout(()=>{e.activeKey===void 0&&(x.value=t),i(`update:activeKey`,t[t.length-1])})},j=a(()=>!!e.disabled),N=a(()=>c.value===`rtl`),F=W(`vertical`),I=M(!1);P(()=>{(e.mode===`inline`||e.mode===`vertical`)&&g.value?(F.value=`vertical`,I.value=g.value):(F.value=e.mode,I.value=!1),u?.mode?.value&&(F.value=u.mode.value)});let L=a(()=>F.value===`inline`),ee=e=>{O.value=e,i(`update:openKeys`,e),i(`openChange`,e)},R=W(O.value),z=M(!1);H(O,()=>{L.value&&(R.value=O.value)},{immediate:!0}),H(L,()=>{if(!z.value){z.value=!0;return}L.value?O.value=R.value:ee(gy)},{immediate:!0});let B=a(()=>({[`${d.value}`]:!0,[`${d.value}-root`]:!0,[`${d.value}-${F.value}`]:!0,[`${d.value}-inline-collapsed`]:I.value,[`${d.value}-rtl`]:N.value,[`${d.value}-${e.theme}`]:!0})),te=a(()=>l()),V=a(()=>({horizontal:{name:`${te.value}-slide-up`},inline:$v(`${te.value}-motion-collapse`),other:{name:`${te.value}-zoom-big`}}));Ev(!0);let ne=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=m.value;return e.forEach(e=>{let{key:r,childrenEventKeys:i}=n.get(e);t.push(r,...ne(b(i)))}),t},re=e=>{var t;i(`click`,e),E(e),(t=u?.onClick)==null||t.call(u)},U=(e,t)=>{let n=w.value[e]?.childrenEventKeys||[],r=O.value.filter(t=>t!==e);if(t)r.push(e);else if(F.value!==`inline`){let e=ne(b(n));r=Ch(r.filter(t=>!e.includes(t)))}vv(O,r)||ee(r)},ie=(e,t)=>{m.value.set(e,t),m.value=new Map(m.value)},ae=e=>{m.value.delete(e),m.value=new Map(m.value)},oe=W(0),se=a(()=>e.expandIcon||n.expandIcon||u?.expandIcon?.value?t=>{let r=e.expandIcon||n.expandIcon;return r=typeof r==`function`?r(t):r,on(r,{class:`${d.value}-submenu-expand-icon`},!1)}:null);bv({prefixCls:d,activeKeys:x,openKeys:O,selectedKeys:S,changeActiveKeys:A,disabled:j,rtl:N,mode:F,inlineIndent:a(()=>e.inlineIndent),subMenuCloseDelay:a(()=>e.subMenuCloseDelay),subMenuOpenDelay:a(()=>e.subMenuOpenDelay),builtinPlacements:a(()=>e.builtinPlacements),triggerSubMenuAction:a(()=>e.triggerSubMenuAction),getPopupContainer:a(()=>e.getPopupContainer),inlineCollapsed:I,theme:a(()=>e.theme),siderCollapsed:h,defaultMotions:a(()=>y.value?V.value:null),motion:a(()=>y.value?e.motion:null),overflowDisabled:M(void 0),onOpenChange:U,onItemClick:re,registerMenuInfo:ie,unRegisterMenuInfo:ae,selectedSubMenuKeys:T,expandIcon:se,forceSubMenuRender:a(()=>e.forceSubMenuRender),rootClassName:p});let ce=()=>_.value||pe(n.default?.call(n));return()=>{let t=ce(),i=oe.value>=t.length-1||F.value!==`horizontal`||e.disabledOverflow,a=t=>F.value!==`horizontal`||e.disabledOverflow?t:t.map((e,t)=>s(Ov,{key:e.key,overflowDisabled:t>oe.value},{default:()=>e})),c=n.overflowedIndicator?.call(n)||s($_,null,null);return f(s(kl,X(X({},o),{},{onMousedown:e.onMousedown,prefixCls:`${d.value}-overflow`,component:`ul`,itemComponent:Bv,class:[B.value,o.class,p.value],role:`menu`,id:e.id,data:a(t),renderRawItem:e=>e,renderRawRest:e=>{let n=e.length,r=n?t.slice(-n):null;return s(v,null,[s(Yv,{eventKey:jv,key:jv,title:c,disabled:i,internalPopupClose:n===0},{default:()=>r}),s(Iv,null,{default:()=>[s(Yv,{eventKey:jv,key:jv,title:c,disabled:i,internalPopupClose:n===0},{default:()=>r})]})])},maxCount:F.value!==`horizontal`||e.disabledOverflow?kl.INVALIDATE:kl.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{oe.value=e}}),{default:()=>[s(r,{to:`body`},{default:()=>[s(`div`,{style:{display:`none`},"aria-hidden":!0},[s(Iv,null,{default:()=>[a(ce())]})])]})]}))}}});_y.install=function(e){return e.component(_y.name,_y),e.component(Bv.name,Bv),e.component(Yv.name,Yv),e.component(ty.name,ty),e.component(ey.name,ey),e},_y.Item=Bv,_y.Divider=ty,_y.SubMenu=Yv,_y.ItemGroup=ey;var vy=_y,yy=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:G(G({},Ne(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:`flex`,flexWrap:`wrap`,margin:0,padding:0,listStyle:`none`},a:G({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:`inline-block`,marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},De(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:`none`}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` + > ${n} + span, + > ${n} + a + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:`inline-block`,padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:`transparent`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}})}},by=Le(`Breadcrumb`,e=>[yy(Fe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription}))]),xy=()=>({prefixCls:String,routes:{type:Array},params:J.any,separator:J.any,itemRender:{type:Function}});function Sy(e,t){if(!e.breadcrumbName)return null;let n=Object.keys(t).join(`|`);return e.breadcrumbName.replace(RegExp(`:(${n})`,`g`),(e,n)=>t[n]||e)}function Cy(e){let{route:t,params:n,routes:r,paths:i}=e,a=r.indexOf(t)===r.length-1,o=Sy(t,n);return a?s(`span`,null,[o]):s(`a`,{href:`#/${i.join(`/`)}`},[o])}var wy=d({compatConfig:{MODE:3},name:`ABreadcrumb`,inheritAttrs:!1,props:xy(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=K(`breadcrumb`,e),[c,l]=by(i),u=(e,t)=>(e=(e||``).replace(/^\//,``),Object.keys(t).forEach(n=>{e=e.replace(`:${n}`,t[n])}),e),d=(e,t,n)=>{let r=[...e],i=u(t||``,n);return i&&r.push(i),r},f=e=>{let{routes:t=[],params:n={},separator:r,itemRender:i=Cy}=e,a=[];return t.map(e=>{let o=u(e.path,n);o&&a.push(o);let c=[...a],l=null;e.children&&e.children.length&&(l=s(vy,{items:e.children.map(e=>({key:e.path||e.breadcrumbName,label:i({route:e,params:n,routes:t,paths:d(c,e.path,n)})}))},null));let f={separator:r};return l&&(f.overlay=l),s(gv,X(X({},f),{},{key:o||e.breadcrumbName}),{default:()=>[i({route:e,params:n,routes:t,paths:c})]})})};return()=>{let t,{routes:u,params:d={}}=e,p=pe(Se(n,e)),m=Se(n,e,`separator`)??`/`,h=e.itemRender||n.itemRender||Cy;u&&u.length>0?t=f({routes:u,params:d,separator:m,itemRender:h}):p.length&&(t=p.map((e,t)=>(nt(typeof e.type==`object`&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR),`Breadcrumb`,`Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children`),o(e,{separator:m,key:t}))));let g={[i.value]:!0,[`${i.value}-rtl`]:a.value===`rtl`,[`${r.class}`]:!!r.class,[l.value]:!0};return c(s(`nav`,X(X({},r),{},{class:g}),[s(`ol`,null,[t])]))}}}),Ty=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{separator:e,class:t}=r,a=Ty(r,[`separator`,`class`]),o=pe(n.default?.call(n));return s(`span`,X({class:[`${i.value}-separator`,t]},a),[o.length>0?o:`/`])}}});wy.Item=gv,wy.Separator=Ey,wy.install=function(e){return e.component(wy.name,wy),e.component(gv.name,gv),e.component(Ey.name,Ey),e};var Dy=wy,Oy=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e){(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),jy=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),My=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),Ny=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_quarterOfYear=r()})(e,(function(){var e=`month`,t=`quarter`;return function(n,r){var i=r.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=i.add;i.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):a.bind(this)(n,r)};var o=i.startOf;i.startOf=function(n,r){var i=this.$utils(),a=!!i.u(r)||r;if(i.p(n)===t){var s=this.quarter()-1;return a?this.month(3*s).startOf(e).startOf(`day`):this.month(3*s+2).endOf(e).endOf(`day`)}return o.bind(this)(n,r)}}}))})),Py=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Fy=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Iy=T(Oy()),Ly=T(ky()),Ry=T(Ay()),zy=T(jy()),By=T(My()),Vy=T(Ny()),Hy=T(Py()),Uy=T(Fy());Iy.default.extend(Uy.default),Iy.default.extend(Hy.default),Iy.default.extend(Ly.default),Iy.default.extend(Ry.default),Iy.default.extend(zy.default),Iy.default.extend(By.default),Iy.default.extend(Vy.default),Iy.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var Wy={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Gy=e=>Wy[e]||e.split(`_`)[0],Ky=()=>{er(!1,`Not match any format. Please help to fire a issue about this.`)},qy=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function Jy(e,t,n){let r=[...new Set(e.split(n))],i=0;for(let e=0;et)return a;i+=n.length}}var Yy=(e,t)=>{if(!e)return null;if(Iy.default.isDayjs(e))return e;let n=t.matchAll(qy),r=(0,Iy.default)(e,t);if(n===null)return r;for(let t of n){let n=t[0],i=t.index;if(n===`Q`){let t=Jy(e,i,e.slice(i-1,i)).match(/\d+/)[0];r=r.quarter(parseInt(t))}if(n.toLowerCase()===`wo`){let t=Jy(e,i,e.slice(i-1,i)).match(/\d+/)[0];r=r.week(parseInt(t))}n.toLowerCase()===`ww`&&(r=r.week(parseInt(e.slice(i,i+n.length)))),n.toLowerCase()===`w`&&(r=r.week(parseInt(e.slice(i,i+n.length+1))))}return r},Xy={getNow:()=>(0,Iy.default)(),getFixedDate:e=>(0,Iy.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>e.endOf(`month`),getWeekDay:e=>{let t=e.locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,`year`),addMonth:(e,t)=>e.add(t,`month`),addDate:(e,t)=>e.add(t,`day`),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>(0,Iy.default)().locale(Gy(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Gy(e)).weekday(0),getWeek:(e,t)=>t.locale(Gy(e)).week(),getShortWeekDays:e=>(0,Iy.default)().locale(Gy(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Iy.default)().locale(Gy(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Gy(e)).format(n),parse:(e,t,n)=>{let r=Gy(e);for(let e=0;eArray.isArray(e)?e.map(e=>Yy(e,t)):Yy(e,t),toString:(e,t)=>Array.isArray(e)?e.map(e=>Iy.default.isDayjs(e)?e.format(t):e):Iy.default.isDayjs(e)?e.format(t):e};function Zy(e){let t=j();return G(G({},e),t)}var Qy=Symbol(`PanelContextProps`),$y=t=>{e(Qy,t)},eb=()=>C(Qy,{}),tb={visibility:`hidden`};function nb(e,t){let{slots:n}=t,{prefixCls:r,prevIcon:i=`‹`,nextIcon:a=`›`,superPrevIcon:o=`«`,superNextIcon:c=`»`,onSuperPrev:l,onSuperNext:u,onPrev:d,onNext:f}=Zy(e),{hideNextBtn:p,hidePrevBtn:m}=eb();return s(`div`,{class:r},[l&&s(`button`,{type:`button`,onClick:l,tabindex:-1,class:`${r}-super-prev-btn`,style:m.value?tb:{}},[o]),d&&s(`button`,{type:`button`,onClick:d,tabindex:-1,class:`${r}-prev-btn`,style:m.value?tb:{}},[i]),s(`div`,{class:`${r}-view`},[n.default?.call(n)]),f&&s(`button`,{type:`button`,onClick:f,tabindex:-1,class:`${r}-next-btn`,style:p.value?tb:{}},[a]),u&&s(`button`,{type:`button`,onClick:u,tabindex:-1,class:`${r}-super-next-btn`,style:p.value?tb:{}},[c])])}nb.displayName=`Header`,nb.inheritAttrs=!1;function rb(e){let t=Zy(e),{prefixCls:n,generateConfig:r,viewDate:i,onPrevDecades:a,onNextDecades:o}=t,{hideHeader:c}=eb();if(c)return null;let l=`${n}-header`,u=r.getYear(i),d=Math.floor(u/100)*100,f=d+100-1;return s(nb,X(X({},t),{},{prefixCls:l,onSuperPrev:a,onSuperNext:o}),{default:()=>[d,g(`-`),f]})}rb.displayName=`DecadeHeader`,rb.inheritAttrs=!1;function ib(e,t,n,r,i){let a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,i),a}function ab(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function ob(e,t,n,r,i,a){let o=Math.floor(e/r)*r;if(o{e.stopPropagation(),S||r(_)},onMouseenter:()=>{!S&&v&&v(_)},onMouseleave:()=>{!S&&y&&y(_)}},[p?p(_):s(`div`,{class:`${x}-inner`},[f(_)])]))}S.push(s(`tr`,{key:e,class:l&&l(a)},[t]))}return s(`div`,{class:`${t}-body`},[s(`table`,{class:`${t}-content`},[_&&s(`thead`,null,[s(`tr`,null,[_])]),s(`tbody`,null,[S])])])}cb.displayName=`PanelBody`,cb.inheritAttrs=!1;var lb=4;function ub(e){let t=Zy(e),{prefixCls:n,viewDate:r,generateConfig:i}=t,a=`${n}-cell`,o=i.getYear(r),c=Math.floor(o/10)*10,l=Math.floor(o/100)*100,u=l+100-1,d=i.setYear(r,l-10);return s(cb,X(X({},t),{},{rowNum:lb,colNum:3,baseDate:d,getCellText:e=>{let t=i.getYear(e);return`${t}-${t+9}`},getCellClassName:e=>{let t=i.getYear(e),n=t+9;return{[`${a}-in-view`]:l<=t&&n<=u,[`${a}-selected`]:t===c}},getCellDate:(e,t)=>i.addYear(e,t*10)}),null)}ub.displayName=`DecadeBody`,ub.inheritAttrs=!1;var db=new Map;function fb(e,t){let n;function r(){Sn(e)?t():n=Rn(()=>{r()})}return r(),()=>{Rn.cancel(n)}}function pb(e,t,n){if(db.get(e)&&Rn.cancel(db.get(e)),n<=0){db.set(e,Rn(()=>{e.scrollTop=t}));return}let r=(t-e.scrollTop)/n*10;db.set(e,Rn(()=>{e.scrollTop+=r,e.scrollTop!==t&&pb(e,t,n-10)}))}function mb(e,t){let{onLeftRight:n,onCtrlLeftRight:r,onUpDown:i,onPageUpDown:a,onEnter:o}=t,{which:s,ctrlKey:c,metaKey:l}=e;switch(s){case $.LEFT:if(c||l){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case $.RIGHT:if(c||l){if(r)return r(1),!0}else if(n)return n(1),!0;break;case $.UP:if(i)return i(-1),!0;break;case $.DOWN:if(i)return i(1),!0;break;case $.PAGE_UP:if(a)return a(-1),!0;break;case $.PAGE_DOWN:if(a)return a(1),!0;break;case $.ENTER:if(o)return o(),!0}return!1}function hb(e,t,n,r){let i=e;if(!i)switch(t){case`time`:i=r?`hh:mm:ss a`:`HH:mm:ss`;break;case`week`:i=`gggg-wo`;break;case`month`:i=`YYYY-MM`;break;case`quarter`:i=`YYYY-[Q]Q`;break;case`year`:i=`YYYY`;break;default:i=n?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`}return i}function gb(e,t,n){let r=e===`time`?8:10,i=typeof t==`function`?t(n.getNow()).length:t.length;return Math.max(r,i)+2}var _b=null,vb=new Set;function yb(e){return!_b&&typeof window<`u`&&window.addEventListener&&(_b=e=>{[...vb].forEach(t=>{t(e)})},window.addEventListener(`mousedown`,_b)),vb.add(e),()=>{vb.delete(e),vb.size===0&&(window.removeEventListener(`mousedown`,_b),_b=null)}}function bb(e){let t=e.target;return e.composed&&t.shadowRoot&&e.composedPath?.call(e)[0]||t}var xb={year:e=>e===`month`||e===`date`?`year`:e,month:e=>e===`date`?`month`:e,quarter:e=>e===`month`||e===`date`?`quarter`:e,week:e=>e===`date`?`week`:e,time:null,date:null};function Sb(e,t){return e.some(e=>e&&e.contains(t))}function Cb(e){let t=Zy(e),{prefixCls:n,onViewDateChange:r,generateConfig:i,viewDate:a,operationRef:o,onSelect:c,onPanelChange:l}=t,u=`${n}-decade-panel`;o.value={onKeydown:e=>mb(e,{onLeftRight:e=>{c(i.addYear(a,e*10),`key`)},onCtrlLeftRight:e=>{c(i.addYear(a,e*100),`key`)},onUpDown:e=>{c(i.addYear(a,e*10*3),`key`)},onEnter:()=>{l(`year`,a)}})};let d=e=>{let t=i.addYear(a,e*100);r(t),l(null,t)};return s(`div`,{class:u},[s(rb,X(X({},t),{},{prefixCls:n,onPrevDecades:()=>{d(-1)},onNextDecades:()=>{d(1)}}),null),s(ub,X(X({},t),{},{prefixCls:n,onSelect:e=>{c(e,`mouse`),l(`year`,e)}}),null)])}Cb.displayName=`DecadePanel`,Cb.inheritAttrs=!1;function wb(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function Tb(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}function Eb(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:e.getYear(t)===e.getYear(n)}function Db(e,t){return Math.floor(e.getMonth(t)/3)+1}function Ob(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:Eb(e,t,n)&&Db(e,t)===Db(e,n)}function kb(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:Eb(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ab(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function jb(e,t,n){let r=wb(t,n);return typeof r==`boolean`?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function Mb(e,t,n,r){let i=wb(n,r);return typeof i==`boolean`?i:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function Nb(e,t,n){return Ab(e,t,n)&&jb(e,t,n)}function Pb(e,t,n,r){return!t||!n||!r?!1:!Ab(e,t,r)&&!Ab(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function Fb(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Ib(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case`year`:return n.addYear(e,r*10);case`quarter`:case`month`:return n.addYear(e,r);default:return n.addMonth(e,r)}}function Lb(e,t){let{generateConfig:n,locale:r,format:i}=t;return typeof i==`function`?i(e):n.locale.format(r.locale,e,i)}function Rb(e,t){let{generateConfig:n,locale:r,formatList:i}=t;return!e||typeof i[0]==`function`?null:n.locale.parse(r.locale,e,i)}function zb(e){let{cellDate:t,mode:n,disabledDate:r,generateConfig:i}=e;if(!r)return!1;let a=(e,n,a)=>{let o=n;for(;o<=a;){let n;switch(e){case`date`:if(n=i.setDate(t,o),!r(n))return!1;break;case`month`:if(n=i.setMonth(t,o),!zb({cellDate:n,mode:`month`,generateConfig:i,disabledDate:r}))return!1;break;case`year`:if(n=i.setYear(t,o),!zb({cellDate:n,mode:`year`,generateConfig:i,disabledDate:r}))return!1}o+=1}return!0};switch(n){case`date`:case`week`:return r(t);case`month`:return a(`date`,1,i.getDate(i.getEndDate(t)));case`quarter`:{let e=Math.floor(i.getMonth(t)/3)*3;return a(`month`,e,e+2)}case`year`:return a(`month`,0,11);case`decade`:{let e=i.getYear(t),n=Math.floor(e/10)*10;return a(`year`,n,n+10-1)}}}function Bb(e){let t=Zy(e),{hideHeader:n}=eb();if(n.value)return null;let{prefixCls:r,generateConfig:i,locale:a,value:o,format:c}=t,l=`${r}-header`;return s(nb,{prefixCls:l},{default:()=>[o?Lb(o,{locale:a,format:c,generateConfig:i}):`\xA0`]})}Bb.displayName=`TimeHeader`,Bb.inheritAttrs=!1;var Vb=d({name:`TimeUnitColumn`,props:[`prefixCls`,`units`,`onSelect`,`value`,`active`,`hideDisabledOptions`],setup(e){let{open:t}=eb(),n=M(null),r=W(new Map),i=W();return H(()=>e.value,()=>{let i=r.value.get(e.value);i&&t.value!==!1&&pb(n.value,i.offsetTop,120)}),p(()=>{var e;(e=i.value)==null||e.call(i)}),H(t,()=>{var a;(a=i.value)==null||a.call(i),x(()=>{if(t.value){let t=r.value.get(e.value);t&&(i.value=fb(t,()=>{pb(n.value,t.offsetTop,0)}))}})},{immediate:!0,flush:`post`}),()=>{let{prefixCls:t,units:i,onSelect:a,value:o,active:c,hideDisabledOptions:l}=e,u=`${t}-cell`;return s(`ul`,{class:Z(`${t}-column`,{[`${t}-column-active`]:c}),ref:n,style:{position:`relative`}},[i.map(e=>l&&e.disabled?null:s(`li`,{key:e.value,ref:t=>{r.value.set(e.value,t)},class:Z(u,{[`${u}-disabled`]:e.disabled,[`${u}-selected`]:o===e.value}),onClick:()=>{e.disabled||a(e.value)}},[s(`div`,{class:`${u}-inner`},[e.label])]))])}}});function Hb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`0`,r=String(e);for(;r.length{(n.startsWith(`data-`)||n.startsWith(`aria-`)||n===`role`||n===`name`)&&!n.startsWith(`data-__`)&&(t[n]=e[n])}),t}function Kb(e,t){return e?e[t]:null}function qb(e,t,n){let r=[Kb(e,0),Kb(e,1)];return r[n]=typeof t==`function`?t(r[n]):t,!r[0]&&!r[1]?null:r}function Jb(e,t,n,r){let i=[];for(let a=e;a<=t;a+=n)i.push({label:Hb(a,2),value:a,disabled:(r||[]).includes(a)});return i}var Yb=d({compatConfig:{MODE:3},name:`TimeBody`,inheritAttrs:!1,props:[`generateConfig`,`prefixCls`,`operationRef`,`activeColumnIndex`,`value`,`showHour`,`showMinute`,`showSecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledTime`,`hideDisabledOptions`,`onSelect`],setup(e){let t=a(()=>e.value?e.generateConfig.getHour(e.value):-1),n=a(()=>e.use12Hours?t.value>=12:!1),r=a(()=>e.use12Hours?t.value%12:t.value),i=a(()=>e.value?e.generateConfig.getMinute(e.value):-1),o=a(()=>e.value?e.generateConfig.getSecond(e.value):-1),c=W(e.generateConfig.getNow()),l=W(),u=W(),d=W();V(()=>{c.value=e.generateConfig.getNow()}),P(()=>{if(e.disabledTime){let t=e.disabledTime(c);[l.value,u.value,d.value]=[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}else[l.value,u.value,d.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});let f=(t,n,r,i)=>{let a=e.value||e.generateConfig.getNow(),o=Math.max(0,n),s=Math.max(0,r),c=Math.max(0,i);return a=ib(e.generateConfig,a,!e.use12Hours||!t?o:o+12,s,c),a},p=a(()=>Jb(0,23,e.hourStep??1,l.value&&l.value())),m=a(()=>{if(!e.use12Hours)return[!1,!1];let t=[!0,!0];return p.value.forEach(e=>{let{disabled:n,value:r}=e;n||(r>=12?t[1]=!1:t[0]=!1)}),t}),h=a(()=>e.use12Hours?p.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map(e=>{let t=e.value%12,n=t===0?`12`:Hb(t,2);return G(G({},e),{label:n,value:t})}):p.value),g=a(()=>Jb(0,59,e.minuteStep??1,u.value&&u.value(t.value))),_=a(()=>Jb(0,59,e.secondStep??1,d.value&&d.value(t.value,i.value)));return()=>{let{prefixCls:t,operationRef:a,activeColumnIndex:c,showHour:l,showMinute:u,showSecond:d,use12Hours:p,hideDisabledOptions:v,onSelect:y}=e,b=[],x=`${t}-content`,S=`${t}-time-panel`;a.value={onUpDown:e=>{let t=b[c];if(t){let n=t.units.findIndex(e=>e.value===t.value),r=t.units.length;for(let i=1;i{y(f(n.value,e,i.value,o.value),`mouse`)}),C(u,s(Vb,{key:`minute`},null),i.value,g.value,e=>{y(f(n.value,r.value,e,o.value),`mouse`)}),C(d,s(Vb,{key:`second`},null),o.value,_.value,e=>{y(f(n.value,r.value,i.value,e),`mouse`)});let w=-1;return typeof n.value==`boolean`&&(w=+!!n.value),C(p===!0,s(Vb,{key:`12hours`},null),w,[{label:`AM`,value:0,disabled:m.value[0]},{label:`PM`,value:1,disabled:m.value[1]}],e=>{y(f(!!e,r.value,i.value,o.value),`mouse`)}),s(`div`,{class:x},[b.map(e=>{let{node:t}=e;return t})])}}}),Xb=e=>e.filter(e=>e!==!1).length;function Zb(e){let t=Zy(e),{generateConfig:n,format:r=`HH:mm:ss`,prefixCls:i,active:a,operationRef:o,showHour:c,showMinute:l,showSecond:u,use12Hours:d=!1,onSelect:f,value:p}=t,m=`${i}-time-panel`,h=W(),g=W(-1),_=Xb([c,l,u,d]);return o.value={onKeydown:e=>mb(e,{onLeftRight:e=>{g.value=(g.value+e+_)%_},onUpDown:e=>{g.value===-1?g.value=0:h.value&&h.value.onUpDown(e)},onEnter:()=>{f(p||n.getNow(),`key`),g.value=-1}}),onBlur:()=>{g.value=-1}},s(`div`,{class:Z(m,{[`${m}-active`]:a})},[s(Bb,X(X({},t),{},{format:r,prefixCls:i}),null),s(Yb,X(X({},t),{},{prefixCls:i,activeColumnIndex:g.value,operationRef:h}),null)])}Zb.displayName=`TimePanel`,Zb.inheritAttrs=!1;function Qb(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:r,hoverRangedValue:i,isInView:a,isSameCell:o,offsetCell:s,today:c,value:l}=e;function u(e){let u=s(e,-1),d=s(e,1),f=Kb(r,0),p=Kb(r,1),m=Kb(i,0),h=Kb(i,1),g=Pb(n,m,h,e);function _(e){return o(f,e)}function v(e){return o(p,e)}let y=o(m,e),b=o(h,e),x=(g||b)&&(!a(u)||v(u)),S=(g||y)&&(!a(d)||_(d));return{[`${t}-in-view`]:a(e),[`${t}-in-range`]:Pb(n,f,p,e),[`${t}-range-start`]:_(e),[`${t}-range-end`]:v(e),[`${t}-range-start-single`]:_(e)&&!p,[`${t}-range-end-single`]:v(e)&&!f,[`${t}-range-start-near-hover`]:_(e)&&(o(u,m)||Pb(n,m,h,u)),[`${t}-range-end-near-hover`]:v(e)&&(o(d,h)||Pb(n,m,h,d)),[`${t}-range-hover`]:g,[`${t}-range-hover-start`]:y,[`${t}-range-hover-end`]:b,[`${t}-range-hover-edge-start`]:x,[`${t}-range-hover-edge-end`]:S,[`${t}-range-hover-edge-start-near-range`]:x&&o(u,p),[`${t}-range-hover-edge-end-near-range`]:S&&o(d,f),[`${t}-today`]:o(c,e),[`${t}-selected`]:o(l,e)}}return u}var $b=Symbol(`RangeContextProps`),ex=t=>{e($b,t)},tx=()=>C($b,{rangedValue:W(),hoverRangedValue:W(),inRange:W(),panelPosition:W()}),nx=d({compatConfig:{MODE:3},name:`PanelContextProvider`,inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t,r={rangedValue:W(e.value.rangedValue),hoverRangedValue:W(e.value.hoverRangedValue),inRange:W(e.value.inRange),panelPosition:W(e.value.panelPosition)};return ex(r),H(()=>e.value,()=>{Object.keys(e.value).forEach(t=>{r[t]&&(r[t].value=e.value[t])})}),()=>n.default?.call(n)}});function rx(e){let t=Zy(e),{prefixCls:n,generateConfig:r,prefixColumn:i,locale:a,rowCount:o,viewDate:c,value:l,dateRender:u}=t,{rangedValue:d,hoverRangedValue:f}=tx(),p=Fb(a.locale,r,c),m=`${n}-cell`,h=r.locale.getWeekFirstDay(a.locale),g=r.getNow(),_=[],v=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);i&&_.push(s(`th`,{key:`empty`,"aria-label":`empty cell`},null));for(let e=0;e<7;e+=1)_.push(s(`th`,{key:e},[v[(e+h)%7]]));let y=Qb({cellPrefixCls:m,today:g,value:l,generateConfig:r,rangedValue:i?null:d.value,hoverRangedValue:i?null:f.value,isSameCell:(e,t)=>Ab(r,e,t),isInView:e=>kb(r,e,c),offsetCell:(e,t)=>r.addDate(e,t)}),b=u?e=>u({current:e,today:g}):void 0;return s(cb,X(X({},t),{},{rowNum:o,colNum:7,baseDate:p,getCellNode:b,getCellText:r.getDate,getCellClassName:y,getCellDate:r.addDate,titleCell:e=>Lb(e,{locale:a,format:`YYYY-MM-DD`,generateConfig:r}),headerCells:_}),null)}rx.displayName=`DateBody`,rx.inheritAttrs=!1,rx.props=[`prefixCls`,`generateConfig`,`value?`,`viewDate`,`locale`,`rowCount`,`onSelect`,`dateRender?`,`disabledDate?`,`prefixColumn?`,`rowClassName?`];function ix(e){let t=Zy(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:a,onNextMonth:o,onPrevMonth:c,onNextYear:l,onPrevYear:u,onYearClick:d,onMonthClick:f}=t,{hideHeader:p}=eb();if(p.value)return null;let m=`${n}-header`,h=i.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(i.locale):[]),g=r.getMonth(a),_=s(`button`,{type:`button`,key:`year`,onClick:d,tabindex:-1,class:`${n}-year-btn`},[Lb(a,{locale:i,format:i.yearFormat,generateConfig:r})]),v=s(`button`,{type:`button`,key:`month`,onClick:f,tabindex:-1,class:`${n}-month-btn`},[i.monthFormat?Lb(a,{locale:i,format:i.monthFormat,generateConfig:r}):h[g]]),y=i.monthBeforeYear?[v,_]:[_,v];return s(nb,X(X({},t),{},{prefixCls:m,onSuperPrev:u,onPrev:c,onNext:o,onSuperNext:l}),{default:()=>[y]})}ix.displayName=`DateHeader`,ix.inheritAttrs=!1;var ax=6;function ox(e){let t=Zy(e),{prefixCls:n,panelName:r=`date`,keyboardConfig:i,active:a,operationRef:o,generateConfig:c,value:l,viewDate:u,onViewDateChange:d,onPanelChange:f,onSelect:p}=t,m=`${n}-${r}-panel`;o.value={onKeydown:e=>mb(e,G({onLeftRight:e=>{p(c.addDate(l||u,e),`key`)},onCtrlLeftRight:e=>{p(c.addYear(l||u,e),`key`)},onUpDown:e=>{p(c.addDate(l||u,e*7),`key`)},onPageUpDown:e=>{p(c.addMonth(l||u,e),`key`)}},i))};let h=e=>{let t=c.addYear(u,e);d(t),f(null,t)},g=e=>{let t=c.addMonth(u,e);d(t),f(null,t)};return s(`div`,{class:Z(m,{[`${m}-active`]:a})},[s(ix,X(X({},t),{},{prefixCls:n,value:l,viewDate:u,onPrevYear:()=>{h(-1)},onNextYear:()=>{h(1)},onPrevMonth:()=>{g(-1)},onNextMonth:()=>{g(1)},onMonthClick:()=>{f(`month`,u)},onYearClick:()=>{f(`year`,u)}}),null),s(rx,X(X({},t),{},{onSelect:e=>p(e,`mouse`),prefixCls:n,value:l,viewDate:u,rowCount:ax}),null)])}ox.displayName=`DatePanel`,ox.inheritAttrs=!1;var sx=Ub(`date`,`time`);function cx(e){let t=Zy(e),{prefixCls:n,operationRef:r,generateConfig:i,value:a,defaultValue:o,disabledTime:c,showTime:l,onSelect:u}=t,d=`${n}-datetime-panel`,f=W(null),p=W({}),m=W({}),h=typeof l==`object`?G({},l):{};function g(e){return sx[sx.indexOf(f.value)+e]||null}let _=e=>{m.value.onBlur&&m.value.onBlur(e),f.value=null};r.value={onKeydown:e=>{if(e.which===$.TAB){let t=g(e.shiftKey?-1:1);return f.value=t,t&&e.preventDefault(),!0}if(f.value){let t=f.value===`date`?p:m;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return[$.LEFT,$.RIGHT,$.UP,$.DOWN].includes(e.which)?(f.value=`date`,!0):!1},onBlur:_,onClose:_};let v=(e,t)=>{let n=e;t===`date`&&!a&&h.defaultValue?(n=i.setHour(n,i.getHour(h.defaultValue)),n=i.setMinute(n,i.getMinute(h.defaultValue)),n=i.setSecond(n,i.getSecond(h.defaultValue))):t===`time`&&!a&&o&&(n=i.setYear(n,i.getYear(o)),n=i.setMonth(n,i.getMonth(o)),n=i.setDate(n,i.getDate(o))),u&&u(n,`mouse`)},y=c?c(a||null):{};return s(`div`,{class:Z(d,{[`${d}-active`]:f.value})},[s(ox,X(X({},t),{},{operationRef:p,active:f.value===`date`,onSelect:e=>{v(ab(i,e,!a&&typeof l==`object`?l.defaultValue:null),`date`)}}),null),s(Zb,X(X(X(X({},t),{},{format:void 0},h),y),{},{disabledTime:null,defaultValue:void 0,operationRef:m,active:f.value===`time`,onSelect:e=>{v(e,`time`)}}),null)])}cx.displayName=`DatetimePanel`,cx.inheritAttrs=!1;function lx(e){let t=Zy(e),{prefixCls:n,generateConfig:r,locale:i,value:a}=t,o=`${n}-cell`,c=e=>s(`td`,{key:`week`,class:Z(o,`${o}-week`)},[r.locale.getWeek(i.locale,e)]),l=`${n}-week-panel-row`;return s(ox,X(X({},t),{},{panelName:`week`,prefixColumn:c,rowClassName:e=>Z(l,{[`${l}-selected`]:Mb(r,i.locale,a,e)}),keyboardConfig:{onLeftRight:null}}),null)}lx.displayName=`WeekPanel`,lx.inheritAttrs=!1;function ux(e){let t=Zy(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:a,onNextYear:o,onPrevYear:c,onYearClick:l}=t,{hideHeader:u}=eb();if(u.value)return null;let d=`${n}-header`;return s(nb,X(X({},t),{},{prefixCls:d,onSuperPrev:c,onSuperNext:o}),{default:()=>[s(`button`,{type:`button`,onClick:l,class:`${n}-year-btn`},[Lb(a,{locale:i,format:i.yearFormat,generateConfig:r})])]})}ux.displayName=`MonthHeader`,ux.inheritAttrs=!1;var dx=4;function fx(e){let t=Zy(e),{prefixCls:n,locale:r,value:i,viewDate:a,generateConfig:o,monthCellRender:c}=t,{rangedValue:l,hoverRangedValue:u}=tx(),d=Qb({cellPrefixCls:`${n}-cell`,value:i,generateConfig:o,rangedValue:l.value,hoverRangedValue:u.value,isSameCell:(e,t)=>kb(o,e,t),isInView:()=>!0,offsetCell:(e,t)=>o.addMonth(e,t)}),f=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),p=o.setMonth(a,0),m=c?e=>c({current:e,locale:r}):void 0;return s(cb,X(X({},t),{},{rowNum:dx,colNum:3,baseDate:p,getCellNode:m,getCellText:e=>r.monthFormat?Lb(e,{locale:r,format:r.monthFormat,generateConfig:o}):f[o.getMonth(e)],getCellClassName:d,getCellDate:o.addMonth,titleCell:e=>Lb(e,{locale:r,format:`YYYY-MM`,generateConfig:o})}),null)}fx.displayName=`MonthBody`,fx.inheritAttrs=!1;function px(e){let t=Zy(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:a,value:o,viewDate:c,onPanelChange:l,onSelect:u}=t,d=`${n}-month-panel`;r.value={onKeydown:e=>mb(e,{onLeftRight:e=>{u(a.addMonth(o||c,e),`key`)},onCtrlLeftRight:e=>{u(a.addYear(o||c,e),`key`)},onUpDown:e=>{u(a.addMonth(o||c,e*3),`key`)},onEnter:()=>{l(`date`,o||c)}})};let f=e=>{let t=a.addYear(c,e);i(t),l(null,t)};return s(`div`,{class:d},[s(ux,X(X({},t),{},{prefixCls:n,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onYearClick:()=>{l(`year`,c)}}),null),s(fx,X(X({},t),{},{prefixCls:n,onSelect:e=>{u(e,`mouse`),l(`date`,e)}}),null)])}px.displayName=`MonthPanel`,px.inheritAttrs=!1;function mx(e){let t=Zy(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:a,onNextYear:o,onPrevYear:c,onYearClick:l}=t,{hideHeader:u}=eb();if(u.value)return null;let d=`${n}-header`;return s(nb,X(X({},t),{},{prefixCls:d,onSuperPrev:c,onSuperNext:o}),{default:()=>[s(`button`,{type:`button`,onClick:l,class:`${n}-year-btn`},[Lb(a,{locale:i,format:i.yearFormat,generateConfig:r})])]})}mx.displayName=`QuarterHeader`,mx.inheritAttrs=!1;var hx=1;function gx(e){let t=Zy(e),{prefixCls:n,locale:r,value:i,viewDate:a,generateConfig:o}=t,{rangedValue:c,hoverRangedValue:l}=tx(),u=Qb({cellPrefixCls:`${n}-cell`,value:i,generateConfig:o,rangedValue:c.value,hoverRangedValue:l.value,isSameCell:(e,t)=>Ob(o,e,t),isInView:()=>!0,offsetCell:(e,t)=>o.addMonth(e,t*3)}),d=o.setDate(o.setMonth(a,0),1);return s(cb,X(X({},t),{},{rowNum:hx,colNum:4,baseDate:d,getCellText:e=>Lb(e,{locale:r,format:r.quarterFormat||`[Q]Q`,generateConfig:o}),getCellClassName:u,getCellDate:(e,t)=>o.addMonth(e,t*3),titleCell:e=>Lb(e,{locale:r,format:`YYYY-[Q]Q`,generateConfig:o})}),null)}gx.displayName=`QuarterBody`,gx.inheritAttrs=!1;function _x(e){let t=Zy(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:a,value:o,viewDate:c,onPanelChange:l,onSelect:u}=t,d=`${n}-quarter-panel`;r.value={onKeydown:e=>mb(e,{onLeftRight:e=>{u(a.addMonth(o||c,e*3),`key`)},onCtrlLeftRight:e=>{u(a.addYear(o||c,e),`key`)},onUpDown:e=>{u(a.addYear(o||c,e),`key`)}})};let f=e=>{let t=a.addYear(c,e);i(t),l(null,t)};return s(`div`,{class:d},[s(mx,X(X({},t),{},{prefixCls:n,onPrevYear:()=>{f(-1)},onNextYear:()=>{f(1)},onYearClick:()=>{l(`year`,c)}}),null),s(gx,X(X({},t),{},{prefixCls:n,onSelect:e=>{u(e,`mouse`)}}),null)])}_x.displayName=`QuarterPanel`,_x.inheritAttrs=!1;function vx(e){let t=Zy(e),{prefixCls:n,generateConfig:r,viewDate:i,onPrevDecade:a,onNextDecade:o,onDecadeClick:c}=t,{hideHeader:l}=eb();if(l.value)return null;let u=`${n}-header`,d=r.getYear(i),f=Math.floor(d/10)*10,p=f+10-1;return s(nb,X(X({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:o}),{default:()=>[s(`button`,{type:`button`,onClick:c,class:`${n}-decade-btn`},[f,g(`-`),p])]})}vx.displayName=`YearHeader`,vx.inheritAttrs=!1;var yx=4;function bx(e){let t=Zy(e),{prefixCls:n,value:r,viewDate:i,locale:a,generateConfig:o}=t,{rangedValue:c,hoverRangedValue:l}=tx(),u=`${n}-cell`,d=o.getYear(i),f=Math.floor(d/10)*10,p=f+10-1,m=o.setYear(i,f-1),h=Qb({cellPrefixCls:u,value:r,generateConfig:o,rangedValue:c.value,hoverRangedValue:l.value,isSameCell:(e,t)=>Eb(o,e,t),isInView:e=>{let t=o.getYear(e);return f<=t&&t<=p},offsetCell:(e,t)=>o.addYear(e,t)});return s(cb,X(X({},t),{},{rowNum:yx,colNum:3,baseDate:m,getCellText:o.getYear,getCellClassName:h,getCellDate:o.addYear,titleCell:e=>Lb(e,{locale:a,format:`YYYY`,generateConfig:o})}),null)}bx.displayName=`YearBody`,bx.inheritAttrs=!1;function xx(e){let t=Zy(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:a,value:o,viewDate:c,sourceMode:l,onSelect:u,onPanelChange:d}=t,f=`${n}-year-panel`;r.value={onKeydown:e=>mb(e,{onLeftRight:e=>{u(a.addYear(o||c,e),`key`)},onCtrlLeftRight:e=>{u(a.addYear(o||c,e*10),`key`)},onUpDown:e=>{u(a.addYear(o||c,e*3),`key`)},onEnter:()=>{d(l===`date`?`date`:`month`,o||c)}})};let p=e=>{let t=a.addYear(c,e*10);i(t),d(null,t)};return s(`div`,{class:f},[s(vx,X(X({},t),{},{prefixCls:n,onPrevDecade:()=>{p(-1)},onNextDecade:()=>{p(1)},onDecadeClick:()=>{d(`decade`,c)}}),null),s(bx,X(X({},t),{},{prefixCls:n,onSelect:e=>{d(l===`date`?`date`:`month`,e),u(e,`mouse`)}}),null)])}xx.displayName=`YearPanel`,xx.inheritAttrs=!1;function Sx(e,t,n){return n?s(`div`,{class:`${e}-footer-extra`},[n(t)]):null}function Cx(e){let{prefixCls:t,components:n={},needConfirmButton:r,onNow:i,onOk:a,okDisabled:o,showNow:c,locale:l}=e,u,d;if(r){let e=n.button||`button`;i&&c!==!1&&(u=s(`li`,{class:`${t}-now`},[s(`a`,{class:`${t}-now-btn`,onClick:i},[l.now])])),d=r&&s(`li`,{class:`${t}-ok`},[s(e,{disabled:o,onClick:e=>{e.stopPropagation(),a&&a()}},{default:()=>[l.ok]})])}return!u&&!d?null:s(`ul`,{class:`${t}-ranges`},[u,d])}function wx(){return d({name:`PickerPanel`,inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:`date`},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t,r=a(()=>e.picker===`date`&&!!e.showTime||e.picker===`time`),i=a(()=>24%e.hourStep==0),o=a(()=>60%e.minuteStep==0),c=a(()=>60%e.secondStep==0),l=eb(),{operationRef:u,onSelect:d,hideRanges:f,defaultOpenValue:p}=l,{inRange:m,panelPosition:h,rangedValue:g,hoverRangedValue:_}=tx(),v=W({}),[b,x]=zu(null,{value:y(e,`value`),defaultValue:e.defaultValue,postState:t=>!t&&p?.value&&e.picker===`time`?p.value:t}),[S,C]=zu(null,{value:y(e,`pickerValue`),defaultValue:e.defaultPickerValue||b.value,postState:t=>{let{generateConfig:n,showTime:r,defaultValue:i}=e,a=n.getNow();return t?!b.value&&e.showTime?typeof r==`object`?ab(n,Array.isArray(t)?t[0]:t,r.defaultValue||a):i?ab(n,Array.isArray(t)?t[0]:t,i):ab(n,Array.isArray(t)?t[0]:t,a):t:a}}),w=t=>{C(t),e.onPickerValueChange&&e.onPickerValueChange(t)},T=t=>{let n=xb[e.picker];return n?n(t):t},[E,D]=zu(()=>e.picker===`time`?`time`:T(`date`),{value:y(e,`mode`)});H(()=>e.picker,()=>{D(e.picker)});let O=W(E.value),k=e=>{O.value=e},A=(t,n)=>{let{onPanelChange:r,generateConfig:i}=e,a=T(t||E.value);k(E.value),D(a),r&&(E.value!==a||Nb(i,S.value,S.value))&&r(n,a)},j=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{picker:i,generateConfig:a,onSelect:o,onChange:s,disabledDate:c}=e;(E.value===i||r)&&(x(t),o&&o(t),d&&d(t,n),s&&!Nb(a,t,b.value)&&!c?.(t)&&s(t))},M=e=>v.value&&v.value.onKeydown?([$.LEFT,$.RIGHT,$.UP,$.DOWN,$.PAGE_UP,$.PAGE_DOWN,$.ENTER].includes(e.which)&&e.preventDefault(),v.value.onKeydown(e)):!1,N=e=>{v.value&&v.value.onBlur&&v.value.onBlur(e)},P=()=>{let{generateConfig:t,hourStep:n,minuteStep:r,secondStep:a}=e,s=t.getNow(),l=ob(t.getHour(s),t.getMinute(s),t.getSecond(s),i.value?n:1,o.value?r:1,c.value?a:1),u=ib(t,s,l[0],l[1],l[2]);j(u,`submit`)},F=a(()=>{let{prefixCls:t,direction:n}=e;return Z(`${t}-panel`,{[`${t}-panel-has-range`]:g&&g.value&&g.value[0]&&g.value[1],[`${t}-panel-has-range-hover`]:_&&_.value&&_.value[0]&&_.value[1],[`${t}-panel-rtl`]:n===`rtl`})});return $y(G(G({},l),{mode:E,hideHeader:a(()=>e.hideHeader===void 0?l.hideHeader?.value:e.hideHeader),hidePrevBtn:a(()=>m.value&&h.value===`right`),hideNextBtn:a(()=>m.value&&h.value===`left`)})),H(()=>e.value,()=>{e.value&&C(e.value)}),()=>{let{prefixCls:t=`ant-picker`,locale:i,generateConfig:a,disabledDate:o,picker:c=`date`,tabindex:l=0,showNow:d,showTime:p,showToday:m,renderExtraFooter:g,onMousedown:_,onOk:y,components:x}=e;u&&h.value!==`right`&&(u.value={onKeydown:M,onClose:()=>{v.value&&v.value.onClose&&v.value.onClose()}});let C,T=G(G(G({},n),e),{operationRef:v,prefixCls:t,viewDate:S.value,value:b.value,onViewDateChange:w,sourceMode:O.value,onPanelChange:A,disabledDate:o});switch(delete T.onChange,delete T.onSelect,E.value){case`decade`:C=s(Cb,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;case`year`:C=s(xx,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;case`month`:C=s(px,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;case`quarter`:C=s(_x,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;case`week`:C=s(lx,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;case`time`:delete T.showTime,C=s(Zb,X(X(X({},T),typeof p==`object`?p:null),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null);break;default:C=s(p?cx:ox,X(X({},T),{},{onSelect:(e,t)=>{w(e),j(e,t)}}),null)}let D,k;f?.value||(D=Sx(t,E.value,g),k=Cx({prefixCls:t,components:x,needConfirmButton:r.value,okDisabled:!b.value||o&&o(b.value),locale:i,showNow:d,onNow:r.value&&P,onOk:()=>{b.value&&(j(b.value,`submit`,!0),y&&y(b.value))}}));let I;if(m&&E.value===`date`&&c===`date`&&!p){let e=a.getNow(),n=`${t}-today-btn`,r=o&&o(e);I=s(`a`,{class:Z(n,r&&`${n}-disabled`),"aria-disabled":r,onClick:()=>{r||j(e,`mouse`,!0)}},[i.today])}return s(`div`,{tabindex:l,class:Z(F.value,n.class),style:n.style,onKeydown:M,onBlur:N,onMousedown:_},[C,D||k||I?s(`div`,{class:`${t}-footer`},[D,k,I]):null])}}})}var Tx=wx(),Ex=(e=>s(Tx,e)),Dx={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Ox(e,t){let{slots:n}=t,{prefixCls:r,popupStyle:i,visible:a,dropdownClassName:o,dropdownAlign:c,transitionName:l,getPopupContainer:u,range:d,popupPlacement:f,direction:p}=Zy(e),m=`${r}-dropdown`;return s(tl,{showAction:[],hideAction:[],popupPlacement:f===void 0?p===`rtl`?`bottomRight`:`bottomLeft`:f,builtinPlacements:Dx,prefixCls:m,popupTransitionName:l,popupAlign:c,popupVisible:a,popupClassName:Z(o,{[`${m}-range`]:d,[`${m}-rtl`]:p===`rtl`}),popupStyle:i,getPopupContainer:u},{default:n.default,popup:n.popupElement})}var kx=d({name:`PresetPanel`,props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?s(`div`,{class:`${e.prefixCls}-presets`},[s(`ul`,null,[e.presets.map((t,n)=>{let{label:r,value:i}=t;return s(`li`,{key:n,onClick:t=>{t.stopPropagation(),e.onClick(i)},onMouseenter:()=>{var t;(t=e.onHover)==null||t.call(e,i)},onMouseleave:()=>{var t;(t=e.onHover)==null||t.call(e,null)}},[r])})])]):null}});function Ax(e){let{open:t,value:n,isClickOutside:r,triggerOpen:i,forwardKeydown:o,onKeydown:s,blurToCancel:c,onSubmit:l,onCancel:u,onFocus:d,onBlur:f}=e,m=M(!1),h=M(!1),g=M(!1),_=M(!1),v=M(!1),y=a(()=>({onMousedown:()=>{m.value=!0,i(!0)},onKeydown:e=>{if(s(e,()=>{v.value=!0}),!v.value){switch(e.which){case $.ENTER:t.value?l()!==!1&&(m.value=!0):i(!0),e.preventDefault();return;case $.TAB:m.value&&t.value&&!e.shiftKey?(m.value=!1,e.preventDefault()):!m.value&&t.value&&!o(e)&&e.shiftKey&&(m.value=!0,e.preventDefault());return;case $.ESC:m.value=!0,u();return}!t.value&&![$.SHIFT].includes(e.which)?i(!0):m.value||o(e)}},onFocus:e=>{m.value=!0,h.value=!0,d&&d(e)},onBlur:e=>{if(g.value||!r(document.activeElement)){g.value=!1;return}c.value?setTimeout(()=>{let{activeElement:e}=document;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&u()},0):t.value&&(i(!1),_.value&&l()),h.value=!1,f&&f(e)}}));H(t,()=>{_.value=!1}),H(n,()=>{_.value=!0});let b=M();return D(()=>{b.value=yb(e=>{let n=bb(e);if(t.value){let e=r(n);e?(!h.value||e)&&i(!1):(g.value=!0,Rn(()=>{g.value=!1}))}})}),p(()=>{b.value&&b.value()}),[y,{focused:h,typing:m}]}function jx(e){let{valueTexts:t,onTextChange:n}=e,r=W(``);function i(e){r.value=e,n(e)}function a(){r.value=t.value[0]}return H(()=>[...t.value],function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];e.join(`||`)!==n.join(`||`)&&t.value.every(e=>e!==r.value)&&a()},{immediate:!0}),[r,i,a]}function Mx(e,t){let{formatList:n,generateConfig:r,locale:i}=t,o=yu(()=>{if(!e.value)return[[``],``];let t=``,a=[];for(let o=0;ot[0]!==e[0]||!vv(t[1],e[1]));return[a(()=>o.value[0]),a(()=>o.value[1])]}function Nx(e,t){let{formatList:n,generateConfig:r,locale:i}=t,a=W(null),o;function s(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(Rn.cancel(o),t){a.value=e;return}o=Rn(()=>{a.value=e})}let[,c]=Mx(a,{formatList:n,generateConfig:r,locale:i});function l(e){s(e)}function u(){s(null,arguments.length>0&&arguments[0]!==void 0&&arguments[0])}return H(e,()=>{u(!0)}),p(()=>{Rn.cancel(o)}),[c,l,u]}function Px(e,t){return a(()=>e?.value?e.value:t?.value?(In(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(e=>{let n=t.value[e];return{label:e,value:typeof n==`function`?n():n}})):[])}function Fx(){return d({name:`Picker`,inheritAttrs:!1,props:`prefixCls.id.tabindex.dropdownClassName.dropdownAlign.popupStyle.transitionName.generateConfig.locale.inputReadOnly.allowClear.autofocus.showTime.showNow.showHour.showMinute.showSecond.picker.format.use12Hours.value.defaultValue.open.defaultOpen.defaultOpenValue.suffixIcon.presets.clearIcon.disabled.disabledDate.placeholder.getPopupContainer.panelRender.inputRender.onChange.onOpenChange.onPanelChange.onFocus.onBlur.onMousedown.onMouseup.onMouseenter.onMouseleave.onContextmenu.onClick.onKeydown.onSelect.direction.autocomplete.showToday.renderExtraFooter.dateRender.minuteStep.hourStep.secondStep.hideDisabledOptions`.split(`.`),setup(e,t){let{attrs:n,expose:r}=t,i=W(null),o=Px(a(()=>e.presets)),c=a(()=>e.picker??`date`),l=a(()=>c.value===`date`&&!!e.showTime||c.value===`time`),u=a(()=>Wb(hb(e.format,c.value,e.showTime,e.use12Hours))),d=W(null),f=W(null),p=W(null),[m,h]=zu(null,{value:y(e,`value`),defaultValue:e.defaultValue}),g=W(m.value),_=e=>{g.value=e},v=W(null),[b,x]=zu(!1,{value:y(e,`open`),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&v.value&&v.value.onClose&&v.value.onClose()}}),[S,C]=Mx(g,{formatList:u,generateConfig:y(e,`generateConfig`),locale:y(e,`locale`)}),[w,T,E]=jx({valueTexts:S,onTextChange:t=>{let n=Rb(t,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});n&&(!e.disabledDate||!e.disabledDate(n))&&_(n)}}),D=t=>{let{onChange:n,generateConfig:r,locale:i}=e;_(t),h(t),n&&!Nb(r,m.value,t)&&n(t,t?Lb(t,{generateConfig:r,locale:i,format:u.value[0]}):``)},O=t=>{e.disabled&&t||x(t)},k=e=>b.value&&v.value&&v.value.onKeydown?v.value.onKeydown(e):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),i.value&&(i.value.focus(),O(!0))},[j,{focused:M,typing:N}]=Ax({blurToCancel:l,open:b,value:w,triggerOpen:O,forwardKeydown:k,isClickOutside:e=>!Sb([d.value,f.value,p.value],e),onSubmit:()=>!g.value||e.disabledDate&&e.disabledDate(g.value)?!1:(D(g.value),O(!1),E(),!0),onCancel:()=>{O(!1),_(m.value),E()},onKeydown:(t,n)=>{var r;(r=e.onKeydown)==null||r.call(e,t,n)},onFocus:t=>{var n;(n=e.onFocus)==null||n.call(e,t)},onBlur:t=>{var n;(n=e.onBlur)==null||n.call(e,t)}});H([b,S],()=>{b.value||(_(m.value),!S.value.length||S.value[0]===``?T(``):C.value!==w.value&&E())}),H(c,()=>{b.value||E()}),H(m,()=>{_(m.value)});let[P,F,I]=Nx(w,{formatList:u,generateConfig:y(e,`generateConfig`),locale:y(e,`locale`)});return $y({operationRef:v,hideHeader:a(()=>c.value===`time`),onSelect:(e,t)=>{(t===`submit`||t!==`key`&&!l.value)&&(D(e),O(!1))},open:b,defaultOpenValue:y(e,`defaultOpenValue`),onDateMouseenter:F,onDateMouseleave:I}),r({focus:()=>{i.value&&i.value.focus()},blur:()=>{i.value&&i.value.blur()}}),()=>{let{prefixCls:t=`rc-picker`,id:r,tabindex:a,dropdownClassName:c,dropdownAlign:l,popupStyle:h,transitionName:v,generateConfig:y,locale:x,inputReadOnly:S,allowClear:C,autofocus:E,picker:k=`date`,defaultOpenValue:F,suffixIcon:L,clearIcon:ee,disabled:R,placeholder:z,getPopupContainer:B,panelRender:te,onMousedown:V,onMouseenter:ne,onMouseleave:re,onContextmenu:H,onClick:U,onSelect:ie,direction:W,autocomplete:ae=`off`}=e,oe=G(G(G({},e),n),{class:Z({[`${t}-panel-focused`]:!N.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),se=s(`div`,{class:`${t}-panel-layout`},[s(kx,{prefixCls:t,presets:o.value,onClick:e=>{D(e),O(!1)}},null),s(Ex,X(X({},oe),{},{generateConfig:y,value:g.value,locale:x,tabindex:-1,onSelect:e=>{ie?.(e),_(e)},direction:W,onPanelChange:(t,n)=>{let{onPanelChange:r}=e;I(!0),r?.(t,n)}}),null)]);te&&(se=te(se));let ce=s(`div`,{class:`${t}-panel-container`,ref:d,onMousedown:e=>{e.preventDefault()}},[se]),le;L&&(le=s(`span`,{class:`${t}-suffix`},[L]));let ue;C&&m.value&&!R&&(ue=s(`span`,{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),D(null),O(!1)},class:`${t}-clear`,role:`button`},[ee||s(`span`,{class:`${t}-clear-btn`},null)]));let de=G(G(G(G({id:r,tabindex:a,disabled:R,readonly:S||typeof u.value[0]==`function`||!N.value,value:P.value||w.value,onInput:e=>{T(e.target.value)},autofocus:E,placeholder:z,ref:i,title:w.value},j.value),{size:gb(k,u.value[0],y)}),Gb(e)),{autocomplete:ae}),fe=e.inputRender?e.inputRender(de):s(`input`,de,null),pe=W===`rtl`?`bottomRight`:`bottomLeft`;return s(`div`,{ref:p,class:Z(t,n.class,{[`${t}-disabled`]:R,[`${t}-focused`]:M.value,[`${t}-rtl`]:W===`rtl`}),style:n.style,onMousedown:V,onMouseup:A,onMouseenter:ne,onMouseleave:re,onContextmenu:H,onClick:U},[s(`div`,{class:Z(`${t}-input`,{[`${t}-input-placeholder`]:!!P.value}),ref:f},[fe,le,ue]),s(Ox,{visible:b.value,popupStyle:h,prefixCls:t,dropdownClassName:c,dropdownAlign:l,getPopupContainer:B,transitionName:v,popupPlacement:pe,direction:W},{default:()=>[s(`div`,{style:{pointerEvents:`none`,position:`absolute`,top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>ce})])}}})}var Ix=Fx();function Lx(e,t){let{picker:n,locale:r,selectedValue:i,disabledDate:o,disabled:s,generateConfig:c}=e,l=a(()=>Kb(i.value,0)),u=a(()=>Kb(i.value,1));function d(e){return c.value.locale.getWeekFirstDate(r.value.locale,e)}function f(e){let t=c.value.getYear(e),n=c.value.getMonth(e);return t*100+n}function p(e){let t=c.value.getYear(e),n=Db(c.value,e);return t*10+n}return[e=>{if(o&&(o?.value)?.call(o,e))return!0;if(s[1]&&u)return!Ab(c.value,e,u.value)&&c.value.isAfter(e,u.value);if(t.value[1]&&u.value)switch(n.value){case`quarter`:return p(e)>p(u.value);case`month`:return f(e)>f(u.value);case`week`:return d(e)>d(u.value);default:return!Ab(c.value,e,u.value)&&c.value.isAfter(e,u.value)}return!1},e=>{if(o.value?.call(o,e))return!0;if(s[0]&&l)return!Ab(c.value,e,u.value)&&c.value.isAfter(l.value,e);if(t.value[0]&&l.value)switch(n.value){case`quarter`:return p(e)Tb(r,e,t));case`quarter`:case`month`:return a((e,t)=>Eb(r,e,t));default:return a((e,t)=>kb(r,e,t))}}function zx(e,t,n,r){let i=Kb(e,0),a=Kb(e,1);if(t===0)return i;if(i&&a)switch(Rx(i,a,n,r)){case`same`:return i;case`closing`:return i;default:return Ib(a,n,r,-1)}return i}function Bx(e){let{values:t,picker:n,defaultDates:r,generateConfig:i}=e,o=W([Kb(r,0),Kb(r,1)]),s=W(null),c=a(()=>Kb(t.value,0)),l=a(()=>Kb(t.value,1)),u=e=>o.value[e]?o.value[e]:Kb(s.value,e)||zx(t.value,e,n.value,i.value)||c.value||l.value||i.value.getNow(),d=W(null),f=W(null);P(()=>{d.value=u(0),f.value=u(1)});function p(e,n){if(e){let r=qb(s.value,e,n);o.value=qb(o.value,null,n)||[null,null];let i=(n+1)%2;Kb(t.value,i)||(r=qb(r,e,i)),s.value=r}else(c.value||l.value)&&(s.value=null)}return[d,f,p]}function Vx(e){return F()?(I(e),!0):!1}function Hx(e){return typeof e==`function`?e():b(e)}function Ux(e){let t=Hx(e);return t?.$el??t}function Wx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;m()?D(e):t?e():x(e)}function Gx(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=M(),r=()=>n.value=!!e();return r(),Wx(r,t),n}var Kx=typeof window<`u`;Kx&&(window==null?void 0:window.navigator)?.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);var qx=Kx?window:void 0;Kx&&window.document,Kx&&window.navigator,Kx&&window.location;var Jx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i2&&arguments[2]!==void 0?arguments[2]:{},{window:r=qx}=n,i=Jx(n,[`window`]),a,o=Gx(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=H(()=>Ux(e),e=>{s(),o.value&&r&&e&&(a=new ResizeObserver(t),a.observe(e,i))},{immediate:!0,flush:`post`}),l=()=>{s(),c()};return Vx(l),{isSupported:o,stop:l}}function Xx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{box:r=`content-box`}=n,i=M(t.width),a=M(t.height);return Yx(e,e=>{let[t]=e,n=r===`border-box`?t.borderBoxSize:r===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;n?(i.value=n.reduce((e,t)=>{let{inlineSize:n}=t;return e+n},0),a.value=n.reduce((e,t)=>{let{blockSize:n}=t;return e+n},0)):(i.value=t.contentRect.width,a.value=t.contentRect.height)},n),H(()=>Ux(e),e=>{i.value=e?t.width:0,a.value=e?t.height:0}),{width:i,height:a}}function Zx(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Qx(e,t,n,r){return!!(e||r&&r[t]||n[(t+1)%2])}function $x(){return d({name:`RangerPicker`,inheritAttrs:!1,props:`prefixCls.id.popupStyle.dropdownClassName.transitionName.dropdownAlign.getPopupContainer.generateConfig.locale.placeholder.autofocus.disabled.format.picker.showTime.showNow.showHour.showMinute.showSecond.use12Hours.separator.value.defaultValue.defaultPickerValue.open.defaultOpen.disabledDate.disabledTime.dateRender.panelRender.ranges.allowEmpty.allowClear.suffixIcon.clearIcon.pickerRef.inputReadOnly.mode.renderExtraFooter.onChange.onOpenChange.onPanelChange.onCalendarChange.onFocus.onBlur.onMousedown.onMouseup.onMouseenter.onMouseleave.onClick.onOk.onKeydown.components.order.direction.activePickerIndex.autocomplete.minuteStep.hourStep.secondStep.hideDisabledOptions.disabledMinutes.presets.prevIcon.nextIcon.superPrevIcon.superNextIcon`.split(`.`),setup(e,t){let{attrs:n,expose:r}=t,i=a(()=>e.picker===`date`&&!!e.showTime||e.picker===`time`),o=Px(a(()=>e.presets),a(()=>e.ranges)),c=W({}),l=W(null),u=W(null),d=W(null),f=W(null),p=W(null),m=W(null),h=W(null),g=W(null),_=a(()=>Wb(hb(e.format,e.picker,e.showTime,e.use12Hours))),[b,x]=zu(0,{value:y(e,`activePickerIndex`)}),S=W(null),C=a(()=>{let{disabled:t}=e;return Array.isArray(t)?t:[t||!1,t||!1]}),[w,T]=zu(null,{value:y(e,`value`),defaultValue:e.defaultValue,postState:t=>e.picker===`time`&&!e.order?t:Zx(t,e.generateConfig)}),[E,D,O]=Bx({values:w,picker:y(e,`picker`),defaultDates:e.defaultPickerValue,generateConfig:y(e,`generateConfig`)}),[k,A]=zu(w.value,{postState:t=>{let n=t;if(C.value[0]&&C.value[1])return n;for(let t=0;t<2;t+=1)C.value[t]&&!Kb(n,t)&&!Kb(e.allowEmpty,t)&&(n=qb(n,e.generateConfig.getNow(),t));return n}}),[j,M]=zu([e.picker,e.picker],{value:y(e,`mode`)});H(()=>e.picker,()=>{M([e.picker,e.picker])});let N=(t,n)=>{var r;M(t),(r=e.onPanelChange)==null||r.call(e,n,t)},[P,F]=Lx({picker:y(e,`picker`),selectedValue:k,locale:y(e,`locale`),disabled:C,disabledDate:y(e,`disabledDate`),generateConfig:y(e,`generateConfig`)},c),[I,L]=zu(!1,{value:y(e,`open`),defaultValue:e.defaultOpen,postState:e=>!C.value[b.value]&&e,onChange:t=>{var n;(n=e.onOpenChange)==null||n.call(e,t),!t&&S.value&&S.value.onClose&&S.value.onClose()}}),ee=a(()=>I.value&&b.value===0),R=a(()=>I.value&&b.value===1),z=W(0),B=W(0),te=W(0),{width:V}=Xx(l);H([I,V],()=>{!I.value&&l.value&&(te.value=V.value)});let{width:ne}=Xx(u),{width:re}=Xx(g),{width:U}=Xx(d),{width:ie}=Xx(p);H([b,I,ne,re,U,ie,()=>e.direction],()=>{B.value=0,b.value?d.value&&p.value&&(B.value=U.value+ie.value,ne.value&&re.value&&B.value>ne.value-re.value-(e.direction===`rtl`||g.value.offsetLeft>B.value?0:g.value.offsetLeft)&&(z.value=B.value)):b.value===0&&(z.value=0)},{immediate:!0});let ae=W();function oe(e,t){if(e)clearTimeout(ae.value),c.value[t]=!0,x(t),L(e),I.value||O(null,t);else if(b.value===t){L(e);let t=c.value;ae.value=setTimeout(()=>{t===c.value&&(c.value={})})}}function se(e){oe(!0,e),setTimeout(()=>{let t=[m,h][e];t.value&&t.value.focus()},0)}function ce(t,n){let r=t,i=Kb(r,0),a=Kb(r,1),{generateConfig:o,locale:s,picker:l,order:u,onCalendarChange:d,allowEmpty:f,onChange:p,showTime:m}=e;i&&a&&o.isAfter(i,a)&&(l===`week`&&!Mb(o,s.locale,i,a)||l===`quarter`&&!Ob(o,i,a)||l!==`week`&&l!==`quarter`&&l!==`time`&&!(m?Nb(o,i,a):Ab(o,i,a))?(n===0?(r=[i,null],a=null):(i=null,r=[null,a]),c.value={[n]:!0}):(l!==`time`||u!==!1)&&(r=Zx(r,o))),A(r);let h=r&&r[0]?Lb(r[0],{generateConfig:o,locale:s,format:_.value[0]}):``,g=r&&r[1]?Lb(r[1],{generateConfig:o,locale:s,format:_.value[0]}):``;d&&d(r,[h,g],{range:n===0?`start`:`end`});let v=Qx(i,0,C.value,f),y=Qx(a,1,C.value,f);(r===null||v&&y)&&(T(r),p&&(!Nb(o,Kb(w.value,0),i)||!Nb(o,Kb(w.value,1),a))&&p(r,[h,g]));let x=null;n===0&&!C.value[1]?x=1:n===1&&!C.value[0]&&(x=0),x!==null&&x!==b.value&&(!c.value[x]||!Kb(r,x))&&Kb(r,n)?se(x):oe(!1,n)}let le=e=>I&&S.value&&S.value.onKeydown?S.value.onKeydown(e):!1,ue={formatList:_,generateConfig:y(e,`generateConfig`),locale:y(e,`locale`)},[de,fe]=Mx(a(()=>Kb(k.value,0)),ue),[pe,me]=Mx(a(()=>Kb(k.value,1)),ue),he=(t,n)=>{let r=Rb(t,{locale:e.locale,formatList:_.value,generateConfig:e.generateConfig});r&&!(n===0?P:F)(r)&&(A(qb(k.value,r,n)),O(r,n))},[ge,_e,K]=jx({valueTexts:de,onTextChange:e=>he(e,0)}),[ve,ye,be]=jx({valueTexts:pe,onTextChange:e=>he(e,1)}),[xe,Se]=dn(null),[Ce,we]=dn(null),[Te,Ee,De]=Nx(ge,ue),[Oe,ke,Ae]=Nx(ve,ue),je=e=>{we(qb(k.value,e,b.value)),b.value===0?Ee(e):ke(e)},Me=()=>{we(qb(k.value,null,b.value)),b.value===0?De():Ae()},Ne=(t,n)=>({forwardKeydown:le,onBlur:t=>{var n;(n=e.onBlur)==null||n.call(e,t)},isClickOutside:e=>!Sb([u.value,d.value,f.value,l.value],e),onFocus:n=>{var r;x(t),(r=e.onFocus)==null||r.call(e,n)},triggerOpen:e=>{oe(e,t)},onSubmit:()=>{if(!k.value||e.disabledDate&&e.disabledDate(k.value[t]))return!1;ce(k.value,t),n()},onCancel:()=>{oe(!1,t),A(w.value),n()}}),[Pe,{focused:Fe,typing:Ie}]=Ax(G(G({},Ne(0,K)),{blurToCancel:i,open:ee,value:ge,onKeydown:(t,n)=>{var r;(r=e.onKeydown)==null||r.call(e,t,n)}})),[Le,{focused:Re,typing:ze}]=Ax(G(G({},Ne(1,be)),{blurToCancel:i,open:R,value:ve,onKeydown:(t,n)=>{var r;(r=e.onKeydown)==null||r.call(e,t,n)}})),Be=t=>{var n;(n=e.onClick)==null||n.call(e,t),!I.value&&!m.value.contains(t.target)&&!h.value.contains(t.target)&&(C.value[0]?C.value[1]||se(1):se(0))},Ve=t=>{var n;(n=e.onMousedown)==null||n.call(e,t),I.value&&(Fe.value||Re.value)&&!m.value.contains(t.target)&&!h.value.contains(t.target)&&t.preventDefault()},He=a(()=>w.value?.[0]?Lb(w.value[0],{locale:e.locale,format:`YYYYMMDDHHmmss`,generateConfig:e.generateConfig}):``),Ue=a(()=>w.value?.[1]?Lb(w.value[1],{locale:e.locale,format:`YYYYMMDDHHmmss`,generateConfig:e.generateConfig}):``);H([I,de,pe],()=>{I.value||(A(w.value),!de.value.length||de.value[0]===``?_e(``):fe.value!==ge.value&&K(),!pe.value.length||pe.value[0]===``?ye(``):me.value!==ve.value&&be())}),H([He,Ue],()=>{A(w.value)}),r({focus:()=>{m.value&&m.value.focus()},blur:()=>{m.value&&m.value.blur(),h.value&&h.value.blur()}});let We=a(()=>I.value&&Ce.value&&Ce.value[0]&&Ce.value[1]&&e.generateConfig.isAfter(Ce.value[1],Ce.value[0])?Ce.value:null);function Ge(){let t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{generateConfig:r,showTime:i,dateRender:a,direction:o,disabledTime:c,prefixCls:l,locale:u}=e,d=i;if(i&&typeof i==`object`&&i.defaultValue){let e=i.defaultValue;d=G(G({},i),{defaultValue:Kb(e,b.value)||void 0})}let f=null;return a&&(f=e=>{let{current:t,today:n}=e;return a({current:t,today:n,info:{range:b.value?`end`:`start`}})}),s(nx,{value:{inRange:!0,panelPosition:t,rangedValue:xe.value||k.value,hoverRangedValue:We.value}},{default:()=>[s(Ex,X(X(X({},e),n),{},{dateRender:f,showTime:d,mode:j.value[b.value],generateConfig:r,style:void 0,direction:o,disabledDate:b.value===0?P:F,disabledTime:e=>c?c(e,b.value===0?`start`:`end`):!1,class:Z({[`${l}-panel-focused`]:b.value===0?!Ie.value:!ze.value}),value:Kb(k.value,b.value),locale:u,tabIndex:-1,onPanelChange:(e,n)=>{b.value===0&&De(!0),b.value===1&&Ae(!0),N(qb(j.value,n,b.value),qb(k.value,e,b.value));let i=e;t===`right`&&j.value[b.value]===n&&(i=Ib(i,n,r,-1)),O(i,b.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:b.value===0?Kb(k.value,1):Kb(k.value,0)}),null)]})}return $y({operationRef:S,hideHeader:a(()=>e.picker===`time`),onDateMouseenter:je,onDateMouseleave:Me,hideRanges:a(()=>!0),onSelect:(e,t)=>{let n=qb(k.value,e,b.value);t===`submit`||t!==`key`&&!i.value?(ce(n,b.value),b.value===0?De():Ae()):A(n)},open:I}),()=>{let{prefixCls:t=`rc-picker`,id:r,popupStyle:a,dropdownClassName:c,transitionName:y,dropdownAlign:x,getPopupContainer:S,generateConfig:T,locale:A,placeholder:M,autofocus:N,picker:P=`date`,showTime:F,separator:L=`~`,disabledDate:ee,panelRender:R,allowClear:V,suffixIcon:ne,clearIcon:re,inputReadOnly:H,renderExtraFooter:U,onMouseenter:ie,onMouseleave:W,onMouseup:ae,onOk:se,components:le,direction:ue,autocomplete:de=`off`}=e,fe=ue===`rtl`?{right:`${B.value}px`}:{left:`${B.value}px`};function pe(){let e,n=Sx(t,j.value[b.value],U),r=Cx({prefixCls:t,components:le,needConfirmButton:i.value,okDisabled:!Kb(k.value,b.value)||ee&&ee(k.value[b.value]),locale:A,onOk:()=>{Kb(k.value,b.value)&&(ce(k.value,b.value),se&&se(k.value))}});if(P!==`time`&&!F){let t=b.value===0?E.value:D.value,n=Ib(t,P,T),r=j.value[b.value]===P,i=Ge(r?`left`:!1,{pickerValue:t,onPickerValueChange:e=>{O(e,b.value)}}),a=Ge(`right`,{pickerValue:n,onPickerValueChange:e=>{O(Ib(e,P,T,-1),b.value)}});e=ue===`rtl`?s(v,null,[a,r&&i]):s(v,null,[i,r&&a])}else e=Ge();let a=s(`div`,{class:`${t}-panel-layout`},[s(kx,{prefixCls:t,presets:o.value,onClick:e=>{ce(e,null),oe(!1,b.value)},onHover:e=>{Se(e)}},null),s(`div`,null,[s(`div`,{class:`${t}-panels`},[e]),(n||r)&&s(`div`,{class:`${t}-footer`},[n,r])])]);return R&&(a=R(a)),s(`div`,{class:`${t}-panel-container`,style:{marginLeft:`${z.value}px`},ref:u,onMousedown:e=>{e.preventDefault()}},[a])}let me=s(`div`,{class:Z(`${t}-range-wrapper`,`${t}-${P}-range-wrapper`),style:{minWidth:`${te.value}px`}},[s(`div`,{ref:g,class:`${t}-range-arrow`,style:fe},null),pe()]),he;ne&&(he=s(`span`,{class:`${t}-suffix`},[ne]));let K;V&&(Kb(w.value,0)&&!C.value[0]||Kb(w.value,1)&&!C.value[1])&&(K=s(`span`,{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=w.value;C.value[0]||(t=qb(t,null,0)),C.value[1]||(t=qb(t,null,1)),ce(t,null),oe(!1,b.value)},class:`${t}-clear`},[re||s(`span`,{class:`${t}-clear-btn`},null)]));let be={size:gb(P,_.value[0],T)},xe=0,Ce=0;d.value&&f.value&&p.value&&(b.value===0?Ce=d.value.offsetWidth:(xe=B.value,Ce=f.value.offsetWidth));let we=ue===`rtl`?{right:`${xe}px`}:{left:`${xe}px`};return s(`div`,X({ref:l,class:Z(t,`${t}-range`,n.class,{[`${t}-disabled`]:C.value[0]&&C.value[1],[`${t}-focused`]:b.value===0?Fe.value:Re.value,[`${t}-rtl`]:ue===`rtl`}),style:n.style,onClick:Be,onMouseenter:ie,onMouseleave:W,onMousedown:Ve,onMouseup:ae},Gb(e)),[s(`div`,{class:Z(`${t}-input`,{[`${t}-input-active`]:b.value===0,[`${t}-input-placeholder`]:!!Te.value}),ref:d},[s(`input`,X(X(X({id:r,disabled:C.value[0],readonly:H||typeof _.value[0]==`function`||!Ie.value,value:Te.value||ge.value,onInput:e=>{_e(e.target.value)},autofocus:N,placeholder:Kb(M,0)||``,ref:m},Pe.value),be),{},{autocomplete:de}),null)]),s(`div`,{class:`${t}-range-separator`,ref:p},[L]),s(`div`,{class:Z(`${t}-input`,{[`${t}-input-active`]:b.value===1,[`${t}-input-placeholder`]:!!Oe.value}),ref:f},[s(`input`,X(X(X({disabled:C.value[1],readonly:H||typeof _.value[0]==`function`||!ze.value,value:Oe.value||ve.value,onInput:e=>{ye(e.target.value)},placeholder:Kb(M,1)||``,ref:h},Le.value),be),{},{autocomplete:de}),null)]),s(`div`,{class:`${t}-active-bar`,style:G(G({},we),{width:`${Ce}px`,position:`absolute`})},null),he,K,s(Ox,{visible:I.value,popupStyle:a,prefixCls:t,dropdownClassName:c,dropdownAlign:x,getPopupContainer:S,transitionName:y,range:!0,direction:ue},{default:()=>[s(`div`,{style:{pointerEvents:`none`,position:`absolute`,top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>me})])}}})}var eS=$x(),tS=Ix,nS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.checked,()=>{a.value=e.checked}),i({focus(){var e;(e=o.value)==null||e.focus()},blur(){var e;(e=o.value)==null||e.blur()}});let c=W(),l=t=>{if(e.disabled)return;e.checked===void 0&&(a.value=t.target.checked),t.shiftKey=c.value;let n={target:G(G({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};e.checked!==void 0&&(o.value.checked=!!e.checked),r(`change`,n),c.value=!1},u=e=>{r(`click`,e),c.value=e.shiftKey};return()=>{let{prefixCls:t,name:r,id:i,type:c,disabled:d,readonly:f,tabindex:p,autofocus:m,value:h,required:g}=e,_=nS(e,[`prefixCls`,`name`,`id`,`type`,`disabled`,`readonly`,`tabindex`,`autofocus`,`value`,`required`]),{class:v,onFocus:y,onBlur:b,onKeydown:x,onKeypress:S,onKeyup:C}=n,w=G(G({},_),n),T=Object.keys(w).reduce((e,t)=>((t.startsWith(`data-`)||t.startsWith(`aria-`)||t===`role`)&&(e[t]=w[t]),e),{}),E=Z(t,v,{[`${t}-checked`]:a.value,[`${t}-disabled`]:d}),D=G(G({name:r,id:i,type:c,readonly:f,disabled:d,tabindex:p,class:`${t}-input`,checked:!!a.value,autofocus:m,value:h},T),{onChange:l,onClick:u,onFocus:y,onBlur:b,onKeydown:x,onKeypress:S,onKeyup:C,required:g});return s(`span`,{class:E},[s(`input`,X({ref:o},D),null),s(`span`,{class:`${t}-inner`},null)])}}}),aS=Symbol(`radioGroupContextKey`),oS=t=>{e(aS,t)},sS=()=>C(aS,void 0),cS=Symbol(`radioOptionTypeContextKey`),lS=t=>{e(cS,t)},uS=()=>C(cS,void 0),dS=new Te(`antRadioEffect`,{"0%":{transform:`scale(1)`,opacity:.5},"100%":{transform:`scale(1.6)`,opacity:0}}),fS=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:G(G({},Ne(e)),{display:`inline-block`,fontSize:0,[`&${r}-rtl`]:{direction:`rtl`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`}})}},pS=e=>{let{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:s,motionEaseInOutCirc:c,radioButtonBg:l,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:p,colorTextDisabled:m,paddingXS:h,radioDotDisabledColor:g,lineType:_,radioDotDisabledSize:v,wireframe:y,colorWhite:b}=e,x=`${t}-inner`;return{[`${t}-wrapper`]:G(G({},Ne(e)),{position:`relative`,display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},[`${t}-checked::after`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:`100%`,height:`100%`,border:`${d}px ${_} ${r}`,borderRadius:`50%`,visibility:`hidden`,animationName:dS,animationDuration:a,animationTimingFunction:s,animationFillMode:`both`,content:`""`},[t]:G(G({},Ne(e)),{position:`relative`,display:`inline-block`,outline:`none`,cursor:`pointer`,alignSelf:`center`}),[`${t}-wrapper:hover &, + &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:G({},xe(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:`visible`},[`${t}-inner`]:{"&::after":{boxSizing:`border-box`,position:`absolute`,insetBlockStart:`50%`,insetInlineStart:`50%`,display:`block`,width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:y?r:b,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:`scale(0)`,opacity:0,transition:`all ${a} ${c}`,content:`""`},boxSizing:`border-box`,position:`relative`,insetBlockStart:0,insetInlineStart:0,display:`block`,width:i,height:i,backgroundColor:l,borderColor:u,borderStyle:`solid`,borderWidth:d,borderRadius:`50%`,transition:`all ${o}`},[`${t}-input`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:`pointer`,opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y?l:r,"&::after":{transform:`scale(${f/i})`,opacity:1,transition:`all ${a} ${c}`}}},[`${t}-disabled`]:{cursor:`not-allowed`,[x]:{backgroundColor:p,borderColor:u,cursor:`not-allowed`,"&::after":{backgroundColor:g}},[`${t}-input`]:{cursor:`not-allowed`},[`${t}-disabled + span`]:{color:m,cursor:`not-allowed`},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${v/i})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},mS=e=>{let{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:c,radioButtonPaddingHorizontal:l,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:h,borderRadius:g,borderRadiusSM:_,borderRadiusLG:v,radioCheckedColor:y,radioButtonCheckedBg:b,radioButtonHoverColor:x,radioButtonActiveColor:S,radioSolidCheckedColor:C,colorTextDisabled:w,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:E,radioDisabledButtonCheckedBg:D}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-i*2}px`,background:d,border:`${i}px ${a} ${o}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:`pointer`,transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:first-child)":{"&::before":{position:`absolute`,insetBlockStart:-i,insetInlineStart:-i,display:`block`,boxSizing:`content-box`,width:1,height:`100%`,paddingBlock:i,paddingInline:0,backgroundColor:o,transition:`background-color ${s}`,content:`""`}},"&:first-child":{borderInlineStart:`${i}px ${a} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:m,paddingInline:h-i,paddingBlock:0,lineHeight:`${m-i*2}px`,"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover":{position:`relative`,color:y},"&:has(:focus-visible)":G({},xe(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:b,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:C,background:y,borderColor:y,"&:hover":{color:C,background:x,borderColor:x},"&:active":{color:C,background:S,borderColor:S}},"&-disabled":{color:w,backgroundColor:T,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:w,backgroundColor:T,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:D,borderColor:o,boxShadow:`none`}}}},hS=Le(`Radio`,e=>{let{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:a,fontSizeLG:o,controlOutline:s,colorPrimaryHover:c,colorPrimaryActive:l,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:p,colorTextLightSolid:m,wireframe:h}=e,g=`0 0 0 ${p}px ${s}`,_=g,v=o,y=v-8,b=h?y:v-(4+n)*2,x=d,S=u,C=c,w=l,T=t-n,E=Fe(e,{radioFocusShadow:g,radioButtonFocusShadow:_,radioSize:v,radioDotSize:b,radioDotDisabledSize:y,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:m,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:S,radioButtonHoverColor:C,radioButtonActiveColor:w,radioButtonPaddingHorizontal:T,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:f});return[fS(E),pS(E),mS(E)]}),gS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i({prefixCls:String,checked:Y(),disabled:Y(),isGroup:Y(),value:J.any,name:String,id:String,autofocus:Y(),onChange:Q(),onFocus:Q(),onBlur:Q(),onClick:Q(),"onUpdate:checked":Q(),"onUpdate:value":Q()}),vS=d({compatConfig:{MODE:3},name:`ARadio`,inheritAttrs:!1,props:_S(),setup(e,t){let{emit:n,expose:r,slots:i,attrs:o}=t,c=sd(),l=ld.useInject(),u=uS(),d=sS(),f=pt(),p=a(()=>_.value??f.value),m=W(),{prefixCls:h,direction:g,disabled:_}=K(`radio`,e),v=a(()=>d?.optionType.value===`button`||u===`button`?`${h.value}-button`:h.value),y=pt(),[b,x]=hS(h);r({focus:()=>{m.value.focus()},blur:()=>{m.value.blur()}});let S=e=>{let t=e.target.checked;n(`update:checked`,t),n(`update:value`,t),n(`change`,e),c.onFieldChange()},C=e=>{n(`change`,e),d&&d.onChange&&d.onChange(e)};return()=>{let t=d,{prefixCls:n,id:r=c.id.value}=e,a=gS(e,[`prefixCls`,`id`]),u=G(G({prefixCls:v.value,id:r},Gn(a,[`onUpdate:checked`,`onUpdate:value`])),{disabled:_.value??y.value});t?(u.name=t.name.value,u.onChange=C,u.checked=e.value===t.value.value,u.disabled=p.value||t.disabled.value):u.onChange=S;let f=Z({[`${v.value}-wrapper`]:!0,[`${v.value}-wrapper-checked`]:u.checked,[`${v.value}-wrapper-disabled`]:u.disabled,[`${v.value}-wrapper-rtl`]:g.value===`rtl`,[`${v.value}-wrapper-in-form-item`]:l.isFormItemInput},o.class,x.value);return b(s(`label`,X(X({},o),{},{class:f}),[s(iS,X(X({},u),{},{type:`radio`,ref:m}),null),i.default&&s(`span`,null,[i.default()])]))}}}),yS=d({compatConfig:{MODE:3},name:`ARadioGroup`,inheritAttrs:!1,props:{prefixCls:String,value:J.any,size:q(),options:vt(),disabled:Y(),name:String,buttonStyle:q(`outline`),id:String,optionType:q(`default`),onChange:Q(),"onUpdate:value":Q()},setup(e,t){let{slots:n,emit:r,attrs:i}=t,o=sd(),{prefixCls:c,direction:l,size:u}=K(`radio`,e),[d,f]=hS(c),p=W(e.value),m=W(!1);return H(()=>e.value,e=>{p.value=e,m.value=!1}),oS({onChange:t=>{let n=p.value,{value:i}=t.target;`value`in e||(p.value=i),!m.value&&i!==n&&(m.value=!0,r(`update:value`,i),r(`change`,t),o.onFieldChange()),x(()=>{m.value=!1})},value:p,disabled:a(()=>e.disabled),name:a(()=>e.name),optionType:a(()=>e.optionType)}),()=>{let{options:t,buttonStyle:r,id:a=o.id.value}=e,m=`${c.value}-group`,h=Z(m,`${m}-${r}`,{[`${m}-${u.value}`]:u.value,[`${m}-rtl`]:l.value===`rtl`},i.class,f.value),g=null;return g=t&&t.length>0?t.map(t=>{if(typeof t==`string`||typeof t==`number`)return s(vS,{key:t,prefixCls:c.value,disabled:e.disabled,value:t,checked:p.value===t},{default:()=>[t]});let{value:n,disabled:r,label:i}=t;return s(vS,{key:`radio-group-value-options-${n}`,prefixCls:c.value,disabled:r||e.disabled,value:n,checked:p.value===n},{default:()=>[i]})}):n.default?.call(n),d(s(`div`,X(X({},i),{},{class:h,id:a}),[g]))}}}),bS=d({compatConfig:{MODE:3},name:`ARadioButton`,inheritAttrs:!1,props:_S(),setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i}=K(`radio`,e);return lS(`button`),()=>s(vS,X(X(X({},r),e),{},{prefixCls:i.value}),{default:()=>[n.default?.call(n)]})}});vS.Group=yS,vS.Button=bS,vS.install=function(e){return e.component(vS.name,vS),e.component(vS.Group.name,vS.Group),e.component(vS.Button.name,vS.Button),e};var xS=vS,SS=10,CS=20;function wS(e){let{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:a,value:o,onChange:c,divRef:l}=e,u=r.getYear(o||r.getNow()),d=u-SS,f=d+CS;n&&(d=r.getYear(n[0]),f=r.getYear(n[1])+1);let p=i&&i.year===`年`?`年`:``,m=[];for(let e=d;e{let t=r.setYear(o,e);if(n){let[e,i]=n,a=r.getYear(t),o=r.getMonth(t);a===r.getYear(i)&&o>r.getMonth(i)&&(t=r.setMonth(t,r.getMonth(i))),a===r.getYear(e)&&ol.value},null)}wS.inheritAttrs=!1;function TS(e){let{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:a,locale:o,onChange:c,divRef:l}=e,u=a.getMonth(i||a.getNow()),d=0,f=11;if(r){let[e,t]=r,n=a.getYear(i);a.getYear(t)===n&&(f=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}let p=o.shortMonths||a.locale.getShortMonths(o.locale),m=[];for(let e=d;e<=f;e+=1)m.push({label:p[e],value:e});return s(ag,{size:n?void 0:`small`,class:`${t}-month-select`,value:u,options:m,onChange:e=>{c(a.setMonth(i,e))},getPopupContainer:()=>l.value},null)}TS.inheritAttrs=!1;function ES(e){let{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:a}=e;return s(yS,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:r,size:i?void 0:`small`,class:`${t}-mode-switch`},{default:()=>[s(bS,{value:`month`},{default:()=>[n.month]}),s(bS,{value:`year`},{default:()=>[n.year]})]})}ES.inheritAttrs=!1;var DS=d({name:`CalendarHeader`,inheritAttrs:!1,props:[`mode`,`prefixCls`,`value`,`validRange`,`generateConfig`,`locale`,`mode`,`fullscreen`],setup(e,t){let{attrs:n}=t,r=W(null),i=ld.useInject();return ld.useProvide(i,{isFormItemInput:!1}),()=>{let t=G(G({},e),n),{prefixCls:i,fullscreen:a,mode:o,onChange:c,onModeChange:l}=t,u=G(G({},t),{fullscreen:a,divRef:r});return s(`div`,{class:`${i}-header`,ref:r},[s(wS,X(X({},u),{},{onChange:e=>{c(e,`year`)}}),null),o===`month`&&s(TS,X(X({},u),{},{onChange:e=>{c(e,`month`)}}),null),s(ES,X(X({},u),{},{onModeChange:l}),null)])}}}),OS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),kS=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),AS=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),jS=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"&:hover":G({},kS(Fe(e,{inputBorderHoverColor:e.colorBorder})))}),MS=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:i}},NS=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),PS=(e,t)=>{let{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:a,colorWarningOutline:o,colorErrorBorderHover:s,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":G({},AS(Fe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:c},"&:focus, &-focused":G({},AS(Fe(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:o}))),[`${n}-prefix`]:{color:i}}}},FS=e=>G(G({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:`none`,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},OS(e.colorTextPlaceholder)),{"&:hover":G({},kS(e)),"&:focus, &-focused":G({},AS(e)),"&-disabled, &[disabled]":G({},jS(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:`transparent`,border:`none`,boxShadow:`none`}},"textarea&":{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}, height 0s`,resize:`vertical`},"&-lg":G({},MS(e)),"&-sm":G({},NS(e)),"&-rtl":{direction:`rtl`},"&-textarea-rtl":{direction:`rtl`}}),IS=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:G({},MS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:G({},NS(e)),[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,textAlign:`center`,backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:`inherit`,border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:`none`}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:`inline-start`,width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:G(G({display:`block`},Ve()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:`inline-block`,float:`none`,verticalAlign:`top`,borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:`inline-flex`},[`& > ${n}-picker-range`]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:`none`},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${n}-select:last-child > ${n}-select-selector, + & > ${n}-cascader-picker:last-child ${t}, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:`normal`},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:`normal`},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},LS=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r}=e,i=(n-r*2-16)/2;return{[t]:G(G(G(G({},Ne(e)),FS(e)),PS(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}}})}},RS=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:`0 !important`,border:`0 !important`,[`${t}-clear-icon`]:{position:`absolute`,insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},zS=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e;return{[`${t}-affix-wrapper`]:G(G(G(G(G({},FS(e)),{display:`inline-flex`,[`&:not(${t}-affix-wrapper-disabled):hover`]:G(G({},kS(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:`transparent`}},[`> input${t}`]:{padding:0,fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,"&:focus":{boxShadow:`none !important`}},"&::before":{width:0,visibility:`hidden`,content:`"\\a0"`},[`${t}`]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),RS(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}}),PS(e,`${t}-affix-wrapper`))}},BS=e=>{let{componentCls:t,colorError:n,colorSuccess:r,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:G(G(G({},Ne(e)),IS(e)),{"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:i}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},VS=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:`rtl`},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function HS(e){return Fe(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}var US=e=>{let{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,i=`${t}-textarea`;return{[i]:{position:`relative`,[`${i}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${i}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:`100%`},"&::after":{color:e.colorTextDescription,whiteSpace:`nowrap`,content:`attr(data-count)`,pointerEvents:`none`,float:`right`}},"&-rtl":{"&::after":{float:`left`}}}}},WS=Le(`Input`,e=>{let t=HS(e);return[LS(t),US(t),zS(t),BS(t),VS(t),Hn(t)]}),GS=(e,t,n,r)=>{let{lineHeight:i}=e,a=Math.floor(n*i)+2,o=Math.max((t-a)/2,0);return{padding:`${o}px ${r}px ${Math.max(t-a-o,0)}px`}},KS=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:i,motionDurationSlow:a,borderRadiusSM:o,motionDurationMid:s,controlItemBgHover:c,lineWidth:l,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:p,controlHeightSM:m,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:g,pickerBasicCellHoverWithRangeColor:_,pickerPanelCellWidth:v,colorTextDisabled:y,colorBgContainerDisabled:b}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:`translateY(-50%)`,transition:`all ${a}`,content:`""`},[r]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:i,height:i,lineHeight:`${i}px`,borderRadius:o,transition:`background ${s}, border ${s}`},[`&:hover:not(${n}-in-view), + &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:c}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${l}px ${u} ${d}`,borderRadius:o,content:`""`}},[`&-in-view${n}-in-range`]:{position:`relative`,"&::before":{background:f}},[`&-in-view${n}-selected ${r}, + &-in-view${n}-range-start ${r}, + &-in-view${n}-range-end ${r}`]:{color:p,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), + &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:`50%`},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:`50%`},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), + &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), + &-in-view${n}-range-hover-start${n}-range-start-single, + &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, + &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, + &-in-view${n}-range-hover-end${n}-range-end-single, + &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:`absolute`,top:`50%`,zIndex:0,height:m,borderTop:`${l}px dashed ${h}`,borderBottom:`${l}px dashed ${h}`,transform:`translateY(-50%)`,transition:`all ${a}`,content:`""`}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:g},[`&-in-view${n}-in-range${n}-range-hover::before, + &-in-view${n}-range-start${n}-range-hover::before, + &-in-view${n}-range-end${n}-range-hover::before, + &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, + &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${n}-in-range${n}-range-hover-start::before, + ${t}-panel + > :not(${t}-date-panel) + &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:_},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:`50%`},[`tr > &-in-view${n}-range-hover:first-child::after, + tr > &-in-view${n}-range-hover-end:first-child::after, + &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, + &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, + &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(v-i)/2,borderInlineStart:`${l}px dashed ${h}`,borderStartStartRadius:l,borderEndStartRadius:l},[`tr > &-in-view${n}-range-hover:last-child::after, + tr > &-in-view${n}-range-hover-start:last-child::after, + &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, + &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, + &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(v-i)/2,borderInlineEnd:`${l}px dashed ${h}`,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:y,pointerEvents:`none`,[r]:{background:`transparent`},"&::before":{background:b}},[`&-disabled${n}-today ${r}::before`]:{borderColor:y}}},qS=e=>{let{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:r,pickerControlIconSize:i,pickerPanelCellWidth:a,paddingSM:o,paddingXS:s,paddingXXS:c,colorBgContainer:l,lineWidth:u,lineType:d,borderRadiusLG:f,colorPrimary:p,colorTextHeading:m,colorSplit:h,pickerControlIconBorderWidth:g,colorIcon:_,pickerTextHeight:v,motionDurationMid:y,colorIconHover:b,fontWeightStrong:x,pickerPanelCellHeight:S,pickerCellPaddingVertical:C,colorTextDisabled:w,colorText:T,fontSize:E,pickerBasicCellHoverWithRangeColor:D,motionDurationSlow:O,pickerPanelWithoutTimeCellHeight:k,pickerQuarterPanelContentHeight:A,colorLink:j,colorLinkActive:M,colorLinkHover:N,pickerDateHoverRangeBorderColor:P,borderRadiusSM:F,colorTextLightSolid:I,borderRadius:L,controlItemBgHover:ee,pickerTimePanelColumnHeight:R,pickerTimePanelColumnWidth:z,pickerTimePanelCellHeight:B,controlItemBgActive:te,marginXXS:V}=e,ne=a*7+o*2+4,re=(ne-s*2)/3-r-o;return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:l,border:`${u}px ${d} ${h}`,borderRadius:f,outline:`none`,"&-focused":{borderColor:p},"&-rtl":{direction:`rtl`,[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:`rotate(-135deg)`}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:`flex`,flexDirection:`column`,width:ne},"&-header":{display:`flex`,padding:`0 ${s}px`,color:m,borderBottom:`${u}px ${d} ${h}`,"> *":{flex:`none`},button:{padding:0,color:_,lineHeight:`${v}px`,background:`transparent`,border:0,cursor:`pointer`,transition:`color ${y}`},"> button":{minWidth:`1.6em`,fontSize:E,"&:hover":{color:b}},"&-view":{flex:`auto`,fontWeight:x,lineHeight:`${v}px`,button:{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:`relative`,display:`inline-block`,width:i,height:i,"&::before":{position:`absolute`,top:0,insetInlineStart:0,display:`inline-block`,width:i,height:i,border:`0 solid currentcolor`,borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:`""`}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:`absolute`,top:Math.ceil(i/2),insetInlineStart:Math.ceil(i/2),display:`inline-block`,width:i,height:i,border:`0 solid currentcolor`,borderBlockStartWidth:g,borderBlockEndWidth:0,borderInlineStartWidth:g,borderInlineEndWidth:0,content:`""`}},"&-prev-icon,\n &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon,\n &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:S,fontWeight:`normal`},th:{height:S+C*2,color:T,verticalAlign:`middle`}},"&-cell":G({padding:`${C}px 0`,color:w,cursor:`pointer`,"&-in-view":{color:T}},KS(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, + &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:`absolute`,top:0,bottom:0,zIndex:-1,background:D,transition:`all ${O}`,content:`""`}},[`&-date-panel + ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start + ${n}::after`]:{insetInlineEnd:-(a-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:`50%`},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:k*4},[n]:{padding:`0 ${s}px`}},"&-quarter-panel":{[`${t}-content`]:{height:A}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${h}`},"&-footer":{width:`min-content`,minWidth:`100%`,lineHeight:`${v-2*u}px`,textAlign:`center`,"&-extra":{padding:`0 ${o}`,lineHeight:`${v-2*u}px`,textAlign:`start`,"&:not(:last-child)":{borderBottom:`${u}px ${d} ${h}`}}},"&-now":{textAlign:`start`},"&-today-btn":{color:j,"&:hover":{color:N},"&:active":{color:M},[`&${t}-today-btn-disabled`]:{color:w,cursor:`not-allowed`}},"&-decade-panel":{[n]:{padding:`0 ${s/2}px`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${s}px`},[n]:{width:r},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:re,borderInlineStart:`${u}px dashed ${P}`,borderStartStartRadius:F,borderBottomStartRadius:F,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:re,borderInlineEnd:`${u}px dashed ${P}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:F,borderBottomEndRadius:F}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:re,borderInlineEnd:`${u}px dashed ${P}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:L,borderEndEndRadius:L,[`${t}-panel-rtl &`]:{insetInlineStart:re,borderInlineStart:`${u}px dashed ${P}`,borderStartStartRadius:L,borderEndStartRadius:L,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${s}px ${o}px`},[`${t}-cell`]:{[`&:hover ${n}, + &-selected ${n}, + ${n}`]:{background:`transparent !important`}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td":{background:ee},"&-selected td,\n &-selected:hover td":{background:p,[`&${t}-cell-week`]:{color:new me(I).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:I},[n]:{color:I}}}},"&-date-panel":{[`${t}-body`]:{padding:`${s}px ${o}px`},[`${t}-content`]:{width:a*7,th:{width:a}}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${h}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,direction:`ltr`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:R},"&-column":{flex:`1 0 auto`,width:z,margin:`${c}px 0`,padding:0,overflowY:`hidden`,textAlign:`start`,listStyle:`none`,transition:`background ${y}`,overflowX:`hidden`,"&::after":{display:`block`,height:R-B,content:`""`},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${h}`},"&-active":{background:new me(te).setAlpha(.2).toHexString()},"&:hover":{overflowY:`auto`},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:`block`,width:z-2*V,height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(z-B)/2,color:T,lineHeight:`${B}px`,borderRadius:F,cursor:`pointer`,transition:`background ${y}`,"&:hover":{background:ee}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:te}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:w,background:`transparent`,cursor:`not-allowed`}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:R-B+c*2}}}},JS=e=>{let{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:i,colorWarning:a,colorWarningOutline:o}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},"&-focused, &:focus":G({},AS(Fe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${t}-active-bar`]:{background:r}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":G({},AS(Fe(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:o}))),[`${t}-active-bar`]:{background:a}}}}},YS=e=>{let{componentCls:t,antCls:n,boxShadowPopoverArrow:r,controlHeight:i,fontSize:a,inputPaddingHorizontal:o,colorBgContainer:s,lineWidth:c,lineType:l,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:p,colorTextDisabled:m,colorTextPlaceholder:h,controlHeightLG:g,fontSizeLG:_,controlHeightSM:v,inputPaddingHorizontalSM:y,paddingXS:b,marginXS:x,colorTextDescription:S,lineWidthBold:C,lineHeight:w,colorPrimary:T,motionDurationSlow:E,zIndexPopup:D,paddingXXS:O,paddingSM:k,pickerTextHeight:A,controlItemBgActive:j,colorPrimaryBorder:M,sizePopupArrow:N,borderRadiusXS:P,borderRadiusOuter:F,colorBgElevated:I,borderRadiusLG:L,boxShadowSecondary:ee,borderRadiusSM:R,colorSplit:z,controlItemBgHover:B,presetsWidth:te,presetsMaxWidth:V}=e;return[{[t]:G(G(G({},Ne(e)),GS(e,i,a,o)),{position:`relative`,display:`inline-flex`,alignItems:`center`,background:s,lineHeight:1,border:`${c}px ${l} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":G({},kS(e)),"&-focused":G({},AS(e)),[`&${t}-disabled`]:{background:p,borderColor:u,cursor:`not-allowed`,[`${t}-suffix`]:{color:m}},[`&${t}-borderless`]:{backgroundColor:`transparent !important`,borderColor:`transparent !important`,boxShadow:`none !important`},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":G(G({},FS(e)),{flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,"&:focus":{boxShadow:`none`},"&[disabled]":{background:`transparent`}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":G(G({},GS(e,g,_,o)),{[`${t}-input > input`]:{fontSize:_}}),"&-small":G({},GS(e,v,a,y)),[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:b/2,color:m,lineHeight:1,pointerEvents:`none`,"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:x}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:m,lineHeight:1,background:s,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:`top`},"&:hover":{color:S}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:_,color:m,fontSize:_,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-clear`]:{insetInlineEnd:o},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-c,height:C,marginInlineStart:o,background:T,opacity:0,transition:`all ${E} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${b}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":G(G(G({},Ne(e)),qS(e)),{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:D,[`&${t}-dropdown-hidden`]:{display:`none`},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ph},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Mh},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Fh},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Nh},[`${t}-panel > ${t}-time-panel`]:{paddingTop:O},[`${t}-ranges`]:{marginBottom:0,padding:`${O}px ${k}px`,overflow:`hidden`,lineHeight:`${A-2*c-b/2}px`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`space-between`,"> li":{display:`inline-block`},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:j,borderColor:M,cursor:`pointer`},[`${t}-ok`]:{marginInlineStart:`auto`}},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:G({position:`absolute`,zIndex:1,display:`none`,marginInlineStart:o*1.5,transition:`left ${E} ease-out`},Ri(N,P,F,I,r)),[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:I,borderRadius:L,boxShadow:ee,transition:`margin ${E}`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:te,maxWidth:V,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:b,borderInlineEnd:`${c}px ${l} ${z}`,li:G(G({},tn),{borderRadius:R,paddingInline:b,paddingBlock:(v-Math.round(a*w))/2,cursor:`pointer`,transition:`all ${E}`,"+ li":{marginTop:x},"&:hover":{background:B}})}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,direction:`ltr`,[`${t}-panel`]:{borderWidth:`0 0 ${c}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:`center`},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`rotate(180deg)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}})},Vh(e,`slide-up`),Vh(e,`slide-down`),jh(e,`move-up`),jh(e,`move-down`)]},XS=e=>{let{componentCls:t,controlHeightLG:n,controlHeightSM:r,colorPrimary:i,paddingXXS:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new me(i).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new me(i).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:n*1.65,pickerYearMonthCellWidth:n*1.5,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:n*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:n*1.4,pickerCellPaddingVertical:a,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},ZS=Le(`DatePicker`,e=>{let t=Fe(HS(e),XS(e));return[YS(t),JS(t),Hn(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),QS=e=>{let{calendarCls:t,componentCls:n,calendarFullBg:r,calendarFullPanelBg:i,calendarItemActiveBg:a}=e;return{[t]:G(G(G({},qS(e)),Ne(e)),{background:r,"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,justifyContent:`flex-end`,padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:i,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:`auto`},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:`100%`}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:`auto`,padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:`none`}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:`block`,width:`100%`,textAlign:`end`,background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:`auto`,paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:`none`},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:`none`},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:a}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:`block`,width:`auto`,height:`auto`,margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:`static`,width:`auto`,height:e.dateContentHeight,overflowY:`auto`,color:e.colorText,lineHeight:e.lineHeight,textAlign:`start`},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:`block`,[`${t}-year-select`]:{width:`50%`},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:`100%`,marginTop:e.marginXS,marginInlineStart:0,"> label":{width:`50%`,textAlign:`center`}}}}}}},$S=Le(`Calendar`,e=>{let t=`${e.componentCls}-calendar`;return[QS(Fe(HS(e),XS(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2}))]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function eC(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,r){return t(n,r)&&e.getMonth(n)===e.getMonth(r)}function r(t,r){return n(t,r)&&e.getDate(t)===e.getDate(r)}let i=d({name:`ACalendar`,inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(i,o){let{emit:c,slots:l,attrs:u}=o,d=i,{prefixCls:f,direction:p}=K(`picker`,d),[m,h]=$S(f),g=a(()=>`${f.value}-calendar`),_=t=>d.valueFormat?e.toString(t,d.valueFormat):t,v=a(()=>d.value?d.valueFormat?e.toDate(d.value,d.valueFormat):d.value:d.value===``?void 0:d.value),[b,x]=zu(()=>v.value||e.getNow(),{defaultValue:a(()=>d.defaultValue?d.valueFormat?e.toDate(d.defaultValue,d.valueFormat):d.defaultValue:d.defaultValue===``?void 0:d.defaultValue).value,value:v}),[S,C]=zu(`month`,{value:y(d,`mode`)}),w=a(()=>S.value===`year`?`month`:`date`),T=a(()=>t=>(d.validRange?e.isAfter(d.validRange[0],t)||e.isAfter(t,d.validRange[1]):!1)||!!d.disabledDate?.call(d,t)),E=(e,t)=>{c(`panelChange`,_(e),t)},D=e=>{if(x(e),!r(e,b.value)){(w.value===`date`&&!n(e,b.value)||w.value===`month`&&!t(e,b.value))&&E(e,S.value);let r=_(e);c(`update:value`,r),c(`change`,r)}},O=e=>{C(e),E(b.value,e)},k=(e,t)=>{D(e),c(`select`,_(e),{source:t})},A=a(()=>{let{locale:e}=d,t=G(G({},dt),e);return t.lang=G(G({},t.lang),(e||{}).lang),t}),[j]=Ft(`Calendar`,A);return()=>{let t=e.getNow(),{dateFullCellRender:i=l?.dateFullCellRender,dateCellRender:a=l?.dateCellRender,monthFullCellRender:o=l?.monthFullCellRender,monthCellRender:c=l?.monthCellRender,headerRender:_=l?.headerRender,fullscreen:v=!0,validRange:y}=d,x=n=>{let{current:o}=n;return i?i({current:o}):s(`div`,{class:Z(`${f.value}-cell-inner`,`${g.value}-date`,{[`${g.value}-date-today`]:r(t,o)})},[s(`div`,{class:`${g.value}-date-value`},[String(e.getDate(o)).padStart(2,`0`)]),s(`div`,{class:`${g.value}-date-content`},[a&&a({current:o})])])},C=(r,i)=>{let{current:a}=r;if(o)return o({current:a});let l=i.shortMonths||e.locale.getShortMonths(i.locale);return s(`div`,{class:Z(`${f.value}-cell-inner`,`${g.value}-date`,{[`${g.value}-date-today`]:n(t,a)})},[s(`div`,{class:`${g.value}-date-value`},[l[e.getMonth(a)]]),s(`div`,{class:`${g.value}-date-content`},[c&&c({current:a})])])};return m(s(`div`,X(X({},u),{},{class:Z(g.value,{[`${g.value}-full`]:v,[`${g.value}-mini`]:!v,[`${g.value}-rtl`]:p.value===`rtl`},u.class,h.value)}),[_?_({value:b.value,type:S.value,onChange:e=>{k(e,`customize`)},onTypeChange:O}):s(DS,{prefixCls:g.value,value:b.value,generateConfig:e,mode:S.value,fullscreen:v,locale:j.value.lang,validRange:y,onChange:k,onModeChange:O},null),s(Ex,{value:b.value,prefixCls:f.value,locale:j.value.lang,generateConfig:e,dateRender:x,monthCellRender:e=>C(e,j.value.lang),onSelect:e=>{k(e,w.value)},mode:w.value,picker:w.value,disabledDate:T.value,hideHeader:!0},null)]))}}});return i.install=function(e){return e.component(i.name,i),e},i}var tC=eC(Xy),nC=be(tC);function rC(e){let t=M(),n=M(!1);function r(){var r=[...arguments];n.value||(Rn.cancel(t.value),t.value=Rn(()=>{e(...r)}))}return p(()=>{n.value=!0,Rn.cancel(t.value)}),r}function iC(e){let t=M([]),n=M(typeof e==`function`?e():e),r=rC(()=>{let e=n.value;t.value.forEach(t=>{e=t(e)}),t.value=[],n.value=e});function i(e){t.value.push(e),r()}return[n,i]}var aC=d({compatConfig:{MODE:3},name:`TabNode`,props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:[`click`,`resize`,`remove`,`focus`],setup(e,t){let{expose:n,attrs:r}=t,i=W();function o(t){e.tab?.disabled||e.onClick(t)}n({domRef:i});function c(t){t.preventDefault(),t.stopPropagation(),e.editable.onEdit(`remove`,{key:e.tab?.key,event:t})}let l=a(()=>e.editable&&e.closable!==!1&&!e.tab?.disabled);return()=>{let{prefixCls:t,id:n,active:a,tab:{key:u,tab:d,disabled:f,closeIcon:p},renderWrapper:m,removeAriaLabel:h,editable:g,onFocus:_}=e,v=`${t}-tab`,y=s(`div`,{key:u,ref:i,class:Z(v,{[`${v}-with-remove`]:l.value,[`${v}-active`]:a,[`${v}-disabled`]:f}),style:r.style,onClick:o},[s(`div`,{role:`tab`,"aria-selected":a,id:n&&`${n}-tab-${u}`,class:`${v}-btn`,"aria-controls":n&&`${n}-panel-${u}`,"aria-disabled":f,tabindex:f?null:0,onClick:e=>{e.stopPropagation(),o(e)},onKeydown:e=>{[$.SPACE,$.ENTER].includes(e.which)&&(e.preventDefault(),o(e))},onFocus:_},[typeof d==`function`?d():d]),l.value&&s(`button`,{type:`button`,"aria-label":h||`remove`,tabindex:0,class:`${v}-remove`,onClick:e=>{e.stopPropagation(),c(e)}},[p?.()||g.removeIcon?.call(g)||`×`])]);return m?m(y):y}}}),oC={width:0,height:0,left:0,top:0};function sC(e,t){let n=W(new Map);return P(()=>{let r=new Map,i=e.value,a=t.value.get(i[0]?.key)||oC,o=a.left+a.width;for(let e=0;e{let{prefixCls:t,editable:n,locale:a}=e;return!n||n.showAdd===!1?null:s(`button`,{ref:i,type:`button`,class:`${t}-nav-add`,style:r.style,"aria-label":a?.addAriaLabel||`Add tab`,onClick:e=>{n.onEdit(`add`,{event:e})}},[n.addIcon?n.addIcon():`+`])}}}),lC={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:J.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Q()},uC=d({compatConfig:{MODE:3},name:`OperationNode`,inheritAttrs:!1,props:lC,emits:[`tabClick`],slots:Object,setup(e,t){let{attrs:n,slots:r}=t,[i,o]=dn(!1),[c,l]=dn(null),u=t=>{let n=e.tabs.filter(e=>!e.disabled),r=n.findIndex(e=>e.key===c.value)||0,i=n.length;for(let e=0;e{let{which:n}=t;if(!i.value){[$.DOWN,$.SPACE,$.ENTER].includes(n)&&(o(!0),t.preventDefault());return}switch(n){case $.UP:u(-1),t.preventDefault();break;case $.DOWN:u(1),t.preventDefault();break;case $.ESC:o(!1);break;case $.SPACE:case $.ENTER:c.value!==null&&e.onTabClick(c.value,t)}},f=a(()=>`${e.id}-more-popup`),p=a(()=>c.value===null?null:`${f.value}-${c.value}`),m=(t,n)=>{t.preventDefault(),t.stopPropagation(),e.editable.onEdit(`remove`,{key:n,event:t})};return D(()=>{H(c,()=>{let e=document.getElementById(p.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)},{flush:`post`,immediate:!0})}),H(i,()=>{i.value||l(null)}),pv({}),()=>{let{prefixCls:t,id:a,tabs:l,locale:u,mobile:h,moreIcon:g=r.moreIcon?.call(r)||s($_,null,null),moreTransitionName:_,editable:v,tabBarGutter:y,rtl:b,onTabClick:x,popupClassName:S}=e;if(!l.length)return null;let C=`${t}-dropdown`,w=u?.dropdownAriaLabel,T={[b?`marginRight`:`marginLeft`]:y};l.length||(T.visibility=`hidden`,T.order=1);let E=Z({[`${C}-rtl`]:b,[`${S}`]:!0}),D=h?null:s(K_,{prefixCls:C,trigger:[`hover`],visible:i.value,transitionName:_,onVisibleChange:o,overlayClassName:E,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>s(vy,{onClick:e=>{let{key:t,domEvent:n}=e;x(t,n),o(!1)},id:f.value,tabindex:-1,role:`listbox`,"aria-activedescendant":p.value,selectedKeys:[c.value],"aria-label":w===void 0?`expanded dropdown`:w},{default:()=>[l.map(t=>{let n=v&&t.closable!==!1&&!t.disabled;return s(Bv,{key:t.key,id:`${f.value}-${t.key}`,role:`option`,"aria-controls":a&&`${a}-panel-${t.key}`,disabled:t.disabled},{default:()=>[s(`span`,null,[typeof t.tab==`function`?t.tab():t.tab]),n&&s(`button`,{type:`button`,"aria-label":e.removeAriaLabel||`remove`,tabindex:0,class:`${C}-menu-item-remove`,onClick:e=>{e.stopPropagation(),m(e,t.key)}},[t.closeIcon?.call(t)||v.removeIcon?.call(v)||`×`])]})})]}),default:()=>s(`button`,{type:`button`,class:`${t}-nav-more`,style:T,tabindex:-1,"aria-hidden":`true`,"aria-haspopup":`listbox`,"aria-controls":f.value,id:`${a}-more`,"aria-expanded":i.value,onKeydown:d},[g])});return s(`div`,{class:Z(`${t}-nav-operations`,n.class),style:n.style},[D,s(cC,{prefixCls:t,locale:u,editable:v},null)])}}}),dC=Symbol(`tabsContextKey`),fC=t=>{e(dC,t)},pC=()=>C(dC,{tabs:W([]),prefixCls:W()});d({compatConfig:{MODE:3},name:`TabsContextProvider`,inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:n}=t;return fC(i(e)),()=>n.default?.call(n)}});var mC=.1,hC=.01,gC=20,_C=.995**gC;function vC(e,t){let[n,r]=dn(),[i,a]=dn(0),[o,s]=dn(0),[c,l]=dn(),u=W();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),clearInterval(u.value)}function f(e){if(!n.value)return;e.preventDefault();let{screenX:o,screenY:c}=e.touches[0],u=o-n.value.x,d=c-n.value.y;t(u,d),r({x:o,y:c});let f=Date.now();s(f-i.value),a(f),l({x:u,y:d})}function m(){if(!n.value)return;let e=c.value;if(r(null),l(null),e){let n=e.x/o.value,r=e.y/o.value;if(Math.max(Math.abs(n),Math.abs(r)){if(Math.abs(i)o?(i=n,h.value=`x`):(i=r,h.value=`y`),t(-i,-i)&&e.preventDefault()}let _=W({onTouchStart:d,onTouchMove:f,onTouchEnd:m,onWheel:g});function v(e){_.value.onTouchStart(e)}function y(e){_.value.onTouchMove(e)}function b(e){_.value.onTouchEnd(e)}function x(e){_.value.onWheel(e)}D(()=>{var t,n;document.addEventListener(`touchmove`,y,{passive:!1}),document.addEventListener(`touchend`,b,{passive:!1}),(t=e.value)==null||t.addEventListener(`touchstart`,v,{passive:!1}),(n=e.value)==null||n.addEventListener(`wheel`,x,{passive:!1})}),p(()=>{document.removeEventListener(`touchmove`,y),document.removeEventListener(`touchend`,b)})}function yC(e,t){let n=W(e);function r(e){let r=typeof e==`function`?e(n.value):e;r!==n.value&&t(r,n.value),n.value=r}return[n,r]}var bC=()=>{let e=W(new Map);return V(()=>{e.value=new Map}),[t=>n=>{e.value.set(t,n)},e]},xC={width:0,height:0,left:0,top:0,right:0},SC=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:ut(),editable:ut(),moreIcon:J.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:ut(),popupClassName:String,getPopupContainer:Q(),onTabClick:{type:Function},onTabScroll:{type:Function}}),CC=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,x:c,y:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.x,l-t.y]:[n,r,a,i]},wC=d({compatConfig:{MODE:3},name:`TabNavList`,inheritAttrs:!1,props:SC(),slots:Object,emits:[`tabClick`,`tabScroll`],setup(e,t){let{attrs:n,slots:r}=t,{tabs:i,prefixCls:o}=pC(),c=M(),l=M(),u=M(),d=M(),[f,m]=bC(),h=a(()=>e.tabPosition===`top`||e.tabPosition===`bottom`),[g,_]=yC(0,(t,n)=>{h.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?`left`:`right`})}),[v,y]=yC(0,(t,n)=>{!h.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?`top`:`bottom`})}),[b,x]=dn(0),[S,C]=dn(0),[w,T]=dn(null),[E,D]=dn(null),[O,k]=dn(0),[A,j]=dn(0),[N,F]=iC(new Map),I=sC(i,N),L=a(()=>`${o.value}-nav-operations-hidden`),ee=M(0),R=M(0);P(()=>{h.value?e.rtl?(ee.value=0,R.value=Math.max(0,b.value-w.value)):(ee.value=Math.min(0,w.value-b.value),R.value=0):(ee.value=Math.min(0,E.value-S.value),R.value=0)});let z=e=>eR.value?R.value:e,B=M(),[te,V]=dn(),ne=()=>{V(Date.now())},re=()=>{clearTimeout(B.value)},U=(e,t)=>{e(e=>z(e+t))};vC(c,(e,t)=>{if(h.value){if(w.value>=b.value)return!1;U(_,e)}else{if(E.value>=S.value)return!1;U(y,t)}return re(),ne(),!0}),H(te,()=>{re(),te.value&&(B.value=setTimeout(()=>{V(0)},100))});let ie=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey,n=I.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(h.value){let t=g.value;e.rtl?n.rightg.value+w.value&&(t=n.right+n.width-w.value):n.left<-g.value?t=-n.left:n.left+n.width>-g.value+w.value&&(t=-(n.left+n.width-w.value)),y(0),_(z(t))}else{let e=v.value;n.top<-v.value?e=-n.top:n.top+n.height>-v.value+E.value&&(e=-(n.top+n.height-E.value)),_(0),y(z(e))}},W=M(0),ae=M(0);P(()=>{let t,n,r,a,o,s,c=I.value;[`top`,`bottom`].includes(e.tabPosition)?(t=`width`,a=w.value,o=b.value,s=O.value,n=e.rtl?`right`:`left`,r=Math.abs(g.value)):(t=`height`,a=E.value,o=b.value,s=A.value,n=`top`,r=-v.value);let l=a;o+s>a&&or+l){f=e-1;break}}let p=0;for(let e=d-1;e>=0;--e)if((c.get(u[e].key)||xC)[n]{F(()=>{let e=new Map,t=l.value?.getBoundingClientRect();return i.value.forEach(n=>{let{key:r}=n,i=m.value.get(r),a=i?.$el||i;if(a){let[n,i,o,s]=CC(a,t);e.set(r,{width:n,height:i,left:o,top:s})}}),e})};H(()=>i.value.map(e=>e.key).join(`%%`),()=>{oe()},{flush:`post`});let se=()=>{let e=c.value?.offsetWidth||0,t=c.value?.offsetHeight||0,n=d.value?.$el||{},r=n.offsetWidth||0,i=n.offsetHeight||0;T(e),D(t),k(r),j(i);let a=(l.value?.offsetWidth||0)-r,o=(l.value?.offsetHeight||0)-i;x(a),C(o),oe()},ce=a(()=>[...i.value.slice(0,W.value),...i.value.slice(ae.value+1)]),[le,ue]=dn(),de=a(()=>I.value.get(e.activeKey)),fe=M(),pe=()=>{Rn.cancel(fe.value)};H([de,h,()=>e.rtl],()=>{let t={};de.value&&(h.value?(e.rtl?t.right=We(de.value.right):t.left=We(de.value.left),t.width=We(de.value.width)):(t.top=We(de.value.top),t.height=We(de.value.height))),pe(),fe.value=Rn(()=>{ue(t)})}),H([()=>e.activeKey,de,I,h],()=>{ie()},{flush:`post`}),H([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{se()},{flush:`post`});let me=e=>{let{position:t,prefixCls:n,extra:r}=e;if(!r)return null;let i=r?.({position:t});return i?s(`div`,{class:`${n}-extra-content`},[i]):null};return p(()=>{re(),pe()}),()=>{let{id:t,animated:a,activeKey:p,rtl:m,editable:_,locale:y,tabPosition:x,tabBarGutter:C,onTabClick:T}=e,{class:D,style:O}=n,k=o.value,A=!!ce.value.length,j=`${k}-nav-wrap`,M,N,P,F;h.value?m?(N=g.value>0,M=g.value+w.value{let{key:i}=e;return s(aC,{id:t,prefixCls:k,key:i,tab:e,style:n===0?void 0:I,closable:e.closable,editable:_,active:i===p,removeAriaLabel:y?.removeAriaLabel,ref:f(i),onClick:e=>{T(i,e)},onFocus:()=>{ie(i),ne(),c.value&&(m||(c.value.scrollLeft=0),c.value.scrollTop=0)}},r)});return s(`div`,{role:`tablist`,class:Z(`${k}-nav`,D),style:O,onKeydown:()=>{ne()}},[s(me,{position:`left`,prefixCls:k,extra:r.leftExtra},null),s(pi,{onResize:se},{default:()=>[s(`div`,{class:Z(j,{[`${j}-ping-left`]:M,[`${j}-ping-right`]:N,[`${j}-ping-top`]:P,[`${j}-ping-bottom`]:F}),ref:c},[s(pi,{onResize:se},{default:()=>[s(`div`,{ref:l,class:`${k}-nav-list`,style:{transform:`translate(${g.value}px, ${v.value}px)`,transition:te.value?`none`:void 0}},[ee,s(cC,{ref:d,prefixCls:k,locale:y,editable:_,style:G(G({},ee.length===0?void 0:I),{visibility:A?`hidden`:null})},null),s(`div`,{class:Z(`${k}-ink-bar`,{[`${k}-ink-bar-animated`]:a.inkBar}),style:le.value},null)])]})])]}),s(uC,X(X({},e),{},{removeAriaLabel:y?.removeAriaLabel,ref:u,prefixCls:k,tabs:ce.value,class:!A&&L.value}),yh(r,[`moreIcon`])),s(me,{position:`right`,prefixCls:k,extra:r.rightExtra},null),s(me,{position:`right`,prefixCls:k,extra:r.tabBarExtraContent},null)])}}}),TC=d({compatConfig:{MODE:3},name:`TabPanelList`,inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){let{tabs:t,prefixCls:n}=pC();return()=>{let{id:r,activeKey:i,animated:a,tabPosition:o,rtl:c,destroyInactiveTabPane:l}=e,u=a.tabPane,d=n.value,f=t.value.findIndex(e=>e.key===i);return s(`div`,{class:`${d}-content-holder`},[s(`div`,{class:[`${d}-content`,`${d}-content-${o}`,{[`${d}-content-animated`]:u}],style:f&&u?{[c?`marginRight`:`marginLeft`]:`-${f}00%`}:null},[t.value.map(e=>on(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:r,animated:u,active:e.key===i,destroyInactiveTabPane:l}))])])}}}),EC=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Vh(e,`slide-up`),Vh(e,`slide-down`)]]},DC=e=>{let{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},OC=e=>{let{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:G(G({},Ne(e)),{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":G(G({},tn),{display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}})}})}},kC=e=>{let{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},AC=e=>{let{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},jC=e=>{let{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:a}=e,o=`${t}-tab`;return{[o]:{position:`relative`,display:`inline-flex`,alignItems:`center`,padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,"&-btn, &-remove":G({"&:focus:not(:focus-visible), &:active":{color:n}},De(e)),"&-btn":{outline:`none`,transition:`all 0.3s`},"&-remove":{flex:`none`,marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${o}-active ${o}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${o}-disabled ${o}-btn, &${o}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${o}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${o} + ${o}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},MC=e=>{let{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},NC=e=>{let{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:a,tabsActiveColor:o,colorSplit:s}=e;return{[t]:G(G(G(G({},Ne(e)),{display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:G({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:`transparent`,border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},De(e))},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.colorPrimary,pointerEvents:`none`}}),jC(e)),{[`${t}-content`]:{position:`relative`,display:`flex`,width:`100%`,"&-animated":{transition:`margin 0.3s`}},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:`none`,flex:`none`,width:`100%`}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:`center`}}}}}},PC=Le(`Tabs`,e=>{let t=e.controlHeightLG,n=Fe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:`0 0 0.25px currentcolor`,tabsDropdownHeight:200,tabsDropdownWidth:120});return[AC(n),MC(n),kC(n),OC(n),DC(n),NC(n),EC(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),FC=0,IC=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Q(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:q(),animated:$t([Boolean,Object]),renderTabBar:Q(),tabBarGutter:{type:Number},tabBarStyle:ut(),tabPosition:q(),destroyInactiveTabPane:Y(),hideAdd:Boolean,type:q(),size:q(),centered:Boolean,onEdit:Q(),onChange:Q(),onTabClick:Q(),onTabScroll:Q(),"onUpdate:activeKey":Q(),locale:ut(),onPrevClick:Q(),onNextClick:Q(),tabBarExtraContent:J.any});function LC(e){return e.map(e=>{if(Xe(e)){let t=G({},e.props||{});for(let[e,n]of Object.entries(t))delete t[e],t[Ae(e)]=n;let n=e.children||{},r=e.key===void 0?void 0:e.key,{tab:i=n.tab,disabled:a,forceRender:o,closable:s,animated:c,active:l,destroyInactiveTabPane:u}=t;return G(G({key:r},t),{node:e,closeIcon:n.closeIcon,tab:i,disabled:a===``||a,forceRender:o===``||o,closable:s===``||s,animated:c===``||c,active:l===``||l,destroyInactiveTabPane:u===``||u})}return null}).filter(e=>e)}var RC=d({compatConfig:{MODE:3},name:`InternalTabs`,inheritAttrs:!1,props:G(G({},Vn(IC(),{tabPosition:`top`,animated:{inkBar:!0,tabPane:!1}})),{tabs:vt()}),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;ir(e.onPrevClick===void 0&&e.onNextClick===void 0,`Tabs`,"`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),ir(e.tabBarExtraContent===void 0,`Tabs`,"`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),ir(r.tabBarExtraContent===void 0,`Tabs`,"`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");let{prefixCls:i,direction:o,size:c,rootPrefixCls:l,getPopupContainer:u}=K(`tabs`,e),[d,f]=PC(i),p=a(()=>o.value===`rtl`),m=a(()=>{let{animated:t,tabPosition:n}=e;return t===!1||[`left`,`right`].includes(n)?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:G({inkBar:!0,tabPane:!1},typeof t==`object`?t:{})}),[h,g]=dn(!1);D(()=>{g(ql())});let[_,v]=zu(()=>e.tabs[0]?.key,{value:a(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,b]=dn(()=>e.tabs.findIndex(e=>e.key===_.value));P(()=>{let t=e.tabs.findIndex(e=>e.key===_.value);t===-1&&(t=Math.max(0,Math.min(y.value,e.tabs.length-1)),v(e.tabs[t]?.key)),b(t)});let[x,S]=zu(null,{value:a(()=>e.id)}),C=a(()=>h.value&&![`left`,`right`].includes(e.tabPosition)?`top`:e.tabPosition);D(()=>{e.id||(S(`rc-tabs-${FC}`),FC+=1)});let w=(t,n)=>{var r,i;(r=e.onTabClick)==null||r.call(e,t,n);let a=t!==_.value;v(t),a&&((i=e.onChange)==null||i.call(e,t))};return fC({tabs:a(()=>e.tabs),prefixCls:i}),()=>{let{id:t,type:a,tabBarGutter:o,tabBarStyle:g,locale:v,destroyInactiveTabPane:y,renderTabBar:b=r.renderTabBar,onTabScroll:S,hideAdd:T,centered:E}=e,D={id:x.value,activeKey:_.value,animated:m.value,tabPosition:C.value,rtl:p.value,mobile:h.value},O;a===`editable-card`&&(O={onEdit:(t,n)=>{let{key:r,event:i}=n;var a;(a=e.onEdit)==null||a.call(e,t===`add`?i:r,t)},removeIcon:()=>s(_t,null,null),addIcon:r.addIcon?r.addIcon:()=>s(gr,null,null),showAdd:T!==!0});let k,A=G(G({},D),{moreTransitionName:`${l.value}-slide-up`,editable:O,locale:v,tabBarGutter:o,onTabClick:w,onTabScroll:S,style:g,getPopupContainer:u.value,popupClassName:Z(e.popupClassName,f.value)});k=b?b(G(G({},A),{DefaultTabBar:wC})):s(wC,A,yh(r,[`moreIcon`,`leftExtra`,`rightExtra`,`tabBarExtraContent`]));let j=i.value;return d(s(`div`,X(X({},n),{},{id:t,class:Z(j,`${j}-${C.value}`,{[f.value]:!0,[`${j}-${c.value}`]:c.value,[`${j}-card`]:[`card`,`editable-card`].includes(a),[`${j}-editable-card`]:a===`editable-card`,[`${j}-centered`]:E,[`${j}-mobile`]:h.value,[`${j}-editable`]:a===`editable-card`,[`${j}-rtl`]:p.value},n.class)}),[k,s(TC,X(X({destroyInactiveTabPane:y},D),{},{animated:m.value}),null)]))}}}),zC=d({compatConfig:{MODE:3},name:`ATabs`,inheritAttrs:!1,props:Vn(IC(),{tabPosition:`top`,animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i}=t,a=e=>{i(`update:activeKey`,e),i(`change`,e)};return()=>{let t=LC(pe(r.default?.call(r)));return s(RC,X(X(X({},Gn(e,[`onUpdate:activeKey`])),n),{},{onChange:a,tabs:t}),r)}}}),BC=d({compatConfig:{MODE:3},name:`ATabPane`,inheritAttrs:!1,__ANT_TAB_PANE:!0,props:{tab:J.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}},slots:Object,setup(e,t){let{attrs:n,slots:r}=t,i=W(e.forceRender);H([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});let o=a(()=>e.active?{}:e.animated?{visibility:`hidden`,height:0,overflowY:`hidden`}:{display:`none`});return()=>{let{prefixCls:t,forceRender:a,id:c,active:l,tabKey:u}=e;return s(`div`,{id:c&&`${c}-panel-${u}`,role:`tabpanel`,tabindex:l?0:-1,"aria-labelledby":c&&`${c}-tab-${u}`,"aria-hidden":!l,style:[o.value,n.style],class:[`${t}-tabpane`,l&&`${t}-tabpane-active`,n.class]},[(l||i.value||a)&&r.default?.call(r)])}}}),VC=zC;VC.TabPane=BC,VC.install=function(e){return e.component(VC.name,VC),e.component(BC.name,BC),e};var HC=VC,UC=e=>{let{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:i,cardHeadTabsMarginBottom:a}=e;return G(G({display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${i}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:`transparent`,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},Ve()),{"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":G(G({display:`inline-block`,flex:1},tn),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},WC=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:` + ${i}px 0 0 0 ${n}, + 0 ${i}px 0 0 ${n}, + ${i}px ${i}px 0 0 ${n}, + ${i}px 0 0 0 ${n} inset, + 0 ${i}px 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},GC=e=>{let{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a}=e;return G(G({margin:0,padding:0,listStyle:`none`,background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},Ve()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:`${i*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},KC=e=>G(G({margin:`-${e.marginXXS}px 0`,display:`flex`},Ve()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":G({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},tn),"&-description":{color:e.colorTextDescription}}),qC=e=>{let{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},JC=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},YC=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadow:a,cardPaddingBase:o}=e;return{[t]:G(G({},Ne(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:UC(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:``,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:G({padding:o,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},Ve()),[`${t}-grid`]:WC(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:GC(e),[`${t}-meta`]:KC(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:qC(e),[`${t}-loading`]:JC(e),[`${t}-rtl`]:{direction:`rtl`}}},XC=e=>{let{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:`flex`,alignItems:`center`}}}}},ZC=Le(`Card`,e=>{let t=Fe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[YC(t),XC(t)]}),QC=d({compatConfig:{MODE:3},name:`SkeletonTitle`,props:{prefixCls:String,width:{type:[Number,String]}},setup(e){return()=>{let{prefixCls:t,width:n}=e,r=typeof n==`number`?`${n}px`:n;return s(`h3`,{class:t,style:{width:r}},null)}}}),$C=d({compatConfig:{MODE:3},name:`SkeletonParagraph`,props:{prefixCls:String,width:{type:[Number,String,Array]},rows:Number},setup(e){let t=t=>{let{width:n,rows:r=2}=e;if(Array.isArray(n))return n[t];if(r-1===t)return n};return()=>{let{prefixCls:n,rows:r}=e,i=[...Array(r)].map((e,n)=>{let r=t(n);return s(`li`,{key:n,style:{width:typeof r==`number`?`${r}px`:r}},null)});return s(`ul`,{class:n},[i])}}}),ew=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),tw=e=>{let{prefixCls:t,size:n,shape:r}=e,i=Z({[`${t}-lg`]:n===`large`,[`${t}-sm`]:n===`small`}),a=Z({[`${t}-circle`]:r===`circle`,[`${t}-square`]:r===`square`,[`${t}-round`]:r===`round`}),o=typeof n==`number`?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return s(`span`,{class:Z(t,i,a),style:o},null)};tw.displayName=`SkeletonElement`;var nw=new Te(`ant-skeleton-loading`,{"0%":{transform:`translateX(-37.5%)`},"100%":{transform:`translateX(37.5%)`}}),rw=e=>({height:e,lineHeight:`${e}px`}),iw=e=>G({width:e},rw(e)),aw=e=>({position:`relative`,zIndex:0,overflow:`hidden`,background:`transparent`,"&::after":{position:`absolute`,top:0,insetInlineEnd:`-150%`,bottom:0,insetInlineStart:`-150%`,background:e.skeletonLoadingBackground,animationName:nw,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`,content:`""`}}),ow=e=>G({width:e*5,minWidth:e*5},rw(e)),sw=e=>{let{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[`${t}`]:G({display:`inline-block`,verticalAlign:`top`,background:n},iw(r)),[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:G({},iw(i)),[`${t}${t}-sm`]:G({},iw(a))}},cw=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return{[`${r}`]:G({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n},ow(t)),[`${r}-lg`]:G({},ow(i)),[`${r}-sm`]:G({},ow(a))}},lw=e=>G({width:e},rw(e)),uw=e=>{let{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:i}=e;return{[`${t}`]:G(G({display:`flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`top`,background:r,borderRadius:i},lw(n*2)),{[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:G(G({},lw(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}}),[`${t}${t}-circle`]:{borderRadius:`50%`}}},dw=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},fw=e=>G({width:e*2,minWidth:e*2},rw(e)),pw=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,color:o}=e;return G(G(G(G(G({[`${n}`]:G({display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:r*2,minWidth:r*2},fw(r))},dw(e,r,n)),{[`${n}-lg`]:G({},fw(i))}),dw(e,i,`${n}-lg`)),{[`${n}-sm`]:G({},fw(a))}),dw(e,a,`${n}-sm`))},mw=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonImageCls:s,controlHeight:c,controlHeightLG:l,controlHeightSM:u,color:d,padding:f,marginSM:p,borderRadius:m,skeletonTitleHeight:h,skeletonBlockRadius:g,skeletonParagraphLineHeight:_,controlHeightXS:v,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:f,verticalAlign:`top`,[`${n}`]:G({display:`inline-block`,verticalAlign:`top`,background:d},iw(c)),[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:G({},iw(l)),[`${n}-sm`]:G({},iw(u))},[`${t}-content`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[`${r}`]:{width:`100%`,height:h,background:d,borderRadius:g,[`+ ${i}`]:{marginBlockStart:u}},[`${i}`]:{padding:0,"> li":{width:`100%`,height:_,listStyle:`none`,background:d,borderRadius:g,"+ li":{marginBlockStart:v}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:G(G(G(G({display:`inline-block`,width:`auto`},pw(e)),sw(e)),cw(e)),uw(e)),[`${t}${t}-block`]:{width:`100%`,[`${a}`]:{width:`100%`},[`${o}`]:{width:`100%`}},[`${t}${t}-active`]:{[` + ${r}, + ${i} > li, + ${n}, + ${a}, + ${o}, + ${s} + `]:G({},aw(e))}}},hw=Le(`Skeleton`,e=>{let{componentCls:t}=e;return[mw(Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))]},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),gw=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function _w(e){return e&&typeof e==`object`?e:{}}function vw(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function yw(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function bw(e,t){let n={};return(!e||!t)&&(n.width=`61%`),n.rows=!e&&t?3:2,n}var xw=d({compatConfig:{MODE:3},name:`ASkeleton`,props:Vn(gw(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t,{prefixCls:r,direction:i}=K(`skeleton`,e),[a,o]=hw(r);return()=>{let{loading:t,avatar:c,title:l,paragraph:u,active:d,round:f}=e,p=r.value;if(t||e.loading===void 0){let e=!!c||c===``,t=!!l||l===``,n=!!u||u===``,r;if(e){let e=G(G({prefixCls:`${p}-avatar`},vw(t,n)),_w(c));r=s(`div`,{class:`${p}-header`},[s(tw,e,null)])}let m;if(t||n){let r;if(t){let t=G(G({prefixCls:`${p}-title`},yw(e,n)),_w(l));r=s(QC,t,null)}let i;if(n){let n=G(G({prefixCls:`${p}-paragraph`},bw(e,t)),_w(u));i=s($C,n,null)}m=s(`div`,{class:`${p}-content`},[r,i])}let h=Z(p,{[`${p}-with-avatar`]:e,[`${p}-active`]:d,[`${p}-rtl`]:i.value===`rtl`,[`${p}-round`]:f,[o.value]:!0});return a(s(`div`,{class:h},[r,m]))}return n.default?.call(n)}}}),Sw=d({compatConfig:{MODE:3},name:`ASkeletonButton`,props:Vn(G(G({},ew()),{size:String,block:Boolean}),{size:`default`}),setup(e){let{prefixCls:t}=K(`skeleton`,e),[n,r]=hw(t),i=a(()=>Z(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(s(`div`,{class:i.value},[s(tw,X(X({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Cw=d({compatConfig:{MODE:3},name:`ASkeletonInput`,props:G(G({},Gn(ew(),[`shape`])),{size:String,block:Boolean}),setup(e){let{prefixCls:t}=K(`skeleton`,e),[n,r]=hw(t),i=a(()=>Z(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(s(`div`,{class:i.value},[s(tw,X(X({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),ww=`M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z`,Tw=d({compatConfig:{MODE:3},name:`ASkeletonImage`,props:Gn(ew(),[`size`,`shape`,`active`]),setup(e){let{prefixCls:t}=K(`skeleton`,e),[n,r]=hw(t),i=a(()=>Z(t.value,`${t.value}-element`,r.value));return()=>n(s(`div`,{class:i.value},[s(`div`,{class:`${t.value}-image`},[s(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,class:`${t.value}-image-svg`},[s(`path`,{d:ww,class:`${t.value}-image-path`},null)])])]))}}),Ew=d({compatConfig:{MODE:3},name:`ASkeletonAvatar`,props:Vn(G(G({},ew()),{shape:String}),{size:`default`,shape:`circle`}),setup(e){let{prefixCls:t}=K(`skeleton`,e),[n,r]=hw(t),i=a(()=>Z(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},r.value));return()=>n(s(`div`,{class:i.value},[s(tw,X(X({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});xw.Button=Sw,xw.Avatar=Ew,xw.Input=Cw,xw.Image=Tw,xw.Title=QC,xw.install=function(e){return e.component(xw.name,xw),e.component(xw.Button.name,Sw),e.component(xw.Avatar.name,Ew),e.component(xw.Input.name,Cw),e.component(xw.Image.name,Tw),e.component(xw.Title.name,QC),e};var Dw=xw,{TabPane:Ow}=HC,kw=d({compatConfig:{MODE:3},name:`ACard`,inheritAttrs:!1,props:{prefixCls:String,title:J.any,extra:J.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:J.any,tabList:{type:Array},tabBarExtraContent:J.any,activeTabKey:String,defaultActiveTabKey:String,cover:J.any,onTabChange:{type:Function}},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a,size:o}=K(`card`,e),[c,u]=ZC(i),d=e=>e.map((t,n)=>l(t)&&!he(t)||!l(t)?s(`li`,{style:{width:`${100/e.length}%`},key:`action-${n}`},[s(`span`,null,[t])]):null),f=t=>{var n;(n=e.onTabChange)==null||n.call(e,t)},p=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t;return e.forEach(e=>{e&&zf(e.type)&&e.type.__ANT_CARD_GRID&&(t=!0)}),t};return()=>{let{headStyle:t={},bodyStyle:l={},loading:m,bordered:h=!0,type:g,tabList:_,hoverable:v,activeTabKey:y,defaultActiveTabKey:b,tabBarExtraContent:x=Be(n.tabBarExtraContent?.call(n)),title:S=Be(n.title?.call(n)),extra:C=Be(n.extra?.call(n)),actions:w=Be(n.actions?.call(n)),cover:T=Be(n.cover?.call(n))}=e,E=pe(n.default?.call(n)),D=i.value,O={[`${D}`]:!0,[u.value]:!0,[`${D}-loading`]:m,[`${D}-bordered`]:h,[`${D}-hoverable`]:!!v,[`${D}-contain-grid`]:p(E),[`${D}-contain-tabs`]:_&&_.length,[`${D}-${o.value}`]:o.value,[`${D}-type-${g}`]:!!g,[`${D}-rtl`]:a.value===`rtl`},k=s(Dw,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[E]}),A=y!==void 0,j={size:`large`,[A?`activeKey`:`defaultActiveKey`]:A?y:b,onChange:f,class:`${D}-head-tabs`},M,N=_&&_.length?s(HC,j,{default:()=>[_.map(e=>{let{tab:t,slots:r}=e,i=r?.tab;ir(!r,`Card`,"tabList slots is deprecated, Please use `customTab` instead.");let a=t===void 0?n[i]?n[i](e):null:t;return a=sr(n,`customTab`,e,()=>[a]),s(Ow,{tab:a,key:e.key,disabled:e.disabled},null)})],rightExtra:x?()=>x:null}):null;(S||C||N)&&(M=s(`div`,{class:`${D}-head`,style:t},[s(`div`,{class:`${D}-head-wrapper`},[S&&s(`div`,{class:`${D}-head-title`},[S]),C&&s(`div`,{class:`${D}-extra`},[C])]),N]));let P=T?s(`div`,{class:`${D}-cover`},[T]):null,F=s(`div`,{class:`${D}-body`,style:l},[m?k:E]),I=w&&w.length?s(`ul`,{class:`${D}-actions`},[d(w)]):null;return c(s(`div`,X(X({ref:`cardContainerRef`},r),{},{class:[O,r.class]}),[M,P,E&&E.length?F:null,I]))}}}),Aw=d({compatConfig:{MODE:3},name:`ACardMeta`,props:{prefixCls:String,title:Je(),description:Je(),avatar:Je()},slots:Object,setup(e,t){let{slots:n}=t,{prefixCls:r}=K(`card`,e);return()=>{let t={[`${r.value}-meta`]:!0},i=Se(n,e,`avatar`),a=Se(n,e,`title`),o=Se(n,e,`description`),c=i?s(`div`,{class:`${r.value}-meta-avatar`},[i]):null,l=a?s(`div`,{class:`${r.value}-meta-title`},[a]):null,u=o?s(`div`,{class:`${r.value}-meta-description`},[o]):null,d=l||u?s(`div`,{class:`${r.value}-meta-detail`},[l,u]):null;return s(`div`,{class:t},[c,d])}}}),jw=d({compatConfig:{MODE:3},name:`ACardGrid`,__ANT_CARD_GRID:!0,props:{prefixCls:String,hoverable:{type:Boolean,default:!0}},setup(e,t){let{slots:n}=t,{prefixCls:r}=K(`card`,e),i=a(()=>({[`${r.value}-grid`]:!0,[`${r.value}-grid-hoverable`]:e.hoverable}));return()=>s(`div`,{class:i.value},[n.default?.call(n)])}});kw.Meta=Aw,kw.Grid=jw,kw.install=function(e){return e.component(kw.name,kw),e.component(Aw.name,Aw),e.component(jw.name,jw),e};var Mw=kw,Nw=()=>({prefixCls:String,activeKey:$t([Array,Number,String]),defaultActiveKey:$t([Array,Number,String]),accordion:Y(),destroyInactivePanel:Y(),bordered:Y(),expandIcon:Q(),openAnimation:J.object,expandIconPosition:q(),collapsible:q(),ghost:Y(),onChange:Q(),"onUpdate:activeKey":Q()}),Pw=()=>({openAnimation:J.object,prefixCls:String,header:J.any,headerClass:String,showArrow:Y(),isActive:Y(),destroyInactivePanel:Y(),disabled:Y(),accordion:Y(),forceRender:Y(),expandIcon:Q(),extra:J.any,panelKey:$t(),collapsible:q(),role:String,onItemClick:Q()}),Fw=e=>{let{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:a,collapseHeaderPadding:o,collapsePanelBorderRadius:s,lineWidth:c,lineType:l,colorBorder:u,colorText:d,colorTextHeading:f,colorTextDisabled:p,fontSize:m,lineHeight:h,marginSM:g,paddingSM:_,motionDurationSlow:v,fontSizeIcon:y}=e,b=`${c}px ${l} ${u}`;return{[t]:G(G({},Ne(e)),{backgroundColor:a,border:b,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:`rtl`},[`& > ${t}-item`]:{borderBottom:b,"&:last-child":{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:`relative`,display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,padding:o,color:f,lineHeight:h,cursor:`pointer`,transition:`all ${v}, visibility 0s`,[`> ${t}-header-text`]:{flex:`auto`},"&:focus":{outline:`none`},[`${t}-expand-icon`]:{height:m*h,display:`flex`,alignItems:`center`,paddingInlineEnd:g},[`${t}-arrow`]:G(G({},Ge()),{fontSize:y,svg:{transition:`transform ${v}`}}),[`${t}-header-text`]:{marginInlineEnd:`auto`}},[`${t}-header-collapsible-only`]:{cursor:`default`,[`${t}-header-text`]:{flex:`none`,cursor:`pointer`},[`${t}-expand-icon`]:{cursor:`pointer`}},[`${t}-icon-collapsible-only`]:{cursor:`default`,[`${t}-expand-icon`]:{cursor:`pointer`}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:_}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:b,[`& > ${t}-content-box`]:{padding:`${r}px ${i}px`},"&-hidden":{display:`none`}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:`not-allowed`}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:g}}}}})}},Iw=e=>{let{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:`rotate(180deg)`}}}},Lw=e=>{let{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[` + > ${t}-item:last-child, + > ${t}-item:last-child ${t}-header + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:`transparent`,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Rw=e=>{let{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:`transparent`,border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:`transparent`,border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},zw=Le(`Collapse`,e=>{let t=Fe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Fw(t),Lw(t),Rw(t),Iw(t),Hh(t)]});function Bw(e){let t=e;if(!Array.isArray(t)){let e=typeof t;t=e===`number`||e===`string`?[t]:[]}return t.map(e=>String(e))}var Vw=d({compatConfig:{MODE:3},name:`ACollapse`,inheritAttrs:!1,props:Vn(Nw(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:`start`}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i}=t,o=W(Bw($g([e.activeKey,e.defaultActiveKey])));H(()=>e.activeKey,()=>{o.value=Bw(e.activeKey)},{deep:!0});let{prefixCls:c,direction:l,rootPrefixCls:u}=K(`collapse`,e),[d,f]=zw(c),p=a(()=>{let{expandIconPosition:t}=e;return t===void 0?l.value===`rtl`?`end`:`start`:t}),m=t=>{let{expandIcon:n=r.expandIcon}=e,i=n?n(t):s(uv,{rotate:t.isActive?90:void 0},null);return s(`div`,{class:[`${c.value}-expand-icon`,f.value],onClick:()=>[`header`,`icon`].includes(e.collapsible)&&g(t.panelKey)},[Xe(Array.isArray(n)?i[0]:i)?on(i,{class:`${c.value}-arrow`},!1):i])},h=t=>{e.activeKey===void 0&&(o.value=t);let n=e.accordion?t[0]:t;i(`update:activeKey`,n),i(`change`,n)},g=t=>{let n=o.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];let e=n.indexOf(t);e>-1?n.splice(e,1):n.push(t)}h(n)},_=(t,n)=>{var r;if(he(t))return;let i=o.value,{accordion:a,destroyInactivePanel:s,collapsible:l,openAnimation:d}=e,f=d||$v(`${u.value}-motion-collapse`),p=String(t.key??n),{header:h=((r=t.children)?.header)?.call(r),headerClass:_,collapsible:v,disabled:y}=t.props||{},b=!1;b=a?i[0]===p:i.indexOf(p)>-1;let x=v??l;(y||y===``)&&(x=`disabled`);let S={key:p,panelKey:p,header:h,headerClass:_,isActive:b,prefixCls:c.value,destroyInactivePanel:s,openAnimation:f,accordion:a,onItemClick:x===`disabled`?null:g,expandIcon:m,collapsible:x};return on(t,S)},v=()=>pe(r.default?.call(r)).map(_);return()=>{let{accordion:t,bordered:r,ghost:i}=e,a=Z(c.value,{[`${c.value}-borderless`]:!r,[`${c.value}-icon-position-${p.value}`]:!0,[`${c.value}-rtl`]:l.value===`rtl`,[`${c.value}-ghost`]:!!i,[n.class]:!!n.class},f.value);return d(s(`div`,X(X({class:a},tt(n)),{},{style:n.style,role:t?`tablist`:null}),[v()]))}}}),Hw=d({compatConfig:{MODE:3},name:`PanelContent`,props:Pw(),setup(e,t){let{slots:n}=t,r=M(!1);return P(()=>{(e.isActive||e.forceRender)&&(r.value=!0)}),()=>{if(!r.value)return null;let{prefixCls:t,isActive:i,role:a}=e;return s(`div`,{class:Z(`${t}-content`,{[`${t}-content-active`]:i,[`${t}-content-inactive`]:!i}),role:a},[s(`div`,{class:`${t}-content-box`},[n.default?.call(n)])])}}}),Uw=d({compatConfig:{MODE:3},name:`ACollapsePanel`,inheritAttrs:!1,props:Vn(Pw(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:``,forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i}=t;ir(e.disabled===void 0,`Collapse.Panel`,'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');let{prefixCls:a}=K(`collapse`,e),o=()=>{r(`itemClick`,e.panelKey)},c=e=>{(e.key===`Enter`||e.keyCode===13||e.which===13)&&o()};return()=>{let{header:t=n.header?.call(n),headerClass:r,isActive:l,showArrow:u,destroyInactivePanel:d,accordion:f,forceRender:p,openAnimation:m,expandIcon:h=n.expandIcon,extra:g=n.extra?.call(n),collapsible:_}=e,v=_===`disabled`,y=a.value,b=Z(`${y}-header`,{[r]:r,[`${y}-header-collapsible-only`]:_===`header`,[`${y}-icon-collapsible-only`]:_===`icon`}),x=Z({[`${y}-item`]:!0,[`${y}-item-active`]:l,[`${y}-item-disabled`]:v,[`${y}-no-arrow`]:!u,[`${i.class}`]:!!i.class}),S=s(`i`,{class:`arrow`},null);u&&typeof h==`function`&&(S=h(e));let C=ie(s(Hw,{prefixCls:y,isActive:l,forceRender:p,role:f?`tabpanel`:null},{default:n.default}),[[st,l]]),w=G({appear:!1,css:!1},m);return s(`div`,X(X({},i),{},{class:x}),[s(`div`,{class:b,onClick:()=>![`header`,`icon`].includes(_)&&o(),role:f?`tab`:`button`,tabindex:v?-1:0,"aria-expanded":l,onKeypress:c},[u&&S,s(`span`,{onClick:()=>_===`header`&&o(),class:`${y}-header-text`},[t]),g&&s(`div`,{class:`${y}-extra`},[g])]),s(Gt,w,{default:()=>[!d||l?C:null]})])}}});Vw.Panel=Uw,Vw.install=function(e){return e.component(Vw.name,Vw),e.component(Uw.name,Uw),e};var Ww=Vw,Gw=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()}).toLowerCase()},Kw=function(e){return/[height|width]$/.test(e)},qw=function(e){let t=``,n=Object.keys(e);return n.forEach(function(r,i){let a=e[r];r=Gw(r),Kw(r)&&typeof a==`number`&&(a+=`px`),t+=a===!0?r:a===!1?`not `+r:`(`+r+`: `+a+`)`,i{[`touchstart`,`touchmove`,`wheel`].includes(e.type)||e.preventDefault()},$w=e=>{let t=[],n=eT(e),r=tT(e);for(let i=n;ie.currentSlide-nT(e),tT=e=>e.currentSlide+rT(e),nT=e=>e.centerMode?Math.floor(e.slidesToShow/2)+ +(parseInt(e.centerPadding)>0):0,rT=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+ +(parseInt(e.centerPadding)>0):e.slidesToShow,iT=e=>e&&e.offsetWidth||0,aT=e=>e&&e.offsetHeight||0,oT=function(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r=e.startX-e.curX,i=e.startY-e.curY;return n=Math.round(Math.atan2(i,r)*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?`left`:n>=135&&n<=225?`right`:t===!0?n>=35&&n<=135?`up`:`down`:`vertical`},sT=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},cT=(e,t)=>{let n={};return t.forEach(t=>n[t]=e[t]),n},lT=e=>{let t=e.children.length,n=e.listRef,r=Math.ceil(iT(n)),i=e.trackRef,a=Math.ceil(iT(i)),o;if(e.vertical)o=r;else{let t=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding==`string`&&e.centerPadding.slice(-1)===`%`&&(t*=r/100),o=Math.ceil((r-t)/e.slidesToShow)}let s=n&&aT(n.querySelector(`[data-index="0"]`)),c=s*e.slidesToShow,l=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(l=t-1-e.initialSlide);let u=e.lazyLoadedList||[],d=$w(G(G({},e),{currentSlide:l,lazyLoadedList:u}),e);u=u.concat(d);let f={slideCount:t,slideWidth:o,listWidth:r,trackWidth:a,currentSlide:l,slideHeight:s,listHeight:c,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(f.autoplaying=`playing`),f},uT=e=>{let{waitForAnimate:t,animating:n,fade:r,infinite:i,index:a,slideCount:o,lazyLoad:s,currentSlide:c,centerMode:l,slidesToScroll:u,slidesToShow:d,useCSS:f}=e,{lazyLoadedList:p}=e;if(t&&n)return{};let m=a,h,g,_,v={},y={},b=i?a:Zw(a,0,o-1);if(r){if(!i&&(a<0||a>=o))return{};a<0?m=a+o:a>=o&&(m=a-o),s&&p.indexOf(m)<0&&(p=p.concat(m)),v={animating:!0,currentSlide:m,lazyLoadedList:p,targetSlide:m},y={animating:!1,targetSlide:m}}else h=m,m<0?(h=m+o,i?o%u!==0&&(h=o-o%u):h=0):!sT(e)&&m>c?m=h=c:l&&m>=o?(m=i?o:o-1,h=i?0:o-1):m>=o&&(h=m-o,i?o%u!==0&&(h=0):h=o-d),!i&&m+d>=o&&(h=o-d),g=ST(G(G({},e),{slideIndex:m})),_=ST(G(G({},e),{slideIndex:h})),i||(g===_&&(m=h),g=_),s&&(p=p.concat($w(G(G({},e),{currentSlide:m})))),f?(v={animating:!0,currentSlide:h,trackStyle:xT(G(G({},e),{left:g})),lazyLoadedList:p,targetSlide:b},y={animating:!1,currentSlide:h,trackStyle:bT(G(G({},e),{left:_})),swipeLeft:null,targetSlide:b}):v={currentSlide:h,trackStyle:bT(G(G({},e),{left:_})),lazyLoadedList:p,targetSlide:b};return{state:v,nextState:y}},dT=(e,t)=>{let n,r,i,{slidesToScroll:a,slidesToShow:o,slideCount:s,currentSlide:c,targetSlide:l,lazyLoad:u,infinite:d}=e,f=s%a===0?(s-c)%a:0;if(t.message===`previous`)r=f===0?a:o-f,i=c-r,u&&!d&&(n=c-r,i=n===-1?s-1:n),d||(i=l-a);else if(t.message===`next`)r=f===0?a:f,i=c+r,u&&!d&&(i=(c+a)%s+f),d||(i=l+a);else if(t.message===`dots`)i=t.index*t.slidesToScroll;else if(t.message===`children`){if(i=t.index,d){let n=ET(G(G({},e),{targetSlide:i}));i>t.currentSlide&&n===`left`?i-=s:ie.target.tagName.match(`TEXTAREA|INPUT|SELECT`)||!t?``:e.keyCode===37?n?`next`:`previous`:e.keyCode===39?n?`previous`:`next`:``,pT=(e,t,n)=>(e.target.tagName===`IMG`&&Qw(e),!t||!n&&e.type.indexOf(`mouse`)!==-1?``:{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),mT=(e,t)=>{let{scrolling:n,animating:r,vertical:i,swipeToSlide:a,verticalSwiping:o,rtl:s,currentSlide:c,edgeFriction:l,edgeDragged:u,onEdge:d,swiped:f,swiping:p,slideCount:m,slidesToScroll:h,infinite:g,touchObject:_,swipeEvent:v,listHeight:y,listWidth:b}=t;if(n)return;if(r)return Qw(e);i&&a&&o&&Qw(e);let x,S={},C=ST(t);_.curX=e.touches?e.touches[0].pageX:e.clientX,_.curY=e.touches?e.touches[0].pageY:e.clientY,_.swipeLength=Math.round(Math.sqrt((_.curX-_.startX)**2));let w=Math.round(Math.sqrt((_.curY-_.startY)**2));if(!o&&!p&&w>10)return{scrolling:!0};o&&(_.swipeLength=w);let T=(s?-1:1)*(_.curX>_.startX?1:-1);o&&(T=_.curY>_.startY?1:-1);let E=Math.ceil(m/h),D=oT(t.touchObject,o),O=_.swipeLength;return g||(c===0&&(D===`right`||D===`down`)||c+1>=E&&(D===`left`||D===`up`)||!sT(t)&&(D===`left`||D===`up`))&&(O=_.swipeLength*l,u===!1&&d&&(d(D),S.edgeDragged=!0)),!f&&v&&(v(D),S.swiped=!0),x=i?C+y/b*O*T:s?C-O*T:C+O*T,o&&(x=C+O*T),S=G(G({},S),{touchObject:_,swipeLeft:x,trackStyle:bT(G(G({},t),{left:x}))}),Math.abs(_.curX-_.startX)10&&(S.swiping=!0,Qw(e)),S},hT=(e,t)=>{let{dragging:n,swipe:r,touchObject:i,listWidth:a,touchThreshold:o,verticalSwiping:s,listHeight:c,swipeToSlide:l,scrolling:u,onSwipe:d,targetSlide:f,currentSlide:p,infinite:m}=t;if(!n)return r&&Qw(e),{};let h=s?c/o:a/o,g=oT(i,s),_={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!i.swipeLength)return _;if(i.swipeLength>h){Qw(e),d&&d(g);let n,r,i=m?p:f;switch(g){case`left`:case`up`:r=i+vT(t),n=l?_T(t,r):r,_.currentDirection=0;break;case`right`:case`down`:r=i-vT(t),n=l?_T(t,r):r,_.currentDirection=1;break;default:n=i}_.triggerSlideHandler=n}else{let e=ST(t);_.trackStyle=xT(G(G({},t),{left:e}))}return _},gT=e=>{let t=e.infinite?e.slideCount*2:e.slideCount,n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,i=[];for(;n{let n=gT(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(let e in n){if(t{let t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(`.slick-slide`)||[];if(Array.from(i).every(r=>{if(!e.vertical){if(r.offsetLeft-t+iT(r)/2>e.swipeLeft*-1)return n=r,!1}else if(r.offsetTop+aT(r)/2>e.swipeLeft*-1)return n=r,!1;return!0}),!n)return 0;let a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}return e.slidesToScroll},yT=(e,t)=>t.reduce((t,n)=>t&&e.hasOwnProperty(n),!0)?null:console.error(`Keys Missing:`,e),bT=e=>{yT(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`]);let t,n,r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=TT(e)*e.slideWidth;let i={opacity:1,transition:``,WebkitTransition:``};if(e.useTransform){let t=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,n=e.vertical?`translate3d(0px, `+e.left+`px, 0px)`:`translate3d(`+e.left+`px, 0px, 0px)`,r=e.vertical?`translateY(`+e.left+`px)`:`translateX(`+e.left+`px)`;i=G(G({},i),{WebkitTransform:t,transform:n,msTransform:r})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t+`px`),n&&(i.height=n+`px`),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+`px`:i.marginLeft=e.left+`px`),i},xT=e=>{yT(e,[`left`,`variableWidth`,`slideCount`,`slidesToShow`,`slideWidth`,`speed`,`cssEase`]);let t=bT(e);return e.useTransform?(t.WebkitTransition=`-webkit-transform `+e.speed+`ms `+e.cssEase,t.transition=`transform `+e.speed+`ms `+e.cssEase):t.transition=e.vertical?`top `+e.speed+`ms `+e.cssEase:`left `+e.speed+`ms `+e.cssEase,t},ST=e=>{if(e.unslick)return 0;yT(e,[`slideIndex`,`trackRef`,`infinite`,`centerMode`,`slideCount`,`slidesToShow`,`slidesToScroll`,`slideWidth`,`listWidth`,`variableWidth`,`slideHeight`]);let{slideIndex:t,trackRef:n,infinite:r,centerMode:i,slideCount:a,slidesToShow:o,slidesToScroll:s,slideWidth:c,listWidth:l,variableWidth:u,slideHeight:d,fade:f,vertical:p}=e,m=0,h,g,_=0;if(f||e.slideCount===1)return 0;let v=0;if(r?(v=-CT(e),a%s!==0&&t+s>a&&(v=-(t>a?o-(t-a):a%s)),i&&(v+=parseInt(o/2))):(a%s!==0&&t+s>a&&(v=o-a%s),i&&(v=parseInt(o/2))),m=v*c,_=v*d,h=p?t*d*-1+_:t*c*-1+m,u===!0){let a,o=n;if(a=t+CT(e),g=o&&o.childNodes[a],h=g?g.offsetLeft*-1:0,i===!0){a=r?t+CT(e):t,g=o&&o.children[a],h=0;for(let e=0;ee.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+ +!!e.centerMode,wT=e=>e.unslick||!e.infinite?0:e.slideCount,TT=e=>e.slideCount===1?1:CT(e)+e.slideCount+wT(e),ET=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+DT(e)?`left`:`right`:e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:i}=e;if(n){let e=(t-1)/2+1;return parseInt(i)>0&&(e+=1),r&&t%2==0&&(e+=1),e}return r?0:t-1},OT=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:i}=e;if(n){let e=(t-1)/2+1;return parseInt(i)>0&&(e+=1),!r&&t%2==0&&(e+=1),e}return r?t-1:0},kT=()=>!!(typeof window<`u`&&window.document&&window.document.createElement),AT=e=>{let t,n,r,i;i=e.rtl?e.slideCount-1-e.index:e.index;let a=i<0||i>=e.slideCount;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":i===o}},jT=function(e){let t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth==`number`?`px`:``)),e.fade&&(t.position=`relative`,e.vertical?t.top=-e.index*parseInt(e.slideHeight)+`px`:t.left=-e.index*parseInt(e.slideWidth)+`px`,t.opacity=+(e.currentSlide===e.index),e.useCSS&&(t.transition=`opacity `+e.speed+`ms `+e.cssEase+`, visibility `+e.speed+`ms `+e.cssEase)),t},MT=(e,t)=>e.key+`-`+t,NT=function(e,t){let n,r=[],i=[],a=[],o=t.length,c=eT(e),l=tT(e);return t.forEach((t,u)=>{let d,f={message:`children`,index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};d=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?t:s(`div`);let p=jT(G(G({},e),{index:u})),m=d.props.class||``,h=AT(G(G({},e),{index:u}));if(r.push(Qn(d,{key:`original`+MT(d,u),tabindex:`-1`,"data-index":u,"aria-hidden":!h[`slick-active`],class:Z(h,m),style:G(G({outline:`none`},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){let r=o-u;r<=CT(e)&&o!==e.slidesToShow&&(n=-r,n>=c&&(d=t),h=AT(G(G({},e),{index:n})),i.push(Qn(d,{key:`precloned`+MT(d,n),class:Z(h,m),tabindex:`-1`,"data-index":n,"aria-hidden":!h[`slick-active`],style:G(G({},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),o!==e.slidesToShow&&(n=o+u,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?i.concat(r,a).reverse():i.concat(r,a)},PT=(e,t)=>{let{attrs:n,slots:r}=t,i=NT(n,pe(r?.default())),{onMouseenter:a,onMouseover:o,onMouseleave:c}=n,l={onMouseenter:a,onMouseover:o,onMouseleave:c},u=G({class:`slick-track`,style:n.trackStyle},l);return s(`div`,u,[i])};PT.inheritAttrs=!1;var FT=function(e){let t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},IT=(e,t)=>{let{attrs:n}=t,{slideCount:r,slidesToScroll:i,slidesToShow:a,infinite:o,currentSlide:c,appendDots:l,customPaging:u,clickHandler:d,dotsClass:f,onMouseenter:p,onMouseover:m,onMouseleave:h}=n,g=FT({slideCount:r,slidesToScroll:i,slidesToShow:a,infinite:o}),_={onMouseenter:p,onMouseover:m,onMouseleave:h},v=[];for(let e=0;e=l&&c<=n:c===l}),p={message:`dots`,index:e,slidesToScroll:i,currentSlide:c};function m(e){e&&e.preventDefault(),d(p)}v=v.concat(s(`li`,{key:e,class:f},[on(u({i:e}),{onClick:m})]))}return on(l({dots:v}),G({class:f},_))};IT.inheritAttrs=!1;function LT(){}function RT(e,t,n){n&&n.preventDefault(),t(e,n)}var zT=(e,t)=>{let{attrs:n}=t,{clickHandler:r,infinite:i,currentSlide:a,slideCount:o,slidesToShow:c}=n,l={"slick-arrow":!0,"slick-prev":!0},u=function(e){RT({message:`previous`},r,e)};!i&&(a===0||o<=c)&&(l[`slick-disabled`]=!0,u=LT);let d={key:`0`,"data-role":`none`,class:l,style:{display:`block`},onClick:u},f={currentSlide:a,slideCount:o},p;return p=n.prevArrow?on(n.prevArrow(G(G({},d),f)),{key:`0`,class:l,style:{display:`block`},onClick:u},!1):s(`button`,X({key:`0`,type:`button`},d),[` `,g(`Previous`)]),p};zT.inheritAttrs=!1;var BT=(e,t)=>{let{attrs:n}=t,{clickHandler:r,currentSlide:i,slideCount:a}=n,o={"slick-arrow":!0,"slick-next":!0},c=function(e){RT({message:`next`},r,e)};sT(n)||(o[`slick-disabled`]=!0,c=LT);let l={key:`1`,"data-role":`none`,class:Z(o),style:{display:`block`},onClick:c},u={currentSlide:i,slideCount:a},d;return d=n.nextArrow?on(n.nextArrow(G(G({},l),u)),{key:`1`,class:Z(o),style:{display:`block`},onClick:c},!1):s(`button`,X({key:`1`,type:`button`},l),[` `,g(`Next`)]),d};BT.inheritAttrs=!1;var VT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{this.currentSlide>=e.children.length&&this.changeSlide({message:`index`,index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay(`playing`):e.autoplay?this.handleAutoPlay(`update`):this.pause(`paused`)}),this.preProps=G({},e)}},mounted(){if(this.__emit(`init`),this.lazyLoad){let e=$w(G(G({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit(`lazyLoad`,e))}this.$nextTick(()=>{let e=G({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay(`playing`)}),this.lazyLoad===`progressive`&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new fi(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(`.slick-slide`),e=>{e.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,e.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener(`resize`,this.onWindowResized):window.attachEvent(`onresize`,this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(e=>clearTimeout(e)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener(`resize`,this.onWindowResized):window.detachEvent(`onresize`,this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)==null||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit(`reInit`),this.lazyLoad){let e=$w(G(G({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit(`lazyLoad`))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){let e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=aT(e)+`px`}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Km(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.track)return;let t=G(G({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(t,e,()=>{this.autoplay?this.handleAutoPlay(`update`):this.pause(`paused`)}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){let r=lT(e);e=G(G(G({},e),r),{slideIndex:r.currentSlide});let i=ST(e);e=G(G({},e),{left:i});let a=bT(e);(t||this.children.length!==e.children.length)&&(r.trackStyle=a),this.setState(r,n)},ssrInit(){let e=this.children;if(this.variableWidth){let t=0,n=0,r=[],i=CT(G(G(G({},this.$props),this.$data),{slideCount:e.length})),a=wT(G(G(G({},this.$props),this.$data),{slideCount:e.length}));e.forEach(e=>{let n=(e.props.style?.width)?.split(`px`)[0]||0;r.push(n),t+=n});for(let e=0;e{let r=()=>++n&&n>=t&&this.onWindowResized();if(!e.onclick)e.onclick=()=>e.parentNode.focus();else{let t=e.onclick;e.onclick=()=>{t(),e.parentNode.focus()}}e.onload||(this.$props.lazyLoad?e.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(e.onload=r,e.onerror=()=>{r(),this.__emit(`lazyLoadError`)}))})},progressiveLazyLoad(){let e=[],t=G(G({},this.$props),this.$data);for(let n=this.currentSlide;n=-CT(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit(`lazyLoad`,e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],{asNavFor:n,beforeChange:r,speed:i,afterChange:a}=this.$props,{state:o,nextState:s}=uT(G(G(G({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!o)return;r&&r(this.currentSlide,o.currentSlide);let c=o.lazyLoadedList.filter(e=>this.lazyLoadedList.indexOf(e)<0);this.$attrs.onLazyLoad&&c.length>0&&this.__emit(`lazyLoad`,c),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),a&&a(this.currentSlide),delete this.animationEndCallback),this.setState(o,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{let{animating:e}=s,t=VT(s,[`animating`]);this.setState(t,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:e}),10)),a&&a(o.currentSlide),delete this.animationEndCallback})},i))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=dT(G(G({},this.$props),this.$data),e);if(!(n!==0&&!n)&&(t===!0?this.slideHandler(n,t):this.slideHandler(n),this.$props.autoplay&&this.handleAutoPlay(`update`),this.$props.focusOnSelect)){let e=this.list.querySelectorAll(`.slick-current`);e[0]&&e[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){let t=fT(e,this.accessibility,this.rtl);t!==``&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){window.ontouchmove=e=>{e||=window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1}},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();let t=pT(e,this.swipe,this.draggable);t!==``&&this.setState(t)},swipeMove(e){let t=mT(e,G(G(G({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){let t=hT(e,G(G(G({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;let n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:`previous`}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:`next`}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(e=Number(e),isNaN(e))return``;this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:`index`,index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(sT(G(G({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);let t=this.autoplaying;if(e===`update`){if(t===`hovered`||t===`focused`||t===`paused`)return}else if(e===`leave`){if(t===`paused`||t===`focused`)return}else if(e===`blur`&&(t===`paused`||t===`hovered`))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:`playing`})},pause(e){this.autoplayTimer&&=(clearInterval(this.autoplayTimer),null);let t=this.autoplaying;e===`paused`?this.setState({autoplaying:`paused`}):e===`focused`?(t===`hovered`||t===`playing`)&&this.setState({autoplaying:`focused`}):t===`playing`&&this.setState({autoplaying:`hovered`})},onDotsOver(){this.autoplay&&this.pause(`hovered`)},onDotsLeave(){this.autoplay&&this.autoplaying===`hovered`&&this.handleAutoPlay(`leave`)},onTrackOver(){this.autoplay&&this.pause(`hovered`)},onTrackLeave(){this.autoplay&&this.autoplaying===`hovered`&&this.handleAutoPlay(`leave`)},onSlideFocus(){this.autoplay&&this.pause(`focused`)},onSlideBlur(){this.autoplay&&this.autoplaying===`focused`&&this.handleAutoPlay(`blur`)},customPaging(e){let{i:t}=e;return s(`button`,null,[t+1])},appendDots(e){let{dots:t}=e;return s(`ul`,{style:{display:`block`}},[t])}},render(){let e=Z(`slick-slider`,this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=G(G({},this.$props),this.$data),n=cT(t,[`fade`,`cssEase`,`speed`,`infinite`,`centerMode`,`focusOnSelect`,`currentSlide`,`lazyLoad`,`lazyLoadedList`,`rtl`,`slideWidth`,`slideHeight`,`listHeight`,`vertical`,`slidesToShow`,`slidesToScroll`,`slideCount`,`trackStyle`,`variableWidth`,`unslick`,`centerPadding`,`targetSlide`,`useCSS`]),{pauseOnHover:r}=this.$props;n=G(G({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:r?this.onTrackLeave:HT,onMouseover:r?this.onTrackOver:HT});let i;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let e=cT(t,[`dotsClass`,`slideCount`,`slidesToShow`,`currentSlide`,`slidesToScroll`,`clickHandler`,`children`,`infinite`,`appendDots`]);e.customPaging=this.customPaging,e.appendDots=this.appendDots;let{customPaging:n,appendDots:r}=this.$slots;n&&(e.customPaging=n),r&&(e.appendDots=r);let{pauseOnDotsHover:a}=this.$props;e=G(G({},e),{clickHandler:this.changeSlide,onMouseover:a?this.onDotsOver:HT,onMouseleave:a?this.onDotsLeave:HT}),i=s(IT,e,null)}let a,o,c=cT(t,[`infinite`,`centerMode`,`currentSlide`,`slideCount`,`slidesToShow`]);c.clickHandler=this.changeSlide;let{prevArrow:l,nextArrow:u}=this.$slots;l&&(c.prevArrow=l),u&&(c.nextArrow=u),this.arrows&&(a=s(zT,c,null),o=s(BT,c,null));let d=null;this.vertical&&(d={height:typeof this.listHeight==`number`?`${this.listHeight}px`:this.listHeight});let f=null;this.vertical===!1?this.centerMode===!0&&(f={padding:`0px `+this.centerPadding}):this.centerMode===!0&&(f={padding:this.centerPadding+` 0px`});let p=G(G({},d),f),m=this.touchMove,h={ref:this.listRefHandler,class:`slick-list`,style:p,onClick:this.clickHandler,onMousedown:m?this.swipeStart:HT,onMousemove:this.dragging&&m?this.swipeMove:HT,onMouseup:m?this.swipeEnd:HT,onMouseleave:this.dragging&&m?this.swipeEnd:HT,[lr?`onTouchstartPassive`:`onTouchstart`]:m?this.swipeStart:HT,[lr?`onTouchmovePassive`:`onTouchmove`]:this.dragging&&m?this.swipeMove:HT,onTouchend:m?this.touchEnd:HT,onTouchcancel:this.dragging&&m?this.swipeEnd:HT,onKeydown:this.accessibility?this.keyHandler:HT},g={class:e,dir:`ltr`,style:this.$attrs.style};return this.unslick&&(h={class:`slick-list`,ref:this.listRefHandler},g={class:e}),s(`div`,g,[this.unslick?``:a,s(`div`,h,[s(PT,n,{default:()=>[this.children]})]),this.unslick?``:o,this.unslick?``:i])}},WT=d({name:`Slider`,mixins:[$c],inheritAttrs:!1,props:G({},Yw),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){let e=this.responsive.map(e=>e.breakpoint);e.sort((e,t)=>e-t),e.forEach((t,n)=>{let r;r=Jw(n===0?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),kT()&&this.media(r,()=>{this.setState({breakpoint:t})})});let t=Jw({minWidth:e.slice(-1)[0]});kT()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){let n=window.matchMedia(e),r=e=>{let{matches:n}=e;n&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev(){var e;(e=this.innerSlider)==null||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)==null||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];var n;(n=this.innerSlider)==null||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)==null||e.pause(`paused`)},slickPlay(){var e;(e=this.innerSlider)==null||e.handleAutoPlay(`play`)}},render(){let e,t;this.breakpoint?(t=this.responsive.filter(e=>e.breakpoint===this.breakpoint),e=t[0].settings===`unslick`?`unslick`:G(G({},this.$props),t[0].settings)):e=G({},this.$props),e.centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);let n=Oe(this)||[];n=n.filter(e=>typeof e==`string`?!!e.trim():!!e),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn(`variableWidth is not supported in case of rows > 1 or slidesPerRow > 1`),e.variableWidth=!1);let r=[],i=null;for(let t=0;t=n.length));a+=1)o.push(on(n[a],{key:100*t+10*r+a,tabindex:-1,style:{width:`${100/e.slidesPerRow}%`,display:`inline-block`}}));a.push(s(`div`,{key:10*t+r},[o]))}e.variableWidth?r.push(s(`div`,{key:t,style:{width:i}},[a])):r.push(s(`div`,{key:t},[a]))}if(e===`unslick`){let e=`regular slider `+(this.className||``);return s(`div`,{class:e},[n])}r.length<=e.slidesToShow&&(e.unslick=!0);let a=G(G(G({},this.$attrs),e),{children:r,ref:this.innerSliderRefHandler});return s(UT,X(X({},a),{},{__propsSymbol__:[]}),this.$slots)}}),GT=e=>{let{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:i,marginXXS:a}=e,o=-r*1.25,s=a;return{[t]:G(G({},Ne(e)),{".slick-slider":{position:`relative`,display:`block`,boxSizing:`border-box`,touchAction:`pan-y`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,".slick-track, .slick-list":{transform:`translate3d(0, 0, 0)`,touchAction:`pan-y`}},".slick-list":{position:`relative`,display:`block`,margin:0,padding:0,overflow:`hidden`,"&:focus":{outline:`none`},"&.dragging":{cursor:`pointer`},".slick-slide":{pointerEvents:`none`,[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:`hidden`},"&.slick-active":{pointerEvents:`auto`,[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:`visible`}},"> div > div":{verticalAlign:`bottom`}}},".slick-track":{position:`relative`,top:0,insetInlineStart:0,display:`block`,"&::before, &::after":{display:`table`,content:`""`},"&::after":{clear:`both`}},".slick-slide":{display:`none`,float:`left`,height:`100%`,minHeight:1,img:{display:`block`},"&.dragging img":{pointerEvents:`none`}},".slick-initialized .slick-slide":{display:`block`},".slick-vertical .slick-slide":{display:`block`,height:`auto`},".slick-arrow.slick-hidden":{display:`none`},".slick-prev, .slick-next":{position:`absolute`,top:`50%`,display:`block`,width:r,height:r,marginTop:-r/2,padding:0,color:`transparent`,fontSize:0,lineHeight:0,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,"&:hover, &:focus":{color:`transparent`,background:`transparent`,outline:`none`,"&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:o,"&::before":{content:`"←"`}},".slick-next":{insetInlineEnd:o,"&::before":{content:`"→"`}},".slick-dots":{position:`absolute`,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:`flex !important`,justifyContent:`center`,paddingInlineStart:0,listStyle:`none`,"&-bottom":{bottom:i},"&-top":{top:i,bottom:`auto`},li:{position:`relative`,display:`inline-block`,flex:`0 1 auto`,boxSizing:`content-box`,width:e.dotWidth,height:e.dotHeight,marginInline:s,padding:0,textAlign:`center`,textIndent:-999,verticalAlign:`top`,transition:`all ${e.motionDurationSlow}`,button:{position:`relative`,display:`block`,width:`100%`,height:e.dotHeight,padding:0,color:`transparent`,fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:`none`,cursor:`pointer`,opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:`absolute`,inset:-s,content:`""`}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},KT=e=>{let{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:`50%`,bottom:`auto`,flexDirection:`column`,width:e.dotHeight,height:`auto`,margin:0,transform:`translateY(-50%)`,"&-left":{insetInlineEnd:`auto`,insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:`auto`},li:G(G({},i),{margin:`${r}px 0`,verticalAlign:`baseline`,button:i,"&.slick-active":G(G({},i),{button:i})})}}}},qT=e=>{let{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:`rtl`,".slick-dots":{[`${t}-rtl&`]:{flexDirection:`row-reverse`}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:`column`}}}}]},JT=Le(`Carousel`,e=>{let{controlHeightLG:t,controlHeightSM:n}=e,r=Fe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[GT(r),KT(r),qT(r)]},{dotWidth:16,dotHeight:3,dotWidthActive:24}),YT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0&&arguments[1];var n;(n=o.value)==null||n.slickGoTo(e,t)},autoplay:e=>{var t;(t=o.value?.innerSlider)==null||t.handleAutoPlay(e)},prev:()=>{var e;(e=o.value)==null||e.slickPrev()},next:()=>{var e;(e=o.value)==null||e.slickNext()},innerSlider:a(()=>o.value?.innerSlider)}),P(()=>{nt(e.vertical===void 0,`Carousel`,"`vertical` is deprecated, please use `dotPosition` instead.")});let{prefixCls:c,direction:l}=K(`carousel`,e),[u,d]=JT(c),f=a(()=>e.dotPosition?e.dotPosition:e.vertical===void 0?`bottom`:e.vertical?`right`:`bottom`),p=a(()=>f.value===`left`||f.value===`right`),m=a(()=>{let t=`slick-dots`;return Z({[t]:!0,[`${t}-${f.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{let{dots:t,arrows:i,draggable:a,effect:f}=e,{class:h,style:g}=r,_=YT(r,[`class`,`style`]),v=f===`fade`||e.fade,y=Z(c.value,{[`${c.value}-rtl`]:l.value===`rtl`,[`${c.value}-vertical`]:p.value,[`${h}`]:!!h},d.value);return u(s(`div`,{class:y,style:g},[s(WT,X(X(X({ref:o},e),_),{},{dots:!!t,dotsClass:m.value,arrows:i,draggable:a,fade:v,vertical:p.value}),n)]))}}}),ZT=be(XT),QT=`__RC_CASCADER_SPLIT__`,$T=`SHOW_PARENT`,eE=`SHOW_CHILD`;function tE(e){return e.join(QT)}function nE(e){return e.map(tE)}function rE(e){return e.split(QT)}function iE(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function aE(e,t){return e.isLeaf??!e[t.children]?.length}function oE(e){let t=e.parentElement;if(!t)return;let n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}var sE=Symbol(`TreeContextKey`),cE=d({compatConfig:{MODE:3},name:`TreeContext`,props:{value:{type:Object}},setup(t,n){let{slots:r}=n;return e(sE,a(()=>t.value)),()=>r.default?.call(r)}}),lE=()=>C(sE,a(()=>({}))),uE=Symbol(`KeysStateKey`),dE=t=>{e(uE,t)},fE=()=>C(uE,{expandedKeys:M([]),selectedKeys:M([]),loadedKeys:M([]),loadingKeys:M([]),checkedKeys:M([]),halfCheckedKeys:M([]),expandedKeysSet:a(()=>new Set),selectedKeysSet:a(()=>new Set),loadedKeysSet:a(()=>new Set),loadingKeysSet:a(()=>new Set),checkedKeysSet:a(()=>new Set),halfCheckedKeysSet:a(()=>new Set),flattenNodes:M([])}),pE=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:i}=e,a=`${t}-indent-unit`,o=[];for(let e=0;e({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:J.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:J.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:J.any,switcherIcon:J.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}),_E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i"`v-slot:"+e+"` ")}`;let o=M(!1),c=lE(),{expandedKeysSet:l,selectedKeysSet:u,loadedKeysSet:d,loadingKeysSet:f,checkedKeysSet:p,halfCheckedKeysSet:h}=fE(),{dragOverNodeKey:g,dropPosition:_,keyEntities:v}=c.value,y=a(()=>VE(e.eventKey,{expandedKeysSet:l.value,selectedKeysSet:u.value,loadedKeysSet:d.value,loadingKeysSet:f.value,checkedKeysSet:p.value,halfCheckedKeysSet:h.value,dragOverNodeKey:g,dropPosition:_,keyEntities:v})),b=jg(()=>y.value.expanded),x=jg(()=>y.value.selected),S=jg(()=>y.value.checked),C=jg(()=>y.value.loaded),w=jg(()=>y.value.loading),T=jg(()=>y.value.halfChecked),E=jg(()=>y.value.dragOver),A=jg(()=>y.value.dragOverGapTop),j=jg(()=>y.value.dragOverGapBottom),N=jg(()=>y.value.pos),P=M(),F=a(()=>{let{eventKey:t}=e,{keyEntities:n}=c.value,{children:r}=n[t]||{};return!!(r||[]).length}),I=a(()=>{let{isLeaf:t}=e,{loadData:n}=c.value,r=F.value;return t===!1?!1:t||!n&&!r||n&&C.value&&!r}),L=a(()=>I.value?null:b.value?vE:yE),ee=a(()=>{let{disabled:t}=e,{disabled:n}=c.value;return!!(n||t)}),R=a(()=>{let{checkable:t}=e,{checkable:n}=c.value;return!n||t===!1?!1:n}),z=a(()=>{let{selectable:t}=e,{selectable:n}=c.value;return typeof t==`boolean`?t:n}),B=a(()=>{let{data:t,active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o}=e;return G(G({active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:o},t),{dataRef:t,data:t,isLeaf:I.value,checked:S.value,expanded:b.value,loading:w.value,selected:x.value,halfChecked:T.value})}),te=m(),V=a(()=>{let{eventKey:t}=e,{keyEntities:n}=c.value,{parent:r}=n[t]||{};return G(G({},HE(G({},e,y.value))),{parent:r})}),ne=k({eventData:V,eventKey:a(()=>e.eventKey),selectHandle:P,pos:N,key:te.vnode.key});i(ne);let re=e=>{let{onNodeDoubleClick:t}=c.value;t(e,V.value)},H=e=>{if(ee.value)return;let{onNodeSelect:t}=c.value;e.preventDefault(),t(e,V.value)},U=t=>{if(ee.value)return;let{disableCheckbox:n}=e,{onNodeCheck:r}=c.value;if(!R.value||n)return;t.preventDefault();let i=!S.value;r(t,V.value,i)},ie=e=>{let{onNodeClick:t}=c.value;t(e,V.value),z.value?H(e):U(e)},W=e=>{let{onNodeMouseEnter:t}=c.value;t(e,V.value)},ae=e=>{let{onNodeMouseLeave:t}=c.value;t(e,V.value)},oe=e=>{let{onNodeContextMenu:t}=c.value;t(e,V.value)},se=e=>{let{onNodeDragStart:t}=c.value;e.stopPropagation(),o.value=!0,t(e,ne);try{e.dataTransfer.setData(`text/plain`,``)}catch{}},ce=e=>{let{onNodeDragEnter:t}=c.value;e.preventDefault(),e.stopPropagation(),t(e,ne)},le=e=>{let{onNodeDragOver:t}=c.value;e.preventDefault(),e.stopPropagation(),t(e,ne)},ue=e=>{let{onNodeDragLeave:t}=c.value;e.stopPropagation(),t(e,ne)},de=e=>{let{onNodeDragEnd:t}=c.value;e.stopPropagation(),o.value=!1,t(e,ne)},fe=e=>{let{onNodeDrop:t}=c.value;e.preventDefault(),e.stopPropagation(),o.value=!1,t(e,ne)},pe=e=>{let{onNodeExpand:t}=c.value;w.value||t(e,V.value)},me=()=>{let{data:t}=e,{draggable:n}=c.value;return!!(n&&(!n.nodeDraggable||n.nodeDraggable(t)))},he=()=>{let{draggable:e,prefixCls:t}=c.value;return e&&e?.icon?s(`span`,{class:`${t}-draggable-icon`},[e.icon]):null},ge=()=>{let{switcherIcon:t=r.switcherIcon||c.value.slots?.[e.data?.slots?.switcherIcon]}=e,{switcherIcon:n}=c.value,i=t||n;return typeof i==`function`?i(B.value):i},_e=()=>{let{loadData:e,onNodeLoad:t}=c.value;w.value||e&&b.value&&!I.value&&!F.value&&!C.value&&t(V.value)};D(()=>{_e()}),O(()=>{_e()});let K=()=>{let{prefixCls:e}=c.value,t=ge();if(I.value)return t===!1?null:s(`span`,{class:Z(`${e}-switcher`,`${e}-switcher-noop`)},[t]);let n=Z(`${e}-switcher`,`${e}-switcher_${b.value?vE:yE}`);return t===!1?null:s(`span`,{onClick:pe,class:n},[t])},ve=()=>{var t;let{disableCheckbox:n}=e,{prefixCls:r}=c.value,i=ee.value;return R.value?s(`span`,{class:Z(`${r}-checkbox`,S.value&&`${r}-checkbox-checked`,!S.value&&T.value&&`${r}-checkbox-indeterminate`,(i||n)&&`${r}-checkbox-disabled`),onClick:U},[(t=c.value).customCheckable?.call(t)]):null},ye=()=>{let{prefixCls:e}=c.value;return s(`span`,{class:Z(`${e}-iconEle`,`${e}-icon__${L.value||`docu`}`,w.value&&`${e}-icon_loading`)},null)},be=()=>{let{disabled:t,eventKey:n}=e,{draggable:r,dropLevelOffset:i,dropPosition:a,prefixCls:o,indent:s,dropIndicatorRender:l,dragOverNodeKey:u,direction:d}=c.value;return!t&&r!==!1&&u===n?l({dropPosition:a,dropLevelOffset:i,indent:s,prefixCls:o,direction:d}):null},xe=()=>{let{icon:t=r.icon,data:n}=e,i=r.title||c.value.slots?.[e.data?.slots?.title]||c.value.slots?.title||e.title,{prefixCls:a,showIcon:l,icon:u,loadData:d}=c.value,f=ee.value,p=`${a}-node-content-wrapper`,m;if(l){let e=t||c.value.slots?.[n?.slots?.icon]||u;m=e?s(`span`,{class:Z(`${a}-iconEle`,`${a}-icon__customize`)},[typeof e==`function`?e(B.value):e]):ye()}else d&&w.value&&(m=ye());let h;h=typeof i==`function`?i(B.value):i,h=h===void 0?bE:h;let g=s(`span`,{class:`${a}-title`},[h]);return s(`span`,{ref:P,title:typeof i==`string`?i:``,class:Z(`${p}`,`${p}-${L.value||`normal`}`,!f&&(x.value||o.value)&&`${a}-node-selected`),onMouseenter:W,onMouseleave:ae,onContextmenu:oe,onClick:ie,onDblclick:re},[m,g,be()])};return()=>{let t=G(G({},e),n),{eventKey:r,isLeaf:i,isStart:a,isEnd:o,domRef:l,active:u,data:d,onMousemove:f,selectable:p}=t,m=_E(t,[`eventKey`,`isLeaf`,`isStart`,`isEnd`,`domRef`,`active`,`data`,`onMousemove`,`selectable`]),{prefixCls:h,filterTreeNode:g,keyEntities:_,dropContainerKey:v,dropTargetKey:y,draggingNodeKey:C}=c.value,D=ee.value,O=un(m,{aria:!0,data:!0}),{level:k}=_[r]||{},M=o[o.length-1],N=me(),P=!D&&N,F=C===r,I=p===void 0?void 0:{"aria-selected":!!p};return s(`div`,X(X({ref:l,class:Z(n.class,`${h}-treenode`,{[`${h}-treenode-disabled`]:D,[`${h}-treenode-switcher-${b.value?`open`:`close`}`]:!i,[`${h}-treenode-checkbox-checked`]:S.value,[`${h}-treenode-checkbox-indeterminate`]:T.value,[`${h}-treenode-selected`]:x.value,[`${h}-treenode-loading`]:w.value,[`${h}-treenode-active`]:u,[`${h}-treenode-leaf-last`]:M,[`${h}-treenode-draggable`]:P,dragging:F,"drop-target":y===r,"drop-container":v===r,"drag-over":!D&&E.value,"drag-over-gap-top":!D&&A.value,"drag-over-gap-bottom":!D&&j.value,"filter-node":g&&g(V.value)}),style:n.style,draggable:P,"aria-grabbed":F,onDragstart:P?se:void 0,onDragenter:N?ce:void 0,onDragover:N?le:void 0,onDragleave:N?ue:void 0,onDrop:N?fe:void 0,onDragend:N?de:void 0,onMousemove:f},I),O),[s(pE,{prefixCls:h,level:k,isStart:a,isEnd:o},null),he(),K(),ve(),xe()])}}});function SE(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function CE(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function wE(e){return e.split(`-`)}function TE(e,t){return`${e}-${t}`}function EE(e){return e&&e.type&&e.type.isTreeNode}function DE(e,t){let n=[],r=t[e];function i(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(e=>{let{key:t,children:r}=e;n.push(t),i(r)})}return i(r.children),n}function OE(e){if(e.parent){let t=wE(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kE(e){let t=wE(e.pos);return Number(t[t.length-1])===0}function AE(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=s[n.eventKey];if(de.key===h.key);h=s[o[e<=0?0:e-1].key]}let g=h.key,_=h,v=h.key,y=0,b=0;if(!c.has(g))for(let e=0;e-1.5?a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:0})?y=0:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1:a({dragNode:x,dropNode:S,dropPosition:1})?y=1:C=!1,{dropPosition:y,dropLevelOffset:b,dropTargetKey:h.key,dropTargetPos:h.pos,dragOverNodeKey:v,dropContainerKey:y===0?null:h.parent?.key||null,dropAllowed:C}}function jE(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function ME(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function NE(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=t[e];if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var PE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:[];return ve(e).map(e=>{if(!EE(e))return null;let n=e.children||{},r=e.key,i={};for(let[t,n]of Object.entries(e.props))i[Ae(t)]=n;let{isLeaf:a,checkable:o,selectable:s,disabled:c,disableCheckbox:l}=i,u={isLeaf:a||a===``||void 0,checkable:o||o===``||void 0,selectable:s||s===``||void 0,disabled:c||c===``||void 0,disableCheckbox:l||l===``||void 0},d=G(G({},i),u),{title:f=n.title?.call(n,d),icon:p=n.icon?.call(n,d),switcherIcon:m=n.switcherIcon?.call(n,d)}=i,h=PE(i,[`title`,`icon`,`switcherIcon`]),g=n.default?.call(n),_=G(G(G({},h),{title:f,icon:p,switcherIcon:m,key:r,isLeaf:a}),u),v=t(g);return v.length&&(_.children=v),_})}return t(e)}function RE(e,t,n){let{_title:r,key:i,children:a}=IE(n),o=new Set(t===!0?[]:t),s=[];function c(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.map((l,u)=>{let d=TE(n?n.pos:`0`,u),f=FE(l[i],d),p;for(let e=0;ee[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>FE(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?TE(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function BE(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0,c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),zE(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=FE(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function VE(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:i,loadingKeysSet:a,checkedKeysSet:o,halfCheckedKeysSet:s,dragOverNodeKey:c,dropPosition:l,keyEntities:u}=t,d=u[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:i.has(e),loading:a.has(e),checked:o.has(e),halfChecked:s.has(e),pos:String(d?d.pos:``),parent:d.parent,dragOver:c===e&&l===0,dragOverGapTop:c===e&&l===-1,dragOverGapBottom:c===e&&l===1}}function HE(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m=G(G({dataRef:t},t),{expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p,key:p});return`props`in m||Object.defineProperty(m,"props",{get(){return e}}),m}var UE=((e,t)=>a(()=>BE(e.value,{fieldNames:t.value,initWrapper:e=>G(G({},e),{pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value.value]).join(QT);n.pathKeyEntities[r]=e,e.key=r}}).pathKeyEntities));function WE(e){let t=M(!1),n=W({});return P(()=>{if(!e.value){t.value=!1,n.value={};return}let r={matchInputWidth:!0,limit:50};e.value&&typeof e.value==`object`&&(r=G(G({},r),e.value)),r.limit<=0&&delete r.limit,t.value=!0,n.value=r}),{showSearch:t,searchConfig:n}}var GE=`__rc_cascader_search_mark__`,KE=(e,t,n)=>{let{label:r}=n;return t.some(t=>String(t[r]).toLowerCase().includes(e.toLowerCase()))},qE=e=>{let{path:t,fieldNames:n}=e;return t.map(e=>e[n.label]).join(` / `)},JE=((e,t,n,r,i,o)=>a(()=>{let{filter:a=KE,render:s=qE,limit:c=50,sort:l}=i.value,u=[];if(!e.value)return[];function d(t,i){t.forEach(t=>{if(!l&&c>0&&u.length>=c)return;let f=[...i,t],p=t[n.value.children];(!p||p.length===0||o.value)&&a(e.value,f,{label:n.value.label})&&u.push(G(G({},t),{[n.value.label]:s({inputValue:e.value,path:f,prefixCls:r.value,fieldNames:n.value}),[GE]:f})),p&&d(t[n.value.children],f)})}return d(t.value,[]),l&&u.sort((t,r)=>l(t[GE],r[GE],e.value,n.value)),c>0?u.slice(0,c):u}));function YE(e,t,n){let r=new Set(e);return e.filter(e=>{let i=t[e],a=i?i.parent:null,o=i?i.children:null;return n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function XE(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=t,a=[];for(let t=0;t{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}var ZE=((e,t,n)=>a(()=>{let r=[],i=[];return n.value.forEach(n=>{XE(n,e.value,t.value).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]}));function QE(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function $E(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function eD(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(e=>{let{key:t}=e,n=i.has(t);s&&!n&&(s=!1),!c&&(n||a.has(t))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(QE(a,i))}}function tD(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(e=>{let{key:t}=e,n=a.has(t);r&&!n&&(r=!1),!c&&(n||o.has(t))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(QE(o,a))}}function nD(e,t,n,r,i,a){let o=[],s;s=a||$E;let c=new Set(e.filter(e=>{let t=!!n[e];return t||o.push(e),t}));o.length,`${o.slice(0,100).map(e=>`'${e}'`).join(`, `)}`;let l;return l=t===!0?eD(c,i,r,s):tD(c,t.halfCheckedKeys,i,r,s),l}var rD=((e,t,n,r,i)=>a(()=>{let a=i.value||(e=>{let{labels:t}=e,n=r.value?t.slice(-1):t;return n.every(e=>[`string`,`number`].includes(typeof e))?n.join(` / `):n.reduce((e,t,n)=>{let r=Xe(t)?on(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.value.map(e=>{let r=XE(e,t.value,n.value),i=a({labels:r.map(e=>{let{option:t,value:r}=e;return t?.[n.value.label]??r}),selectedOptions:r.map(e=>{let{option:t}=e;return t})}),o=tE(e);return{label:i,value:o,key:o,valueCells:e}})})),iD=Symbol(`CascaderContextKey`),aD=t=>{e(iD,t)},oD=()=>C(iD),sD=(()=>{let e=Kl(),{values:t}=oD(),[n,r]=dn([]);return H(()=>e.open,()=>{if(e.open&&!e.multiple){let e=t.value[0];r(e||[])}},{immediate:!0}),[n,r]}),cD=((e,t,n,r,i,o)=>{let s=Kl(),c=a(()=>s.direction===`rtl`),[l,u,d]=[W([]),W(),W([])];P(()=>{let e=-1,i=t.value,a=[],o=[],s=r.value.length;for(let t=0;te[n.value.value]===r.value[t]);if(s===-1)break;e=s,a.push(e),o.push(r.value[t]),i=i[e][n.value.children]}let c=t.value;for(let e=0;e{i(e)},p=e=>{let t=d.value.length,r=u.value;r===-1&&e<0&&(r=t);for(let i=0;i{if(l.value.length>1){let e=l.value.slice(0,-1);f(e)}else s.toggleOpen(!1)},h=()=>{let e=(d.value[u.value]?.[n.value.children]||[]).find(e=>!e.disabled);if(e){let t=[...l.value,e[n.value.value]];f(t)}};e.expose({onKeydown:e=>{let{which:t}=e;switch(t){case $.UP:case $.DOWN:{let e=0;t===$.UP?e=-1:t===$.DOWN&&(e=1),e!==0&&p(e);break}case $.LEFT:c.value?h():m();break;case $.RIGHT:c.value?m():h();break;case $.BACKSPACE:s.searchValue||m();break;case $.ENTER:if(l.value.length){let e=d.value[u.value],t=e?.__rc_cascader_search_mark__||[];t.length?o(t.map(e=>e[n.value.value]),t[t.length-1]):o(l.value,e)}break;case $.ESC:s.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:()=>{}})});function lD(e){let{prefixCls:t,checked:n,halfChecked:r,disabled:i,onClick:a}=e,{customSlots:o,checkable:c}=oD(),l=c.value===!1?c.value:o.value.checkable,u=typeof l==`function`?l():typeof l==`boolean`?null:l;return s(`span`,{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&r,[`${t}-disabled`]:i},onClick:a},[u])}lD.props=[`prefixCls`,`checked`,`halfChecked`,`disabled`,`onClick`],lD.displayName=`Checkbox`,lD.inheritAttrs=!1;var uD=`__cascader_fix_label__`;function dD(e){let{prefixCls:t,multiple:n,options:r,activeValue:i,prevValuePath:a,onToggleOpen:o,onSelect:c,onActive:l,checkedSet:u,halfCheckedSet:d,loadingKeys:f,isSelectable:p}=e;var m,h;let g=`${t}-menu`,_=`${t}-menu-item`,{fieldNames:v,changeOnSelect:y,expandTrigger:b,expandIcon:x,loadingIcon:S,dropdownMenuColumnStyle:C,customSlots:w}=oD(),T=x.value??(m=w.value).expandIcon?.call(m),E=S.value??(h=w.value).loadingIcon?.call(h),D=b.value===`hover`;return s(`ul`,{class:g,role:`menu`},[r.map(e=>{let{disabled:r}=e,m=e[GE],h=e.__cascader_fix_label__??e[v.value.label],g=e[v.value.value],b=aE(e,v.value),x=m?m.map(e=>e[v.value.value]):[...a,g],S=tE(x),w=f.includes(S),O=u.has(S),k=d.has(S),A=()=>{!r&&(!D||!b)&&l(x)},j=()=>{p(e)&&c(x,b)},M;return typeof e.title==`string`?M=e.title:typeof h==`string`&&(M=h),s(`li`,{key:S,class:[_,{[`${_}-expand`]:!b,[`${_}-active`]:i===g,[`${_}-disabled`]:r,[`${_}-loading`]:w}],style:C.value,role:`menuitemcheckbox`,title:M,"aria-checked":O,"data-path-key":S,onClick:()=>{A(),(!n||b)&&j()},onDblclick:()=>{y.value&&o(!1)},onMouseenter:()=>{D&&A()},onMousedown:e=>{e.preventDefault()}},[n&&s(lD,{prefixCls:`${t}-checkbox`,checked:O,halfChecked:k,disabled:r,onClick:e=>{e.stopPropagation(),j()}},null),s(`div`,{class:`${_}-content`},[h]),!w&&T&&!b&&s(`div`,{class:`${_}-expand-icon`},[on(T)]),w&&E&&s(`div`,{class:`${_}-loading-icon`},[on(E)])])})])}dD.props=[`prefixCls`,`multiple`,`options`,`activeValue`,`prevValuePath`,`onToggleOpen`,`onSelect`,`onActive`,`checkedSet`,`halfCheckedSet`,`loadingKeys`,`isSelectable`],dD.displayName=`Column`,dD.inheritAttrs=!1;var fD=d({compatConfig:{MODE:3},name:`OptionList`,inheritAttrs:!1,setup(e,t){let{attrs:n,slots:r}=t,i=Kl(),o=W(),c=a(()=>i.direction===`rtl`),{options:l,values:u,halfValues:d,fieldNames:f,changeOnSelect:p,onSelect:m,searchOptions:h,dropdownPrefixCls:g,loadData:_,expandTrigger:v,customSlots:y}=oD(),b=a(()=>g.value||i.prefixCls),x=M([]),S=e=>{if(!_.value||i.searchValue)return;let t=XE(e,l.value,f.value).map(e=>{let{option:t}=e;return t}),n=t[t.length-1];if(n&&!aE(n,f.value)){let n=tE(e);x.value=[...x.value,n],_.value(t)}};P(()=>{x.value.length&&x.value.forEach(e=>{let t=XE(rE(e),l.value,f.value,!0).map(e=>{let{option:t}=e;return t}),n=t[t.length-1];(!n||n[f.value.children]||aE(n,f.value))&&(x.value=x.value.filter(t=>t!==e))})});let C=a(()=>new Set(nE(u.value))),w=a(()=>new Set(nE(d.value))),[T,E]=sD(),O=e=>{E(e),S(e)},k=e=>{let{disabled:t}=e,n=aE(e,f.value);return!t&&(n||p.value||i.multiple)},A=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];m(e),!i.multiple&&(t||p.value&&(v.value===`hover`||n))&&i.toggleOpen(!1)},j=a(()=>i.searchValue?h.value:l.value),N=a(()=>{let e=[{options:j.value}],t=j.value;for(let n=0;ne[f.value.value]===r)?.[f.value.children];if(!i?.length)break;t=i,e.push({options:i})}return e});cD(t,j,f,T,O,(e,t)=>{k(t)&&A(e,aE(t,f.value),!0)});let F=e=>{e.preventDefault()};return D(()=>{H(T,e=>{for(let t=0;t{var e;let{notFoundContent:t=r.notFoundContent?.call(r)||(e=y.value).notFoundContent?.call(e),multiple:a,toggleOpen:l}=i,u=!N.value[0]?.options?.length,d=[{[f.value.value]:`__EMPTY__`,[uD]:t,disabled:!0}],p=G(G({},n),{multiple:!u&&a,onSelect:A,onActive:O,onToggleOpen:l,checkedSet:C.value,halfCheckedSet:w.value,loadingKeys:x.value,isSelectable:k}),m=(u?[{options:d}]:N.value).map((e,t)=>{let n=T.value.slice(0,t),r=T.value[t];return s(dD,X(X({key:t},p),{},{prefixCls:b.value,options:e.options,prevValuePath:n,activeValue:r}),null)});return s(`div`,{class:[`${b.value}-menus`,{[`${b.value}-menu-empty`]:u,[`${b.value}-rtl`]:c.value}],onMousedown:F,ref:o},[m])}}});function pD(e){let t=W(0),n=M();return P(()=>{let r=new Map,i=0,a=e.value||{};for(let e in a)if(Object.prototype.hasOwnProperty.call(a,e)){let t=a[e],{level:n}=t,o=r.get(n);o||(o=new Set,r.set(n,o)),o.add(t),i=Math.max(i,n)}t.value=i,n.value=r}),{maxLevel:t,levelEntities:n}}function mD(){return G(G({},Gn(Ql(),[`tokenSeparators`,`mode`,`showSearch`])),{id:String,prefixCls:String,fieldNames:ut(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:$T},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:J.any,loadingIcon:J.any})}function hD(){return G(G({},mD()),{onChange:Function,customSlots:Object})}function gD(e){return Array.isArray(e)&&Array.isArray(e[0])}function _D(e){return e?gD(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}var vD=d({compatConfig:{MODE:3},name:`Cascader`,inheritAttrs:!1,props:Vn(hD(),{}),setup(e,t){let{attrs:n,expose:r,slots:o}=t,c=Pu(y(e,`id`)),l=a(()=>!!e.checkable),[u,d]=zu(e.defaultValue,{value:a(()=>e.value),postState:_D}),f=a(()=>iE(e.fieldNames)),p=a(()=>e.options||[]),m=UE(p,f),h=e=>{let t=m.value;return e.map(e=>{let{nodes:n}=t[e];return n.map(e=>e[f.value.value])})},[g,_]=zu(``,{value:a(()=>e.searchValue),postState:e=>e||``}),v=(t,n)=>{_(t),n.source!==`blur`&&e.onSearch&&e.onSearch(t)},{showSearch:b,searchConfig:x}=WE(y(e,`showSearch`)),S=JE(g,p,f,a(()=>e.dropdownPrefixCls||e.prefixCls),x,y(e,`changeOnSelect`)),C=ZE(p,f,u),[w,T,E]=[W([]),W([]),W([])],{maxLevel:D,levelEntities:O}=pD(m);P(()=>{let[e,t]=C.value;if(!l.value||!u.value.length){[w.value,T.value,E.value]=[e,[],t];return}let n=nE(e),r=m.value,{checkedKeys:i,halfCheckedKeys:a}=nD(n,!0,r,D.value,O.value);[w.value,T.value,E.value]=[h(i),h(a),t]});let k=rD(a(()=>{let t=YE(nE(w.value),m.value,e.showCheckedStrategy);return[...E.value,...h(t)]}),p,f,l,y(e,`displayRender`)),A=t=>{if(d(t),e.onChange){let n=_D(t),r=n.map(e=>XE(e,p.value,f.value).map(e=>e.option)),i=l.value?n:n[0],a=l.value?r:r[0];e.onChange(i,a)}},j=t=>{if(_(``),!l.value)A(t);else{let n=tE(t),r=nE(w.value),i=nE(T.value),a=r.includes(n),o=E.value.some(e=>tE(e)===n),s=w.value,c=E.value;if(o&&!a)c=E.value.filter(e=>tE(e)!==n);else{let t=a?r.filter(e=>e!==n):[...r,n],o;a?{checkedKeys:o}=nD(t,{checked:!1,halfCheckedKeys:i},m.value,D.value,O.value):{checkedKeys:o}=nD(t,!0,m.value,D.value,O.value);let c=YE(o,m.value,e.showCheckedStrategy);s=h(c)}A([...c,...s])}},M=(e,t)=>{if(t.type===`clear`){A([]);return}let{valueCells:n}=t.values[0];j(n)},N=a(()=>e.open===void 0?e.popupVisible:e.open),F=a(()=>e.dropdownStyle||e.popupStyle||{}),I=a(()=>e.placement||e.popupPlacement),L=t=>{var n,r;(n=e.onDropdownVisibleChange)==null||n.call(e,t),(r=e.onPopupVisibleChange)==null||r.call(e,t)},{changeOnSelect:ee,checkable:R,dropdownPrefixCls:z,loadData:B,expandTrigger:te,expandIcon:V,loadingIcon:ne,dropdownMenuColumnStyle:re,customSlots:H,dropdownClassName:U}=i(e);aD({options:p,fieldNames:f,values:w,halfValues:T,changeOnSelect:ee,onSelect:j,checkable:R,searchOptions:S,dropdownPrefixCls:z,loadData:B,expandTrigger:te,expandIcon:V,loadingIcon:ne,dropdownMenuColumnStyle:re,customSlots:H});let ie=W();r({focus(){var e;(e=ie.value)==null||e.focus()},blur(){var e;(e=ie.value)==null||e.blur()},scrollTo(e){var t;(t=ie.value)==null||t.scrollTo(e)}});let ae=a(()=>Gn(e,`id.prefixCls.fieldNames.defaultValue.value.changeOnSelect.onChange.displayRender.checkable.searchValue.onSearch.showSearch.expandTrigger.options.dropdownPrefixCls.loadData.popupVisible.open.dropdownClassName.dropdownMenuColumnStyle.popupPlacement.placement.onDropdownVisibleChange.onPopupVisibleChange.expandIcon.loadingIcon.customSlots.showCheckedStrategy.children`.split(`.`)));return()=>{let t=!(g.value?S.value:p.value).length,{dropdownMatchSelectWidth:r=!1}=e,i=g.value&&x.value.matchInputWidth||t?{}:{minWidth:`auto`};return s(tu,X(X(X({},ae.value),n),{},{ref:ie,id:c,prefixCls:e.prefixCls,dropdownMatchSelectWidth:r,dropdownStyle:G(G({},F.value),i),displayValues:k.value,onDisplayValuesChange:M,mode:l.value?`multiple`:void 0,searchValue:g.value,onSearch:v,showSearch:b.value,OptionList:fD,emptyOptions:t,open:N.value,dropdownClassName:U.value,placement:I.value,onDropdownVisibleChange:L,getRawInputElement:()=>o.default?.call(o)}),o)}}}),yD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function bD(e){for(var t=1;t{let e=M(!1);return D(()=>{e.value=Jn()}),e}),wD=Symbol(`rowContextKey`),TD=t=>{e(wD,t)},ED=()=>C(wD,{gutter:a(()=>void 0),wrap:a(()=>void 0),supportFlexGap:a(()=>void 0)}),DD=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around ":{justifyContent:`space-around`},"&-space-evenly ":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},OD=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},kD=(e,t)=>{let{componentCls:n,gridColumns:r}=e,i={};for(let e=r;e>=0;e--)e===0?(i[`${n}${t}-${e}`]={display:`none`},i[`${n}-push-${e}`]={insetInlineStart:`auto`},i[`${n}-pull-${e}`]={insetInlineEnd:`auto`},i[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},i[`${n}${t}-offset-${e}`]={marginInlineEnd:0},i[`${n}${t}-order-${e}`]={order:0}):(i[`${n}${t}-${e}`]={display:`block`,flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`},i[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},i[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},i[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},i[`${n}${t}-order-${e}`]={order:e});return i},AD=(e,t)=>kD(e,t),jD=(e,t,n)=>({[`@media (min-width: ${t}px)`]:G({},AD(e,n))}),MD=Le(`Grid`,e=>[DD(e)]),ND=Le(`Grid`,e=>{let t=Fe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[OD(t),AD(t,``),AD(t,`-xs`),Object.keys(n).map(e=>jD(t,n[e],e)).reduce((e,t)=>G(G({},e),t),{})]}),PD=d({compatConfig:{MODE:3},name:`ARow`,inheritAttrs:!1,props:{align:$t([String,Object]),justify:$t([String,Object]),prefixCls:String,gutter:$t([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o}=K(`row`,e),[c,l]=MD(i),u,d=kg(),f=W({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),m=W({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),h=t=>a(()=>{if(typeof e[t]==`string`)return e[t];if(typeof e[t]!=`object`)return``;for(let n=0;n{u=d.value.subscribe(t=>{m.value=t;let n=e.gutter||0;(!Array.isArray(n)&&typeof n==`object`||Array.isArray(n)&&(typeof n[0]==`object`||typeof n[1]==`object`))&&(f.value=t)})}),p(()=>{d.value.unsubscribe(u)});let y=a(()=>{let t=[void 0,void 0],{gutter:n=0}=e;return(Array.isArray(n)?n:[n,void 0]).forEach((e,n)=>{if(typeof e==`object`)for(let r=0;re.wrap)});let b=a(()=>Z(i.value,{[`${i.value}-no-wrap`]:e.wrap===!1,[`${i.value}-${_.value}`]:_.value,[`${i.value}-${g.value}`]:g.value,[`${i.value}-rtl`]:o.value===`rtl`},r.class,l.value)),x=a(()=>{let e=y.value,t={},n=e[0]!=null&&e[0]>0?`${e[0]/-2}px`:void 0,r=e[1]!=null&&e[1]>0?`${e[1]/-2}px`:void 0;return n&&(t.marginLeft=n,t.marginRight=n),v.value?t.rowGap=`${e[1]}px`:r&&(t.marginTop=r,t.marginBottom=r),t});return()=>c(s(`div`,X(X({},r),{},{class:b.value,style:G(G({},x.value),r.style)}),[n.default?.call(n)]))}});function FD(){return FD=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function BD(e,t,n){return BD=zD()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&RD(i,n.prototype),i},BD.apply(null,arguments)}function VD(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function HD(e){var t=typeof Map==`function`?new Map:void 0;return HD=function(e){if(e===null||!VD(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return BD(e,arguments,LD(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),RD(n,e)},HD(e)}var UD=/%[sdj%]/g,WD=function(){};function GD(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function KD(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(UD,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}default:return e}}):e}function qD(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function JD(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||qD(t)&&typeof e==`string`&&!e)}function YD(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function XD(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},lO={integer:function(e){return lO.number(e)&&parseInt(e,10)===e},float:function(e){return lO.number(e)&&!lO.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&typeof e==`number`},object:function(e){return typeof e==`object`&&!lO.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(cO.email)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(sO())},hex:function(e){return typeof e==`string`&&!!e.match(cO.hex)}},uO=function(e,t,n,r,i){if(e.required&&t===void 0){iO(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?lO[o](t)||r.push(KD(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(KD(i.messages.types[o],e.fullField,e.type))},dO=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(KD(i.messages[u].len,e.fullField,e.len)):o&&!s&&le.max?r.push(KD(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(KD(i.messages[u].range,e.fullField,e.min,e.max))},fO=`enum`,pO={required:iO,whitespace:aO,type:uO,range:dO,enum:function(e,t,n,r,i){e[fO]=Array.isArray(e[fO])?e[fO]:[],e[fO].indexOf(t)===-1&&r.push(KD(i.messages[fO],e.fullField,e[fO].join(`, `)))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(KD(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(KD(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},mO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t,`string`)&&!e.required)return n();pO.required(e,t,r,a,i,`string`),JD(t,`string`)||(pO.type(e,t,r,a,i),pO.range(e,t,r,a,i),pO.pattern(e,t,r,a,i),e.whitespace===!0&&pO.whitespace(e,t,r,a,i))}n(a)},hO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&pO.type(e,t,r,a,i)}n(a)},gO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&(pO.type(e,t,r,a,i),pO.range(e,t,r,a,i))}n(a)},_O=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&pO.type(e,t,r,a,i)}n(a)},vO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),JD(t)||pO.type(e,t,r,a,i)}n(a)},yO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&(pO.type(e,t,r,a,i),pO.range(e,t,r,a,i))}n(a)},bO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&(pO.type(e,t,r,a,i),pO.range(e,t,r,a,i))}n(a)},xO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();pO.required(e,t,r,a,i,`array`),t!=null&&(pO.type(e,t,r,a,i),pO.range(e,t,r,a,i))}n(a)},SO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&pO.type(e,t,r,a,i)}n(a)},CO=`enum`,wO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i),t!==void 0&&pO[CO](e,t,r,a,i)}n(a)},TO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t,`string`)&&!e.required)return n();pO.required(e,t,r,a,i),JD(t,`string`)||pO.pattern(e,t,r,a,i)}n(a)},EO=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t,`date`)&&!e.required)return n();if(pO.required(e,t,r,a,i),!JD(t,`date`)){var o=t instanceof Date?t:new Date(t);pO.type(e,o,r,a,i),o&&pO.range(e,o.getTime(),r,a,i)}}n(a)},DO=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:typeof t;pO.required(e,t,r,a,i,o),n(a)},OO=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t,a)&&!e.required)return n();pO.required(e,t,r,o,i,a),JD(t,a)||pO.type(e,t,r,o,i)}n(o)},kO={string:mO,method:hO,number:gO,boolean:_O,regexp:vO,integer:yO,float:bO,array:xO,object:SO,enum:wO,pattern:TO,date:EO,url:OO,hex:OO,email:OO,required:DO,any:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(JD(t)&&!e.required)return n();pO.required(e,t,r,a,i)}n(a)}};function AO(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var jO=AO(),MO=function(){function e(e){this.rules=null,this._messages=jO,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=rO(AO(),e)),this._messages},t.validate=function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=t,o=n,s=r;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,e)}else t.push(e)}for(var i=0;i3&&arguments[3]!==void 0&&arguments[3];return t.length&&r&&n===void 0&&!PO(e,t.slice(0,-1))?e:FO(e,t,n,r)}function LO(e){return NO(e)}function RO(e,t){return PO(e,t)}function zO(e,t,n){return IO(e,t,n,arguments.length>3&&arguments[3]!==void 0&&arguments[3])}function BO(e,t){return e&&e.some(e=>GO(e,t))}function VO(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function HO(e,t){let n=Array.isArray(e)?[...e]:G({},e);return t&&Object.keys(t).forEach(e=>{let r=n[e],i=t[e],a=VO(r)&&VO(i);n[e]=a?HO(r,i||{}):i}),n}function UO(e){return[...arguments].slice(1).reduce((e,t)=>HO(e,t),e)}function WO(e,t){let n={};return t.forEach(t=>{let r=RO(e,t);n=zO(n,t,r)}),n}function GO(e,t){return!e||!t||e.length!==t.length?!1:e.every((e,n)=>t[n]===e)}var KO="'${name}' is not a valid ${type}",qO={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:KO,method:KO,array:KO,object:KO,number:KO,date:KO,boolean:KO,integer:KO,float:KO,regexp:KO,email:KO,url:KO,hex:KO},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},JO=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},YO=MO;function XO(e,t){return e.replace(/\$\{\w+\}/g,e=>t[e.slice(2,-1)])}function ZO(e,t,n,r,i){return JO(this,void 0,void 0,function*(){let a=G({},n);delete a.ruleIndex,delete a.trigger;let s=null;a&&a.type===`array`&&a.defaultField&&(s=a.defaultField,delete a.defaultField);let c=new YO({[e]:[a]}),l=UO({},qO,r.validateMessages);c.messages(l);let u=[];try{yield Promise.resolve(c.validate({[e]:t},G({},r)))}catch(e){e.errors?u=e.errors.map((e,t)=>{let{message:n}=e;return Xe(n)?o(n,{key:`error_${t}`}):n}):(console.error(e),u=[l.default()])}if(!u.length&&s)return(yield Promise.all(t.map((t,n)=>ZO(`${e}.${n}`,t,s,r,i)))).reduce((e,t)=>[...e,...t],[]);let d=G(G(G({},n),{name:e,enum:(n.enum||[]).join(`, `)}),i);return u.map(e=>typeof e==`string`?XO(e,d):e)})}function QO(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r=G(G({},e),{ruleIndex:t});return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,function(){var e=[...arguments];Promise.resolve().then(()=>{i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort((e,t)=>{let{warningOnly:n,ruleIndex:r}=e,{warningOnly:i,ruleIndex:a}=t;return!!n==!!i?r-a:n?1:-1}),c;if(i===!0)c=new Promise((e,n)=>JO(this,void 0,void 0,function*(){for(let e=0;eZO(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?ek(e):$O(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}function $O(e){return JO(this,void 0,void 0,function*(){return Promise.all(e).then(e=>[].concat(...e))})}function ek(e){return JO(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}var tk=Symbol(`formContextKey`),nk=t=>{e(tk,t)},rk=()=>C(tk,{name:a(()=>void 0),labelAlign:a(()=>`right`),vertical:a(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:a(()=>void 0),rules:a(()=>void 0),colon:a(()=>void 0),labelWrap:a(()=>void 0),labelCol:a(()=>void 0),requiredMark:a(()=>!1),validateTrigger:a(()=>void 0),onValidate:()=>{},validateMessages:a(()=>qO)}),ik=Symbol(`formItemPrefixContextKey`),ak=t=>{e(ik,t)},ok=()=>C(ik,{prefixCls:a(()=>``)});function sk(e){return typeof e==`number`?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var ck=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),lk=[`xs`,`sm`,`md`,`lg`,`xl`,`xxl`],uk=d({compatConfig:{MODE:3},name:`ACol`,inheritAttrs:!1,props:ck(),setup(e,t){let{slots:n,attrs:r}=t,{gutter:i,supportFlexGap:o,wrap:c}=ED(),{prefixCls:l,direction:u}=K(`col`,e),[d,f]=ND(l),p=a(()=>{let{span:t,order:n,offset:i,push:a,pull:o}=e,s=l.value,c={};return lk.forEach(t=>{let n={},r=e[t];typeof r==`number`?n.span=r:typeof r==`object`&&(n=r||{}),c=G(G({},c),{[`${s}-${t}-${n.span}`]:n.span!==void 0,[`${s}-${t}-order-${n.order}`]:n.order||n.order===0,[`${s}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${s}-${t}-push-${n.push}`]:n.push||n.push===0,[`${s}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${s}-rtl`]:u.value===`rtl`})}),Z(s,{[`${s}-${t}`]:t!==void 0,[`${s}-order-${n}`]:n,[`${s}-offset-${i}`]:i,[`${s}-push-${a}`]:a,[`${s}-pull-${o}`]:o},c,r.class,f.value)}),m=a(()=>{let{flex:t}=e,n=i.value,r={};if(n&&n[0]>0){let e=`${n[0]/2}px`;r.paddingLeft=e,r.paddingRight=e}if(n&&n[1]>0&&!o.value){let e=`${n[1]/2}px`;r.paddingTop=e,r.paddingBottom=e}return t&&(r.flex=sk(t),c.value===!1&&!r.minWidth&&(r.minWidth=0)),r});return()=>d(s(`div`,X(X({},r),{},{class:p.value,style:[m.value,r.style]}),[n.default?.call(n)]))}}),dk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z`}},{tag:`path`,attrs:{d:`M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z`}}]},name:`question-circle`,theme:`outlined`};function fk(e){for(var t=1;t{let{slots:n,emit:r,attrs:i}=t,{prefixCls:a,htmlFor:o,labelCol:c,labelAlign:l,colon:u,required:d,requiredMark:f}=G(G({},e),i),[p]=Ft(`Form`),m=e.label??n.label?.call(n);if(!m)return null;let{vertical:h,labelAlign:g,labelCol:_,labelWrap:y,colon:b}=rk(),x=c||_?.value||{},S=l||g?.value,C=`${a}-item-label`,w=Z(C,S===`left`&&`${C}-left`,x.class,{[`${C}-wrap`]:!!y.value}),T=m,E=u===!0||b?.value!==!1&&u!==!1;if(E&&!h.value&&typeof m==`string`&&m.trim()!==``&&(T=m.replace(/[:|:]\s*$/,``)),e.tooltip||n.tooltip){let t=s(`span`,{class:`${a}-item-tooltip`},[s(m_,{title:e.tooltip},{default:()=>[s(mk,null,null)]})]);T=s(v,null,[T,n.tooltip?n.tooltip?.call(n,{class:`${a}-item-tooltip`}):t])}f===`optional`&&!d&&(T=s(v,null,[T,s(`span`,{class:`${a}-item-optional`},[p.value?.optional||Ut.Form?.optional])]));let D=Z({[`${a}-item-required`]:d,[`${a}-item-required-mark-optional`]:f===`optional`,[`${a}-item-no-colon`]:!E});return s(uk,X(X({},x),{},{class:w}),{default:()=>[s(`label`,{for:o,class:D,title:typeof m==`string`?m:``,onClick:e=>r(`click`,e)},[T])]})};hk.displayName=`FormItemLabel`,hk.inheritAttrs=!1;var gk=e=>{let{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:`hidden`,transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:`translateY(-5px)`,opacity:0,"&-active":{transform:`translateY(0)`,opacity:1}},[`&${r}-leave-active`]:{transform:`translateY(-5px)`}}}}},_k=e=>({legend:{display:`block`,width:`100%`,marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:`inherit`,border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:`border-box`},'input[type="radio"], input[type="checkbox"]':{lineHeight:`normal`},'input[type="file"]':{display:`block`},'input[type="range"]':{display:`block`,width:`100%`},"select[multiple], select[size]":{height:`auto`},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:`block`,paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),vk=(e,t)=>{let{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},yk=e=>{let{componentCls:t}=e;return{[e.componentCls]:G(G(G({},Ne(e)),_k(e)),{[`${t}-text`]:{display:`inline-block`,paddingInlineEnd:e.paddingSM},"&-small":G({},vk(e,e.controlHeightSM)),"&-large":G({},vk(e,e.controlHeightLG))})}},bk=e=>{let{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i}=e;return{[t]:G(G({},Ne(e)),{marginBottom:e.marginLG,verticalAlign:`top`,"&-with-help":{transition:`none`},[`&-hidden, + &-hidden.${i}-row`]:{display:`none`},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:`inline-block`,flexGrow:0,overflow:`hidden`,whiteSpace:`nowrap`,textAlign:`end`,verticalAlign:`middle`,"&-left":{textAlign:`start`},"&-wrap":{overflow:`unset`,lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:`unset`},"> label":{position:`relative`,display:`inline-flex`,alignItems:`center`,maxWidth:`100%`,height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:`top`},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:`inline-block`,marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:`SimSun, sans-serif`,lineHeight:1,content:`"*"`,[`${r}-hide-required-mark &`]:{display:`none`}},[`${t}-optional`]:{display:`inline-block`,marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:`none`}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:`help`,writingMode:`horizontal-tb`,marginInlineStart:e.marginXXS},"&::after":{content:`":"`,position:`relative`,marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:`" "`}}},[`${t}-control`]:{display:`flex`,flexDirection:`column`,flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:`100%`},"&-input":{position:`relative`,display:`flex`,alignItems:`center`,minHeight:e.controlHeight,"&-content":{flex:`auto`,maxWidth:`100%`}}},[t]:{"&-explain, &-extra":{clear:`both`,color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:`100%`},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:`auto`,opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:`center`,visibility:`visible`,animationName:ur,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:`none`,"&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},xk=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:`1 1 0`,minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:`unset`}}}},Sk=e=>{let{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:`flex`,flexWrap:`wrap`,[n]:{flex:`none`,flexWrap:`nowrap`,marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, + > ${n}-control`]:{display:`inline-block`,verticalAlign:`top`},[`> ${n}-label`]:{flex:`none`},[`${t}-text`]:{display:`inline-block`},[`${n}-has-feedback`]:{display:`inline-block`}}}}},Ck=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:`initial`,textAlign:`start`,"> label":{margin:0,"&::after":{display:`none`}}}),wk=e=>{let{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Ck(e),[t]:{[n]:{flexWrap:`wrap`,[`${n}-label, + ${n}-control`]:{flex:`0 0 100%`,maxWidth:`100%`}}}}},Tk=e=>{let{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:`column`},"&-label > label":{height:`auto`},[`${t}-item-control`]:{width:`100%`}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:Ck(e),[`@media (max-width: ${e.screenXSMax}px)`]:[wk(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Ck(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Ck(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Ck(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Ck(e)}}}},Ek=Le(`Form`,(e,t)=>{let{rootPrefixCls:n}=t,r=Fe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[yk(r),bk(r),gk(r),xk(r),Sk(r),Tk(r),Hh(r),ur]}),Dk=d({compatConfig:{MODE:3},name:`ErrorList`,inheritAttrs:!1,props:[`errors`,`help`,`onErrorVisibleChanged`,`helpStatus`,`warnings`],setup(e,t){let{attrs:n}=t,{prefixCls:r,status:i}=ok(),o=a(()=>`${r.value}-item-explain`),c=a(()=>!!(e.errors&&e.errors.length)),l=W(i.value),[,u]=Ek(r);return H([c,i],()=>{c.value&&(l.value=i.value)}),()=>{let t=$v(`${r.value}-show-help-item`),i=Qt(`${r.value}-show-help-item`,t);return i.role=`alert`,i.class=[u.value,o.value,n.class,`${r.value}-show-help`],s(Gt,X(X({},ge(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[ie(s(jt,X(X({},i),{},{tag:`div`}),{default:()=>[e.errors?.map((e,t)=>s(`div`,{key:t,class:l.value?`${o.value}-${l.value}`:``},[e]))]}),[[st,!!e.errors?.length]])]})}}}),Ok=d({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:[`prefixCls`,`errors`,`hasFeedback`,`onDomErrorVisibleChange`,`wrapperCol`,`help`,`extra`,`status`,`marginBottom`,`onErrorVisibleChanged`],setup(e,t){let{slots:n}=t,r=rk(),{wrapperCol:i}=r,o=G({},r);return delete o.labelCol,delete o.wrapperCol,nk(o),ak({prefixCls:a(()=>e.prefixCls),status:a(()=>e.status)}),()=>{let{prefixCls:t,wrapperCol:r,marginBottom:a,onErrorVisibleChanged:o,help:c=n.help?.call(n),errors:l=ve(n.errors?.call(n)),extra:u=n.extra?.call(n)}=e,d=`${t}-item`,f=r||i?.value||{},p=Z(`${d}-control`,f.class);return s(uk,X(X({},f),{},{class:p}),{default:()=>s(v,null,[s(`div`,{class:`${d}-control-input`},[s(`div`,{class:`${d}-control-input-content`},[n.default?.call(n)])]),a!==null||l.length?s(`div`,{style:{display:`flex`,flexWrap:`nowrap`}},[s(Dk,{errors:l,help:c,class:`${d}-explain-connected`,onErrorVisibleChanged:o},null),!!a&&s(`div`,{style:{width:0,height:`${a}px`}},null)]):null,u?s(`div`,{class:`${d}-extra`},[u]):null])})}}});function kk(e){let t=M(e.value.slice()),n=null;return P(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}_e(`success`,`warning`,`error`,`validating`,``);var Ak={success:ft,warning:qt,error:yt,validating:at};function jk(e,t,n){let r=e,i=t,a=0;try{for(let e=i.length;a({htmlFor:String,prefixCls:String,label:J.any,help:J.any,extra:J.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:J.oneOf(_e(``,`success`,`warning`,`error`,`validating`)),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String}),Nk=0,Pk=`form_item`,Fk=d({compatConfig:{MODE:3},name:`AFormItem`,inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Mk(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:i}=t;e.prop;let o=`form-item-${++Nk}`,{prefixCls:c}=K(`form`,e),[l,u]=Ek(c),d=M(),f=rk(),m=a(()=>e.name||e.prop),h=M([]),g=M(!1),_=M(),y=a(()=>{let e=m.value;return LO(e)}),b=a(()=>{if(y.value.length){let e=f.name.value,t=y.value.join(`_`);return e?`${e}_${t}`:`${Pk}_${t}`}}),S=()=>{let e=f.model.value;if(!(!e||!m.value))return jk(e,y.value,!0).v},C=a(()=>S()),w=M(gm(C.value)),T=a(()=>{let t=e.validateTrigger===void 0?f.validateTrigger.value:e.validateTrigger;return t=t===void 0?`change`:t,NO(t)}),E=a(()=>{let t=f.rules.value,n=e.rules,r=e.required===void 0?[]:{required:!!e.required,trigger:T.value},i=jk(t,y.value);t=t?i.o[i.k]||i.v:[];let a=[].concat(n||t||[]);return $m(a,e=>e.required)?a:a.concat(r)}),O=a(()=>{let t=E.value,n=!1;return t&&t.length&&t.every(e=>!e.required||(n=!0,!1)),n||e.required}),A=M();P(()=>{A.value=e.validateStatus});let j=a(()=>{let t={};return typeof e.label==`string`?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=G(G({},t),e.messageVariables)),t}),N=t=>{if(y.value.length===0)return;let{validateFirst:n=!1}=e,{triggerName:r}=t||{},i=E.value;if(r&&(i=i.filter(e=>{let{trigger:t}=e;return!t&&!T.value.length||NO(t||T.value).includes(r)})),!i.length)return Promise.resolve();let a=QO(y.value,C.value,i,G({validateMessages:f.validateMessages.value},t),n,j.value);return A.value=`validating`,h.value=[],a.catch(e=>e).then(function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(A.value===`validating`){let t=e.filter(e=>e&&e.errors.length);A.value=t.length?`error`:`success`,h.value=t.map(e=>e.errors),f.onValidate(m.value,!h.value.length,h.value.length?se(h.value[0]):null)}}),a},F=()=>{N({triggerName:`blur`})},I=()=>{if(g.value){g.value=!1;return}N({triggerName:`change`})},L=()=>{A.value=e.validateStatus,g.value=!1,h.value=[]},ee=()=>{A.value=e.validateStatus,g.value=!0,h.value=[];let t=f.model.value||{},n=C.value,r=jk(t,y.value,!0);Array.isArray(n)?r.o[r.k]=[].concat(w.value??[]):r.o[r.k]=w.value,x(()=>{g.value=!1})},R=a(()=>e.htmlFor===void 0?b.value:e.htmlFor),z=()=>{let e=R.value;if(!e||!_.value)return;let t=_.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};i({onFieldBlur:F,onFieldChange:I,clearValidate:L,resetField:ee}),id({id:b,onFieldBlur:()=>{e.autoLink&&F()},onFieldChange:()=>{e.autoLink&&I()},clearValidate:L},a(()=>!!(e.autoLink&&f.model.value&&m.value)));let B=!1;H(m,e=>{e?B||(B=!0,f.addField(o,{fieldValue:C,fieldId:b,fieldName:m,resetField:ee,clearValidate:L,namePath:y,validateRules:N,rules:E})):(B=!1,f.removeField(o))},{immediate:!0}),p(()=>{f.removeField(o)});let te=kk(h),V=a(()=>e.validateStatus===void 0?te.value.length?`error`:A.value:e.validateStatus),ne=a(()=>({[`${c.value}-item`]:!0,[u.value]:!0,[`${c.value}-item-has-feedback`]:V.value&&e.hasFeedback,[`${c.value}-item-has-success`]:V.value===`success`,[`${c.value}-item-has-warning`]:V.value===`warning`,[`${c.value}-item-has-error`]:V.value===`error`,[`${c.value}-item-is-validating`]:V.value===`validating`,[`${c.value}-item-hidden`]:e.hidden})),re=k({});ld.useProvide(re),P(()=>{let t;if(e.hasFeedback){let e=V.value&&Ak[V.value];t=e?s(`span`,{class:Z(`${c.value}-item-feedback-icon`,`${c.value}-item-feedback-icon-${V.value}`)},[s(e,null,null)]):null}G(re,{status:V.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})});let U=M(null),ie=M(!1),W=()=>{if(d.value){let e=getComputedStyle(d.value);U.value=parseInt(e.marginBottom,10)}};D(()=>{H(ie,()=>{ie.value&&W()},{flush:`post`,immediate:!0})});let ae=e=>{e||(U.value=null)};return()=>{if(e.noStyle)return n.default?.call(n);let t=e.help??(n.help?ve(n.help()):null),i=!!(t!=null&&Array.isArray(t)&&t.length||te.value.length);return ie.value=i,l(s(`div`,{class:[ne.value,i?`${c.value}-item-with-help`:``,r.class],ref:d},[s(PD,X(X({},r),{},{class:`${c.value}-item-row`,key:`row`}),{default:()=>s(v,null,[s(hk,X(X({},e),{},{htmlFor:R.value,required:O.value,requiredMark:f.requiredMark.value,prefixCls:c.value,onClick:z,label:e.label}),{label:n.label,tooltip:n.tooltip}),s(Ok,X(X({},e),{},{errors:t==null?te.value:NO(t),marginBottom:U.value,prefixCls:c.value,status:V.value,ref:_,help:t,extra:e.extra??n.extra?.call(n),onErrorVisibleChanged:ae}),{default:n.default})])}),!!U.value&&s(`div`,{class:`${c.value}-margin-offset`,style:{marginBottom:`-${U.value}px`}},null)]))}}});function Ik(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}function Lk(e){let t=!1;return e&&e.length&&e.every(e=>!e.required||(t=!0,!1)),t}function Rk(e){return e==null?[]:Array.isArray(e)?e:[e]}function zk(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``);let i=t.split(`.`),a=0;for(let e=i.length;a1&&arguments[1]!==void 0?arguments[1]:W({}),n=arguments.length>2?arguments[2]:void 0,r=gm(b(e)),i=k({}),a=M([]),o=n=>{G(b(e),G(G({},gm(r)),n)),x(()=>{Object.keys(i).forEach(e=>{i[e]={autoLink:!1,required:Lk(b(t)[e])}})})},s=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter(e=>ih(Rk(e.trigger||`change`),t).length):e},c=null,l=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=[],o={};for(let c=0;c({name:l,errors:[],warnings:[]})).catch(e=>{let t=[],n=[];return e.forEach(e=>{let{rule:{warningOnly:r},errors:i}=e;r?n.push(...i):t.push(...i)}),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}}))}let l=Ik(a);c=l;let d=l.then(()=>c===l?Promise.resolve(o):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length);return t.length?Promise.reject({values:o,errorFields:t,outOfDate:c!==l}):Promise.resolve(o)});return d.catch(e=>e),d},u=function(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=QO([e],t,r,G({validateMessages:qO},a),!!a.validateFirst);return i[e]?(i[e].validateStatus=`validating`,o.catch(e=>e).then(function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var r;if(i[e].validateStatus===`validating`){let a=t.filter(e=>e&&e.errors.length);i[e].validateStatus=a.length?`error`:`success`,i[e].help=a.length?a.map(e=>e.errors):null,(r=n?.onValidate)==null||r.call(n,e,!a.length,a.length?se(i[e].help[0]):null)}}),o):o.catch(e=>e)},d=(e,t)=>{let n=[],r=!0;e?n=Array.isArray(e)?e:[e]:(r=!1,n=a.value);let i=l(n,t||{},r);return i.catch(e=>e),i},f=e=>{let t=[];t=e?Array.isArray(e)?e:[e]:a.value,t.forEach(e=>{i[e]&&G(i[e],{validateStatus:``,help:null})})},p=e=>{let t={autoLink:!1},n=[],r=Array.isArray(e)?e:[e];for(let e=0;e{let t=[];a.value.forEach(r=>{let i=zk(e,r,!1),a=zk(m,r,!1);(h&&n?.immediate&&i.isValid||!Uc(i.v,a.v))&&t.push(r)}),d(t,{trigger:`change`}),h=!1,m=gm(se(e))},_=n?.debounce,v=!0;return H(t,()=>{a.value=t?Object.keys(b(t)):[],!v&&n&&n.validateOnRuleChange&&d(),v=!1},{deep:!0,immediate:!0}),H(a,()=>{let e={};a.value.forEach(n=>{e[n]=G({},i[n],{autoLink:!1,required:Lk(b(t)[n])}),delete i[n]});for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&delete i[e];G(i,e)},{immediate:!0}),H(e,_&&_.wait?Km(g,_.wait,mh(_,[`wait`])):g,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:i,resetFields:o,validate:d,validateField:u,mergeValidateInfo:p,clearValidate:f}}var Vk=()=>({layout:J.oneOf(_e(`horizontal`,`inline`,`vertical`)),labelCol:ut(),wrapperCol:ut(),colon:Y(),labelAlign:q(),labelWrap:Y(),prefixCls:String,requiredMark:$t([String,Boolean]),hideRequiredMark:Y(),model:J.object,rules:ut(),validateMessages:ut(),validateOnRuleChange:Y(),scrollToFirstError:bt(),onSubmit:Q(),name:String,validateTrigger:$t([String,Array]),size:q(),disabled:Y(),onValuesChange:Q(),onFieldsChange:Q(),onFinish:Q(),onFinishFailed:Q(),onValidate:Q()});function Hk(e,t){return Uc(NO(e),NO(t))}var Uk=d({compatConfig:{MODE:3},name:`AForm`,inheritAttrs:!1,props:Vn(Vk(),{layout:`horizontal`,hideRequiredMark:!1,colon:!0}),Item:Fk,useForm:Bk,setup(e,t){let{emit:n,slots:r,expose:i,attrs:o}=t,{prefixCls:c,direction:l,form:u,size:d,disabled:f}=K(`form`,e),p=a(()=>e.requiredMark===``||e.requiredMark),m=a(()=>p.value===void 0?u&&u.value?.requiredMark!==void 0?u.value.requiredMark:!e.hideRequiredMark:p.value);ze(d),gt(f);let h=a(()=>e.colon??u.value?.colon),{validateMessages:g}=At(),_=a(()=>G(G(G({},qO),g.value),e.validateMessages)),[v,y]=Ek(c),b=a(()=>Z(c.value,{[`${c.value}-${e.layout}`]:!0,[`${c.value}-hide-required-mark`]:m.value===!1,[`${c.value}-rtl`]:l.value===`rtl`,[`${c.value}-${d.value}`]:d.value},y.value)),x=W(),S={},C=(e,t)=>{S[e]=t},w=e=>{delete S[e]},T=e=>{let t=!!e,n=t?NO(e).map(LO):[];return t?Object.values(S).filter(e=>n.findIndex(t=>Hk(t,e.fieldName.value))>-1):Object.values(S)},E=t=>{if(!e.model){nt(!1,`Form`,`model is required for resetFields to work.`);return}T(t).forEach(e=>{e.resetField()})},D=e=>{T(e).forEach(e=>{e.clearValidate()})},O=t=>{let{scrollToFirstError:r}=e;if(n(`finishFailed`,t),r&&t.errorFields.length){let e={};typeof r==`object`&&(e=r),A(t.errorFields[0].name,e)}},k=function(){return N(...arguments)},A=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=T(e?[e]:void 0);if(n.length){let e=n[0].fieldId.value,r=e?document.getElementById(e):null;r&&ea(r,G({scrollMode:`if-needed`,block:`nearest`},t))}},j=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(t===!0){let t=[];return Object.values(S).forEach(e=>{let{namePath:n}=e;t.push(n.value)}),WO(e.model,t)}return WO(e.model,t)},M=(t,n)=>{if(nt(!(t instanceof Function),`Form`,`validateFields/validateField/validate not support callback, please use promise instead`),!e.model)return nt(!1,`Form`,`model is required for validateFields to work.`),Promise.reject("Form `model` is required for validateFields to work.");let r=!!t,i=r?NO(t).map(LO):[],a=[];Object.values(S).forEach(e=>{if(r||i.push(e.namePath.value),!e.rules?.value.length)return;let t=e.namePath.value;if(!r||BO(i,t)){let r=e.validateRules(G({validateMessages:_.value},n));a.push(r.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach(e=>{let{rule:{warningOnly:t},errors:i}=e;t?r.push(...i):n.push(...i)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let o=Ik(a);x.value=o;let s=o.then(()=>x.value===o?Promise.resolve(j(i)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length);return Promise.reject({values:j(i),errorFields:t,outOfDate:x.value!==o})});return s.catch(e=>e),s},N=function(){return M(...arguments)},P=t=>{t.preventDefault(),t.stopPropagation(),n(`submit`,t),e.model&&M().then(e=>{n(`finish`,e)}).catch(e=>{O(e)})};return i({resetFields:E,clearValidate:D,validateFields:M,getFieldsValue:j,validate:k,scrollToField:A}),nk({model:a(()=>e.model),name:a(()=>e.name),labelAlign:a(()=>e.labelAlign),labelCol:a(()=>e.labelCol),labelWrap:a(()=>e.labelWrap),wrapperCol:a(()=>e.wrapperCol),vertical:a(()=>e.layout===`vertical`),colon:h,requiredMark:m,validateTrigger:a(()=>e.validateTrigger),rules:a(()=>e.rules),addField:C,removeField:w,onValidate:(e,t,r)=>{n(`validate`,e,t,r)},validateMessages:_}),H(()=>e.rules,()=>{e.validateOnRuleChange&&M()}),()=>v(s(`form`,X(X({},o),{},{onSubmit:P,class:[b.value,o.class]}),[r.default?.call(r)]))}});Uk.useInjectFormItemContext=sd,Uk.ItemRest=cd,Uk.install=function(e){return e.component(Uk.name,Uk),e.component(Uk.Item.name,Uk.Item),e.component(cd.name,cd),e};var Wk=Uk,Gk=new Te(`antCheckboxEffect`,{"0%":{transform:`scale(1)`,opacity:.5},"100%":{transform:`scale(1.6)`,opacity:0}}),Kk=e=>{let{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:G(G({},Ne(e)),{display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:G(G({},Ne(e)),{display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:G(G({},Ne(e)),{position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:G({},xe(e))},[`${t}-inner`]:{boxSizing:`border-box`,position:`relative`,top:0,insetInlineStart:0,display:`block`,width:e.checkboxSize,height:e.checkboxSize,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:`border-box`,position:`absolute`,top:`50%`,insetInlineStart:`21.5%`,display:`table`,width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`}}}}},{[`${n}:hover ${t}:after`]:{visibility:`visible`},[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:`absolute`,top:0,insetInlineStart:0,width:`100%`,height:`100%`,borderRadius:e.borderRadiusSM,visibility:`hidden`,border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Gk,animationDuration:e.motionDurationSlow,animationTimingFunction:`ease-in-out`,animationFillMode:`backwards`,content:`""`,transition:`all ${e.motionDurationSlow}`}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:`none`},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function qk(e,t){return[Kk(Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))]}var Jk=Le(`Checkbox`,(e,t)=>{let{prefixCls:n}=t;return[qk(n,e)]}),Yk=e=>{let{prefixCls:t,componentCls:n,antCls:r}=e,i=`${n}-menu-item`,a=` + &${i}-expand ${i}-expand-icon, + ${i}-loading-icon + `,o=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[qk(`${t}-checkbox`,e),{[`&${r}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:`100%`,height:`auto`,[i]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:`auto`,verticalAlign:`top`,listStyle:`none`,"-ms-overflow-style":`-ms-autohiding-scrollbar`,"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":G(G({},tn),{display:`flex`,flexWrap:`nowrap`,alignItems:`center`,padding:`${o}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`},[a]:{color:e.colorTextDisabled}},[`&-active:not(${i}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:`auto`},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:`rtl`}},Hn(e)]},Xk=Le(`Cascader`,e=>[Yk(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180}),Zk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ir===0?[n]:[...e,t,n],[]),i=[],a=0;return r.forEach((t,r)=>{let o=a+t.length,c=e.slice(a,o);a=o,r%2==1&&(c=s(`span`,{class:`${n}-menu-item-keyword`,key:`seperator`},[c])),i.push(c)}),i}var $k=e=>{let{inputValue:t,path:n,prefixCls:r,fieldNames:i}=e,a=[],o=t.toLowerCase();return n.forEach((e,t)=>{t!==0&&a.push(` / `);let n=e[i.label],s=typeof n;(s===`string`||s===`number`)&&(n=Qk(String(n),o,r)),a.push(n)}),a};function eA(){return G(G({},Gn(hD(),[`customSlots`,`checkable`,`options`])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:J.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}var tA=d({compatConfig:{MODE:3},name:`ACascader`,inheritAttrs:!1,props:Vn(eA(),{bordered:!0,choiceTransitionName:``,allowClear:!0}),setup(e,t){let{attrs:n,expose:r,slots:i,emit:o}=t,c=sd(),l=ld.useInject(),u=a(()=>fd(l.status,e.status)),{prefixCls:d,rootPrefixCls:f,getPrefixCls:p,direction:m,getPopupContainer:h,renderEmpty:g,size:_,disabled:v}=K(`cascader`,e),y=a(()=>p(`select`,e.prefixCls)),{compactSize:b,compactItemClassnames:x}=ln(y,m),S=a(()=>b.value||_.value),C=pt(),w=a(()=>v.value??C.value),[T,E]=ng(y),[D]=Xk(d),O=a(()=>m.value===`rtl`),k=a(()=>{if(!e.showSearch)return e.showSearch;let t={render:$k};return typeof e.showSearch==`object`&&(t=G(G({},t),e.showSearch)),t}),A=a(()=>Z(e.popupClassName||e.dropdownClassName,`${d.value}-dropdown`,{[`${d.value}-dropdown-rtl`]:O.value},E.value)),j=W();r({focus(){var e;(e=j.value)==null||e.focus()},blur(){var e;(e=j.value)==null||e.blur()}});let M=function(){var e=[...arguments];o(`update:value`,e[0]),o(`change`,...e),c.onFieldChange()},N=function(){o(`blur`,...arguments),c.onFieldBlur()},P=a(()=>e.showArrow===void 0?e.loading||!e.multiple:e.showArrow),F=a(()=>e.placement===void 0?m.value===`rtl`?`bottomRight`:`bottomLeft`:e.placement);return()=>{let{notFoundContent:t=i.notFoundContent?.call(i),expandIcon:r=i.expandIcon?.call(i),multiple:a,bordered:o,allowClear:p,choiceTransitionName:_,transitionName:v,id:b=c.id.value}=e,C=Zk(e,[`notFoundContent`,`expandIcon`,`multiple`,`bordered`,`allowClear`,`choiceTransitionName`,`transitionName`,`id`]),I=t||g(`Cascader`),L=r;r||(L=O.value?s(SD,null,null):s(uv,null,null));let ee=s(`span`,{class:`${y.value}-menu-item-loading-icon`},[s(at,{spin:!0},null)]),{suffixIcon:R,removeIcon:z,clearIcon:B}=td(G(G({},e),{hasFeedback:l.hasFeedback,feedbackIcon:l.feedbackIcon,multiple:a,prefixCls:y.value,showArrow:P.value}),i);return D(T(s(vD,X(X(X({},C),n),{},{id:b,prefixCls:y.value,class:[d.value,{[`${y.value}-lg`]:S.value===`large`,[`${y.value}-sm`]:S.value===`small`,[`${y.value}-rtl`]:O.value,[`${y.value}-borderless`]:!o,[`${y.value}-in-form-item`]:l.isFormItemInput},dd(y.value,u.value,l.hasFeedback),x.value,n.class,E.value],disabled:w.value,direction:m.value,placement:F.value,notFoundContent:I,allowClear:p,showSearch:k.value,expandIcon:L,inputIcon:R,removeIcon:z,clearIcon:B,loadingIcon:ee,checkable:!!a,dropdownClassName:A.value,dropdownPrefixCls:d.value,choiceTransitionName:qe(f.value,``,_),transitionName:qe(f.value,lt(F.value),v),getPopupContainer:h?.value,customSlots:G(G({},i),{checkable:()=>s(`span`,{class:`${d.value}-checkbox-inner`},null)}),tagRender:e.tagRender||i.tagRender,displayRender:e.displayRender||i.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:l.hasFeedback||e.showArrow,onChange:M,onBlur:N,ref:j}),i)))}}}),nA=be(G(tA,{SHOW_CHILD:eE,SHOW_PARENT:$T})),rA=()=>({name:String,prefixCls:String,options:vt([]),disabled:Boolean,id:String}),iA=()=>G(G({},rA()),{defaultValue:vt(),value:vt(),onChange:Q(),"onUpdate:value":Q()}),aA=()=>({prefixCls:String,defaultChecked:Y(),checked:Y(),disabled:Y(),isGroup:Y(),value:J.any,name:String,id:String,indeterminate:Y(),type:q(`checkbox`),autofocus:Y(),onChange:Q(),"onUpdate:checked":Q(),onClick:Q(),skipGroup:Y(!1)}),oA=()=>G(G({},aA()),{indeterminate:Y(!1)}),sA=Symbol(`CheckboxGroupContext`),cA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i_?.disabled.value||f.value);P(()=>{!e.skipGroup&&_&&_.registerValue(v,e.value)}),p(()=>{_&&_.cancelValue(v)}),D(()=>{nt(!!(e.checked!==void 0||_||e.value===void 0),`Checkbox`,"`value` is not validate prop, do you mean `checked`?")});let b=e=>{let t=e.target.checked;n(`update:checked`,t),n(`change`,e),c.onFieldChange()},x=W();return o({focus:()=>{var e;(e=x.value)==null||e.focus()},blur:()=>{var e;(e=x.value)==null||e.blur()}}),()=>{let t=pe(i.default?.call(i)),{indeterminate:a,skipGroup:o,id:f=c.id.value}=e,p=cA(e,[`indeterminate`,`skipGroup`,`id`]),{onMouseenter:v,onMouseleave:S,onInput:C,class:w,style:T}=r,E=cA(r,[`onMouseenter`,`onMouseleave`,`onInput`,`class`,`style`]),D=G(G(G(G({},p),{id:f,prefixCls:u.value}),E),{disabled:y.value});_&&!o?(D.onChange=function(){n(`change`,...arguments),_.toggleOption({label:t,value:e.value})},D.name=_.name.value,D.checked=_.mergedValue.value.includes(e.value),D.disabled=y.value||m.value,D.indeterminate=a):D.onChange=b;let O=Z({[`${u.value}-wrapper`]:!0,[`${u.value}-rtl`]:d.value===`rtl`,[`${u.value}-wrapper-checked`]:D.checked,[`${u.value}-wrapper-disabled`]:D.disabled,[`${u.value}-wrapper-in-form-item`]:l.isFormItemInput},w,g.value),k=Z({[`${u.value}-indeterminate`]:a},g.value);return h(s(`label`,{class:O,style:T,onMouseenter:v,onMouseleave:S},[s(iS,X(X({"aria-checked":a?`mixed`:void 0},D),{},{class:k,ref:x}),null),t.length?s(`span`,null,[t]):null]))}}}),uA=d({compatConfig:{MODE:3},name:`ACheckboxGroup`,inheritAttrs:!1,props:iA(),setup(t,n){let{slots:r,attrs:i,emit:o,expose:c}=n,l=sd(),{prefixCls:u,direction:d}=K(`checkbox`,t),f=a(()=>`${u.value}-group`),[p,m]=Jk(f),h=W((t.value===void 0?t.defaultValue:t.value)||[]);H(()=>t.value,()=>{h.value=t.value||[]});let g=a(()=>t.options.map(e=>typeof e==`string`||typeof e==`number`?{label:e,value:e}:e)),_=W(Symbol()),v=W(new Map),y=e=>{v.value.delete(e),_.value=Symbol()},b=(e,t)=>{v.value.set(e,t),_.value=Symbol()},x=W(new Map);return H(_,()=>{let e=new Map;for(let t of v.value.values())e.set(t,!0);x.value=e}),e(sA,{cancelValue:y,registerValue:b,toggleOption:e=>{let n=h.value.indexOf(e.value),r=[...h.value];n===-1?r.push(e.value):r.splice(n,1),t.value===void 0&&(h.value=r);let i=r.filter(e=>x.value.has(e)).sort((e,t)=>g.value.findIndex(t=>t.value===e)-g.value.findIndex(e=>e.value===t));o(`update:value`,i),o(`change`,i),l.onFieldChange()},mergedValue:h,name:a(()=>t.name),disabled:a(()=>t.disabled)}),c({mergedValue:h}),()=>{let{id:e=l.id.value}=t,n=null;return g.value&&g.value.length>0&&(n=g.value.map(e=>s(lA,{prefixCls:u.value,key:e.value.toString(),disabled:`disabled`in e?e.disabled:t.disabled,indeterminate:e.indeterminate,value:e.value,checked:h.value.indexOf(e.value)!==-1,onChange:e.onChange,class:`${f.value}-item`},{default:()=>[r.label===void 0?e.label:r.label?.call(r,e)]}))),p(s(`div`,X(X({},i),{},{class:[f.value,{[`${f.value}-rtl`]:d.value===`rtl`},i.class,m.value],id:e}),[n||r.default?.call(r)]))}}});lA.Group=uA,lA.install=function(e){return e.component(lA.name,lA),e.component(uA.name,uA),e};var dA=lA,fA={useBreakpoint:Ag},pA=be(uk),mA=e=>{let{componentCls:t,commentBg:n,commentPaddingBase:r,commentNestIndent:i,commentFontSizeBase:a,commentFontSizeSm:o,commentAuthorNameColor:s,commentAuthorTimeColor:c,commentActionColor:l,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:p}=e;return{[t]:{position:`relative`,backgroundColor:n,[`${t}-inner`]:{display:`flex`,padding:r},[`${t}-avatar`]:{position:`relative`,flexShrink:0,marginRight:e.marginSM,cursor:`pointer`,img:{width:`32px`,height:`32px`,borderRadius:`50%`}},[`${t}-content`]:{position:`relative`,flex:`1 1 auto`,minWidth:`1px`,fontSize:a,wordWrap:`break-word`,"&-author":{display:`flex`,flexWrap:`wrap`,justifyContent:`flex-start`,marginBottom:e.marginXXS,fontSize:a,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:o,lineHeight:`18px`},"&-name":{color:s,fontSize:a,transition:`color ${e.motionDurationSlow}`,"> *":{color:s,"&:hover":{color:s}}},"&-time":{color:c,whiteSpace:`nowrap`,cursor:`auto`}},"&-detail p":{marginBottom:p,whiteSpace:`pre-wrap`}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:`inline-block`,color:l,"> span":{marginRight:`10px`,color:l,fontSize:o,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,userSelect:`none`,"&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:i},"&-rtl":{direction:`rtl`}}}},hA=Le(`Comment`,e=>[mA(Fe(e,{commentBg:`inherit`,commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:`44px`,commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:`inherit`,commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:`inherit`}))]),gA=d({compatConfig:{MODE:3},name:`AComment`,inheritAttrs:!1,props:{actions:Array,author:J.any,avatar:J.any,content:J.any,prefixCls:String,datetime:J.any},slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=K(`comment`,e),[o,c]=hA(i),l=(e,t)=>s(`div`,{class:`${e}-nested`},[t]),u=e=>!e||!e.length?null:e.map((e,t)=>s(`li`,{key:`action-${t}`},[e]));return()=>{let t=i.value,d=e.actions??n.actions?.call(n),f=e.author??n.author?.call(n),p=e.avatar??n.avatar?.call(n),m=e.content??n.content?.call(n),h=e.datetime??n.datetime?.call(n),g=s(`div`,{class:`${t}-avatar`},[typeof p==`string`?s(`img`,{src:p,alt:`comment-avatar`},null):p]),_=d?s(`ul`,{class:`${t}-actions`},[u(Array.isArray(d)?d:[d])]):null,v=s(`div`,{class:`${t}-content-author`},[f&&s(`span`,{class:`${t}-content-author-name`},[f]),h&&s(`span`,{class:`${t}-content-author-time`},[h])]),y=s(`div`,{class:`${t}-content`},[v,s(`div`,{class:`${t}-content-detail`},[m]),_]),b=s(`div`,{class:`${t}-inner`},[g,y]),x=pe(n.default?.call(n));return o(s(`div`,X(X({},r),{},{class:[t,{[`${t}-rtl`]:a.value===`rtl`},r.class,c.value]}),[b,x&&x.length?l(t,x):null]))}}}),_A=be(gA),vA=(e,t)=>{let{attrs:n,slots:r}=t;return s(Ln,X(X({size:`small`,type:`primary`},e),n),r)},yA=(e,t,n)=>{let r=rt(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:`transparent`}}}},bA=e=>zi(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:a,darkColor:o}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:`transparent`}}}}),xA=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i}=e,a=r-n,o=t-n;return{[i]:G(G({},Ne(e)),{display:`inline-block`,height:`auto`,marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:`nowrap`,background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:o,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:`transparent`,[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${i}-borderless`]:{borderColor:`transparent`,background:e.tagBorderlessBg}}},SA=Le(`Tag`,e=>{let{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:i}=e,a=Math.round(t*n),o=e.fontSizeSM,s=a-r*2,c=e.colorFillAlter,l=e.colorText,u=Fe(e,{tagFontSize:o,tagLineHeight:s,tagDefaultBg:c,tagDefaultColor:l,tagIconSize:i-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[xA(u),bA(u),yA(u,`success`,`Success`),yA(u,`processing`,`Info`),yA(u,`error`,`Error`),yA(u,`warning`,`Warning`)]}),CA=d({compatConfig:{MODE:3},name:`ACheckableTag`,inheritAttrs:!1,props:{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function},setup(e,t){let{slots:n,emit:r,attrs:i}=t,{prefixCls:o}=K(`tag`,e),[c,l]=SA(o),u=t=>{let{checked:n}=e;r(`update:checked`,!n),r(`change`,!n),r(`click`,t)},d=a(()=>Z(o.value,l.value,{[`${o.value}-checkable`]:!0,[`${o.value}-checkable-checked`]:e.checked}));return()=>c(s(`span`,X(X({},i),{},{class:[d.value,i.class],onClick:u}),[n.default?.call(n)]))}}),wA=d({compatConfig:{MODE:3},name:`ATag`,inheritAttrs:!1,props:{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:J.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Yt(),"onUpdate:visible":Function,icon:J.any,bordered:{type:Boolean,default:!0}},slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i}=t,{prefixCls:o,direction:c}=K(`tag`,e),[l,u]=SA(o),d=M(!0);P(()=>{e.visible!==void 0&&(d.value=e.visible)});let f=t=>{t.stopPropagation(),r(`update:visible`,!1),r(`close`,t),!t.defaultPrevented&&e.visible===void 0&&(d.value=!1)},p=a(()=>n_(e.color)||r_(e.color)),m=a(()=>Z(o.value,u.value,{[`${o.value}-${e.color}`]:p.value,[`${o.value}-has-color`]:e.color&&!p.value,[`${o.value}-hidden`]:!d.value,[`${o.value}-rtl`]:c.value===`rtl`,[`${o.value}-borderless`]:!e.bordered})),h=e=>{r(`click`,e)};return()=>{let{icon:t=n.icon?.call(n),color:r,closeIcon:a=n.closeIcon?.call(n),closable:c=!1}=e,u=()=>c?a?s(`span`,{class:`${o.value}-close-icon`,onClick:f},[a]):s(_t,{class:`${o.value}-close-icon`,onClick:f},null):null,d={backgroundColor:r&&!p.value?r:void 0},g=t||null,_=n.default?.call(n),y=g?s(v,null,[g,s(`span`,null,[_])]):_,b=e.onClick!==void 0,x=s(`span`,X(X({},i),{},{onClick:h,class:[m.value,i.class],style:[d,i.style]}),[y,u()]);return l(b?s(Un,null,{default:()=>[x]}):x)}}});wA.CheckableTag=CA,wA.install=function(e){return e.component(wA.name,wA),e.component(CA.name,CA),e};function TA(e,t){let{slots:n,attrs:r}=t;return s(wA,X(X({color:`blue`},e),r),n)}var EA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z`}}]},name:`calendar`,theme:`outlined`};function DA(e){for(var t=1;tb.value||g.value),[C,w]=ZS(p),T=W();o({focus:()=>{var e;(e=T.value)==null||e.focus()},blur:()=>{var e;(e=T.value)==null||e.blur()}});let E=t=>u.valueFormat?e.toString(t,u.valueFormat):t,D=(e,t)=>{let n=E(e);l(`update:value`,n),l(`change`,n,t),d.onFieldChange()},O=e=>{l(`update:open`,e),l(`openChange`,e)},k=e=>{l(`focus`,e)},A=e=>{l(`blur`,e),d.onFieldBlur()},j=(e,t)=>{let n=E(e);l(`panelChange`,n,t)},M=e=>{let t=E(e);l(`ok`,t)},[N]=Ft(`DatePicker`,Ot),P=a(()=>u.value?u.valueFormat?e.toDate(u.value,u.valueFormat):u.value:u.value===``?void 0:u.value),F=a(()=>u.defaultValue?u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue:u.defaultValue===``?void 0:u.defaultValue),I=a(()=>u.defaultPickerValue?u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue:u.defaultPickerValue===``?void 0:u.defaultPickerValue);return()=>{let t=G(G({},N.value),u.locale),r=G(G({},u),c),{bordered:a=!0,placeholder:o,suffixIcon:l=i.suffixIcon?.call(i),showToday:g=!0,transitionName:b,allowClear:E=!0,dateRender:L=i.dateRender,renderExtraFooter:ee=i.renderExtraFooter,monthCellRender:R=i.monthCellRender||u.monthCellContentRender||i.monthCellContentRender,clearIcon:z=i.clearIcon?.call(i),id:B=d.id.value}=r,te=BA(r,[`bordered`,`placeholder`,`suffixIcon`,`showToday`,`transitionName`,`allowClear`,`dateRender`,`renderExtraFooter`,`monthCellRender`,`clearIcon`,`id`]),V=r.showTime===``||r.showTime,{format:ne}=r,re={};n&&(re.picker=n);let H=n||r.picker||`date`;re=G(G(G({},re),V?XA(G({format:ne,picker:H},typeof V==`object`?V:{})):{}),H===`time`?XA(G(G({format:ne},te),{picker:H})):{});let U=p.value,ie=s(v,null,[l||s(n===`time`?NA:kA,null,null),f.hasFeedback&&f.feedbackIcon]);return C(s(tS,X(X(X({monthCellRender:R,dateRender:L,renderExtraFooter:ee,ref:T,placeholder:PA(t,H,o),suffixIcon:ie,dropdownAlign:IA(m.value,u.placement),clearIcon:z||s(yt,null,null),allowClear:E,transitionName:b||`${_.value}-slide-up`},te),re),{},{id:B,picker:H,value:P.value,defaultValue:F.value,defaultPickerValue:I.value,showToday:g,locale:t.lang,class:Z({[`${U}-${S.value}`]:S.value,[`${U}-borderless`]:!a},dd(U,fd(f.status,u.status),f.hasFeedback),c.class,w.value,x.value),disabled:y.value,prefixCls:U,getPopupContainer:c.getCalendarContainer||h.value,generateConfig:e,prevIcon:i.prevIcon?.call(i)||s(`span`,{class:`${U}-prev-icon`},null),nextIcon:i.nextIcon?.call(i)||s(`span`,{class:`${U}-next-icon`},null),superPrevIcon:i.superPrevIcon?.call(i)||s(`span`,{class:`${U}-super-prev-icon`},null),superNextIcon:i.superNextIcon?.call(i)||s(`span`,{class:`${U}-super-next-icon`},null),components:JA,direction:m.value,dropdownClassName:Z(w.value,u.popupClassName,u.dropdownClassName),onChange:D,onOpenChange:O,onFocus:k,onBlur:A,onPanelChange:j,onOk:M}),null))}}})}return{DatePicker:n(void 0,`ADatePicker`),WeekPicker:n(`week`,`AWeekPicker`),MonthPicker:n(`month`,`AMonthPicker`),YearPicker:n(`year`,`AYearPicker`),TimePicker:n(`time`,`TimePicker`),QuarterPicker:n(`quarter`,`AQuarterPicker`)}}var HA={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z`}}]},name:`swap-right`,theme:`outlined`};function UA(e){for(var t=1;ty.value||h.value),[S,C]=ZS(f),w=W();r({focus:()=>{var e;(e=w.value)==null||e.focus()},blur:()=>{var e;(e=w.value)==null||e.blur()}});let T=t=>l.valueFormat?e.toString(t,l.valueFormat):t,E=(e,t)=>{let n=T(e);c(`update:value`,n),c(`change`,n,t),u.onFieldChange()},D=e=>{c(`update:open`,e),c(`openChange`,e)},O=e=>{c(`focus`,e)},k=e=>{c(`blur`,e),u.onFieldBlur()},A=(e,t)=>{let n=T(e);c(`panelChange`,n,t)},j=e=>{let t=T(e);c(`ok`,t)},M=(e,t,n)=>{let r=T(e);c(`calendarChange`,r,t,n)},[N]=Ft(`DatePicker`,Ot),P=a(()=>l.value&&l.valueFormat?e.toDate(l.value,l.valueFormat):l.value),F=a(()=>l.defaultValue&&l.valueFormat?e.toDate(l.defaultValue,l.valueFormat):l.defaultValue),I=a(()=>l.defaultPickerValue&&l.valueFormat?e.toDate(l.defaultPickerValue,l.valueFormat):l.defaultPickerValue);return()=>{let t=G(G({},N.value),l.locale),n=G(G({},l),o),{prefixCls:r,bordered:a=!0,placeholder:c,suffixIcon:h=i.suffixIcon?.call(i),picker:y=`date`,transitionName:T,allowClear:L=!0,dateRender:ee=i.dateRender,renderExtraFooter:R=i.renderExtraFooter,separator:z=i.separator?.call(i),clearIcon:B=i.clearIcon?.call(i),id:te=u.id.value}=n,V=KA(n,[`prefixCls`,`bordered`,`placeholder`,`suffixIcon`,`picker`,`transitionName`,`allowClear`,`dateRender`,`renderExtraFooter`,`separator`,`clearIcon`,`id`]);delete V[`onUpdate:value`],delete V[`onUpdate:open`];let{format:ne,showTime:re}=n,H={};H=G(G(G({},H),re?XA(G({format:ne,picker:y},re)):{}),y===`time`?XA(G(G({format:ne},Gn(V,[`disabledTime`])),{picker:y})):{});let U=f.value,ie=s(v,null,[h||s(y===`time`?NA:kA,null,null),d.hasFeedback&&d.feedbackIcon]);return S(s(eS,X(X(X({dateRender:ee,renderExtraFooter:R,separator:z||s(`span`,{"aria-label":`to`,class:`${U}-separator`},[s(GA,null,null)]),ref:w,dropdownAlign:IA(p.value,l.placement),placeholder:FA(t,y,c),suffixIcon:ie,clearIcon:B||s(yt,null,null),allowClear:L,transitionName:T||`${g.value}-slide-up`},V),H),{},{disabled:_.value,id:te,value:P.value,defaultValue:F.value,defaultPickerValue:I.value,picker:y,class:Z({[`${U}-${x.value}`]:x.value,[`${U}-borderless`]:!a},dd(U,fd(d.status,l.status),d.hasFeedback),o.class,C.value,b.value),locale:t.lang,prefixCls:U,getPopupContainer:o.getCalendarContainer||m.value,generateConfig:e,prevIcon:i.prevIcon?.call(i)||s(`span`,{class:`${U}-prev-icon`},null),nextIcon:i.nextIcon?.call(i)||s(`span`,{class:`${U}-next-icon`},null),superPrevIcon:i.superPrevIcon?.call(i)||s(`span`,{class:`${U}-super-prev-icon`},null),superNextIcon:i.superNextIcon?.call(i)||s(`span`,{class:`${U}-super-next-icon`},null),components:JA,direction:p.value,dropdownClassName:Z(C.value,l.popupClassName,l.dropdownClassName),onChange:E,onOpenChange:D,onFocus:O,onBlur:k,onPanelChange:A,onOk:j,onCalendarChange:M}),null))}}})}var JA={button:vA,rangeItem:TA};function YA(e){return e?Array.isArray(e)?e:[e]:[]}function XA(e){let{format:t,picker:n,showHour:r,showMinute:i,showSecond:a,use12Hours:o}=e,s=YA(t)[0],c=G({},e);return s&&typeof s==`string`&&(!s.includes(`s`)&&a===void 0&&(c.showSecond=!1),!s.includes(`m`)&&i===void 0&&(c.showMinute=!1),!s.includes(`H`)&&!s.includes(`h`)&&r===void 0&&(c.showHour=!1),(s.includes(`a`)||s.includes(`A`))&&o===void 0&&(c.use12Hours=!0)),n===`time`?c:(typeof s==`function`&&delete c.format,{showTime:c})}function ZA(e,t){let{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:o,QuarterPicker:s}=VA(e,t);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:o,QuarterPicker:s,RangePicker:qA(e,t)}}var{DatePicker:QA,WeekPicker:$A,MonthPicker:ej,YearPicker:tj,TimePicker:nj,QuarterPicker:rj,RangePicker:ij}=ZA(Xy),aj=G(QA,{WeekPicker:$A,MonthPicker:ej,YearPicker:tj,RangePicker:ij,TimePicker:nj,QuarterPicker:rj,install:e=>(e.component(QA.name,QA),e.component(ij.name,ij),e.component(ej.name,ej),e.component($A.name,$A),e.component(rj.name,rj),e)});function oj(e){return e!=null}var sj=e=>{let{itemPrefixCls:t,component:n,span:r,labelStyle:i,contentStyle:a,bordered:o,label:c,content:l,colon:u}=e,d=n;return o?s(d,{class:[{[`${t}-item-label`]:oj(c),[`${t}-item-content`]:oj(l)}],colSpan:r},{default:()=>[oj(c)&&s(`span`,{style:i},[c]),oj(l)&&s(`span`,{style:a},[l])]}):s(d,{class:[`${t}-item`],colSpan:r},{default:()=>[s(`div`,{class:`${t}-item-container`},[(c||c===0)&&s(`span`,{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:i},[c]),(l||l===0)&&s(`span`,{class:`${t}-item-content`,style:a},[l])])]})},cj=e=>{let t=(e,t,n)=>{let{colon:r,prefixCls:i,bordered:a}=t,{component:o,type:c,showLabel:l,showContent:u,labelStyle:d,contentStyle:f}=n;return e.map((e,t)=>{var n;let p=e.props||{},{prefixCls:m=i,span:h=1,labelStyle:g=p[`label-style`],contentStyle:_=p[`content-style`],label:v=((n=e.children)?.label)?.call(n)}=p,y=Oe(e),b=wt(e),x=Pe(e),{key:S}=e;return typeof o==`string`?s(sj,{key:`${c}-${String(S)||t}`,class:b,style:x,labelStyle:G(G({},d),g),contentStyle:G(G({},f),_),span:h,colon:r,component:o,itemPrefixCls:m,bordered:a,label:l?v:null,content:u?y:null},null):[s(sj,{key:`label-${String(S)||t}`,class:b,style:G(G(G({},d),x),g),span:1,colon:r,component:o[0],itemPrefixCls:m,bordered:a,label:v},null),s(sj,{key:`content-${String(S)||t}`,class:b,style:G(G(G({},f),x),_),span:h*2-1,component:o[1],itemPrefixCls:m,bordered:a,content:y},null)]})},{prefixCls:n,vertical:r,row:i,index:a,bordered:o}=e,{labelStyle:c,contentStyle:l}=C(vj,{labelStyle:W({}),contentStyle:W({})});return r?s(v,null,[s(`tr`,{key:`label-${a}`,class:`${n}-row`},[t(i,e,{component:`th`,type:`label`,showLabel:!0,labelStyle:c.value,contentStyle:l.value})]),s(`tr`,{key:`content-${a}`,class:`${n}-row`},[t(i,e,{component:`td`,type:`content`,showContent:!0,labelStyle:c.value,contentStyle:l.value})])]):s(`tr`,{key:a,class:`${n}-row`},[t(i,e,{component:o?[`th`,`td`]:`td`,type:`item`,showLabel:!0,showContent:!0,labelStyle:c.value,contentStyle:l.value})])},lj=e=>{let{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:i,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:`auto`,borderCollapse:`collapse`}},[`${t}-item-label, ${t}-item-content`]:{padding:r,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:`none`}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:`none`}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:`none`}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:i}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},uj=e=>{let{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:r,descriptionsItemLabelColonMarginRight:i,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:o}=e;return{[t]:G(G(G({},Ne(e)),lj(e)),{"&-rtl":{direction:`rtl`},[`${t}-header`]:{display:`flex`,alignItems:`center`,marginBottom:o},[`${t}-title`]:G(G({},tn),{flex:`auto`,color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:`auto`,color:n,fontSize:e.fontSize},[`${t}-view`]:{width:`100%`,borderRadius:e.borderRadiusLG,table:{width:`100%`,tableLayout:`fixed`}},[`${t}-row`]:{"> th, > td":{paddingBottom:r},"&:last-child":{borderBottom:`none`}},[`${t}-item-label`]:{color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`start`,"&::after":{content:`":"`,position:`relative`,top:-.5,marginInline:`${a}px ${i}px`},[`&${t}-item-no-colon::after`]:{content:`""`}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:`""`}},[`${t}-item-content`]:{display:`table-cell`,flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:`break-word`,overflowWrap:`break-word`},[`${t}-item`]:{paddingBottom:0,verticalAlign:`top`,"&-container":{display:`flex`,[`${t}-item-label`]:{display:`inline-flex`,alignItems:`baseline`},[`${t}-item-content`]:{display:`inline-flex`,alignItems:`baseline`}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},dj=Le(`Descriptions`,e=>{let t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,r=e.colorText,i=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,o=`${e.paddingSM}px ${e.paddingLG}px`,s=e.padding,c=e.marginXS,l=e.marginXXS/2;return[uj(Fe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:r,descriptionItemPaddingBottom:s,descriptionsSmallPadding:i,descriptionsDefaultPadding:a,descriptionsMiddlePadding:o,descriptionsItemLabelColonMarginRight:c,descriptionsItemLabelColonMarginLeft:l}))]});J.any;var fj=d({compatConfig:{MODE:3},name:`ADescriptionsItem`,props:{prefixCls:String,label:J.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}},setup(e,t){let{slots:n}=t;return()=>n.default?.call(n)}}),pj={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function mj(e,t){if(typeof e==`number`)return e;if(typeof e==`object`)for(let n=0;nt)&&(r=on(e,{span:t}),nt(n===void 0,`Descriptions`,"Sum of column `span` in a line not match `column` of Descriptions.")),r}function gj(e,t){let n=pe(e),r=[],i=[],a=t;return n.forEach((e,o)=>{let s=e.props?.span,c=s||1;if(o===n.length-1){i.push(hj(e,a,s)),r.push(i);return}c({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:`default`},title:J.any,extra:J.any,column:{type:[Number,Object],default:()=>pj},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),vj=Symbol(`descriptionsContext`),yj=d({compatConfig:{MODE:3},name:`ADescriptions`,inheritAttrs:!1,props:_j(),slots:Object,Item:fj,setup(t,n){let{slots:r,attrs:i}=n,{prefixCls:o,direction:l}=K(`descriptions`,t),u,d=W({}),[f,m]=dj(o),h=kg();c(()=>{u=h.value.subscribe(e=>{typeof t.column==`object`&&(d.value=e)})}),p(()=>{h.value.unsubscribe(u)}),e(vj,{labelStyle:y(t,`labelStyle`),contentStyle:y(t,`contentStyle`)});let g=a(()=>mj(t.column,d.value));return()=>{let{size:e,bordered:n=!1,layout:a=`horizontal`,colon:c=!0,title:u=r.title?.call(r),extra:d=r.extra?.call(r)}=t,p=gj(r.default?.call(r),g.value);return f(s(`div`,X(X({},i),{},{class:[o.value,{[`${o.value}-${e}`]:e!=="default",[`${o.value}-bordered`]:!!n,[`${o.value}-rtl`]:l.value===`rtl`},i.class,m.value]}),[(u||d)&&s(`div`,{class:`${o.value}-header`},[u&&s(`div`,{class:`${o.value}-title`},[u]),d&&s(`div`,{class:`${o.value}-extra`},[d])]),s(`div`,{class:`${o.value}-view`},[s(`table`,null,[s(`tbody`,null,[p.map((e,t)=>s(cj,{key:t,index:t,colon:c,prefixCls:o.value,vertical:a===`vertical`,bordered:n,row:e},null))])])])]))}}});yj.install=function(e){return e.component(yj.name,yj),e.component(yj.Item.name,yj.Item),e};var bj=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=e;return{[t]:G(G({},Ne(e)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:`relative`,top:`-0.06em`,display:`inline-block`,height:`0.9em`,margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:`middle`,borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:`flex`,clear:`both`,width:`100%`,minWidth:`100%`,margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:`flex`,alignItems:`center`,margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:`nowrap`,textAlign:`center`,borderBlockStart:`0 ${r}`,"&::before, &::after":{position:`relative`,width:`50%`,borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:`inherit`,borderBlockEnd:0,transform:`translateY(50%)`,content:`''`}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`5%`},"&::after":{width:`95%`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`95%`},"&::after":{width:`5%`}},[`${t}-inner-text`]:{display:`inline-block`,padding:`0 1em`},"&-dashed":{background:`none`,borderColor:r,borderStyle:`dashed`,borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:`dashed none none`}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:`100%`},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:`100%`},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},xj=Le(`Divider`,e=>[bj(Fe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG}))],{sizePaddingEdgeHorizontal:0}),Sj=d({name:`ADivider`,inheritAttrs:!1,compatConfig:{MODE:3},props:{prefixCls:String,type:{type:String,default:`horizontal`},dashed:{type:Boolean,default:!1},orientation:{type:String,default:`center`},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]},setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o}=K(`divider`,e),[c,l]=xj(i),u=a(()=>e.orientation===`left`&&e.orientationMargin!=null),d=a(()=>e.orientation===`right`&&e.orientationMargin!=null),f=a(()=>{let{type:t,dashed:n,plain:r}=e,a=i.value;return{[a]:!0,[l.value]:!!l.value,[`${a}-${t}`]:!0,[`${a}-dashed`]:!!n,[`${a}-plain`]:!!r,[`${a}-rtl`]:o.value===`rtl`,[`${a}-no-default-orientation-margin-left`]:u.value,[`${a}-no-default-orientation-margin-right`]:d.value}}),p=a(()=>{let t=typeof e.orientationMargin==`number`?`${e.orientationMargin}px`:e.orientationMargin;return G(G({},u.value&&{marginLeft:t}),d.value&&{marginRight:t})}),m=a(()=>e.orientation.length>0?`-`+e.orientation:e.orientation);return()=>{let e=pe(n.default?.call(n));return c(s(`div`,X(X({},r),{},{class:[f.value,e.length?`${i.value}-with-text ${i.value}-with-text${m.value}`:``,r.class],role:`separator`}),[e.length?s(`span`,{class:`${i.value}-inner-text`,style:p.value},[e]):null]))}}}),Cj=be(Sj);mv.Button=ov,mv.install=function(e){return e.component(mv.name,mv),e.component(ov.name,ov),e};var wj=mv,Tj=()=>({prefixCls:String,width:J.oneOfType([J.string,J.number]),height:J.oneOfType([J.string,J.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:ut(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:vt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:Q(),maskMotion:ut()}),Ej=()=>G(G({},Tj()),{forceRender:{type:Boolean,default:void 0},getContainer:J.oneOfType([J.string,J.func,J.object,J.looseBool])}),Dj=()=>G(G({},Tj()),{getContainer:Function,getOpenCount:Function,scrollLocker:J.any,inline:Boolean});function Oj(e){return Array.isArray(e)?e:[e]}var kj={transition:`transitionend`,WebkitTransition:`webkitTransitionEnd`,MozTransition:`transitionend`,OTransition:`oTransitionEnd otransitionend`};kj[Object.keys(kj).filter(e=>{if(typeof document>`u`)return!1;let t=document.getElementsByTagName(`html`)[0];return e in(t?t.style:{})})[0]];var Aj=!(typeof window<`u`&&window.document&&window.document.createElement),jj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{x(()=>{var t;let{open:n,getContainer:r,showMask:i,autofocus:a}=e,o=r?.();g(e),n&&(o&&o.parentNode===document.body&&(Mj[d]=n),x(()=>{a&&f()}),i&&((t=e.scrollLocker)==null||t.lock()))})}),H(()=>e.level,()=>{g(e)},{flush:`post`}),H(()=>e.open,()=>{let{open:t,getContainer:n,scrollLocker:r,showMask:i,autofocus:a}=e,o=n?.();o&&o.parentNode===document.body&&(Mj[d]=!!t),t?(a&&f(),i&&r?.lock()):r?.unLock()},{flush:`post`}),E(()=>{var t;let{open:n}=e;delete Mj[d],n&&(document.body.style.touchAction=``),(t=e.scrollLocker)==null||t.unLock()}),H(()=>e.placement,e=>{e&&(l.value=null)});let f=()=>{var e,t;(t=(e=a.value)?.focus)==null||t.call(e)},p=e=>{n(`close`,e)},m=e=>{e.keyCode===$.ESC&&(e.stopPropagation(),p(e))},h=()=>{let{open:t,afterVisibleChange:n}=e;n&&n(!!t)},g=e=>{let{level:t,getContainer:n}=e;if(Aj)return;let r=n?.(),i=r?r.parentNode:null;u=[],t===`all`?(i?Array.prototype.slice.call(i.children):[]).forEach(e=>{e.nodeName!==`SCRIPT`&&e.nodeName!==`STYLE`&&e.nodeName!==`LINK`&&e!==r&&u.push(e)}):t&&Oj(t).forEach(e=>{document.querySelectorAll(e).forEach(e=>{u.push(e)})})},_=e=>{n(`handleClick`,e)},v=M(!1);return H(a,()=>{x(()=>{v.value=!0})}),()=>{let{width:t,height:n,open:u,prefixCls:d,placement:f,level:g,levelMove:y,ease:b,duration:x,getContainer:S,onChange:C,afterVisibleChange:w,showMask:T,maskClosable:E,maskStyle:D,keyboard:O,getOpenCount:k,scrollLocker:A,contentWrapperStyle:j,style:M,class:N,rootClassName:P,rootStyle:F,maskMotion:I,motion:L,inline:ee}=e,R=jj(e,`width.height.open.prefixCls.placement.level.levelMove.ease.duration.getContainer.onChange.afterVisibleChange.showMask.maskClosable.maskStyle.keyboard.getOpenCount.scrollLocker.contentWrapperStyle.style.class.rootClassName.rootStyle.maskMotion.motion.inline`.split(`.`)),z=u&&v.value,B=Z(d,{[`${d}-${f}`]:!0,[`${d}-open`]:z,[`${d}-inline`]:ee,"no-mask":!T,[P]:!0}),te=typeof L==`function`?L(f):L;return s(`div`,X(X({},Gn(R,[`autofocus`])),{},{tabindex:-1,class:B,style:F,ref:a,onKeydown:z&&O?m:void 0}),[s(Gt,I,{default:()=>[T&&ie(s(`div`,{class:`${d}-mask`,onClick:E?p:void 0,style:D,ref:o},null),[[st,z]])]}),s(Gt,X(X({},te),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[ie(s(`div`,{class:`${d}-content-wrapper`,style:[j],ref:i},[s(`div`,{class:[`${d}-content`,N],style:M,ref:l},[r.default?.call(r)]),r.handler?s(`div`,{onClick:_,ref:c},[r.handler?.call(r)]):null]),[[st,z]])]})])}}}),Pj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:``,keyboard:!0,forceRender:!1,autofocus:!0}),emits:[`handleClick`,`close`],setup(e,t){let{emit:n,slots:r}=t,i=W(null),a=e=>{n(`handleClick`,e)},o=e=>{n(`close`,e)};return()=>{let{getContainer:t,wrapperClassName:n,rootClassName:c,rootStyle:l,forceRender:u}=e,d=Pj(e,[`getContainer`,`wrapperClassName`,`rootClassName`,`rootStyle`,`forceRender`]),f=null;if(!t)return s(Nj,X(X({},d),{},{rootClassName:c,rootStyle:l,open:e.open,onClose:o,onHandleClick:a,inline:!0}),r);let p=!!r.handler||u;return(p||e.open||i.value)&&(f=s(qn,{autoLock:!0,visible:e.open,forceRender:p,getContainer:t,wrapperClassName:n},{default:t=>{var{visible:n,afterClose:u}=t,f=Pj(t,[`visible`,`afterClose`]);return s(Nj,X(X(X({ref:i},d),f),{},{rootClassName:c,rootStyle:l,open:n===void 0?e.open:n,afterVisibleChange:u===void 0?e.afterVisibleChange:u,onClose:o,onHandleClick:a}),r)}})),f}}}),Ij=e=>{let{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:`none`},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:`translateX(-100%) !important`},"&-active":{transform:`translateX(0)`}},"&-leave":{transform:`translateX(0)`,"&-active":{transform:`translateX(-100%)`}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:`translateX(100%) !important`},"&-active":{transform:`translateX(0)`}},"&-leave":{transform:`translateX(0)`,"&-active":{transform:`translateX(100%)`}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:`translateY(-100%) !important`},"&-active":{transform:`translateY(0)`}},"&-leave":{transform:`translateY(0)`,"&-active":{transform:`translateY(-100%)`}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:`translateY(100%) !important`},"&-active":{transform:`translateY(0)`}},"&-leave":{transform:`translateY(0)`,"&-active":{transform:`translateY(100%)`}}}]}}}},Lj=e=>{let{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:o,padding:s,paddingLG:c,fontSizeLG:l,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:p,marginSM:m,colorIcon:h,colorIconHover:g,colorText:_,fontWeightStrong:v,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:b}=e,x=`${t}-content-wrapper`;return{[t]:{position:`fixed`,inset:0,zIndex:n,pointerEvents:`none`,"&-pure":{position:`relative`,background:i,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:`absolute`},[`${t}-mask`]:{position:`absolute`,inset:0,zIndex:n,background:r,pointerEvents:`auto`},[x]:{position:`absolute`,zIndex:n,transition:`all ${a}`,"&-hidden":{display:`none`}},[`&-left > ${x}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${x}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${x}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${x}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:`100%`,height:`100%`,overflow:`auto`,background:i,pointerEvents:`auto`},[`${t}-wrapper-body`]:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`},[`${t}-header`]:{display:`flex`,flex:0,alignItems:`center`,padding:`${s}px ${c}px`,fontSize:l,lineHeight:u,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:`flex`,flex:1,alignItems:`center`,minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:`none`},[`${t}-close`]:{display:`inline-block`,marginInlineEnd:m,color:h,fontWeight:v,fontSize:l,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,textDecoration:`none`,background:`transparent`,border:0,outline:0,cursor:`pointer`,transition:`color ${o}`,textRendering:`auto`,"&:focus, &:hover":{color:g,textDecoration:`none`}},[`${t}-title`]:{flex:1,margin:0,color:_,fontWeight:e.fontWeightStrong,fontSize:l,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:c,overflow:`auto`},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${b}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:`rtl`}}}},Rj=Le(`Drawer`,e=>{let t=Fe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Lj(t),Ij(t)]},e=>({zIndexPopup:e.zIndexPopupBase})),zj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);it.open??t.visible);H(p,()=>{p.value?d.value=!0:f.value=!1},{immediate:!0}),H([p,d],()=>{p.value&&d.value&&(f.value=!0)},{immediate:!0});let m=C(`parentDrawerOpts`,null),{prefixCls:h,getPopupContainer:g,direction:_}=K(`drawer`,t),[v,y]=Rj(h),b=a(()=>t.getContainer===void 0&&g?.value?()=>g.value(document.body):t.getContainer);ir(!t.afterVisibleChange,`Drawer`,"`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),e(`parentDrawerOpts`,{setPush:()=>{c.value=!0},setPull:()=>{c.value=!1,x(()=>{S()})}}),D(()=>{p.value&&m&&m.setPush()}),E(()=>{m&&m.setPull()}),H(f,()=>{m&&(f.value?m.setPush():m.setPull())},{flush:`post`});let S=()=>{var e,t;(t=(e=u.value)?.domFocus)==null||t.call(e)},w=e=>{r(`update:visible`,!1),r(`update:open`,!1),r(`close`,e)},T=e=>{var n;e||(l.value===!1&&(l.value=!0),t.destroyOnClose&&(d.value=!1)),(n=t.afterVisibleChange)==null||n.call(t,e),r(`afterVisibleChange`,e),r(`afterOpenChange`,e)},O=a(()=>{let{push:e,placement:n}=t,r;return r=typeof e==`boolean`?e?Vj.distance:0:e.distance,r=parseFloat(String(r||0)),n===`left`||n===`right`?`translateX(${n===`left`?r:-r}px)`:n===`top`||n===`bottom`?`translateY(${n===`top`?r:-r}px)`:null}),k=a(()=>t.width??(t.size===`large`?736:378)),A=a(()=>t.height??(t.size===`large`?736:378)),j=a(()=>{let{mask:e,placement:n}=t;if(!f.value&&!e)return{};let r={};return n===`left`||n===`right`?r.width=z_(k.value)?`${k.value}px`:k.value:r.height=z_(A.value)?`${A.value}px`:A.value,r}),N=a(()=>{let{zIndex:e,contentWrapperStyle:n}=t,r=j.value;return[{zIndex:e,transform:c.value?O.value:void 0},G({},n),r]}),P=e=>{let{closable:n,headerStyle:r}=t,a=Se(i,t,`extra`),o=Se(i,t,`title`);return!o&&!n?null:s(`div`,{class:Z(`${e}-header`,{[`${e}-header-close-only`]:n&&!o&&!a}),style:r},[s(`div`,{class:`${e}-header-title`},[F(e),o&&s(`div`,{class:`${e}-title`},[o])]),a&&s(`div`,{class:`${e}-extra`},[a])])},F=e=>{let{closable:n}=t,r=i.closeIcon?i.closeIcon?.call(i):t.closeIcon;return n&&s(`button`,{key:`closer`,onClick:w,"aria-label":`Close`,class:`${e}-close`},[r===void 0?s(_t,null,null):r])},I=e=>{if(l.value&&!t.forceRender&&!d.value)return null;let{bodyStyle:n,drawerStyle:r}=t;return s(`div`,{class:`${e}-wrapper-body`,style:r},[P(e),s(`div`,{key:`body`,class:`${e}-body`,style:n},[i.default?.call(i)]),L(e)])},L=e=>{let n=Se(i,t,`footer`);if(!n)return null;let r=`${e}-footer`;return s(`div`,{class:r,style:t.footerStyle},[n])},ee=a(()=>Z({"no-mask":!t.mask,[`${h.value}-rtl`]:_.value===`rtl`},t.rootClassName,y.value)),R=a(()=>ge(qe(h.value,`mask-motion`))),z=e=>ge(qe(h.value,`panel-motion-${e}`));return()=>{let{width:e,height:n,placement:r,mask:a,forceRender:c}=t,l=zj(t,[`width`,`height`,`placement`,`mask`,`forceRender`]),d=G(G(G({},o),Gn(l,[`size`,`closeIcon`,`closable`,`destroyOnClose`,`drawerStyle`,`headerStyle`,`bodyStyle`,`title`,`push`,`onAfterVisibleChange`,`onClose`,`onUpdate:visible`,`onUpdate:open`,`visible`])),{forceRender:c,onClose:w,afterVisibleChange:T,handler:!1,prefixCls:h.value,open:f.value,showMask:a,placement:r,ref:u});return v(s(wn,null,{default:()=>[s(Fj,X(X({},d),{},{maskMotion:R.value,motion:z,width:k.value,height:A.value,getContainer:b.value,rootClassName:ee.value,rootStyle:t.rootStyle,contentWrapperStyle:N.value}),{handler:t.handle?()=>t.handle:i.handle,default:()=>I(h.value)})]}))}}}),Uj=be(Hj),Wj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z`}}]},name:`file-text`,theme:`outlined`};function Gj(e){for(var t=1;t({prefixCls:String,description:J.any,type:q(`default`),shape:q(`circle`),tooltip:J.any,href:String,target:String,badge:ut(),onClick:Q()}),Yj=()=>({prefixCls:q()}),Xj=()=>G(G({},Jj()),{trigger:q(),open:Y(),onOpenChange:Q(),"onUpdate:open":Q()}),Zj=()=>G(G({},Jj()),{prefixCls:String,duration:Number,target:Q(),visibilityHeight:Number,onClick:Q()}),Qj=d({compatConfig:{MODE:3},name:`AFloatButtonContent`,inheritAttrs:!1,props:Yj(),setup(e,t){let{attrs:n,slots:r}=t;return()=>{let{prefixCls:t}=e,i=ve(r.description?.call(r));return s(`div`,X(X({},n),{},{class:[n.class,`${t}-content`]}),[r.icon||i.length?s(v,null,[r.icon&&s(`div`,{class:`${t}-icon`},[r.icon()]),i.length?s(`div`,{class:`${t}-description`},[i]):null]):s(`div`,{class:`${t}-icon`},[s(qj,null,null)])])}}}),$j=Symbol(`floatButtonGroupContext`),eM=t=>(e($j,t),t),tM=()=>C($j,{shape:W()}),nM=e=>e===0?0:e-Math.sqrt(e**2/2),rM=e=>{let{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:i}=e,a=`${t}-group`,o=new Te(`antFloatButtonMoveDownIn`,{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),s=new Te(`antFloatButtonMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:`0 0`,opacity:0}});return[{[`${a}-wrap`]:G({},Pn(`${a}-wrap`,o,s,r,!0))},{[`${a}-wrap`]:{[` + &${a}-wrap-enter, + &${a}-wrap-appear + `]:{opacity:0,animationTimingFunction:i},[`&${a}-wrap-leave`]:{animationTimingFunction:i}}}]},iM=e=>{let{antCls:t,componentCls:n,floatButtonSize:r,margin:i,borderRadiusLG:a,borderRadiusSM:o,badgeOffset:s,floatButtonBodyPadding:c}=e,l=`${n}-group`;return{[l]:G(G({},Ne(e)),{zIndex:99,display:`block`,border:`none`,position:`fixed`,width:r,height:`auto`,boxShadow:`none`,minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:a,[`${l}-wrap`]:{zIndex:-1,display:`block`,position:`relative`,marginBottom:i},[`&${l}-rtl`]:{direction:`rtl`},[n]:{position:`static`}}),[`${l}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:`50%`}}},[`${l}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(c+s),insetInlineEnd:-(c+s)}}},[`${l}-wrap`]:{display:`block`,borderRadius:a,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:`none`,marginTop:0,borderRadius:0,padding:c,"&:first-child":{borderStartStartRadius:a,borderStartEndRadius:a},"&:last-child":{borderEndStartRadius:a,borderEndEndRadius:a},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${l}-circle-shadow`]:{boxShadow:`none`},[`${l}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:`none`,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:o}}}}},aM=e=>{let{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:i,floatButtonSize:a,borderRadiusLG:o,badgeOffset:s,dotOffsetInSquare:c,dotOffsetInCircle:l}=e;return{[n]:G(G({},Ne(e)),{border:`none`,position:`fixed`,cursor:`pointer`,zIndex:99,display:`block`,justifyContent:`center`,alignItems:`center`,width:a,height:a,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:`relative`,inset:`auto`},"&:empty":{display:`none`},[`${t}-badge`]:{width:`100%`,height:`100%`,[`${t}-badge-count`]:{transform:`translate(0, 0)`,transformOrigin:`center`,top:-s,insetInlineEnd:-s}},[`${n}-body`]:{width:`100%`,height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`,transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:`hidden`,textAlign:`center`,minHeight:a,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,padding:`${r/2}px ${r}px`,[`${n}-icon`]:{textAlign:`center`,margin:`auto`,width:i,fontSize:i,lineHeight:1}}}}),[`${n}-rtl`]:{direction:`rtl`},[`${n}-circle`]:{height:a,borderRadius:`50%`,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{borderRadius:`50%`}},[`${n}-square`]:{height:`auto`,minHeight:a,borderRadius:o,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:`auto`,borderRadius:o}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:`flex`,alignItems:`center`,lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:`flex`,alignItems:`center`,lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},oM=Le(`FloatButton`,e=>{let{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:i,marginLG:a,fontSize:o,fontSizeIcon:s,controlItemBgHover:c,paddingXXS:l,borderRadiusLG:u}=e,d=Fe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:o,floatButtonIconSize:s*1.5,floatButtonSize:r,floatButtonInsetBlockEnd:i,floatButtonInsetInlineEnd:a,floatButtonBodySize:r-l*2,floatButtonBodyPadding:l,badgeOffset:l*1.5,dotOffsetInCircle:nM(r/2),dotOffsetInSquare:nM(u)});return[iM(d),aM(d),pr(e),rM(d)]}),sM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iu?.value||e.shape);return()=>{let{prefixCls:t,type:a=`default`,shape:u=`circle`,description:p=r.description?.call(r),tooltip:m,badge:h={}}=e,g=sM(e,[`prefixCls`,`type`,`shape`,`description`,`tooltip`,`badge`]),_=Z(i.value,`${i.value}-${a}`,`${i.value}-${f.value}`,{[`${i.value}-rtl`]:o.value===`rtl`},n.class,l.value),v=s(m_,{placement:`left`},{title:r.tooltip||m?()=>r.tooltip&&r.tooltip()||m:void 0,default:()=>s(V_,h,{default:()=>[s(`div`,{class:`${i.value}-body`},[s(Qj,{prefixCls:i.value},{icon:r.icon,description:()=>p})])]})});return c(e.href?s(`a`,X(X(X({ref:d},n),g),{},{class:_}),[v]):s(`button`,X(X(X({ref:d},n),g),{},{class:_,type:`button`}),[v]))}}}),uM=d({compatConfig:{MODE:3},name:`AFloatButtonGroup`,inheritAttrs:!1,props:Vn(Xj(),{type:`default`,shape:`circle`}),setup(e,t){let{attrs:n,slots:r,emit:i}=t,{prefixCls:o,direction:c}=K(cM,e),[l,u]=oM(o),[d,f]=zu(!1,{value:a(()=>e.open)}),m=W(null),h=W(null);eM({shape:a(()=>e.shape)});let g={onMouseenter(){var t;f(!0),i(`update:open`,!0),(t=e.onOpenChange)==null||t.call(e,!0)},onMouseleave(){var t;f(!1),i(`update:open`,!1),(t=e.onOpenChange)==null||t.call(e,!1)}},_=a(()=>e.trigger===`hover`?g:{}),y=()=>{var t;let n=!d.value;i(`update:open`,n),(t=e.onOpenChange)==null||t.call(e,n),f(n)},b=t=>{var n;if(m.value?.contains(t.target)){Et(h.value)?.contains(t.target)&&y();return}f(!1),i(`update:open`,!1),(n=e.onOpenChange)==null||n.call(e,!1)};return H(a(()=>e.trigger),e=>{de()&&(document.removeEventListener(`click`,b),e===`click`&&document.addEventListener(`click`,b))},{immediate:!0}),p(()=>{document.removeEventListener(`click`,b)}),()=>{let{shape:t=`circle`,type:i=`default`,tooltip:a,description:f,trigger:p}=e,g=`${o.value}-group`,y=Z(g,u.value,n.class,{[`${g}-rtl`]:c.value===`rtl`,[`${g}-${t}`]:t,[`${g}-${t}-shadow`]:!p}),b=Z(u.value,`${g}-wrap`),x=ge(`${g}-wrap`);return l(s(`div`,X(X({ref:m},n),{},{class:y},_.value),[p&&[`click`,`hover`].includes(p)?s(v,null,[s(Gt,x,{default:()=>[ie(s(`div`,{class:b},[r.default&&r.default()]),[[st,d.value]])]}),s(lM,{ref:h,type:i,shape:t,tooltip:a,description:f},{icon:()=>d.value?r.closeIcon?.call(r)||s(_t,null,null):r.icon?.call(r)||s(qj,null,null),tooltip:r.tooltip,description:r.description})]):r.default?.call(r)]))}}}),dM={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z`}}]},name:`vertical-align-top`,theme:`outlined`};function fM(e){for(var t=1;twindow,duration:450,type:`default`,shape:`circle`}),setup(e,t){let{slots:n,attrs:r,emit:i}=t,{prefixCls:a,direction:o}=K(cM,e),[c]=oM(a),l=W(),u=k({visible:e.visibilityHeight===0,scrollEvent:null}),d=()=>l.value&&l.value.ownerDocument?l.value.ownerDocument:window,m=t=>{let{target:n=d,duration:r}=e;ia(0,{getContainer:n,duration:r}),i(`click`,t)},h=mi(t=>{let{visibilityHeight:n}=e,r=ra(t.target,!0);u.visible=r>=n}),g=()=>{let{target:t}=e,n=(t||d)();h({target:n}),n?.addEventListener(`scroll`,h)},_=()=>{let{target:t}=e,n=(t||d)();h.cancel(),n?.removeEventListener(`scroll`,h)};H(()=>e.target,()=>{_(),x(()=>{g()})}),D(()=>{x(()=>{g()})}),w(()=>{x(()=>{g()})}),f(()=>{_()}),p(()=>{_()});let v=tM();return()=>{let{description:t,type:i,shape:d,tooltip:f,badge:p}=e,h=G(G({},r),{shape:v?.shape.value||d,onClick:m,class:{[`${a.value}`]:!0,[`${r.class}`]:r.class,[`${a.value}-rtl`]:o.value===`rtl`},description:t,type:i,tooltip:f,badge:p}),g=ge(`fade`);return c(s(Gt,g,{default:()=>[ie(s(lM,X(X({},h),{},{ref:l}),{icon:()=>n.icon?.call(n)||s(mM,null,null)}),[[st,u.visible]])]}))}}});lM.Group=uM,lM.BackTop=hM,lM.install=function(e){return e.component(lM.name,lM),e.component(uM.name,uM),e.component(hM.name,hM),e};var gM=lM,_M=e=>e!=null&&(!Array.isArray(e)||ve(e).length);function vM(e){return _M(e.prefix)||_M(e.suffix)||_M(e.allowClear)}function yM(e){return _M(e.addonBefore)||_M(e.addonAfter)}function bM(e){return e==null?``:String(e)}function xM(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});let t=e.cloneNode(!0);i.target=t,i.currentTarget=t,t.value=``,n(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=e,i.currentTarget=e,e.value=r,n(i);return}n(i)}function SM(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var CM=()=>({addonBefore:J.any,addonAfter:J.any,prefix:J.any,suffix:J.any,clearIcon:J.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),wM=()=>G(G({},CM()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:J.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),TM=()=>G(G({},wM()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:q(`text`),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),EM=d({name:`BaseInput`,inheritAttrs:!1,props:wM(),setup(e,t){let{slots:n,attrs:r}=t,i=W(),a=t=>{if(i.value?.contains(t.target)){let{triggerFocus:t}=e;t?.()}},o=()=>{let{allowClear:t,value:r,disabled:i,readonly:a,handleReset:o,suffix:c=n.suffix,prefixCls:l}=e;if(!t)return null;let u=!i&&!a&&r,d=`${l}-clear-icon`,f=n.clearIcon?.call(n)||`*`;return s(`span`,{onClick:o,onMousedown:e=>e.preventDefault(),class:Z({[`${d}-hidden`]:!u,[`${d}-has-suffix`]:!!c},d),role:`button`,tabindex:-1},[f])};return()=>{let{focused:t,value:c,disabled:l,allowClear:u,readonly:d,hidden:f,prefixCls:p,prefix:m=n.prefix?.call(n),suffix:h=n.suffix?.call(n),addonAfter:g=n.addonAfter,addonBefore:_=n.addonBefore,inputElement:v,affixWrapperClassName:y,wrapperClassName:b,groupClassName:x}=e,S=on(v,{value:c,hidden:f});if(vM({prefix:m,suffix:h,allowClear:u})){let e=`${p}-affix-wrapper`,n=Z(e,{[`${e}-disabled`]:l,[`${e}-focused`]:t,[`${e}-readonly`]:d,[`${e}-input-with-clear-btn`]:h&&u&&c},!yM({addonAfter:g,addonBefore:_})&&r.class,y),b=(h||u)&&s(`span`,{class:`${p}-suffix`},[o(),h]);S=s(`span`,{class:n,style:r.style,hidden:!yM({addonAfter:g,addonBefore:_})&&f,onMousedown:a,ref:i},[m&&s(`span`,{class:`${p}-prefix`},[m]),on(v,{style:null,value:c,hidden:null}),b])}if(yM({addonAfter:g,addonBefore:_})){let e=`${p}-group`,t=`${e}-addon`,n=Z(`${p}-wrapper`,e,b),i=Z(`${p}-group-wrapper`,r.class,x);return s(`span`,{class:i,style:r.style,hidden:f},[s(`span`,{class:n},[_&&s(`span`,{class:t},[_]),on(S,{style:null,hidden:null}),g&&s(`span`,{class:t},[g])])])}return S}}}),DM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.value,()=>{c.value=e.value}),H(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});let f=e=>{u.value&&SM(u.value.input,e)};i({focus:f,blur:()=>{var e;(e=u.value.input)==null||e.blur()},input:a(()=>u.value.input?.input),stateValue:c,setSelectionRange:(e,t,n)=>{var r;(r=u.value.input)==null||r.setSelectionRange(e,t,n)},select:()=>{var e;(e=u.value.input)==null||e.select()}});let p=e=>{o(`change`,e)},m=(t,n)=>{c.value!==t&&(e.value===void 0?c.value=t:x(()=>{var e;u.value.input.value!==c.value&&((e=d.value)==null||e.$forceUpdate())}),x(()=>{n&&n()}))},h=e=>{let{value:t}=e.target;if(c.value===t)return;let n=e.target.value;xM(u.value.input,e,p),m(n)},g=e=>{e.keyCode===13&&o(`pressEnter`,e),o(`keydown`,e)},_=e=>{l.value=!0,o(`focus`,e)},y=e=>{l.value=!1,o(`blur`,e)},b=e=>{xM(u.value.input,e,p),m(``,()=>{f()})},S=()=>{let{addonBefore:t=n.addonBefore,addonAfter:i=n.addonAfter,disabled:a,valueModifiers:o={},htmlSize:c,autocomplete:l,prefixCls:d,inputClassName:f,prefix:p=n.prefix?.call(n),suffix:m=n.suffix?.call(n),allowClear:v,type:b=`text`}=e,x=Gn(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`size`,`bordered`,`htmlSize`,`lazy`,`showCount`,`valueModifiers`,`showCount`,`affixWrapperClassName`,`groupClassName`,`inputClassName`,`wrapperClassName`]),S=G(G(G({},x),r),{autocomplete:l,onChange:h,onInput:h,onFocus:_,onBlur:y,onKeydown:g,class:Z(d,{[`${d}-disabled`]:a},f,!yM({addonAfter:i,addonBefore:t})&&!vM({prefix:p,suffix:m,allowClear:v})&&r.class),ref:u,key:`ant-input`,size:c,type:b,lazy:e.lazy});return o.lazy&&delete S.onInput,S.autofocus||delete S.autofocus,s(pl,Gn(S,[`size`]),null)},C=()=>{let{maxlength:t,suffix:r=n.suffix?.call(n),showCount:i,prefixCls:a}=e,o=Number(t)>0;if(r||i){let e=[...bM(c.value)].length,n=typeof i==`object`?i.formatter({count:e,maxlength:t}):`${e}${o?` / ${t}`:``}`;return s(v,null,[!!i&&s(`span`,{class:Z(`${a}-show-count-suffix`,{[`${a}-show-count-has-suffix`]:!!r})},[n]),r])}return null};return D(()=>{}),()=>{let{prefixCls:t,disabled:i}=e,a=DM(e,[`prefixCls`,`disabled`]);return s(EM,X(X(X({},a),r),{},{ref:d,prefixCls:t,inputElement:S(),handleReset:b,value:bM(c.value),focused:l.value,triggerFocus:f,suffix:C(),disabled:i}),n)}}}),kM=()=>Gn(TM(),[`wrapperClassName`,`groupClassName`,`inputClassName`,`affixWrapperClassName`]),AM=()=>G(G({},Gn(kM(),[`prefix`,`addonBefore`,`addonAfter`,`suffix`])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Yt(),onCompositionend:Yt(),valueModifiers:Object}),jM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ifd(u.status,e.status)),{direction:f,prefixCls:m,size:h,autocomplete:g}=K(`input`,e),{compactSize:_,compactItemClassnames:y}=ln(m,f),b=a(()=>_.value||h.value),[x,S]=WS(m),C=pt();i({focus:e=>{var t;(t=c.value)==null||t.focus(e)},blur:()=>{var e;(e=c.value)==null||e.blur()},input:c,setSelectionRange:(e,t,n)=>{var r;(r=c.value)==null||r.setSelectionRange(e,t,n)},select:()=>{var e;(e=c.value)==null||e.select()}});let w=W([]),T=()=>{w.value.push(setTimeout(()=>{var e;c.value?.input&&c.value?.input.getAttribute(`type`)===`password`&&c.value?.input.hasAttribute(`value`)&&((e=c.value)==null||e.input.removeAttribute(`value`))}))};D(()=>{T()}),V(()=>{w.value.forEach(e=>clearTimeout(e))}),p(()=>{w.value.forEach(e=>clearTimeout(e))});let E=e=>{T(),o(`blur`,e),l.onFieldBlur()},O=e=>{T(),o(`focus`,e)},k=e=>{o(`update:value`,e.target.value),o(`change`,e),o(`input`,e),l.onFieldChange()};return()=>{let{hasFeedback:t,feedbackIcon:i}=u,{allowClear:a,bordered:o=!0,prefix:p=n.prefix?.call(n),suffix:h=n.suffix?.call(n),addonAfter:_=n.addonAfter?.call(n),addonBefore:w=n.addonBefore?.call(n),id:T=l.id?.value}=e,D=jM(e,[`allowClear`,`bordered`,`prefix`,`suffix`,`addonAfter`,`addonBefore`,`id`]),A=(t||h)&&s(v,null,[h,t&&i]),j=m.value,M=vM({prefix:p,suffix:h})||!!t,N=n.clearIcon||(()=>s(yt,null,null));return x(s(OM,X(X(X({},r),Gn(D,[`onUpdate:value`,`onChange`,`onInput`])),{},{onChange:k,id:T,disabled:e.disabled??C.value,ref:c,prefixCls:j,autocomplete:g.value,onBlur:E,onFocus:O,prefix:p,suffix:A,allowClear:a,addonAfter:_&&s(wn,null,{default:()=>[s(ud,null,{default:()=>[_]})]}),addonBefore:w&&s(wn,null,{default:()=>[s(ud,null,{default:()=>[w]})]}),class:[r.class,y.value],inputClassName:Z({[`${j}-sm`]:b.value===`small`,[`${j}-lg`]:b.value===`large`,[`${j}-rtl`]:f.value===`rtl`,[`${j}-borderless`]:!o},!M&&dd(j,d.value),S.value),affixWrapperClassName:Z({[`${j}-affix-wrapper-sm`]:b.value===`small`,[`${j}-affix-wrapper-lg`]:b.value===`large`,[`${j}-affix-wrapper-rtl`]:f.value===`rtl`,[`${j}-affix-wrapper-borderless`]:!o},dd(`${j}-affix-wrapper`,d.value,t),S.value),wrapperClassName:Z({[`${j}-group-rtl`]:f.value===`rtl`},S.value),groupClassName:Z({[`${j}-group-wrapper-sm`]:b.value===`small`,[`${j}-group-wrapper-lg`]:b.value===`large`,[`${j}-group-wrapper-rtl`]:f.value===`rtl`},dd(`${j}-group-wrapper`,d.value,t),S.value)}),G(G({},n),{clearIcon:N})))}}}),NM=d({compatConfig:{MODE:3},name:`AInputGroup`,inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o,getPrefixCls:c}=K(`input-group`,e),l=ld.useInject();ld.useProvide(l,{isFormItemInput:!1});let[u,d]=WS(a(()=>c(`input`))),f=a(()=>{let t=i.value;return{[`${t}`]:!0,[d.value]:!0,[`${t}-lg`]:e.size===`large`,[`${t}-sm`]:e.size===`small`,[`${t}-compact`]:e.compact,[`${t}-rtl`]:o.value===`rtl`}});return()=>u(s(`span`,X(X({},r),{},{class:Z(f.value,r.class)}),[n.default?.call(n)]))}}),PM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{var e;(e=c.value)==null||e.focus()},blur:()=>{var e;(e=c.value)==null||e.blur()}});let u=e=>{o(`update:value`,e.target.value),e&&e.target&&e.type===`click`&&o(`search`,e.target.value,e),o(`change`,e)},d=e=>{document.activeElement===c.value?.input&&e.preventDefault()},f=e=>{o(`search`,c.value?.input?.stateValue,e)},p=t=>{l.value||e.loading||f(t)},m=e=>{l.value=!0,o(`compositionstart`,e)},h=e=>{l.value=!1,o(`compositionend`,e)},{prefixCls:g,getPrefixCls:_,direction:v,size:y}=K(`input-search`,e),b=a(()=>_(`input`,e.inputPrefixCls));return()=>{let{disabled:t,loading:i,addonAfter:a=n.addonAfter?.call(n),suffix:o=n.suffix?.call(n)}=e,l=PM(e,[`disabled`,`loading`,`addonAfter`,`suffix`]),{enterButton:_=n.enterButton?.call(n)??!1}=e;_||=_===``;let x=typeof _==`boolean`?s(hr,null,null):null,S=`${g.value}-button`,C=Array.isArray(_)?_[0]:_,w,T=C.type&&zf(C.type)&&C.type.__ANT_BUTTON;if(T||C.tagName===`button`)w=on(C,G({onMousedown:d,onClick:f,key:`enterButton`},T?{class:S,size:y.value}:{}),!1);else{let e=x&&!_;w=s(Ln,{class:S,type:_?`primary`:void 0,size:y.value,disabled:t,key:`enterButton`,onMousedown:d,onClick:f,loading:i,icon:e?x:null},{default:()=>[e?null:x||_]})}a&&(w=[w,a]);let E=Z(g.value,{[`${g.value}-rtl`]:v.value===`rtl`,[`${g.value}-${y.value}`]:!!y.value,[`${g.value}-with-button`]:!!_},r.class);return s(MM,X(X(X({ref:c},Gn(l,[`onUpdate:value`,`onSearch`,`enterButton`])),r),{},{onPressEnter:p,onCompositionstart:m,onCompositionend:h,size:y.value,prefixCls:b.value,addonAfter:w,suffix:o,onChange:u,class:E,disabled:t}),n)}}}),IM=e=>e!=null&&(!Array.isArray(e)||ve(e).length);function LM(e){return IM(e.addonBefore)||IM(e.addonAfter)}var RM=[`text`,`input`],zM=d({compatConfig:{MODE:3},name:`ClearableLabeledInput`,inheritAttrs:!1,props:{prefixCls:String,inputType:J.oneOf(_e(`text`,`input`)),value:bt(),defaultValue:bt(),allowClear:{type:Boolean,default:void 0},element:bt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:bt(),prefix:bt(),addonBefore:bt(),addonAfter:bt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t,i=ld.useInject(),a=t=>{let{value:r,disabled:i,readonly:a,handleReset:o,suffix:c=n.suffix}=e,l=!i&&!a&&r,u=`${t}-clear-icon`;return s(yt,{onClick:o,onMousedown:e=>e.preventDefault(),class:Z({[`${u}-hidden`]:!l,[`${u}-has-suffix`]:!!c},u),role:`button`},null)},o=(t,o)=>{let{value:c,allowClear:l,direction:u,bordered:d,hidden:f,status:p,addonAfter:m=n.addonAfter,addonBefore:h=n.addonBefore,hashId:g}=e,{status:_,hasFeedback:v}=i;if(!l)return on(o,{value:c,disabled:e.disabled});let y=Z(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,dd(`${t}-affix-wrapper`,fd(_,p),v),{[`${t}-affix-wrapper-rtl`]:u===`rtl`,[`${t}-affix-wrapper-borderless`]:!d,[`${r.class}`]:!LM({addonAfter:m,addonBefore:h})&&r.class},g);return s(`span`,{class:y,style:r.style,hidden:f},[on(o,{style:null,value:c,disabled:e.disabled}),a(t)])};return()=>{let{prefixCls:t,inputType:r,element:i=n.element?.call(n)}=e;return r===RM[0]?o(t,i):null}}}),BM=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,VM=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],HM={},UM;function WM(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&HM[n])return HM[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:VM.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(HM[n]=s),s}function GM(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;UM||(UM=document.createElement(`textarea`),UM.setAttribute(`tab-index`,`-1`),UM.setAttribute(`aria-hidden`,`true`),document.body.appendChild(UM)),e.getAttribute(`wrap`)?UM.setAttribute(`wrap`,e.getAttribute(`wrap`)):UM.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=WM(e,t);UM.setAttribute(`style`,`${s};${BM}`),UM.value=e.value||e.placeholder||``;let c,l,u,d=UM.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){UM.value=` `;let e=UM.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:`${d}px`,overflowY:u,resize:`none`};return c&&(f.minHeight=`${c}px`),l&&(f.maxHeight=`${l}px`),f}var KM=0,qM=1,JM=2,YM=d({compatConfig:{MODE:3},name:`ResizableTextArea`,inheritAttrs:!1,props:AM(),setup(e,t){let{attrs:n,emit:r,expose:i}=t,o,c,l=W(),u=W({}),d=W(JM);p(()=>{Rn.cancel(o),Rn.cancel(c)});let f=()=>{try{if(l.value&&document.activeElement===l.value.input){let e=l.value.getSelectionStart(),t=l.value.getSelectionEnd(),n=l.value.getScrollTop();l.value.setSelectionRange(e,t),l.value.setScrollTop(n)}}catch{}},h=W(),g=W();P(()=>{let t=e.autoSize||e.autosize;t?(h.value=t.minRows,g.value=t.maxRows):(h.value=void 0,g.value=void 0)});let _=a(()=>!!(e.autoSize||e.autosize)),v=()=>{d.value=KM};H([()=>e.value,h,g,_],()=>{_.value&&v()},{immediate:!0});let y=W();H([d,l],()=>{if(l.value){if(d.value===KM)d.value=qM;else if(d.value===qM){let e=GM(l.value.input,!1,h.value,g.value);d.value=JM,y.value=e}else f()}},{immediate:!0,flush:`post`});let b=m(),x=W(),S=()=>{Rn.cancel(x.value)},C=e=>{d.value===JM&&(r(`resize`,e),_.value&&(S(),x.value=Rn(()=>{v()})))};p(()=>{S()}),i({resizeTextarea:()=>{v()},textArea:a(()=>l.value?.input),instance:b}),nt(e.autosize===void 0,`Input.TextArea`,`autosize is deprecated, please use autoSize instead.`);let w=()=>{let{prefixCls:t,disabled:r}=e,i=Gn(e,[`prefixCls`,`onPressEnter`,`autoSize`,`autosize`,`defaultValue`,`allowClear`,`type`,`maxlength`,`valueModifiers`]),a=Z(t,n.class,{[`${t}-disabled`]:r}),o=_.value?y.value:null,c=[n.style,u.value,o],f=G(G(G({},i),n),{style:c,class:a});return(d.value===KM||d.value===qM)&&c.push({overflowX:`hidden`,overflowY:`hidden`}),f.autofocus||delete f.autofocus,f.rows===0&&delete f.rows,s(pi,{onResize:C,disabled:!_.value},{default:()=>[s(pl,X(X({},f),{},{ref:l,tag:`textarea`}),null)]})};return()=>w()}});function XM(e,t){return[...e||``].slice(0,t).join(``)}function ZM(e,t,n,r){let i=n;return e?i=XM(n,r):[...t||``].lengthr&&(i=t),i}var QM=d({compatConfig:{MODE:3},name:`ATextarea`,inheritAttrs:!1,props:AM(),setup(e,t){let{attrs:n,expose:r,emit:i}=t,o=sd(),c=ld.useInject(),l=a(()=>fd(c.status,e.status)),u=M(e.value??e.defaultValue),d=M(),f=M(``),{prefixCls:p,size:h,direction:g}=K(`input`,e),[_,v]=WS(p),y=pt(),b=a(()=>e.showCount===``||e.showCount||!1),S=a(()=>Number(e.maxlength)>0),C=M(!1),w=M(),T=M(0),E=e=>{C.value=!0,w.value=f.value,T.value=e.currentTarget.selectionStart,i(`compositionstart`,e)},D=t=>{C.value=!1;let n=t.currentTarget.value;S.value&&(n=ZM(T.value>=e.maxlength+1||T.value===w.value?.length,w.value,n,e.maxlength)),n!==f.value&&(j(n),xM(t.currentTarget,t,I,n)),i(`compositionend`,t)},O=m();H(()=>e.value,()=>{`value`in O.vnode.props,u.value=e.value??``});let k=e=>{SM(d.value?.textArea,e)},A=()=>{var e;(e=d.value?.textArea)==null||e.blur()},j=(t,n)=>{u.value!==t&&(e.value===void 0?u.value=t:x(()=>{var e,t,n;d.value.textArea.value!==f.value&&((n=(e=d.value)==null?void 0:(t=e.instance).update)==null||n.call(t))}),x(()=>{n&&n()}))},N=e=>{e.keyCode===13&&i(`pressEnter`,e),i(`keydown`,e)},F=t=>{let{onBlur:n}=e;n?.(t),o.onFieldBlur()},I=e=>{i(`update:value`,e.target.value),i(`change`,e),i(`input`,e),o.onFieldChange()},L=e=>{xM(d.value.textArea,e,I),j(``,()=>{k()})},ee=t=>{let n=t.target.value;if(u.value!==n){if(S.value){let r=t.target;n=ZM(r.selectionStart>=e.maxlength+1||r.selectionStart===n.length||!r.selectionStart,f.value,n,e.maxlength)}xM(t.currentTarget,t,I,n),j(n)}},R=()=>{let{class:t}=n,{bordered:r=!0}=e,i=G(G(G({},Gn(e,[`allowClear`])),n),{class:[{[`${p.value}-borderless`]:!r,[`${t}`]:t&&!b.value,[`${p.value}-sm`]:h.value===`small`,[`${p.value}-lg`]:h.value===`large`},dd(p.value,l.value),v.value],disabled:y.value,showCount:null,prefixCls:p.value,onInput:ee,onChange:ee,onBlur:F,onKeydown:N,onCompositionstart:E,onCompositionend:D});return e.valueModifiers?.lazy&&delete i.onInput,s(YM,X(X({},i),{},{id:i?.id??o.id.value,ref:d,maxlength:e.maxlength,lazy:e.lazy}),null)};return r({focus:k,blur:A,resizableTextArea:d}),P(()=>{let t=bM(u.value);!C.value&&S.value&&(e.value===null||e.value===void 0)&&(t=XM(t,e.maxlength)),f.value=t}),()=>{let{maxlength:t,bordered:r=!0,hidden:i}=e,{style:a,class:o}=n,l=G(G(G({},e),n),{prefixCls:p.value,inputType:`text`,handleReset:L,direction:g.value,bordered:r,style:b.value?void 0:a,hashId:v.value,disabled:e.disabled??y.value}),u=s(zM,X(X({},l),{},{value:f.value,status:e.status}),{element:R});if(b.value||c.hasFeedback){let e=[...f.value].length,n=``;n=typeof b.value==`object`?b.value.formatter({value:f.value,count:e,maxlength:t}):`${e}${S.value?` / ${t}`:``}`,u=s(`div`,{hidden:i,class:Z(`${p.value}-textarea`,{[`${p.value}-textarea-rtl`]:g.value===`rtl`,[`${p.value}-textarea-show-count`]:b.value,[`${p.value}-textarea-in-form-item`]:c.isFormItemInput},`${p.value}-textarea-show-count`,o,v.value),style:a,"data-count":typeof n==`object`?void 0:n},[u,c.hasFeedback&&s(`span`,{class:`${p.value}-textarea-suffix`},[c.feedbackIcon])])}return _(u)}}}),$M={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`};function eN(e){for(var t=1;ts(e?nN:oN,null,null),uN=d({compatConfig:{MODE:3},name:`AInputPassword`,inheritAttrs:!1,props:G(G({},kM()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:`click`},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:i,emit:o}=t,c=M(!1),l=()=>{let{disabled:t}=e;t||(c.value=!c.value,o(`update:visible`,c.value))};P(()=>{e.visible!==void 0&&(c.value=!!e.visible)});let u=M();i({focus:()=>{var e;(e=u.value)==null||e.focus()},blur:()=>{var e;(e=u.value)==null||e.blur()}});let d=t=>{let{action:r,iconRender:i=n.iconRender||lN}=e,a=cN[r]||``,o=i(c.value),u={[a]:l,class:`${t}-icon`,key:`passwordIcon`,onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return on(Xe(o)?o:s(`span`,null,[o]),u)},{prefixCls:f,getPrefixCls:p}=K(`input-password`,e),m=a(()=>p(`input`,e.inputPrefixCls)),h=()=>{let{size:t,visibilityToggle:i}=e,a=sN(e,[`size`,`visibilityToggle`]),o=i&&d(f.value),l=Z(f.value,r.class,{[`${f.value}-${t}`]:!!t}),p=G(G(G({},Gn(a,[`suffix`,`iconRender`,`action`])),r),{type:c.value?`text`:`password`,class:l,prefixCls:m.value,suffix:o});return t&&(p.size=t),s(MM,X({ref:u},p),n)};return()=>h()}});MM.Group=NM,MM.Search=FM,MM.TextArea=QM,MM.Password=uN,MM.install=function(e){return e.component(MM.name,MM),e.component(MM.Group.name,MM.Group),e.component(MM.Search.name,MM.Search),e.component(MM.TextArea.name,MM.TextArea),e.component(MM.Password.name,MM.Password),e};var dN=MM;function fN(e){let t=W(null),n=k(G({},e)),r=W([]);return D(()=>{t.value&&Rn.cancel(t.value)}),[n,e=>{t.value===null&&(r.value=[],t.value=Rn(()=>{let e;r.value.forEach(t=>{e=G(G({},e),t)}),G(n,e),t.value=null})),r.value.push(e)}]}function pN(e,t,n,r){let i=t+n,a=(n-r)/2;if(n>r){if(t>0)return{[e]:a};if(t<0&&ir)return{[e]:t<0?a:-a};return{}}function mN(e,t,n,r){let{width:i,height:a}=cl(),o=null;return e<=i&&t<=a?o={x:0,y:0}:(e>i||t>a)&&(o=G(G({},pN(`x`,n,e,i)),pN(`y`,r,t,a))),o}var hN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{e(gN,t)},inject:()=>C(gN,{isPreviewGroup:M(!1),previewUrls:a(()=>new Map),setPreviewUrls:()=>{},current:W(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:``})},vN=d({compatConfig:{MODE:3},name:`PreviewGroup`,inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t,r=a(()=>{let t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview==`object`?wN(e.preview,t):t}),i=k(new Map),o=W(),c=a(()=>r.value.visible),l=a(()=>r.value.getContainer),[u,d]=zu(!!c.value,{value:c,onChange:(e,t)=>{var n,i;(i=(n=r.value).onVisibleChange)==null||i.call(n,e,t)}}),f=W(null),p=a(()=>c.value!==void 0),m=a(()=>Array.from(i.keys())),h=a(()=>m.value[r.value.current]),g=a(()=>new Map(Array.from(i).filter(e=>{let[,{canPreview:t}]=e;return!!t}).map(e=>{let[t,{url:n}]=e;return[t,n]}))),_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(e,{url:t,canPreview:n})},y=e=>{o.value=e},b=e=>{f.value=e},x=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return i.set(e,{url:t,canPreview:n}),()=>{i.delete(e)}},S=e=>{e?.stopPropagation(),d(!1),b(null)};return H(h,e=>{y(e)},{immediate:!0,flush:`post`}),P(()=>{u.value&&p.value&&y(h.value)},{flush:`post`}),_N.provide({isPreviewGroup:M(!0),previewUrls:g,setPreviewUrls:_,current:o,setCurrent:y,setShowPreview:d,setMousePosition:b,registerImage:x}),()=>{let t=hN(r.value,[]);return s(v,null,[n.default&&n.default(),s(xN,X(X({},t),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:S,mousePosition:f.value,src:g.value.get(o.value),icons:e.icons,getContainer:l.value}),null)])}}}),yN={x:0,y:0},bN=G(G({},Fn()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),xN=d({compatConfig:{MODE:3},name:`Preview`,inheritAttrs:!1,props:bN,emits:[`close`,`afterClose`],setup(e,t){let{emit:n,attrs:r}=t,{rotateLeft:i,rotateRight:c,zoomIn:l,zoomOut:u,close:d,left:f,right:p,flipX:m,flipY:h}=k(e.icons),g=M(1),_=M(0),v=k({x:1,y:1}),[y,b]=fN(yN),x=()=>n(`close`),S=M(),C=k({originX:0,originY:0,deltaX:0,deltaY:0}),w=M(!1),{previewUrls:T,current:O,isPreviewGroup:A,setCurrent:j}=_N.inject(),N=a(()=>T.value.size),P=a(()=>Array.from(T.value.keys())),F=a(()=>P.value.indexOf(O.value)),I=a(()=>A.value?T.value.get(O.value):e.src),L=a(()=>A.value&&N.value>1),ee=M({wheelDirection:0}),R=()=>{g.value=1,_.value=0,v.x=1,v.y=1,b(yN),n(`afterClose`)},z=e=>{e?g.value+=.5:g.value++,b(yN)},B=e=>{g.value>1&&(e?g.value-=.5:g.value--),b(yN)},te=()=>{_.value+=90},V=()=>{_.value-=90},ne=()=>{v.x=-v.x},re=()=>{v.y=-v.y},U=e=>{e.preventDefault(),e.stopPropagation(),F.value>0&&j(P.value[F.value-1])},ie=e=>{e.preventDefault(),e.stopPropagation(),F.valuez(),type:`zoomIn`},{icon:u,onClick:()=>B(),type:`zoomOut`,disabled:a(()=>g.value===1)},{icon:c,onClick:te,type:`rotateRight`},{icon:i,onClick:V,type:`rotateLeft`},{icon:m,onClick:ne,type:`flipX`},{icon:h,onClick:re,type:`flipY`}],ce=()=>{if(e.visible&&w.value){let e=S.value.offsetWidth*g.value,t=S.value.offsetHeight*g.value,{left:n,top:r}=ll(S.value),i=_.value%180!=0;w.value=!1;let a=mN(i?t:e,i?e:t,n,r);a&&b(G({},a))}},le=e=>{e.button===0&&(e.preventDefault(),e.stopPropagation(),C.deltaX=e.pageX-y.x,C.deltaY=e.pageY-y.y,C.originX=y.x,C.originY=y.y,w.value=!0)},ue=t=>{e.visible&&w.value&&b({x:t.pageX-C.deltaX,y:t.pageY-C.deltaY})},de=t=>{if(!e.visible)return;t.preventDefault();let n=t.deltaY;ee.value={wheelDirection:n}},fe=t=>{!e.visible||!L.value||(t.preventDefault(),t.keyCode===$.LEFT?F.value>0&&j(P.value[F.value-1]):t.keyCode===$.RIGHT&&F.value{e.visible&&(g.value!==1&&(g.value=1),(y.x!==yN.x||y.y!==yN.y)&&b(yN))},me=()=>{};return D(()=>{H([()=>e.visible,w],()=>{me();let e,t,n=Yn(window,`mouseup`,ce,!1),r=Yn(window,`mousemove`,ue,!1),i=Yn(window,`wheel`,de,{passive:!1}),a=Yn(window,`keydown`,fe,!1);try{window.top!==window.self&&(e=Yn(window.top,`mouseup`,ce,!1),t=Yn(window.top,`mousemove`,ue,!1))}catch(e){`${e}`}me=()=>{n.remove(),r.remove(),i.remove(),a.remove(),e&&e.remove(),t&&t.remove()}},{flush:`post`,immediate:!0}),H([ee],()=>{let{wheelDirection:e}=ee.value;e>0?B(!0):e<0&&z(!0)})}),E(()=>{me()}),()=>{let{visible:t,prefixCls:n,rootClassName:i}=e;return s(ar,X(X({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:x,afterClose:R,visible:t,wrapClassName:W,rootClassName:i,getContainer:e.getContainer}),{default:()=>[s(`div`,{class:[`${e.prefixCls}-operations-wrapper`,i]},[s(`ul`,{class:`${e.prefixCls}-operations`},[se.map(t=>{let{icon:n,onClick:r,type:i,disabled:a}=t;return s(`li`,{class:Z(ae,{[`${e.prefixCls}-operations-operation-disabled`]:a&&a?.value}),onClick:r,key:i},[o(n,{class:oe})])})])]),s(`div`,{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${y.x}px, ${y.y}px, 0)`}},[s(`img`,{onMousedown:le,onDblclick:pe,ref:S,class:`${e.prefixCls}-img`,src:I.value,alt:e.alt,style:{transform:`scale3d(${v.x*g.value}, ${v.y*g.value}, 1) rotate(${_.value}deg)`}},null)]),L.value&&s(`div`,{class:Z(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:F.value<=0}),onClick:U},[f]),L.value&&s(`div`,{class:Z(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:F.value>=N.value-1}),onClick:ie},[p])]})}}}),SN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:J.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),wN=(e,t)=>{let n=G({},e);return Object.keys(t).forEach(r=>{e[r]===void 0&&(n[r]=t[r])}),n},TN=0,EN=d({compatConfig:{MODE:3},name:`VcImage`,inheritAttrs:!1,props:CN(),emits:[`click`,`error`],setup(e,t){let{attrs:n,slots:r,emit:i}=t,o=a(()=>e.prefixCls),c=a(()=>`${o.value}-preview`),l=a(()=>{let t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview==`object`?wN(e.preview,t):t}),u=a(()=>l.value.src??e.src),d=a(()=>e.placeholder&&e.placeholder!==!0||r.placeholder),f=a(()=>l.value.visible),p=a(()=>l.value.getContainer),m=a(()=>f.value!==void 0),[h,g]=zu(!!f.value,{value:f,onChange:(e,t)=>{var n,r;(r=(n=l.value).onVisibleChange)==null||r.call(n,e,t)}}),_=W(d.value?`loading`:`normal`);H(()=>e.src,()=>{_.value=d.value?`loading`:`normal`});let y=W(null),b=a(()=>_.value===`error`),{isPreviewGroup:x,setCurrent:S,setShowPreview:C,setMousePosition:w,registerImage:T}=_N.inject(),O=W(TN++),k=a(()=>e.preview&&!b.value),A=()=>{_.value=`normal`},j=e=>{_.value=`error`,i(`error`,e)},M=e=>{if(!m.value){let{left:t,top:n}=ll(e.target);x.value?(S(O.value),w({x:t,y:n})):y.value={x:t,y:n}}x.value?C(!0):g(!0),i(`click`,e)},N=()=>{g(!1),m.value||(y.value=null)},P=W(null);H(()=>P,()=>{_.value===`loading`&&P.value.complete&&(P.value.naturalWidth||P.value.naturalHeight)&&A()});let F=()=>{};D(()=>{H([u,k],()=>{if(F(),!x.value)return()=>{};F=T(O.value,u.value,k.value),k.value||F()},{flush:`post`,immediate:!0})}),E(()=>{F()});let I=e=>sh(e)?e+`px`:e;return()=>{let{prefixCls:t,wrapperClassName:a,fallback:o,src:d,placeholder:f,wrapperStyle:m,rootClassName:g,width:S,height:C,crossorigin:w,decoding:T,alt:E,sizes:D,srcset:O,usemap:F,class:L,style:ee}=G(G({},e),n),R=l.value,{icons:z,maskClassName:B}=R,te=SN(R,[`icons`,`maskClassName`]),V=Z(t,a,g,{[`${t}-error`]:b.value}),ne=b.value&&o?o:u.value,re={crossorigin:w,decoding:T,alt:E,sizes:D,srcset:O,usemap:F,width:S,height:C,class:Z(`${t}-img`,{[`${t}-img-placeholder`]:f===!0},L),style:G({height:I(C)},ee)};return s(v,null,[s(`div`,{class:V,onClick:k.value?M:e=>{i(`click`,e)},style:G({width:I(S),height:I(C)},m)},[s(`img`,X(X(X({},re),b.value&&o?{src:o}:{onLoad:A,onError:j,src:d}),{},{ref:P}),null),_.value===`loading`&&s(`div`,{"aria-hidden":`true`,class:`${t}-placeholder`},[f||r.placeholder&&r.placeholder()]),r.previewMask&&k.value&&s(`div`,{class:[`${t}-mask`,B]},[r.previewMask()])]),!x.value&&k.value&&s(xN,X(X({},te),{},{"aria-hidden":!h.value,visible:h.value,prefixCls:c.value,onClose:N,mousePosition:y.value,src:ne,alt:E,getContainer:p.value,icons:z,rootClassName:g}),null)])}}});EN.PreviewGroup=vN;var DN=EN,ON={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z`}},{tag:`path`,attrs:{d:`M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z`}}]},name:`rotate-left`,theme:`outlined`};function kN(e){for(var t=1;t({position:e||`absolute`,inset:0}),YN=e=>{let{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a}=e;return{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,color:`#fff`,background:new me(`#000`).setAlpha(.5).toRgbString(),cursor:`pointer`,opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:G(G({},tn),{padding:`0 ${r}px`,[t]:{marginInlineEnd:i,svg:{verticalAlign:`baseline`}}})}},XN=e=>{let{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:a}=e,o=new me(n).setAlpha(.1),s=o.clone().setAlpha(.2);return{[`${t}-operations`]:G(G({},Ne(e)),{display:`flex`,flexDirection:`row-reverse`,alignItems:`center`,color:e.previewOperationColor,listStyle:`none`,background:o.toRgbString(),pointerEvents:`auto`,"&-operation":{marginInlineStart:r,padding:r,cursor:`pointer`,transition:`all ${a}`,userSelect:`none`,"&:hover":{background:s.toRgbString()},"&-disabled":{color:i,pointerEvents:`none`},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:`absolute`,left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%)`},"&-icon":{fontSize:e.previewOperationSize}})}},ZN=e=>{let{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=e,s=new me(t).setAlpha(.1),c=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:`fixed`,insetBlockStart:`50%`,zIndex:a+1,display:`flex`,alignItems:`center`,justifyContent:`center`,width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:`50%`,transform:`translateY(-50%)`,cursor:`pointer`,transition:`all ${o}`,pointerEvents:`auto`,userSelect:`none`,"&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:`transparent`,cursor:`not-allowed`,[`> ${n}`]:{cursor:`not-allowed`}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},QN=e=>{let{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:`100%`,textAlign:`center`,pointerEvents:`none`},[`${n}-body`]:G(G({},JN()),{overflow:`hidden`}),[`${n}-img`]:{maxWidth:`100%`,maxHeight:`100%`,verticalAlign:`middle`,transform:`scale3d(1, 1, 1)`,cursor:`grab`,transition:`transform ${r} ${t} 0s`,userSelect:`none`,pointerEvents:`auto`,"&-wrapper":G(G({},JN()),{transition:`transform ${r} ${t} 0s`,display:`flex`,justifyContent:`center`,alignItems:`center`,"&::before":{display:`inline-block`,width:1,height:`50%`,marginInlineEnd:-1,content:`""`}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:`grabbing`,"&-wrapper":{transitionDuration:`0s`}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:`fixed`,insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:`100%`},"&":[XN(e),ZN(e)]}]},$N=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,display:`inline-block`,[`${t}-img`]:{width:`100%`,height:`auto`,verticalAlign:`middle`},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:`url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')`,backgroundRepeat:`no-repeat`,backgroundPosition:`center center`,backgroundSize:`30%`},[`${t}-mask`]:G({},YN(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:G({},JN())}}},eP=e=>{let{previewCls:t}=e;return{[`${t}-root`]:Mn(e,`zoom`),"&":pr(e,!0)}},tP=Le(`Image`,e=>{let t=`${e.componentCls}-preview`,n=Fe(e,{previewCls:t,modalMaskBg:new me(`#000`).setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[$N(n),QN(n),$n(Fe(n,{componentCls:t})),eP(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new me(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new me(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),nP={rotateLeft:s(jN,null,null),rotateRight:s(FN,null,null),zoomIn:s(zN,null,null),zoomOut:s(UN,null,null),close:s(_t,null,null),left:s(SD,null,null),right:s(uv,null,null),flipX:s(qN,null,null),flipY:s(qN,{rotate:90},null)},rP=d({compatConfig:{MODE:3},name:`AImagePreviewGroup`,inheritAttrs:!1,props:{previewPrefixCls:String,preview:bt()},setup(e,t){let{attrs:n,slots:r}=t,{prefixCls:i,rootPrefixCls:o}=K(`image`,e),c=a(()=>`${i.value}-preview`),[l,u]=tP(i),d=a(()=>{let{preview:t}=e;if(t===!1)return t;let n=typeof t==`object`?t:{};return G(G({},n),{rootClassName:u.value,transitionName:qe(o.value,`zoom`,n.transitionName),maskTransitionName:qe(o.value,`fade`,n.maskTransitionName)})});return()=>l(s(vN,X(X({},G(G({},n),e)),{},{preview:d.value,icons:nP,previewPrefixCls:c.value}),r))}}),iP=d({name:`AImage`,inheritAttrs:!1,props:CN(),setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,rootPrefixCls:o,configProvider:c}=K(`image`,e),[l,u]=tP(i),d=a(()=>{let{preview:t}=e;if(t===!1)return t;let n=typeof t==`object`?t:{};return G(G({icons:nP},n),{transitionName:qe(o.value,`zoom`,n.transitionName),maskTransitionName:qe(o.value,`fade`,n.maskTransitionName)})});return()=>{let t=c.locale?.value?.Image||Ut.Image,a=()=>s(`div`,{class:`${i.value}-mask-info`},[s(nN,null,null),t?.preview]),{previewMask:o=n.previewMask||a}=e;return l(s(DN,X(X({},G(G(G({},r),e),{prefixCls:i.value})),{},{preview:d.value,rootClassName:Z(e.rootClassName,u.value)}),G(G({},n),{previewMask:typeof o==`function`?o:null})))}}});iP.PreviewGroup=rP,iP.install=function(e){return e.component(iP.name,iP),e.component(iP.PreviewGroup.name,iP.PreviewGroup),e};var aP={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z`}}]},name:`up`,theme:`outlined`};function oP(e){for(var t=1;t2**53-1)return String(lP()?BigInt(e).toString():2**53-1);if(e<-(2**53-1))return String(lP()?BigInt(e).toString():-(2**53-1));t=e.toFixed(fP(t))}return uP(t).fullStr}function mP(e){return typeof e==`number`?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function hP(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}var gP=class e{constructor(e){if(this.origin=``,hP(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}negate(){return new e(-this.toNumber())}add(t){if(this.isInvalidate())return new e(t);let n=Number(t);if(Number.isNaN(n))return this;let r=this.number+n;if(r>2**53-1)return new e(2**53-1);if(r<-(2**53-1))return new e(-(2**53-1));let i=Math.max(fP(this.number),fP(n));return new e(r.toFixed(i))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===e?.toNumber()}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:pP(this.number):this.origin}},_P=class e{constructor(e){if(this.origin=``,hP(e)){this.empty=!0;return}if(this.origin=String(e),e===`-`||Number.isNaN(e)){this.nan=!0;return}let t=e;if(dP(t)&&(t=Number(t)),t=typeof t==`string`?t:pP(t),mP(t)){let e=uP(t);this.negative=e.negative;let n=e.trimStr.split(`.`);this.integer=BigInt(n[0]);let r=n[1]||`0`;this.decimal=BigInt(r),this.decimalLen=r.length}else this.nan=!0}getMark(){return this.negative?`-`:``}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,`0`)}alignDecimal(e){let t=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,`0`)}`;return BigInt(t)}negate(){let t=new e(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new e(t);let n=new e(t);if(n.isInvalidate())return this;let r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),{negativeStr:i,trimStr:a}=uP((this.alignDecimal(r)+n.alignDecimal(r)).toString()),o=`${i}${a.padStart(r+1,`0`)}`;return new e(`${o.slice(0,-r)}.${o.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===e?.toString()}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.isInvalidate()?``:uP(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}};function vP(e){return lP()?new _P(e):new gP(e)}function yP(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(e===``)return``;let{negativeStr:i,integerStr:a,decimalStr:o}=uP(e),s=`${t}${o}`,c=`${i}${a}`;if(n>=0){let a=Number(o[n]);return a>=5&&!r?yP(vP(e).add(`${i}0.${`0`.repeat(n)}${10-a}`).toString(),t,n,r):n===0?c:`${c}${t}${o.padEnd(n,`0`).slice(0,n)}`}return s===`.0`?c:`${c}${s}`}var bP=200,xP=600,SP=d({compatConfig:{MODE:3},name:`StepHandler`,inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Q()},slots:Object,setup(e,t){let{slots:n,emit:r}=t,i=W(),a=(e,t)=>{e.preventDefault(),r(`step`,t);function n(){r(`step`,t),i.value=setTimeout(n,bP)}i.value=setTimeout(n,xP)},o=()=>{clearTimeout(i.value)};return p(()=>{o()}),()=>{if(ql())return null;let{prefixCls:t,upDisabled:r,downDisabled:i}=e,c=`${t}-handler`,l=Z(c,`${c}-up`,{[`${c}-up-disabled`]:r}),u=Z(c,`${c}-down`,{[`${c}-down-disabled`]:i}),d={unselectable:`on`,role:`button`,onMouseup:o,onMouseleave:o},{upNode:f,downNode:p}=n;return s(`div`,{class:`${c}-wrap`},[s(`span`,X(X({},d),{},{onMousedown:e=>{a(e,!0)},"aria-label":`Increase Value`,"aria-disabled":r,class:l}),[f?.()||s(`span`,{unselectable:`on`,class:`${t}-handler-up-inner`},null)]),s(`span`,X(X({},d),{},{onMousedown:e=>{a(e,!1)},"aria-label":`Decrease Value`,"aria-disabled":i,class:u}),[p?.()||s(`span`,{unselectable:`on`,class:`${t}-handler-down-inner`},null)])])}}});function CP(e,t){let n=W(null);function r(){try{let{selectionStart:t,selectionEnd:r,value:i}=e.value,a=i.substring(0,t),o=i.substring(r);n.value={start:t,end:r,value:i,beforeTxt:a,afterTxt:o}}catch{}}function i(){if(e.value&&n.value&&t.value)try{let{value:t}=e.value,{beforeTxt:r,afterTxt:i,start:a}=n.value,o=t.length;if(t.endsWith(i))o=t.length-n.value.afterTxt.length;else if(t.startsWith(r))o=r.length;else{let e=r[a-1],n=t.indexOf(e,a-1);n!==-1&&(o=n+1)}e.value.setSelectionRange(o,o)}catch(e){`${e.message}`}}return[r,i]}var wP=(()=>{let e=M(0),t=()=>{Rn.cancel(e.value)};return p(()=>{t()}),n=>{t(),e.value=Rn(()=>{n()})}}),TP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie||t.isEmpty()?t.toString():t.toNumber(),DP=e=>{let t=vP(e);return t.isInvalidate()?null:t},OP=()=>({stringMode:Y(),defaultValue:$t([String,Number]),value:$t([String,Number]),prefixCls:q(),min:$t([String,Number]),max:$t([String,Number]),step:$t([String,Number],1),tabindex:Number,controls:Y(!0),readonly:Y(),disabled:Y(),autofocus:Y(),keyboard:Y(!0),parser:Q(),formatter:Q(),precision:Number,decimalSeparator:String,onInput:Q(),onChange:Q(),onPressEnter:Q(),onStep:Q(),onBlur:Q(),onFocus:Q()}),kP=d({compatConfig:{MODE:3},name:`InnerInputNumber`,inheritAttrs:!1,props:G(G({},OP()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i,expose:o}=t,c=M(),l=M(!1),u=M(!1),d=M(!1),f=M(vP(e.value));function p(t){e.value===void 0&&(f.value=t)}let m=(t,n)=>{if(!n)return e.precision>=0?e.precision:Math.max(fP(t),fP(e.step))},h=t=>{let n=String(t);if(e.parser)return e.parser(n);let r=n;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,`.`)),r.replace(/[^\w.-]+/g,``)},g=M(``),_=(t,n)=>{if(e.formatter)return e.formatter(t,{userTyping:n,input:String(g.value)});let r=typeof t==`number`?pP(t):t;if(!n){let t=m(r,n);if(mP(r)&&(e.decimalSeparator||t>=0)){let n=e.decimalSeparator||`.`;r=yP(r,n,t)}}return r};g.value=(()=>{let t=e.value;return f.value.isInvalidate()&&[`string`,`number`].includes(typeof t)?Number.isNaN(t)?``:t:_(f.value.toString(),!1)})();function v(e,t){g.value=_(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}let y=a(()=>DP(e.max)),b=a(()=>DP(e.min)),x=a(()=>!y.value||!f.value||f.value.isInvalidate()?!1:y.value.lessEquals(f.value)),S=a(()=>!b.value||!f.value||f.value.isInvalidate()?!1:f.value.lessEquals(b.value)),[C,w]=CP(c,l),T=e=>y.value&&!e.lessEquals(y.value)?y.value:b.value&&!b.value.lessEquals(e)?b.value:null,E=e=>!T(e),D=(t,n)=>{var r;let i=t,a=E(i)||i.isEmpty();if(!i.isEmpty()&&!n&&(i=T(i)||i,a=!0),!e.readonly&&!e.disabled&&a){let t=i.toString(),a=m(t,n);return a>=0&&(i=vP(yP(t,`.`,a))),i.equals(f.value)||(p(i),(r=e.onChange)==null||r.call(e,i.isEmpty()?null:EP(e.stringMode,i)),e.value===void 0&&v(i,n)),i}return f.value},O=wP(),k=t=>{var n;if(C(),g.value=t,!d.value){let e=vP(h(t));e.isNaN()||D(e,!0)}(n=e.onInput)==null||n.call(e,t),O(()=>{let n=t;e.parser||(n=t.replace(/。/g,`.`)),n!==t&&k(n)})},A=()=>{d.value=!0},j=()=>{d.value=!1,k(c.value.value)},N=e=>{k(e.target.value)},P=t=>{var n,r;if(t&&x.value||!t&&S.value)return;u.value=!1;let i=vP(e.step);t||(i=i.negate());let a=(f.value||vP(0)).add(i.toString()),o=D(a,!1);(n=e.onStep)==null||n.call(e,EP(e.stringMode,o),{offset:e.step,type:t?`up`:`down`}),(r=c.value)==null||r.focus()},F=t=>{let n=vP(h(g.value)),r=n;r=n.isNaN()?f.value:D(n,t),e.value===void 0?r.isNaN()||v(r,!1):v(f.value,!1)},I=()=>{u.value=!0},L=t=>{var n;let{which:r}=t;u.value=!0,r===$.ENTER&&(d.value||(u.value=!1),F(!1),(n=e.onPressEnter)==null||n.call(e,t)),e.keyboard!==!1&&!d.value&&[$.UP,$.DOWN].includes(r)&&(P($.UP===r),t.preventDefault())},ee=()=>{u.value=!1},R=e=>{F(!1),l.value=!1,u.value=!1,i(`blur`,e)};return H(()=>e.precision,()=>{f.value.isInvalidate()||v(f.value,!1)},{flush:`post`}),H(()=>e.value,()=>{let t=vP(e.value);f.value=t;let n=vP(h(g.value));(!t.equals(n)||!u.value||e.formatter)&&v(t,u.value)},{flush:`post`}),H(g,()=>{e.formatter&&w()},{flush:`post`}),H(()=>e.disabled,e=>{e&&(l.value=!1)}),o({focus:()=>{var e;(e=c.value)==null||e.focus()},blur:()=>{var e;(e=c.value)==null||e.blur()}}),()=>{let t=G(G({},n),e),{prefixCls:a=`rc-input-number`,min:o,max:u,step:d=1,defaultValue:p,value:m,disabled:h,readonly:_,keyboard:v,controls:y=!0,autofocus:b,stringMode:C,parser:w,formatter:T,precision:D,decimalSeparator:O,onChange:k,onInput:M,onPressEnter:F,onStep:z,lazy:B,class:te,style:V}=t,ne=TP(t,[`prefixCls`,`min`,`max`,`step`,`defaultValue`,`value`,`disabled`,`readonly`,`keyboard`,`controls`,`autofocus`,`stringMode`,`parser`,`formatter`,`precision`,`decimalSeparator`,`onChange`,`onInput`,`onPressEnter`,`onStep`,`lazy`,`class`,`style`]),{upHandler:re,downHandler:H}=r,U=`${a}-input`,ie={};return B?ie.onChange=N:ie.onInput=N,s(`div`,{class:Z(a,te,{[`${a}-focused`]:l.value,[`${a}-disabled`]:h,[`${a}-readonly`]:_,[`${a}-not-a-number`]:f.value.isNaN(),[`${a}-out-of-range`]:!f.value.isInvalidate()&&!E(f.value)}),style:V,onKeydown:L,onKeyup:ee},[y&&s(SP,{prefixCls:a,upDisabled:x.value,downDisabled:S.value,onStep:P},{upNode:re,downNode:H}),s(`div`,{class:`${U}-wrap`},[s(`input`,X(X(X({autofocus:b,autocomplete:`off`,role:`spinbutton`,"aria-valuemin":o,"aria-valuemax":u,"aria-valuenow":f.value.isInvalidate()?null:f.value.toString(),step:d},ne),{},{ref:c,class:U,value:g.value,disabled:h,readonly:_,onFocus:e=>{l.value=!0,i(`focus`,e)}},ie),{},{onBlur:R,onCompositionstart:A,onCompositionend:j,onBeforeinput:I}),null)])])}}});function AP(e){return e!=null}var jP=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorBorder:i,borderRadius:a,fontSizeLG:o,controlHeightLG:s,controlHeightSM:c,colorError:l,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:p,controlHeight:m,inputPaddingHorizontal:h,colorBgContainer:g,colorTextDisabled:_,borderRadiusSM:v,borderRadiusLG:y,controlWidth:b,handleVisible:x}=e;return[{[t]:G(G(G(G({},Ne(e)),FS(e)),PS(e,t)),{display:`inline-block`,width:b,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:a,"&-rtl":{direction:`rtl`,[`${t}-input`]:{direction:`rtl`}},"&-lg":{padding:0,fontSize:o,borderRadius:y,[`input${t}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:v,[`input${t}-input`]:{height:c-2*n,padding:`0 ${u}px`}},"&:hover":G({},kS(e)),"&-focused":G({},AS(e)),"&-disabled":G(G({},jS(e)),{[`${t}-input`]:{cursor:`not-allowed`}}),"&-out-of-range":{input:{color:l}},"&-group":G(G(G({},Ne(e)),IS(e)),{"&-wrapper":{display:`inline-block`,textAlign:`start`,verticalAlign:`top`,[`${t}-affix-wrapper`]:{width:`100%`},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:v}}}}),[t]:{"&-input":G(G({width:`100%`,height:m-2*n,padding:`0 ${h}px`,textAlign:`start`,backgroundColor:`transparent`,border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:`textfield`,color:e.colorText,fontSize:`inherit`,verticalAlign:`top`},OS(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:`none`,appearance:`none`}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:`100%`,background:g,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:+(x===!0),display:`flex`,flexDirection:`column`,alignItems:`stretch`,transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,flex:`auto`,height:`40%`,[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:`50%`,overflow:`hidden`,color:d,fontWeight:`bold`,lineHeight:0,textAlign:`center`,cursor:`pointer`,borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:`60%`,[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:p}},"&-up-inner, &-down-inner":G(G({},Ge()),{color:d,transition:`all ${f} linear`,userSelect:`none`})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:`none`},[`${t}-input`]:{color:`inherit`}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:`not-allowed`},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:_}}},{[`${t}-borderless`]:{borderColor:`transparent`,boxShadow:`none`,[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},MP=e=>{let{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:o}=e;return{[`${t}-affix-wrapper`]:G(G(G({},FS(e)),PS(e,`${t}-affix-wrapper`)),{position:`relative`,display:`inline-flex`,width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:o},[`&:not(${t}-affix-wrapper-disabled):hover`]:G(G({},kS(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:`transparent`}},[`> div${t}`]:{width:`100%`,border:`none`,outline:`none`,[`&${t}-focused`]:{boxShadow:`none !important`}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:`hidden`,content:`"\\a0"`},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,pointerEvents:`none`},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:`absolute`,insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:`100%`,marginInlineEnd:n,marginInlineStart:r}}})}},NP=Le(`InputNumber`,e=>{let t=HS(e);return[jP(t),MP(t),Hn(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:`auto`})),PP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ifd(l.status,e.status)),{prefixCls:d,size:f,direction:p,disabled:m}=K(`input-number`,e),{compactSize:h,compactItemClassnames:g}=ln(d,p),_=pt(),v=a(()=>m.value??_.value),[y,b]=NP(d),x=a(()=>h.value||f.value),S=M(e.value??e.defaultValue),C=M(!1);H(()=>e.value,()=>{S.value=e.value});let w=M(null),T=()=>{var e;(e=w.value)==null||e.focus()};r({focus:T,blur:()=>{var e;(e=w.value)==null||e.blur()}});let E=t=>{e.value===void 0&&(S.value=t),n(`update:value`,t),n(`change`,t),c.onFieldChange()},D=e=>{C.value=!1,n(`blur`,e),c.onFieldBlur()},O=e=>{C.value=!0,n(`focus`,e)};return()=>{let{hasFeedback:t,isFormItemInput:n,feedbackIcon:r}=l,a=e.id??c.id.value,f=G(G(G({},i),e),{id:a,disabled:v.value}),{class:m,bordered:h,readonly:_,style:k,addonBefore:A=o.addonBefore?.call(o),addonAfter:j=o.addonAfter?.call(o),prefix:M=o.prefix?.call(o),valueModifiers:N={}}=f,P=PP(f,[`class`,`bordered`,`readonly`,`style`,`addonBefore`,`addonAfter`,`prefix`,`valueModifiers`]),F=d.value,I=Z({[`${F}-lg`]:x.value===`large`,[`${F}-sm`]:x.value===`small`,[`${F}-rtl`]:p.value===`rtl`,[`${F}-readonly`]:_,[`${F}-borderless`]:!h,[`${F}-in-form-item`]:n},dd(F,u.value),m,g.value,b.value),L=s(kP,X(X({},Gn(P,[`size`,`defaultValue`])),{},{ref:w,lazy:!!N.lazy,value:S.value,class:I,prefixCls:F,readonly:_,onChange:E,onBlur:D,onFocus:O}),{upHandler:o.upIcon?()=>s(`span`,{class:`${F}-handler-up-inner`},[o.upIcon()]):()=>s(cP,{class:`${F}-handler-up-inner`},null),downHandler:o.downIcon?()=>s(`span`,{class:`${F}-handler-down-inner`},[o.downIcon()]):()=>s(Xu,{class:`${F}-handler-down-inner`},null)}),ee=AP(A)||AP(j),R=AP(M);if(R||t){let e=Z(`${F}-affix-wrapper`,dd(`${F}-affix-wrapper`,u.value,t),{[`${F}-affix-wrapper-focused`]:C.value,[`${F}-affix-wrapper-disabled`]:v.value,[`${F}-affix-wrapper-sm`]:x.value===`small`,[`${F}-affix-wrapper-lg`]:x.value===`large`,[`${F}-affix-wrapper-rtl`]:p.value===`rtl`,[`${F}-affix-wrapper-readonly`]:_,[`${F}-affix-wrapper-borderless`]:!h,[`${m}`]:!ee&&m},b.value);L=s(`div`,{class:e,style:k,onClick:T},[R&&s(`span`,{class:`${F}-prefix`},[M]),L,t&&s(`span`,{class:`${F}-suffix`},[r])])}if(ee){let e=`${F}-group`,n=`${e}-addon`,r=A?s(`div`,{class:n},[A]):null,i=j?s(`div`,{class:n},[j]):null,a=Z(`${F}-wrapper`,e,{[`${e}-rtl`]:p.value===`rtl`},b.value),o=Z(`${F}-group-wrapper`,{[`${F}-group-wrapper-sm`]:x.value===`small`,[`${F}-group-wrapper-lg`]:x.value===`large`,[`${F}-group-wrapper-rtl`]:p.value===`rtl`},dd(`${d}-group-wrapper`,u.value,t),m,b.value);L=s(`div`,{class:o,style:k},[s(`div`,{class:a},[r&&s(wn,null,{default:()=>[s(ud,null,{default:()=>[r]})]}),L,i&&s(wn,null,{default:()=>[s(ud,null,{default:()=>[i]})]})])])}return y(on(L,{style:k}))}}}),LP=G(IP,{install:e=>(e.component(IP.name,IP),e)}),RP=e=>{let{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:i}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:i,background:n},[`${t}-sider-zero-width-trigger`]:{color:i,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},zP=e=>{let{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:i,colorBgHeader:a,colorBgBody:o,colorBgTrigger:s,layoutHeaderHeight:c,layoutHeaderPaddingInline:l,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:p,motionDurationMid:m,motionDurationSlow:h,fontSize:g,borderRadius:_}=e;return{[n]:G(G({display:`flex`,flex:`auto`,flexDirection:`column`,color:r,minHeight:0,background:o,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},[`${n}-header`]:{height:c,paddingInline:l,color:u,lineHeight:`${c}px`,background:a,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:d,color:r,fontSize:g,background:o},[`${n}-content`]:{flex:`auto`,minHeight:0},[`${n}-sider`]:{position:`relative`,minWidth:0,background:a,transition:`all ${m}, background 0s`,"&-children":{height:`100%`,marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:`auto`}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:`fixed`,bottom:0,zIndex:1,height:f,color:i,lineHeight:`${f}px`,textAlign:`center`,background:s,cursor:`pointer`,transition:`all ${m}`},"&-zero-width":{"> *":{overflow:`hidden`},"&-trigger":{position:`absolute`,top:c,insetInlineEnd:-p,zIndex:1,width:p,height:p,color:i,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:a,borderStartStartRadius:0,borderStartEndRadius:_,borderEndEndRadius:_,borderEndStartRadius:0,cursor:`pointer`,transition:`background ${h} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${h}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:-p,borderStartStartRadius:_,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_}}}}},RP(e)),{"&-rtl":{direction:`rtl`}})}},BP=Le(`Layout`,e=>{let{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:i,marginXXS:a}=e,o=i*1.25;return[zP(Fe(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:o,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${o}px`,layoutTriggerHeight:i+a*2,layoutZeroTriggerSize:i}))]},e=>{let{colorBgLayout:t}=e;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`}}),VP=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function HP(e){let{suffixCls:t,tagName:n,name:r}=e;return e=>d({compatConfig:{MODE:3},name:r,props:VP(),setup(r,i){let{slots:a}=i,{prefixCls:o}=K(t,r);return()=>{let t=G(G({},r),{prefixCls:o.value,tagName:n});return s(e,t,a)}}})}var UP=d({compatConfig:{MODE:3},props:VP(),setup(e,t){let{slots:n}=t;return()=>s(e.tagName,{class:e.prefixCls},n)}}),WP=d({compatConfig:{MODE:3},inheritAttrs:!1,props:VP(),setup(t,n){let{slots:r,attrs:i}=n,{prefixCls:o,direction:c}=K(``,t),[l,u]=BP(o),d=W([]);e(Av,{addSider:e=>{d.value=[...d.value,e]},removeSider:e=>{d.value=d.value.filter(t=>t!==e)}});let f=a(()=>{let{prefixCls:e,hasSider:n}=t;return{[u.value]:!0,[`${e}`]:!0,[`${e}-has-sider`]:typeof n==`boolean`?n:d.value.length>0,[`${e}-rtl`]:c.value===`rtl`}});return()=>{let{tagName:e}=t;return l(s(e,G(G({},i),{class:[f.value,i.class]}),r))}}}),GP=HP({suffixCls:`layout`,tagName:`section`,name:`ALayout`})(WP),KP=HP({suffixCls:`layout-header`,tagName:`header`,name:`ALayoutHeader`})(UP),qP=HP({suffixCls:`layout-footer`,tagName:`footer`,name:`ALayoutFooter`})(UP),JP=HP({suffixCls:`layout-content`,tagName:`main`,name:`ALayoutContent`})(UP),YP={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`bars`,theme:`outlined`};function XP(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:J.any,width:J.oneOfType([J.number,J.string]),collapsedWidth:J.oneOfType([J.number,J.string]),breakpoint:J.oneOf(_e(`xs`,`sm`,`md`,`lg`,`xl`,`xxl`,`xxxl`)),theme:J.oneOf(_e(`light`,`dark`)).def(`dark`),onBreakpoint:Function,onCollapse:Function}),tF=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``;return e+=1,`${t}${e}`}})(),nF=d({compatConfig:{MODE:3},name:`ALayoutSider`,inheritAttrs:!1,props:Vn(eF(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:[`breakpoint`,`update:collapsed`,`collapse`],setup(t,n){let{emit:r,attrs:i,slots:a}=n,{prefixCls:o}=K(`layout-sider`,t),c=C(Av,void 0),l=M(!!(t.collapsed===void 0?t.defaultCollapsed:t.collapsed)),u=M(!1);H(()=>t.collapsed,()=>{l.value=!!t.collapsed}),e(kv,l);let d=(e,n)=>{t.collapsed===void 0&&(l.value=e),r(`update:collapsed`,e),r(`collapse`,e,n)},f=M(e=>{u.value=e.matches,r(`breakpoint`,e.matches),l.value!==e.matches&&d(e.matches,`responsive`)}),m;function h(e){return f.value(e)}let g=tF(`ant-sider-`);c&&c.addSider(g),D(()=>{H(()=>t.breakpoint,()=>{try{m?.removeEventListener(`change`,h)}catch{m?.removeListener(h)}if(typeof window<`u`){let{matchMedia:e}=window;if(e&&t.breakpoint&&t.breakpoint in $P){m=e(`(max-width: ${$P[t.breakpoint]})`);try{m.addEventListener(`change`,h)}catch{m.addListener(h)}h(m)}}},{immediate:!0})}),p(()=>{try{m?.removeEventListener(`change`,h)}catch{m?.removeListener(h)}c&&c.removeSider(g)});let _=()=>{d(!l.value,`clickTrigger`)};return()=>{let e=o.value,{collapsedWidth:n,width:r,reverseArrow:c,zeroWidthTriggerStyle:d,trigger:f=a.trigger?.call(a),collapsible:p,theme:m}=t,h=l.value?n:r,g=z_(h)?`${h}px`:String(h),v=parseFloat(String(n||0))===0?s(`span`,{onClick:_,class:Z(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${c?`right`:`left`}`),style:d},[f||s(QP,null,null)]):null,y={expanded:s(c?uv:SD,null,null),collapsed:s(c?SD:uv,null,null)}[l.value?`collapsed`:`expanded`],b=f===null?null:v||s(`div`,{class:`${e}-trigger`,onClick:_,style:{width:g}},[f||y]),x=[i.style,{flex:`0 0 ${g}`,maxWidth:g,minWidth:g,width:g}],S=Z(e,`${e}-${m}`,{[`${e}-collapsed`]:!!l.value,[`${e}-has-trigger`]:p&&f!==null&&!v,[`${e}-below`]:!!u.value,[`${e}-zero-width`]:parseFloat(g)===0},i.class);return s(`aside`,X(X({},i),{},{class:S,style:x}),[s(`div`,{class:`${e}-children`},[a.default?.call(a)]),p||u.value&&v?b:null])}}}),rF=KP,iF=qP,aF=nF,oF=JP,sF=G(GP,{Header:KP,Footer:qP,Content:JP,Sider:nF,install:e=>(e.component(GP.name,GP),e.component(KP.name,KP),e.component(qP.name,qP),e.component(nF.name,nF),e.component(JP.name,JP),e)});function cF(e,t,n){var r=n||{},i=r.noTrailing,a=i!==void 0&&i,o=r.noLeading,s=o!==void 0&&o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t!==void 0&&t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function lF(e,t,n){var r=(n||{}).atBegin;return cF(e,t,{debounceMode:(r!==void 0&&r)!==!1})}var uF=new Te(`antSpinMove`,{to:{opacity:1}}),dF=new Te(`antRotate`,{to:{transform:`rotate(405deg)`}}),fF=e=>({[`${e.componentCls}`]:G(G({},Ne(e)),{position:`absolute`,display:`none`,color:e.colorPrimary,textAlign:`center`,verticalAlign:`middle`,opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:`static`,display:`inline-block`,opacity:1},"&-nested-loading":{position:`relative`,[`> div > ${e.componentCls}`]:{position:`absolute`,top:0,insetInlineStart:0,zIndex:4,display:`block`,width:`100%`,height:`100%`,maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:`absolute`,top:`50%`,insetInlineStart:`50%`,margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:`absolute`,top:`50%`,width:`100%`,paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},[`${e.componentCls}-blur`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:`relative`,display:`inline-block`,fontSize:e.spinDotSize,width:`1em`,height:`1em`,"&-item":{position:`absolute`,display:`block`,width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:uF,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-spin":{transform:`rotate(45deg)`,animationName:dF,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:`block`}})}),pF=Le(`Spin`,e=>[fF(Fe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight}))],{contentHeight:400}),mF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:J.any,delay:Number,indicator:J.any}),gF=null;function _F(e,t){return!!e&&!!t&&!isNaN(Number(t))}function vF(e){let t=e.indicator;gF=typeof t==`function`?t:()=>s(t,null,null)}var yF=d({compatConfig:{MODE:3},name:`ASpin`,inheritAttrs:!1,props:Vn(hF(),{size:`default`,spinning:!0,wrapperClassName:``}),setup(e,t){let{attrs:n,slots:r}=t,{prefixCls:i,size:a,direction:c}=K(`spin`,e),[u,d]=pF(i),f=M(e.spinning&&!_F(e.spinning,e.delay)),m;return H([()=>e.spinning,()=>e.delay],()=>{m?.cancel(),m=lF(e.delay,()=>{f.value=e.spinning}),m?.()},{immediate:!0,flush:`post`}),p(()=>{m?.cancel()}),()=>{let{class:t}=n,p=mF(n,[`class`]),{tip:m=r.tip?.call(r)}=e,h=r.default?.call(r),g={[d.value]:!0,[i.value]:!0,[`${i.value}-sm`]:a.value===`small`,[`${i.value}-lg`]:a.value===`large`,[`${i.value}-spinning`]:f.value,[`${i.value}-show-text`]:!!m,[`${i.value}-rtl`]:c.value===`rtl`,[t]:!!t};function _(t){let n=`${t}-dot`,i=Se(r,e,`indicator`);return i===null?null:(Array.isArray(i)&&(i=i.length===1?i[0]:i),l(i)?o(i,{class:n}):gF&&l(gF())?o(gF(),{class:n}):s(`span`,{class:`${n} ${t}-dot-spin`},[s(`i`,{class:`${t}-dot-item`},null),s(`i`,{class:`${t}-dot-item`},null),s(`i`,{class:`${t}-dot-item`},null),s(`i`,{class:`${t}-dot-item`},null)]))}let v=s(`div`,X(X({},p),{},{class:g,"aria-live":`polite`,"aria-busy":f.value}),[_(i.value),m?s(`div`,{class:`${i.value}-text`},[m]):null]);if(h&&ve(h).length){let t={[`${i.value}-container`]:!0,[`${i.value}-blur`]:f.value};return u(s(`div`,{class:[`${i.value}-nested-loading`,e.wrapperClassName,d.value]},[f.value&&s(`div`,{key:`loading`},[v]),s(`div`,{class:t,key:`container`},[h])]))}return u(v)}}});yF.setDefaultIndicator=vF,yF.install=function(e){return e.component(yF.name,yF),e};var bF=yF,xF={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function SF(e){for(var t=1;t{let t=G(G(G({},e),{size:`small`}),n);return s(ag,t,r)}}}),AF=d({name:`MiddleSelect`,inheritAttrs:!1,props:rg(),Option:ag.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{let t=G(G(G({},e),{size:`middle`}),n);return s(ag,t,r)}}}),jF=d({compatConfig:{MODE:3},name:`Pager`,inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:J.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:[`click`,`keypress`],setup(e,t){let{emit:n,attrs:r}=t,i=()=>{n(`click`,e.page)},a=t=>{n(`keypress`,t,i,e.page)};return()=>{let{showTitle:t,page:n,itemRender:o}=e,{class:c,style:l}=r,u=`${e.rootPrefixCls}-item`,d=Z(u,`${u}-${e.page}`,{[`${u}-active`]:e.active,[`${u}-disabled`]:!e.page},c);return s(`li`,{onClick:i,onKeypress:a,title:t?String(n):null,tabindex:`0`,class:d,style:l},[o({page:n,type:`page`,originalElement:s(`a`,{rel:`nofollow`},[n])})])}}}),MF={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},NF=d({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:J.any,current:Number,pageSizeOptions:J.array.def([`10`,`20`,`50`,`100`]),pageSize:Number,buildOptionText:Function,locale:J.object,rootPrefixCls:String,selectPrefixCls:String,goButton:J.any},setup(e){let t=W(``),n=a(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=t=>`${t.value} ${e.locale.items_per_page}`,i=e=>{let{value:n}=e.target;t.value!==n&&(t.value=n)},o=r=>{let{goButton:i,quickGo:a,rootPrefixCls:o}=e;if(!(i||t.value===``)){if(r.relatedTarget&&(r.relatedTarget.className.indexOf(`${o}-item-link`)>=0||r.relatedTarget.className.indexOf(`${o}-item`)>=0)){t.value=``;return}a(n.value),t.value=``}},c=r=>{t.value!==``&&(r.keyCode===MF.ENTER||r.type===`click`)&&(e.quickGo(n.value),t.value=``)},l=a(()=>{let{pageSize:t,pageSizeOptions:n}=e;return n.some(e=>e.toString()===t.toString())?n:n.concat([t.toString()]).sort((e,t)=>(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t)))});return()=>{let{rootPrefixCls:n,locale:a,changeSize:u,quickGo:d,goButton:f,selectComponentClass:p,selectPrefixCls:m,pageSize:h,disabled:g}=e,_=`${n}-options`,v=null,y=null,b=null;if(!u&&!d)return null;if(u&&p){let t=e.buildOptionText||r,n=l.value.map((e,n)=>s(p.Option,{key:n,value:e},{default:()=>[t({value:e})]}));v=s(p,{disabled:g,prefixCls:m,showSearch:!1,class:`${_}-size-changer`,optionLabelProp:`children`,value:(h||l.value[0]).toString(),onChange:e=>u(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return d&&(f&&(b=typeof f==`boolean`?s(`button`,{type:`button`,onClick:c,onKeyup:c,disabled:g,class:`${_}-quick-jumper-button`},[a.jump_to_confirm]):s(`span`,{onClick:c,onKeyup:c},[f])),y=s(`div`,{class:`${_}-quick-jumper`},[a.jump_to,s(pl,{disabled:g,type:`text`,value:t.value,onInput:i,onChange:i,onKeyup:c,onBlur:o},null),a.page,b])),s(`li`,{class:`${_}`},[v,y])}}}),PF={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`},FF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ir?r:n,Ke(this,`current`)||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){let e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}})},total(){let e={},t=RF(this.pageSize,this.$data,this.$props);if(Ke(this,`current`)){let n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=n===0&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(RF(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){let{prefixCls:n}=this.$props;return Ie(this,e,this.$props)||s(`button`,{type:`button`,"aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){let t=e.target.value,n=RF(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data,i;return i=t===``?t:isNaN(Number(t))?r:t>=n?n:Number(t),i},isValid(e){return IF(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){let{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===MF.ARROW_UP||e.keyCode===MF.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){let t=this.getValidValue(e);t!==this.stateCurrentInputValue&&this.setState({stateCurrentInputValue:t}),e.keyCode===MF.ENTER?this.handleChange(t):e.keyCode===MF.ARROW_UP?this.handleChange(t-1):e.keyCode===MF.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent,n=t,r=RF(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e==`number`&&(Ke(this,`pageSize`)||this.setState({statePageSize:e}),Ke(this,`current`)||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit(`update:pageSize`,e),t!==n&&this.__emit(`update:current`,t),this.__emit(`showSizeChange`,t,e),this.__emit(`change`,t,e)},handleChange(e){let{disabled:t}=this.$props,n=e;if(this.isValid(n)&&!t){let e=RF(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),Ke(this,`current`)||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit(`update:current`,n),this.__emit(`change`,n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn:e},runIfEnter(e,t){(e.key===`Enter`||e.charCode===13)&&(e.preventDefault(),t(...[...arguments].slice(2)))},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===MF.ENTER||e.type===`click`)&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){let{itemRender:t}=this.$props,n=t({page:e,type:`prev`,originalElement:this.getItemIcon(`prevIcon`,`prev page`)}),r=!this.hasPrev();return Xe(n)?on(n,r?{disabled:r}:{}):n},renderNext(e){let{itemRender:t}=this.$props,n=t({page:e,type:`next`,originalElement:this.getItemIcon(`nextIcon`,`next page`)}),r=!this.hasNext();return Xe(n)?on(n,r?{disabled:r}:{}):n}},render(){let{prefixCls:e,disabled:t,hideOnSinglePage:n,total:r,locale:i,showQuickJumper:a,showLessItems:o,showTitle:c,showTotal:l,simple:u,itemRender:d,showPrevNextJumpers:f,jumpPrevIcon:p,jumpNextIcon:m,selectComponentClass:h,selectPrefixCls:_,pageSizeOptions:v}=this.$props,{stateCurrent:y,statePageSize:b}=this,x=we(this.$attrs).extraAttrs,{class:S}=x,C=FF(x,[`class`]);if(n===!0&&this.total<=b)return null;let w=RF(void 0,this.$data,this.$props),T=[],E=null,D=null,O=null,k=null,A=null,j=a&&a.goButton,M=o?1:2,N=y-1>0?y-1:0,P=y+1=M*2&&y!==3&&(T[0]=s(jF,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:r,page:r,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.unshift(E)),w-y>=M*2&&y!==w-2&&(T[T.length-1]=s(jF,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:a,page:a,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),T.push(D)),r!==1&&T.unshift(O),a!==w&&T.push(k)}let L=null;l&&(L=s(`li`,{class:`${e}-total-text`},[l(r,[r===0?0:(y-1)*b+1,y*b>r?r:y*b])]));let ee=!F||!w,R=!I||!w,z=this.buildOptionText||this.$slots.buildOptionText;return s(`ul`,X(X({unselectable:`on`,ref:`paginationNode`},C),{},{class:Z({[`${e}`]:!0,[`${e}-disabled`]:t},S)}),[L,s(`li`,{title:c?i.prev_page:null,onClick:this.prev,tabindex:ee?null:0,onKeypress:this.runIfEnterPrev,class:Z(`${e}-prev`,{[`${e}-disabled`]:ee}),"aria-disabled":ee},[this.renderPrev(N)]),T,s(`li`,{title:c?i.next_page:null,onClick:this.next,tabindex:R?null:0,onKeypress:this.runIfEnterNext,class:Z(`${e}-next`,{[`${e}-disabled`]:R}),"aria-disabled":R},[this.renderNext(P)]),s(NF,{disabled:t,locale:i,rootPrefixCls:e,selectComponentClass:h,selectPrefixCls:_,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:b,pageSizeOptions:v,buildOptionText:z||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:j},null)])}}),BF=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`&${t}-mini`]:{[` + &:hover ${t}-item:not(${t}-item-active), + &:active ${t}-item:not(${t}-item-active), + &:hover ${t}-item-link, + &:active ${t}-item-link + `]:{backgroundColor:`transparent`}},[`${t}-item`]:{cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}}}},VF=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:`transparent`,borderColor:`transparent`,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:`transparent`}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:`transparent`,borderColor:`transparent`,"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:G(G({},NS(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},HF=e=>{let{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:`top`,[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:`inline-block`,height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:`border-box`,height:`100%`,marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:`center`,backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}}}},UF=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,fontFamily:`Arial, Helvetica, sans-serif`,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":G({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},xe(e))},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:`inline-block`,minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:`Arial, Helvetica, sans-serif`,outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:G({},xe(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer.-select":{display:`inline-block`,width:`auto`},"&-quick-jumper":{display:`inline-block`,height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:`top`,input:G(G({},FS(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:`border-box`,margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},WF=e=>{let{componentCls:t}=e;return{[`${t}-item`]:G(G({display:`inline-block`,minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:`transparent`,border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:`none`,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},De(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},GF=e=>{let{componentCls:t}=e;return{[t]:G(G(G(G(G(G(G(G({},Ne(e)),{"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:`middle`}}),WF(e)),UF(e)),HF(e)),VF(e)),BF(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}}),[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},KF=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},qF=Le(`Pagination`,e=>{let t=Fe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:`0 0`,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},HS(e));return[GF(t),e.wireframe&&KF(t)]}),JF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);io.getPrefixCls(`select`,e.selectPrefixCls)),p=Ag(),[m]=Ft(`Pagination`,Jt,y(e,`locale`)),h=e=>{let t=s(`span`,{class:`${e}-item-ellipsis`},[g(`•••`)]);return{prevIcon:s(`button`,{class:`${e}-item-link`,type:`button`,tabindex:-1},[c.value===`rtl`?s(uv,null,null):s(SD,null,null)]),nextIcon:s(`button`,{class:`${e}-item-link`,type:`button`,tabindex:-1},[c.value===`rtl`?s(SD,null,null):s(uv,null,null)]),jumpPrevIcon:s(`a`,{rel:`nofollow`,class:`${e}-item-link`},[s(`div`,{class:`${e}-item-container`},[c.value===`rtl`?s(OF,{class:`${e}-item-link-icon`},null):s(wF,{class:`${e}-item-link-icon`},null),t])]),jumpNextIcon:s(`a`,{rel:`nofollow`,class:`${e}-item-link`},[s(`div`,{class:`${e}-item-container`},[c.value===`rtl`?s(wF,{class:`${e}-item-link-icon`},null):s(OF,{class:`${e}-item-link-icon`},null),t])])}};return()=>{let{itemRender:t=n.itemRender,buildOptionText:a=n.buildOptionText,selectComponentClass:o,responsive:g}=e,_=JF(e,[`itemRender`,`buildOptionText`,`selectComponentClass`,`responsive`]),v=l.value===`small`||!!(p.value?.xs&&!l.value&&g),y=G(G(G(G(G({},_),h(i.value)),{prefixCls:i.value,selectPrefixCls:f.value,selectComponentClass:o||(v?kF:AF),locale:m.value,buildOptionText:a}),r),{class:Z({[`${i.value}-mini`]:v,[`${i.value}-rtl`]:c.value===`rtl`},r.class,d.value),itemRender:t});return u(s(zF,y,null))}}}),XF=be(YF),ZF=d({compatConfig:{MODE:3},name:`AListItemMeta`,props:{avatar:J.any,description:J.any,prefixCls:String,title:J.any},displayName:`AListItemMeta`,__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t,{prefixCls:r}=K(`list`,e);return()=>{let t=`${r.value}-item-meta`,i=e.title??n.title?.call(n),a=e.description??n.description?.call(n),o=e.avatar??n.avatar?.call(n),c=s(`div`,{class:`${r.value}-item-meta-content`},[i&&s(`h4`,{class:`${r.value}-item-meta-title`},[i]),a&&s(`div`,{class:`${r.value}-item-meta-description`},[a])]);return s(`div`,{class:t},[o&&s(`div`,{class:`${r.value}-item-meta-avatar`},[o]),(i||a)&&c])}}}),QF=Symbol(`ListContextKey`),$F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=n.default?.call(n)||[],t;return e.forEach(e=>{Ee(e)&&!he(e)&&(t=!0)}),t&&e.length>1},l=()=>{let t=e.extra??n.extra?.call(n);return i.value===`vertical`?!!t:!c()};return()=>{let{class:t}=r,c=$F(r,[`class`]),u=o.value,d=e.extra??n.extra?.call(n),f=n.default?.call(n),p=e.actions??pe(n.actions?.call(n));p=p&&!Array.isArray(p)?[p]:p;let m=p&&p.length>0&&s(`ul`,{class:`${u}-item-action`,key:`actions`},[p.map((e,t)=>s(`li`,{key:`${u}-item-action-${t}`},[e,t!==p.length-1&&s(`em`,{class:`${u}-item-action-split`},null)]))]),h=a.value?`div`:`li`,g=s(h,X(X({},c),{},{class:Z(`${u}-item`,{[`${u}-item-no-flex`]:!l()},t)}),{default:()=>[i.value===`vertical`&&d?[s(`div`,{class:`${u}-item-main`,key:`content`},[f,m]),s(`div`,{class:`${u}-item-extra`,key:`extra`},[d])]:[f,m,on(d,{key:`extra`})]]});return a.value?s(uk,{flex:1,style:e.colStyle},{default:()=>[g]}):g}}}),tI=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,padding:a,listItemPaddingSM:o,marginLG:s,borderRadiusLG:c}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${i}px ${s}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${a}px ${r}px`}}}},nI=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${o}px`}}}}}},rI=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,listItemPadding:c,colorPrimary:l,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_}=e;return{[`${t}`]:G(G({},Ne(e)),{position:`relative`,"*":{outline:`none`},[`${t}-header, ${t}-footer`]:{background:`transparent`,paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,textAlign:`end`,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:s},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${s}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:s,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:s,[`${t}-item-meta-title`]:{marginBlockEnd:a,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${s}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},iI=Le(`List`,e=>{let t=Fe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[rI(t),tI(t),nI(t)]},{contentWidth:220}),aI=d({compatConfig:{MODE:3},name:`AList`,inheritAttrs:!1,Item:eI,props:Vn({bordered:Y(),dataSource:vt(),extra:Je(),grid:ut(),itemLayout:String,loading:$t([Boolean,Object]),loadMore:Je(),pagination:$t([Boolean,Object]),prefixCls:String,rowKey:$t([String,Number,Function]),renderItem:Q(),size:String,split:Y(),header:Je(),footer:Je(),locale:ut()},{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(t,n){let{slots:r,attrs:i}=n;e(QF,{grid:y(t,`grid`),itemLayout:y(t,`itemLayout`)});let o={current:1,total:0},{prefixCls:c,direction:l,renderEmpty:u}=K(`list`,t),[d,f]=iI(c),p=a(()=>t.pagination&&typeof t.pagination==`object`?t.pagination:{}),m=W(p.value.defaultCurrent??1),h=W(p.value.defaultPageSize??10);H(p,()=>{`current`in p.value&&(m.value=p.value.current),`pageSize`in p.value&&(h.value=p.value.pageSize)});let g=[],_=e=>(t,n)=>{m.value=t,h.value=n,p.value[e]&&p.value[e](t,n)},v=_(`onChange`),b=_(`onShowSizeChange`),x=a(()=>typeof t.loading==`boolean`?{spinning:t.loading}:t.loading),S=a(()=>x.value&&x.value.spinning),C=a(()=>{let e=``;switch(t.size){case`large`:e=`lg`;break;case`small`:e=`sm`}return e}),w=a(()=>({[`${c.value}`]:!0,[`${c.value}-vertical`]:t.itemLayout===`vertical`,[`${c.value}-${C.value}`]:C.value,[`${c.value}-split`]:t.split,[`${c.value}-bordered`]:t.bordered,[`${c.value}-loading`]:S.value,[`${c.value}-grid`]:!!t.grid,[`${c.value}-rtl`]:l.value===`rtl`})),T=a(()=>{let e=G(G(G({},o),{total:t.dataSource.length,current:m.value,pageSize:h.value}),t.pagination||{}),n=Math.ceil(e.total/e.pageSize);return e.current>n&&(e.current=n),e}),E=a(()=>{let e=[...t.dataSource];return t.pagination&&t.dataSource.length>(T.value.current-1)*T.value.pageSize&&(e=[...t.dataSource].splice((T.value.current-1)*T.value.pageSize,T.value.pageSize)),e}),D=Ag(),O=jg(()=>{for(let e=0;e{if(!t.grid)return;let e=O.value&&t.grid[O.value]?t.grid[O.value]:t.grid.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}}),A=(e,n)=>{let i=t.renderItem??r.renderItem;if(!i)return null;let a,o=typeof t.rowKey;return a=o===`function`?t.rowKey(e):o===`string`||o===`number`?e[t.rowKey]:e.key,a||=`list-item-${n}`,g[n]=a,i({item:e,index:n})};return()=>{let e=t.loadMore??r.loadMore?.call(r),n=t.footer??r.footer?.call(r),a=t.header??r.header?.call(r),o=pe(r.default?.call(r)),l=!!(e||t.pagination||n),p=Z(G(G({},w.value),{[`${c.value}-something-after-last-item`]:l}),i.class,f.value),m=t.pagination?s(`div`,{class:`${c.value}-pagination`},[s(XF,X(X({},T.value),{},{onChange:v,onShowSizeChange:b}),null)]):null,h=S.value&&s(`div`,{style:{minHeight:`53px`}},null);if(E.value.length>0){g.length=0;let e=E.value.map((e,t)=>A(e,t)),n=e.map((e,t)=>s(`div`,{key:g[t],style:k.value},[e]));h=t.grid?s(PD,{gutter:t.grid.gutter},{default:()=>[n]}):s(`ul`,{class:`${c.value}-items`},[e])}else!o.length&&!S.value&&(h=s(`div`,{class:`${c.value}-empty-text`},[t.locale?.emptyText||u(`List`)]));let _=T.value.position||`bottom`;return d(s(`div`,X(X({},i),{},{class:p}),[(_===`top`||_===`both`)&&m,a&&s(`div`,{class:`${c.value}-header`},[a]),s(bF,x.value,{default:()=>[h,o]}),n&&s(`div`,{class:`${c.value}-footer`},[n]),e||(_===`bottom`||_===`both`)&&m]))}}});aI.install=function(e){return e.component(aI.name,aI),e.component(aI.Item.name,aI.Item),e.component(aI.Item.Meta.name,aI.Item.Meta),e};function oI(e){let{selectionStart:t}=e;return e.value.slice(0,t)}function sI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``;return(Array.isArray(t)?t:[t]).reduce((t,n)=>{let r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t},{location:-1,prefix:``})}function cI(e){return(e||``).toLowerCase()}function lI(e,t,n){let r=e[0];if(!r||r===n)return e;let i=e,a=t.length;for(let e=0;e[]}},setup(e,t){let{slots:n}=t,{activeIndex:r,setActiveIndex:i,selectOption:a,onFocus:o=hI,loading:c}=C(mI,{activeIndex:M(),loading:M(!1)}),l,u=e=>{clearTimeout(l),l=setTimeout(()=>{o(e)})};return p(()=>{clearTimeout(l)}),()=>{let{prefixCls:t,options:o}=e,l=o[r.value]||{};return s(vy,{prefixCls:`${t}-menu`,activeKey:l.value,onSelect:e=>{let{key:t}=e,n=o.find(e=>{let{value:n}=e;return n===t});a(n)},onMousedown:u},{default:()=>[!c.value&&o.map((e,t)=>{let{value:r,disabled:a,label:o=e.value,class:c,style:l}=e;return s(Bv,{key:r,disabled:a,onMouseenter:()=>{i(t)},class:c,style:l},{default:()=>[n.option?.call(n,e)??(typeof o==`function`?o(e):o)]})}),!c.value&&o.length===0?s(Bv,{key:`notFoundContent`,disabled:!0},{default:()=>[n.notFoundContent?.call(n)]}):null,c.value&&s(Bv,{key:`loading`,disabled:!0},{default:()=>[s(bF,{size:`small`},null)]})]})}}}),_I={bottomRight:{points:[`tl`,`br`],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:[`tr`,`bl`],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`bl`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:[`br`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},vI=d({compatConfig:{MODE:3},name:`KeywordTrigger`,props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t,r=()=>`${e.prefixCls}-dropdown`,i=()=>{let{options:t}=e;return s(gI,{prefixCls:r(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},o=a(()=>{let{placement:t,direction:n}=e,r=`topRight`;return r=n===`rtl`?t===`top`?`topLeft`:`bottomLeft`:t===`top`?`topRight`:`bottomRight`,r});return()=>{let{visible:t,transitionName:a,getPopupContainer:c}=e;return s(tl,{prefixCls:r(),popupVisible:t,popup:i(),popupClassName:e.dropdownClassName,popupPlacement:o.value,popupTransitionName:a,builtinPlacements:_I,getPopupContainer:c},{default:n.default})}}}),yI=_e(`top`,`bottom`),bI={autofocus:{type:Boolean,default:void 0},prefix:J.oneOfType([J.string,J.arrayOf(J.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:J.oneOf(yI),character:J.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:vt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},xI=G(G({},bI),{dropdownClassName:String}),SI={prefix:`@`,split:` `,rows:1,validateSearch:fI,filterOption:()=>pI};Vn(xI,SI);var CI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{f.value=t.value});let p=e=>{r(`change`,e)},m=e=>{let{target:{value:t}}=e;p(t)},h=(e,t,n)=>{G(f,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})},g=e=>{G(f,{measuring:!1,measureLocation:0,measureText:null}),e?.()},_=e=>{let{which:t}=e;if(f.measuring){if(t===$.UP||t===$.DOWN){let n=j.value.length,r=t===$.UP?-1:1,i=(f.activeIndex+r+n)%n;f.activeIndex=i,e.preventDefault()}else if(t===$.ESC)g();else if(t===$.ENTER){if(e.preventDefault(),!j.value.length){g();return}let t=j.value[f.activeIndex];E(t)}}},v=e=>{let{key:n,which:i}=e,{measureText:a,measuring:o}=f,{prefix:s,validateSearch:c}=t,l=e.target;if(l.composing)return;let u=oI(l),{location:d,prefix:p}=sI(u,s);if([$.ESC,$.UP,$.DOWN,$.ENTER].indexOf(i)===-1){if(d!==-1){let e=u.slice(d+p.length),i=c(e,t),s=!!A(e).length;i?(n===p||n===`Shift`||o||e!==a&&s)&&h(e,p,d):o&&g(),i&&r(`search`,e,p)}else o&&g()}},b=e=>{f.measuring||r(`pressenter`,e)},S=e=>{w(e)},C=e=>{T(e)},w=e=>{clearTimeout(d.value);let{isFocus:t}=f;!t&&e&&r(`focus`,e),f.isFocus=!0},T=e=>{d.value=setTimeout(()=>{f.isFocus=!1,g(),r(`blur`,e)},100)},E=e=>{let{split:n}=t,{value:i=``}=e,{text:a,selectionLocation:o}=uI(f.value,{measureLocation:f.measureLocation,targetText:i,prefix:f.measurePrefix,selectionStart:u.value.getSelectionStart(),split:n});p(a),g(()=>{dI(u.value.input,o)}),r(`select`,e,f.measurePrefix)},D=e=>{f.activeIndex=e},A=e=>{let n=e||f.measureText||``,{filterOption:r}=t;return t.options.filter(e=>!r||r(n,e))},j=a(()=>A());return o({blur:()=>{u.value.blur()},focus:()=>{u.value.focus()}}),e(mI,{activeIndex:y(f,`activeIndex`),setActiveIndex:D,selectOption:E,onFocus:w,onBlur:T,loading:y(t,`loading`)}),O(()=>{x(()=>{f.measuring&&(l.value.scrollTop=u.value.getScrollTop())})}),()=>{let{measureLocation:e,measurePrefix:n,measuring:r}=f,{prefixCls:a,placement:o,transitionName:d,getPopupContainer:p,direction:h}=t,g=CI(t,[`prefixCls`,`placement`,`transitionName`,`getPopupContainer`,`direction`]),{class:y,style:x}=i,w=CI(i,[`class`,`style`]),T=Gn(g,[`value`,`prefix`,`split`,`validateSearch`,`filterOption`,`options`,`loading`]),E=G(G(G({},T),w),{onChange:wI,onSelect:wI,value:f.value,onInput:m,onBlur:C,onKeydown:_,onKeyup:v,onFocus:S,onPressenter:b});return s(`div`,{class:Z(a,y),style:x},[s(pl,X(X({},E),{},{ref:u,tag:`textarea`}),null),r&&s(`div`,{ref:l,class:`${a}-measure`},[f.value.slice(0,e),s(vI,{prefixCls:a,transitionName:d,dropdownClassName:t.dropdownClassName,placement:o,options:r?j.value:[],visible:!0,direction:h,getPopupContainer:p},{default:()=>[s(`span`,null,[n])],notFoundContent:c.notFoundContent,option:c.option}),f.value.slice(e+n.length)])])}}}),EI={value:String,disabled:Boolean,payload:ut()},DI=G(G({},EI),{label:bt([])}),OI={name:`Option`,props:DI,render(e,t){let{slots:n}=t;return n.default?.call(n)}};d(G({compatConfig:{MODE:3}},OI));var kI=TI,AI=e=>{let{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:o,lineHeight:s,controlHeight:c,inputPaddingHorizontal:l,inputPaddingVertical:u,fontSize:d,colorBgElevated:f,borderRadiusLG:p,boxShadowSecondary:m}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:G(G(G(G(G({},Ne(e)),FS(e)),{position:`relative`,display:`inline-block`,height:`auto`,padding:0,overflow:`hidden`,lineHeight:s,whiteSpace:`pre-wrap`,verticalAlign:`bottom`}),PS(e,t)),{"&-disabled":{"> textarea":G({},jS(e))},"&-focused":G({},AS(e)),[`&-affix-wrapper ${t}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:l,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`},[`> textarea, ${t}-measure`]:{color:a,boxSizing:`border-box`,minHeight:c-2,margin:0,padding:`${u}px ${l}px`,overflow:`inherit`,overflowX:`hidden`,overflowY:`auto`,fontWeight:`inherit`,fontSize:`inherit`,fontFamily:`inherit`,fontStyle:`inherit`,fontVariant:`inherit`,fontSizeAdjust:`inherit`,fontStretch:`inherit`,lineHeight:`inherit`,direction:`inherit`,letterSpacing:`inherit`,whiteSpace:`inherit`,textAlign:`inherit`,verticalAlign:`top`,wordWrap:`break-word`,wordBreak:`inherit`,tabSize:`inherit`},"> textarea":G({width:`100%`,border:`none`,outline:`none`,resize:`none`,backgroundColor:`inherit`},OS(e.colorTextPlaceholder)),[`${t}-measure`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:`transparent`,pointerEvents:`none`,"> span":{display:`inline-block`,minHeight:`1em`}},"&-dropdown":G(G({},Ne(e)),{position:`absolute`,top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,fontSize:d,fontVariant:`initial`,backgroundColor:f,borderRadius:p,outline:`none`,boxShadow:m,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:`auto`,listStyle:`none`,outline:`none`,"&-item":G(G({},tn),{position:`relative`,display:`block`,minWidth:e.controlItemWidth,padding:`${h}px ${i}px`,color:a,fontWeight:`normal`,lineHeight:s,cursor:`pointer`,transition:`background ${o} ease`,"&:hover":{backgroundColor:r},"&:first-child":{borderStartStartRadius:p,borderStartEndRadius:p,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:p,borderEndEndRadius:p},"&-disabled":{color:n,cursor:`not-allowed`,"&:hover":{color:n,backgroundColor:r,cursor:`not-allowed`}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},jI=Le(`Mentions`,e=>[AI(HS(e))],e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50})),MI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:``,{prefix:t=`@`,split:n=` `}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Array.isArray(t)?t:[t];return e.split(n).map(function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=null;return r.some(n=>e.slice(0,n.length)===n&&(t=n,!0)),t===null?null:{prefix:t,value:e.slice(t.length)}}).filter(e=>!!e&&!!e.value)},FI=d({compatConfig:{MODE:3},name:`AMentions`,inheritAttrs:!1,props:G(G({},bI),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:J.any,defaultValue:String,id:String,status:String}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i,expose:o}=t,{prefixCls:c,renderEmpty:l,direction:u}=K(`mentions`,e),[d,f]=jI(c),p=M(!1),m=M(null),h=M(e.value??e.defaultValue??``),g=sd(),_=ld.useInject(),v=a(()=>fd(_.status,e.status));pv({prefixCls:a(()=>`${c.value}-menu`),mode:a(()=>`vertical`),selectable:a(()=>!1),onClick:()=>{},validator:e=>{let{mode:t}=e;nt(!t||t===`vertical`,`Mentions`,`mode="${t}" is not supported for Mentions's Menu.`)}}),H(()=>e.value,e=>{h.value=e});let y=e=>{p.value=!0,r(`focus`,e)},b=e=>{p.value=!1,r(`blur`,e),g.onFieldBlur()},x=function(){r(`select`,...arguments),p.value=!0},S=t=>{e.value===void 0&&(h.value=t),r(`update:value`,t),r(`change`,t),g.onFieldChange()},C=()=>{let t=e.notFoundContent;return t===void 0?n.notFoundContent?n.notFoundContent():l(`Select`):t},w=()=>pe(n.default?.call(n)||[]).map(e=>{var t;return G(G({},He(e)),{label:((t=e.children)?.default)?.call(t)})});o({focus:()=>{m.value.focus()},blur:()=>{m.value.blur()}});let T=a(()=>e.loading?NI:e.filterOption);return()=>{let{disabled:t,getPopupContainer:r,rows:a=1,id:o=g.id.value}=e,l=MI(e,[`disabled`,`getPopupContainer`,`rows`,`id`]),{hasFeedback:E,feedbackIcon:D}=_,{class:O}=i,k=MI(i,[`class`]),A=Gn(l,[`defaultValue`,`onUpdate:value`,`prefixCls`]),j=Z({[`${c.value}-disabled`]:t,[`${c.value}-focused`]:p.value,[`${c.value}-rtl`]:u.value===`rtl`},dd(c.value,v.value),!E&&O,f.value),M=G(G(G(G({prefixCls:c.value},A),{disabled:t,direction:u.value,filterOption:T.value,getPopupContainer:r,options:e.loading?[{value:`ANTDV_SEARCHING`,disabled:!0,label:s(bF,{size:`small`},null)}]:e.options||w(),class:j}),k),{rows:a,onChange:S,onSelect:x,onFocus:y,onBlur:b,ref:m,value:h.value,id:o}),N=s(kI,X(X({},M),{},{dropdownClassName:f.value}),{notFoundContent:C,option:n.option});return d(E?s(`div`,{class:Z(`${c.value}-affix-wrapper`,dd(`${c.value}-affix-wrapper`,v.value,E),O,f.value)},[N,s(`span`,{class:`${c.value}-suffix`},[D])]):N)}}}),II=d(G(G({compatConfig:{MODE:3}},OI),{name:`AMentionsOption`,props:DI})),LI=G(FI,{Option:II,getMentions:PI,install:e=>(e.component(FI.name,FI),e.component(II.name,II),e)}),RI=e=>{let{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a=``,prefixCls:o}=e,c;if(typeof n==`function`)c=n({value:t});else{let e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!n)c=e;else{let e=n[1],t=n[2]||`0`,l=n[4]||``;t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),typeof r==`number`&&(l=l.padEnd(r,`0`).slice(0,r>0?r:0)),l&&=`${i}${l}`,c=[s(`span`,{key:`int`,class:`${o}-content-value-int`},[e,t]),l&&s(`span`,{key:`decimal`,class:`${o}-content-value-decimal`},[l])]}}return s(`span`,{class:`${o}-content-value`},[c])};RI.displayName=`StatisticNumber`;var zI=e=>{let{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,statisticTitleFontSize:a,colorTextHeading:o,statisticContentFontSize:s,statisticFontFamily:c}=e;return{[`${t}`]:G(G({},Ne(e)),{[`${t}-title`]:{marginBottom:n,color:i,fontSize:a},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:s,fontFamily:c,[`${t}-content-value`]:{display:`inline-block`,direction:`ltr`},[`${t}-content-prefix, ${t}-content-suffix`]:{display:`inline-block`},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},BI=Le(`Statistic`,e=>{let{fontSizeHeading3:t,fontSize:n,fontFamily:r}=e;return[zI(Fe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:r}))]}),VI=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:$t([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Q(),formatter:bt(),precision:Number,prefix:Je(),suffix:Je(),title:Je(),loading:Y()}),HI=d({compatConfig:{MODE:3},name:`AStatistic`,inheritAttrs:!1,props:Vn(VI(),{decimalSeparator:`.`,groupSeparator:`,`,loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=K(`statistic`,e),[o,c]=BI(i);return()=>{let{value:t=0,valueStyle:l,valueRender:u}=e,d=i.value,f=e.title??n.title?.call(n),p=e.prefix??n.prefix?.call(n),m=e.suffix??n.suffix?.call(n),h=e.formatter??n.formatter,g=s(RI,X({"data-for-update":Date.now()},G(G({},e),{prefixCls:d,value:t,formatter:h})),null);return u&&(g=u(g)),o(s(`div`,X(X({},r),{},{class:[d,{[`${d}-rtl`]:a.value===`rtl`},r.class,c.value]}),[f&&s(`div`,{class:`${d}-title`},[f]),s(xw,{paragraph:!1,loading:e.loading},{default:()=>[s(`div`,{style:l,class:`${d}-content`},[p&&s(`span`,{class:`${d}-content-prefix`},[p]),g,m&&s(`span`,{class:`${d}-content-suffix`},[m])])]})]))}}}),UI=[[`Y`,31536e6],[`M`,2592e6],[`D`,864e5],[`H`,36e5],[`m`,6e4],[`s`,1e3],[`S`,1]];function WI(e,t){let n=e,r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(e=>e.slice(1,-1)),a=t.replace(r,`[]`),o=UI.reduce((e,t)=>{let[r,i]=t;if(e.includes(r)){let t=Math.floor(n/i);return n-=t*i,e.replace(RegExp(`${r}+`,`g`),e=>{let n=e.length;return t.toString().padStart(n,`0`)})}return e},a),s=0;return o.replace(r,()=>{let e=i[s];return s+=1,e})}function GI(e,t){let{format:n=``}=t,r=new Date(e).getTime();return WI(Math.max(r-Date.now(),0),n)}var KI=1e3/30;function qI(e){return new Date(e).getTime()}HI.Countdown=d({compatConfig:{MODE:3},name:`AStatisticCountdown`,props:Vn(G(G({},VI()),{value:$t([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),{format:`HH:mm:ss`}),setup(e,t){let{emit:n,slots:r}=t,i=W(),a=W(),o=()=>{let{value:t}=e;qI(t)>=Date.now()?c():l()},c=()=>{if(i.value)return;let t=qI(e.value);i.value=setInterval(()=>{a.value.$forceUpdate(),t>Date.now()&&n(`change`,t-Date.now()),o()},KI)},l=()=>{let{value:t}=e;i.value&&(clearInterval(i.value),i.value=void 0,qI(t){let{value:n,config:r}=t,{format:i}=e;return GI(n,G(G({},r),{format:i}))},d=e=>e;return D(()=>{o()}),O(()=>{o()}),p(()=>{l()}),()=>{let t=e.value;return s(HI,X({ref:a},G(G({},Gn(e,[`onFinish`,`onChange`])),{value:t,valueRender:d,formatter:u})),r)}}}),HI.install=function(e){return e.component(HI.name,HI),e.component(HI.Countdown.name,HI.Countdown),e};var JI=HI.Countdown,YI=HI,XI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{keyCode:t}=e;t===$.ENTER&&e.preventDefault()},l=e=>{let{keyCode:t}=e;t===$.ENTER&&r(`click`,e)},u=e=>{r(`click`,e)},d=()=>{o.value&&o.value.focus()};return D(()=>{e.autofocus&&d()}),a({focus:d,blur:()=>{o.value&&o.value.blur()}}),()=>{let{noStyle:t,disabled:r}=e,a=XI(e,[`noStyle`,`disabled`]),d={};return t||(d=G({},ZI)),r&&(d.pointerEvents=`none`),s(`div`,X(X(X({role:`button`,tabindex:0,ref:o},a),i),{},{onClick:u,onKeydown:c,onKeyup:l,style:G(G({},d),i.style||{})}),[n.default?.call(n)])}}}),$I={small:8,middle:16,large:24},eL=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:J.oneOf(_e(`horizontal`,`vertical`)).def(`horizontal`),align:J.oneOf(_e(`start`,`end`,`center`,`baseline`)),wrap:Y()});function tL(e){return typeof e==`string`?$I[e]:e||0}var nL=d({compatConfig:{MODE:3},name:`ASpace`,inheritAttrs:!1,props:eL(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,space:o,direction:c}=K(`space`,e),[l,u]=dr(i),d=CD(),f=a(()=>e.size??o?.value?.size??`small`),p=W(),m=W();H(f,()=>{[p.value,m.value]=(Array.isArray(f.value)?f.value:[f.value,f.value]).map(e=>tL(e))},{immediate:!0});let h=a(()=>e.align===void 0&&e.direction===`horizontal`?`center`:e.align),g=a(()=>Z(i.value,u.value,`${i.value}-${e.direction}`,{[`${i.value}-rtl`]:c.value===`rtl`,[`${i.value}-align-${h.value}`]:h.value})),_=a(()=>c.value===`rtl`?`marginLeft`:`marginRight`),y=a(()=>{let t={};return d.value&&(t.columnGap=`${p.value}px`,t.rowGap=`${m.value}px`),G(G({},t),e.wrap&&{flexWrap:`wrap`,marginBottom:`${-m.value}px`})});return()=>{let{wrap:t,direction:a=`horizontal`}=e,o=n.default?.call(n),c=ve(o),u=c.length;if(u===0)return null;let f=n.split?.call(n),h=`${i.value}-item`,b=p.value,x=u-1;return s(`div`,X(X({},r),{},{class:[g.value,r.class],style:[y.value,r.style]}),[c.map((e,n)=>{let r=o.indexOf(e);r===-1&&(r=`$$space-${n}`);let i={};return d.value||(a===`vertical`?n{let{componentCls:t,antCls:n}=e;return{[t]:G(G({},Ne(e)),{position:`relative`,padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":G(G({},Li(e)),{color:e.pageHeaderBackColor,cursor:`pointer`})},[`${n}-divider-vertical`]:{height:`14px`,margin:`0 ${e.marginSM}`,verticalAlign:`middle`},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:`flex`,justifyContent:`space-between`,"&-left":{display:`flex`,alignItems:`center`,margin:`${e.marginXS/2}px 0`,overflow:`hidden`},"&-title":G({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},tn),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":G({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},tn),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:`nowrap`,"> *":{marginLeft:e.marginSM,whiteSpace:`unset`},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:`none`}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:`wrap`},[`&${e.componentCls}-rtl`]:{direction:`rtl`}})}},iL=Le(`PageHeader`,e=>[rL(Fe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:`transparent`,pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG}))]),aL=d({compatConfig:{MODE:3},name:`APageHeader`,inheritAttrs:!1,props:{backIcon:Je(),prefixCls:String,title:Je(),subTitle:Je(),breadcrumb:J.object,tags:Je(),footer:Je(),extra:Je(),avatar:ut(),ghost:{type:Boolean,default:void 0},onBack:Function},slots:Object,setup(e,t){let{emit:n,slots:r,attrs:i}=t,{prefixCls:o,direction:c,pageHeader:l}=K(`page-header`,e),[u,d]=iL(o),f=M(!1),p=Nn(),m=e=>{let{width:t}=e;p.value||(f.value=t<768)},h=a(()=>e.ghost??l?.value?.ghost??!0),g=()=>e.backIcon??r.backIcon?.call(r)??(c.value===`rtl`?s(vr,null,null):s(_r,null,null)),_=t=>!t||!e.onBack?null:s(St,{componentName:`PageHeader`,children:e=>{let{back:r}=e;return s(`div`,{class:`${o.value}-back`},[s(QI,{onClick:e=>{n(`back`,e)},class:`${o.value}-back-button`,"aria-label":r},{default:()=>[t]})])}},null),v=()=>e.breadcrumb?s(Dy,e.breadcrumb,null):r.breadcrumb?.call(r),y=()=>{let{avatar:t}=e,n=e.title??r.title?.call(r),i=e.subTitle??r.subTitle?.call(r),a=e.tags??r.tags?.call(r),c=e.extra??r.extra?.call(r),l=`${o.value}-heading`,u=n||i||a||c;if(!u)return null;let d=g(),f=_(d);return s(`div`,{class:l},[(f||t||u)&&s(`div`,{class:`${l}-left`},[f,t?s(S_,t,null):r.avatar?.call(r),n&&s(`span`,{class:`${l}-title`,title:typeof n==`string`?n:void 0},[n]),i&&s(`span`,{class:`${l}-sub-title`,title:typeof i==`string`?i:void 0},[i]),a&&s(`span`,{class:`${l}-tags`},[a])]),c&&s(`span`,{class:`${l}-extra`},[s(nL,null,{default:()=>[c]})])])},b=()=>{let t=e.footer??ve(r.footer?.call(r));return nn(t)?null:s(`div`,{class:`${o.value}-footer`},[t])},x=e=>s(`div`,{class:`${o.value}-content`},[e]);return()=>{let t=e.breadcrumb?.routes||r.breadcrumb,n=e.footer||r.footer,a=pe(r.default?.call(r)),l=Z(o.value,{"has-breadcrumb":t,"has-footer":n,[`${o.value}-ghost`]:h.value,[`${o.value}-rtl`]:c.value===`rtl`,[`${o.value}-compact`]:f.value},i.class,d.value);return u(s(pi,{onResize:m},{default:()=>[s(`div`,X(X({},i),{},{class:l}),[v(),y(),a.length?x(a):null,b()])]}))}}}),oL=be(aL),sL=e=>{let{componentCls:t,iconCls:n,zIndexPopup:r,colorText:i,colorWarning:a,marginXS:o,fontSize:s,fontWeightStrong:c,lineHeight:l}=e;return{[t]:{zIndex:r,[`${t}-inner-content`]:{color:i},[`${t}-message`]:{position:`relative`,marginBottom:o,color:i,fontSize:s,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:a,fontSize:s,flex:`none`,lineHeight:1,paddingTop:(Math.round(s*l)-s)/2},"&-title":{flex:`auto`,marginInlineStart:o},"&-title-only":{fontWeight:c}},[`${t}-description`]:{position:`relative`,marginInlineStart:s+o,marginBottom:o,color:i,fontSize:s},[`${t}-buttons`]:{textAlign:`end`,button:{marginInlineStart:o}}}}},cL=Le(`Popconfirm`,e=>sL(e),e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),lL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{var e;return((e=c.value)?.getPopupDomNode)?.call(e)}});let[l,u]=zu(!1,{value:y(e,`open`)}),d=(t,n)=>{e.open===void 0&&u(t),r(`update:open`,t),r(`openChange`,t,n)},f=e=>{d(!1,e)},p=t=>e.onConfirm?.call(e,t),m=t=>{var n;d(!1,t),(n=e.onCancel)==null||n.call(e,t)},h=e=>{e.keyCode===$.ESC&&l&&d(!1,e)},g=t=>{let{disabled:n}=e;n||d(t)},{prefixCls:_,getPrefixCls:v}=K(`popconfirm`,e),b=a(()=>v()),x=a(()=>v(`btn`)),[S]=cL(_),[C]=Ft(`Popconfirm`,Ut.Popconfirm),w=()=>{let{okButtonProps:t,cancelButtonProps:r,title:i=n.title?.call(n),description:a=n.description?.call(n),cancelText:o=n.cancel?.call(n),okText:c=n.okText?.call(n),okType:l,icon:u=n.icon?.call(n)||s(qt,null,null),showCancel:d=!0}=e,{cancelButton:h,okButton:g}=n,v=G({onClick:m,size:`small`},r),y=G(G(G({onClick:p},Xn(l)),{size:`small`}),t);return s(`div`,{class:`${_.value}-inner-content`},[s(`div`,{class:`${_.value}-message`},[u&&s(`span`,{class:`${_.value}-message-icon`},[u]),s(`div`,{class:[`${_.value}-message-title`,{[`${_.value}-message-title-only`]:!!a}]},[i])]),a&&s(`div`,{class:`${_.value}-description`},[a]),s(`div`,{class:`${_.value}-buttons`},[d?h?h(v):s(Ln,v,{default:()=>[o||C.value.cancelText]}):null,g?g(y):s(Wn,{buttonProps:G(G({size:`small`},Xn(l)),t),actionFn:p,close:f,prefixCls:x.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[c||C.value.okText]})])])};return()=>{let{placement:t,overlayClassName:r,trigger:i=`click`}=e,a=lL(e,[`placement`,`overlayClassName`,`trigger`]),u=Gn(a,[`title`,`content`,`cancelText`,`okText`,`onUpdate:open`,`onConfirm`,`onCancel`,`prefixCls`]),d=Z(_.value,r);return S(s(b_,X(X(X({},u),o),{},{trigger:i,placement:t,onOpenChange:g,open:l.value,overlayClassName:d,transitionName:qe(b.value,`zoom-big`,e.transitionName),ref:c,"data-popover-inject":!0}),{default:()=>[zn(n.default?.call(n)||[],{onKeydown:e=>{h(e)}},!1)],content:w}))}}}),dL=be(uL),fL=[`normal`,`exception`,`active`,`success`],pL=()=>({prefixCls:String,type:q(),percent:Number,format:Q(),status:q(),showInfo:Y(),strokeWidth:Number,strokeLinecap:q(),strokeColor:bt(),trailColor:String,width:Number,success:ut(),gapDegree:Number,gapPosition:q(),size:$t([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:q()});function mL(e){return!e||e<0?0:e>100?100:e}function hL(e){let{success:t,successPercent:n}=e,r=n;return t&&`progress`in t&&(ir(!1,`Progress`,"`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&`percent`in t&&(r=t.percent),r}function gL(e){let{percent:t,success:n,successPercent:r}=e,i=mL(hL({success:n,successPercent:r}));return[i,mL(mL(t)-i)]}function _L(e){let{success:t={},strokeColor:n}=e,{strokeColor:r}=t;return[r||N.green,n||null]}var vL=(e,t,n)=>{let r=-1,i=-1;if(t===`step`){let t=n.steps,a=n.strokeWidth;typeof e==`string`||e===void 0?(r=e===`small`?2:14,i=a??8):typeof e==`number`?[r,i]=[e,e]:[r=14,i=8]=e,r*=t}else if(t===`line`){let t=n?.strokeWidth;typeof e==`string`||e===void 0?i=t||(e===`small`?6:8):typeof e==`number`?[r,i]=[e,e]:[r=-1,i=8]=e}else(t===`circle`||t===`dashboard`)&&(typeof e==`string`||e===void 0?[r,i]=e===`small`?[60,60]:[120,120]:typeof e==`number`?[r,i]=[e,e]:(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return{width:r,height:i}},yL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iG(G({},pL()),{strokeColor:bt(),direction:q()}),xL=e=>{let t=[];return Object.keys(e).forEach(n=>{let r=parseFloat(n.replace(/%/g,``));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(`, `)},SL=(e,t)=>{let{from:n=N.blue,to:r=N.blue,direction:i=t===`rtl`?`to left`:`to right`}=e,a=yL(e,[`from`,`to`,`direction`]);return Object.keys(a).length===0?{backgroundImage:`linear-gradient(${i}, ${n}, ${r})`}:{backgroundImage:`linear-gradient(${i}, ${xL(a)})`}},CL=d({compatConfig:{MODE:3},name:`ProgressLine`,inheritAttrs:!1,props:bL(),setup(e,t){let{slots:n,attrs:r}=t,i=a(()=>{let{strokeColor:t,direction:n}=e;return t&&typeof t!=`string`?SL(t,n):{backgroundColor:t}}),o=a(()=>e.strokeLinecap===`square`||e.strokeLinecap===`butt`?0:void 0),c=a(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),l=a(()=>e.size??[-1,e.strokeWidth||(e.size===`small`?6:8)]),u=a(()=>vL(l.value,`line`,{strokeWidth:e.strokeWidth})),d=a(()=>{let{percent:t}=e;return G({width:`${mL(t)}%`,height:`${u.value.height}px`,borderRadius:o.value},i.value)}),f=a(()=>hL(e)),p=a(()=>{let{success:t}=e;return{width:`${mL(f.value)}%`,height:`${u.value.height}px`,borderRadius:o.value,backgroundColor:t?.strokeColor}}),m={width:u.value.width<0?`100%`:u.value.width,height:`${u.value.height}px`};return()=>s(v,null,[s(`div`,X(X({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,m]}),[s(`div`,{class:`${e.prefixCls}-inner`,style:c.value},[s(`div`,{class:`${e.prefixCls}-bg`,style:d.value},null),f.value===void 0?null:s(`div`,{class:`${e.prefixCls}-success-bg`,style:p.value},null)])]),n.default?.call(n)])}}),wL={percent:0,prefixCls:`vc-progress`,strokeColor:`#2db7f5`,strokeLinecap:`round`,strokeWidth:1,trailColor:`#D9D9D9`,trailWidth:1},TL=e=>{let t=W(null);return O(()=>{let n=Date.now(),r=!1;e.value.forEach(e=>{let i=e?.$el||e;if(!i)return;r=!0;let a=i.style;a.transitionDuration=`.3s, .3s, .3s, .06s`,t.value&&n-t.value<100&&(a.transitionDuration=`0s, 0s`)}),r&&(t.value=Date.now())}),e},EL={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},DL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,o=50-r/2,s=0,c=-o,l=0,u=-2*o;switch(a){case`left`:s=-o,c=0,l=2*o,u=0;break;case`right`:s=o,c=0,l=-2*o,u=0;break;case`bottom`:c=o,u=2*o}let d=`M 50,50 m ${s},${c} + a ${o},${o} 0 1 1 ${l},${-u} + a ${o},${o} 0 1 1 ${-l},${u}`,f=Math.PI*2*o;return{pathString:d,pathStyle:{stroke:n,strokeDasharray:`${t/100*(f-i)}px ${f}px`,strokeDashoffset:`-${i/2+e/100*(f-i)}px`,transition:`stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s`}}}var ML=d({compatConfig:{MODE:3},name:`VCCircle`,props:Vn(EL,wL),setup(e){OL+=1;let t=W(OL),n=a(()=>AL(e.percent)),r=a(()=>AL(e.strokeColor)),[i,o]=bC();TL(o);let c=()=>{let{prefixCls:a,strokeWidth:o,strokeLinecap:c,gapDegree:l,gapPosition:u}=e,d=0;return n.value.map((e,n)=>{let f=r.value[n]||r.value[r.value.length-1],p=Object.prototype.toString.call(f)===`[object Object]`?`url(#${a}-gradient-${t.value})`:``,{pathString:m,pathStyle:h}=jL(d,e,f,o,l,u);d+=e;let g={key:n,d:m,stroke:p,"stroke-linecap":c,"stroke-width":o,opacity:e===0?0:1,"fill-opacity":`0`,class:`${a}-circle-path`,style:h};return s(`path`,X({ref:i(n)},g),null)})};return()=>{let{prefixCls:n,strokeWidth:i,trailWidth:a,gapDegree:o,gapPosition:l,trailColor:u,strokeLinecap:d,strokeColor:f}=e,p=DL(e,[`prefixCls`,`strokeWidth`,`trailWidth`,`gapDegree`,`gapPosition`,`trailColor`,`strokeLinecap`,`strokeColor`]),{pathString:m,pathStyle:h}=jL(0,100,u,i,o,l);delete p.percent;let g=r.value.find(e=>Object.prototype.toString.call(e)===`[object Object]`),_={d:m,stroke:u,"stroke-linecap":d,"stroke-width":a||i,"fill-opacity":`0`,class:`${n}-circle-trail`,style:h};return s(`svg`,X({class:`${n}-circle`,viewBox:`0 0 100 100`},p),[g&&s(`defs`,null,[s(`linearGradient`,{id:`${n}-gradient-${t.value}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`0%`},[Object.keys(g).sort((e,t)=>kL(e)-kL(t)).map((e,t)=>s(`stop`,{key:t,offset:e,"stop-color":g[e]},null))])]),s(`path`,_,null),c().reverse()])}}}),NL=()=>G(G({},pL()),{strokeColor:bt()}),PL=3,FL=e=>PL/e*100,IL=d({compatConfig:{MODE:3},name:`ProgressCircle`,inheritAttrs:!1,props:Vn(NL(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t,i=a(()=>e.width??120),o=a(()=>e.size??[i.value,i.value]),c=a(()=>vL(o.value,`circle`)),l=a(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),u=a(()=>({width:`${c.value.width}px`,height:`${c.value.height}px`,fontSize:`${c.value.width*.15+6}px`})),d=a(()=>e.strokeWidth??Math.max(FL(c.value.width),6)),f=a(()=>e.gapPosition||e.type===`dashboard`&&`bottom`||void 0),p=a(()=>gL(e)),m=a(()=>Object.prototype.toString.call(e.strokeColor)===`[object Object]`),h=a(()=>_L({success:e.success,strokeColor:e.strokeColor})),g=a(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:m.value}));return()=>{let t=s(ML,{percent:p.value,strokeWidth:d.value,trailWidth:d.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:l.value,gapPosition:f.value},null);return s(`div`,X(X({},r),{},{class:[g.value,r.class],style:[r.style,u.value]}),[c.value.width<=20?s(m_,null,{default:()=>[s(`span`,null,[t])],title:n.default}):s(v,null,[t,n.default?.call(n)])])}}}),LL=d({compatConfig:{MODE:3},name:`Steps`,props:G(G({},pL()),{steps:Number,strokeColor:$t(),trailColor:String}),setup(e,t){let{slots:n}=t,r=a(()=>Math.round(e.steps*((e.percent||0)/100))),i=a(()=>e.size??[e.size===`small`?2:14,e.strokeWidth||8]),o=a(()=>vL(i.value,`step`,{steps:e.steps,strokeWidth:e.strokeWidth||8})),c=a(()=>{let{steps:t,strokeColor:n,trailColor:i,prefixCls:a}=e,c=[];for(let e=0;es(`div`,{class:`${e.prefixCls}-steps-outer`},[c.value,n.default?.call(n)])}}),RL=new Te(`antProgressActive`,{"0%":{transform:`translateX(-100%) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(-100%) scaleX(0)`,opacity:.5},to:{transform:`translateX(0) scaleX(1)`,opacity:0}}),zL=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:G(G({},Ne(e)),{display:`inline-block`,"&-rtl":{direction:`rtl`},"&-line":{position:`relative`,width:`100%`,fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:`inline-block`,width:`100%`},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:`relative`,display:`inline-block`,width:`100%`,overflow:`hidden`,verticalAlign:`middle`,backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:`relative`,backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:`inline-block`,width:`2em`,marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:`nowrap`,textAlign:`start`,verticalAlign:`middle`,wordBreak:`normal`,[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:`absolute`,inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:RL,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:`infinite`,content:`""`}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},BL=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:`relative`,lineHeight:1,backgroundColor:`transparent`},[`&${t}-circle ${t}-text`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineStart:0,width:`100%`,margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:`normal`,textAlign:`center`,transform:`translateY(-50%)`,[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:`bottom`}}}},VL=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:`inline-block`,"&-outer":{display:`flex`,flexDirection:`row`,alignItems:`center`},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},HL=e=>{let{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},UL=Le(`Progress`,e=>{let t=e.marginXXS/2,n=Fe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:`2.4s`});return[zL(n),BL(n),VL(n),HL(n)]}),WL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),d=a(()=>{let{percent:t=0}=e,n=hL(e);return parseInt(n===void 0?t.toString():n.toString(),10)}),f=a(()=>{let{status:t}=e;return!fL.includes(t)&&d.value>=100?`success`:t||`normal`}),p=a(()=>{let{type:t,showInfo:n,size:r}=e,a=i.value;return{[a]:!0,[`${a}-inline-circle`]:t===`circle`&&vL(r,`circle`).width<=20,[`${a}-${t===`dashboard`&&`circle`||t}`]:!0,[`${a}-status-${f.value}`]:!0,[`${a}-show-info`]:n,[`${a}-${r}`]:r,[`${a}-rtl`]:o.value===`rtl`,[l.value]:!0}}),m=a(()=>typeof e.strokeColor==`string`||Array.isArray(e.strokeColor)?e.strokeColor:void 0),h=()=>{let{showInfo:t,format:r,type:a,percent:o,title:c}=e,l=hL(e);if(!t)return null;let u,d=r||n?.format||(e=>`${e}%`),p=a===`line`;return r||n?.format||f.value!==`exception`&&f.value!==`success`?u=d(mL(o),mL(l)):f.value===`exception`?u=s(p?yt:_t,null,null):f.value===`success`&&(u=s(p?ft:ed,null,null)),s(`span`,{class:`${i.value}-text`,title:c===void 0&&typeof u==`string`?u:void 0},[u])};return()=>{let{type:t,steps:n,title:a}=e,{class:l}=r,d=WL(r,[`class`]),g=h(),_;return t===`line`?_=n?s(LL,X(X({},e),{},{strokeColor:m.value,prefixCls:i.value,steps:n}),{default:()=>[g]}):s(CL,X(X({},e),{},{strokeColor:u.value,prefixCls:i.value,direction:o.value}),{default:()=>[g]}):(t===`circle`||t===`dashboard`)&&(_=s(IL,X(X({},e),{},{prefixCls:i.value,strokeColor:u.value,progressStatus:f.value}),{default:()=>[g]})),c(s(`div`,X(X({role:`progressbar`},d),{},{class:[p.value,l],title:a}),[_]))}}}),KL=be(GL);function qL(e){let t=e.scrollX,n=`scrollLeft`;if(typeof t!=`number`){let r=e.document;t=r.documentElement[n],typeof t!=`number`&&(t=r.body[n])}return t}function JL(e){let t,n,r=e.ownerDocument,{body:i}=r,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function YL(e){let t=JL(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=qL(r),t.left}var XL={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z`}}]},name:`star`,theme:`filled`};function ZL(e){for(var t=1;t{let{index:r}=e;n(`hover`,t,r)},i=t=>{let{index:r}=e;n(`click`,t,r)},o=t=>{let{index:r}=e;t.keyCode===13&&n(`click`,t,r)},c=a(()=>{let{prefixCls:t,index:n,value:r,allowHalf:i,focused:a}=e,o=n+1,s=t;return r===0&&n===0&&a?s+=` ${t}-focused`:i&&r+.5>=o&&r{let{disabled:t,prefixCls:n,characterRender:a,character:l,index:u,count:d,value:f}=e,p=typeof l==`function`?l({disabled:t,prefixCls:n,index:u,count:d,value:f}):l,m=s(`li`,{class:c.value},[s(`div`,{onClick:t?null:i,onKeydown:t?null:o,onMousemove:t?null:r,role:`radio`,"aria-checked":f>u?`true`:`false`,"aria-posinset":u+1,"aria-setsize":d,tabindex:t?-1:0},[s(`div`,{class:`${n}-first`},[p]),s(`div`,{class:`${n}-second`},[p])])]);return a&&(m=a(m,e)),m}}}),nR=e=>{let{componentCls:t}=e;return{[`${t}-star`]:{position:`relative`,display:`inline-block`,color:`inherit`,cursor:`pointer`,"&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:`none`,[e.iconCls]:{verticalAlign:`middle`}},"&-first":{position:`absolute`,top:0,insetInlineStart:0,width:`50%`,height:`100%`,overflow:`hidden`,opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:`inherit`}}}},rR=e=>({[`&-rtl${e.componentCls}`]:{direction:`rtl`}}),iR=e=>{let{componentCls:t}=e;return{[t]:G(G(G(G(G({},Ne(e)),{display:`inline-block`,margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:`unset`,listStyle:`none`,outline:`none`,[`&-disabled${t} ${t}-star`]:{cursor:`default`,"&:hover":{transform:`scale(1)`}}}),nR(e)),{[`+ ${t}-text`]:{display:`inline-block`,marginInlineStart:e.marginXS,fontSize:e.fontSize}}),rR(e))}},aR=Le(`Rate`,e=>{let{colorFillContent:t}=e;return[iR(Fe(e,{rateStarColor:e[`yellow-6`],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:`scale(1.1)`,defaultColor:t}))]}),oR=d({compatConfig:{MODE:3},name:`ARate`,inheritAttrs:!1,props:Vn({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:J.any,autofocus:{type:Boolean,default:void 0},tabindex:J.oneOfType([J.number,J.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function},{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:`ltr`}),setup(e,t){let{slots:n,attrs:r,emit:i,expose:a}=t,{prefixCls:o,direction:c}=K(`rate`,e),[l,u]=aR(o),d=sd(),f=W(),[p,m]=bC(),h=k({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});H(()=>e.value,()=>{h.value=e.value});let g=e=>Et(m.value.get(e)),_=(t,n)=>{let r=c.value===`rtl`,i=t+1;if(e.allowHalf){let e=g(t),a=YL(e),o=e.clientWidth;(r&&n-a>o/2||!r&&n-a{e.value===void 0&&(h.value=t),i(`update:value`,t),i(`change`,t),d.onFieldChange()},y=(e,t)=>{let n=_(t,e.pageX);n!==h.cleanedValue&&(h.hoverValue=n,h.cleanedValue=null),i(`hoverChange`,n)},b=()=>{h.hoverValue=void 0,h.cleanedValue=null,i(`hoverChange`,void 0)},x=(t,n)=>{let{allowClear:r}=e,i=_(n,t.pageX),a=!1;r&&(a=i===h.value),b(),v(a?0:i),h.cleanedValue=a?i:null},S=e=>{h.focused=!0,i(`focus`,e)},C=e=>{h.focused=!1,i(`blur`,e),d.onFieldBlur()},w=t=>{let{keyCode:n}=t,{count:r,allowHalf:a}=e,o=c.value===`rtl`;n===$.RIGHT&&h.value0&&!o||n===$.RIGHT&&h.value>0&&o?(a?h.value-=.5:--h.value,v(h.value),t.preventDefault()):n===$.LEFT&&h.value{e.disabled||f.value.focus()};a({focus:T,blur:()=>{e.disabled||f.value.blur()}}),D(()=>{let{autofocus:t,disabled:n}=e;t&&!n&&T()});let E=(t,n)=>{let{index:r}=n,{tooltips:i}=e;return i?s(m_,{title:i[r]},{default:()=>[t]}):t};return()=>{let{count:t,allowHalf:i,disabled:a,tabindex:m,id:g=d.id.value}=e,{class:_,style:v}=r,T=[],D=a?`${o.value}-disabled`:``,O=e.character||n.character||(()=>s($L,null,null));for(let e=0;es(`svg`,{width:`252`,height:`294`},[s(`defs`,null,[s(`path`,{d:`M0 .387h251.772v251.772H0z`},null)]),s(`g`,{fill:`none`,"fill-rule":`evenodd`},[s(`g`,{transform:`translate(0 .012)`},[s(`mask`,{fill:`#fff`},null),s(`path`,{d:`M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),s(`path`,{d:`M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66`,fill:`#FFF`},null),s(`path`,{d:`M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{d:`M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175`,fill:`#FFF`},null),s(`path`,{d:`M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932`,fill:`#FFF`},null),s(`path`,{d:`M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{d:`M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382`,fill:`#FFF`},null),s(`path`,{d:`M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39`},null),s(`path`,{d:`M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742`,fill:`#FFF`},null),s(`path`,{d:`M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48`,fill:`#1890FF`},null),s(`path`,{d:`M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894`,fill:`#FFF`},null),s(`path`,{d:`M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88`,fill:`#FFB594`},null),s(`path`,{d:`M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624`,fill:`#FFC6A0`},null),s(`path`,{d:`M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682`,fill:`#FFF`},null),s(`path`,{d:`M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573`,fill:`#CBD1D1`},null),s(`path`,{d:`M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z`,fill:`#2B0849`},null),s(`path`,{d:`M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558`,fill:`#A4AABA`},null),s(`path`,{d:`M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z`,fill:`#CBD1D1`},null),s(`path`,{d:`M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062`,fill:`#2B0849`},null),s(`path`,{d:`M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15`,fill:`#A4AABA`},null),s(`path`,{d:`M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165`,fill:`#7BB2F9`},null),s(`path`,{d:`M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M107.275 222.1s2.773-1.11 6.102-3.884`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038`,fill:`#192064`},null),s(`path`,{d:`M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81`,fill:`#FFF`},null),s(`path`,{d:`M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642`,fill:`#192064`},null),s(`path`,{d:`M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268`,fill:`#FFC6A0`},null),s(`path`,{d:`M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456`,fill:`#FFC6A0`},null),s(`path`,{d:`M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z`,fill:`#520038`},null),s(`path`,{d:`M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254`,fill:`#552950`},null),s(`path`,{stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M110.13 74.84l-.896 1.61-.298 4.357h-2.228`},null),s(`path`,{d:`M110.846 74.481s1.79-.716 2.506.537`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M103.287 72.93s1.83 1.113 4.137.954`,stroke:`#5C2552`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639`,stroke:`#DB836E`,"stroke-width":`1.118`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M129.405 122.865s-5.272 7.403-9.422 10.768`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M119.306 107.329s.452 4.366-2.127 32.062`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01`,fill:`#F2D7AD`},null),s(`path`,{d:`M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92`,fill:`#F4D19D`},null),s(`path`,{d:`M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z`,fill:`#F2D7AD`},null),s(`path`,{fill:`#CC9B6E`,d:`M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z`},null),s(`path`,{d:`M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83`,fill:`#F4D19D`},null),s(`path`,{fill:`#CC9B6E`,d:`M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z`},null),s(`path`,{fill:`#CC9B6E`,d:`M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z`},null),s(`path`,{d:`M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238`,fill:`#FFC6A0`},null),s(`path`,{d:`M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754`,stroke:`#DB836E`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647`,fill:`#5BA02E`},null),s(`path`,{d:`M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647`,fill:`#92C110`},null),s(`path`,{d:`M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187`,fill:`#F2D7AD`},null),s(`path`,{d:`M88.979 89.48s7.776 5.384 16.6 2.842`,stroke:`#E4EBF7`,"stroke-width":`1.101`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),pR=()=>s(`svg`,{width:`254`,height:`294`},[s(`defs`,null,[s(`path`,{d:`M0 .335h253.49v253.49H0z`},null),s(`path`,{d:`M0 293.665h253.49V.401H0z`},null)]),s(`g`,{fill:`none`,"fill-rule":`evenodd`},[s(`g`,{transform:`translate(0 .067)`},[s(`mask`,{fill:`#fff`},null),s(`path`,{d:`M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134`,fill:`#E4EBF7`,mask:`url(#b)`},null)]),s(`path`,{d:`M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671`,fill:`#FFF`},null),s(`path`,{d:`M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{d:`M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238`,fill:`#FFF`},null),s(`path`,{d:`M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775`,fill:`#FFF`},null),s(`path`,{d:`M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68`,fill:`#FF603B`},null),s(`path`,{d:`M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733`,fill:`#FFF`},null),s(`path`,{d:`M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487`,fill:`#FFB594`},null),s(`path`,{d:`M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235`,fill:`#FFF`},null),s(`path`,{d:`M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246`,fill:`#FFB594`},null),s(`path`,{d:`M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508`,fill:`#FFC6A0`},null),s(`path`,{d:`M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z`,fill:`#520038`},null),s(`path`,{d:`M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26`,fill:`#552950`},null),s(`path`,{stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M99.206 73.644l-.9 1.62-.3 4.38h-2.24`},null),s(`path`,{d:`M99.926 73.284s1.8-.72 2.52.54`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68`,stroke:`#DB836E`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M92.326 71.724s1.84 1.12 4.16.96`,stroke:`#5C2552`,"stroke-width":`1.117`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954`,stroke:`#DB836E`,"stroke-width":`1.063`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044`,stroke:`#E4EBF7`,"stroke-width":`1.136`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583`,fill:`#FFF`},null),s(`path`,{d:`M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75`,fill:`#FFC6A0`},null),s(`path`,{d:`M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713`,fill:`#FFC6A0`},null),s(`path`,{d:`M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16`,fill:`#FFC6A0`},null),s(`path`,{d:`M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575`,fill:`#FFF`},null),s(`path`,{d:`M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47`,fill:`#CBD1D1`},null),s(`path`,{d:`M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z`,fill:`#2B0849`},null),s(`path`,{d:`M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671`,fill:`#A4AABA`},null),s(`path`,{d:`M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z`,fill:`#CBD1D1`},null),s(`path`,{d:`M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162`,fill:`#2B0849`},null),s(`path`,{d:`M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156`,fill:`#A4AABA`},null),s(`path`,{d:`M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69`,fill:`#7BB2F9`},null),s(`path`,{d:`M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M96.973 219.373s2.882-1.153 6.34-4.034`,stroke:`#648BD8`,"stroke-width":`1.032`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62`,fill:`#192064`},null),s(`path`,{d:`M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843`,fill:`#FFF`},null),s(`path`,{d:`M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668`,fill:`#192064`},null),s(`path`,{d:`M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513`,stroke:`#648BD8`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69`,fill:`#FFC6A0`},null),s(`path`,{d:`M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593`,stroke:`#DB836E`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594`,fill:`#FFC6A0`},null),s(`path`,{d:`M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M109.278 112.533s3.38-3.613 7.575-4.662`,stroke:`#E4EBF7`,"stroke-width":`1.085`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M107.375 123.006s9.697-2.745 11.445-.88`,stroke:`#E59788`,"stroke-width":`.774`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955`,stroke:`#BFCDDD`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01`,fill:`#A3B4C6`},null),s(`path`,{d:`M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813`,fill:`#A3B4C6`},null),s(`mask`,{fill:`#fff`},null),s(`path`,{fill:`#A3B4C6`,mask:`url(#d)`,d:`M154.098 190.096h70.513v-84.617h-70.513z`},null),s(`path`,{d:`M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208`,fill:`#BFCDDD`,mask:`url(#d)`},null),s(`path`,{d:`M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),s(`path`,{d:`M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209`,fill:`#BFCDDD`,mask:`url(#d)`},null),s(`path`,{d:`M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751`,stroke:`#7C90A5`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),s(`path`,{d:`M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802`,fill:`#FFF`,mask:`url(#d)`},null),s(`path`,{d:`M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407`,fill:`#BFCDDD`,mask:`url(#d)`},null),s(`path`,{d:`M177.259 207.217v11.52M201.05 207.217v11.52`,stroke:`#A3B4C6`,"stroke-width":`1.124`,"stroke-linecap":`round`,"stroke-linejoin":`round`,mask:`url(#d)`},null),s(`path`,{d:`M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422`,fill:`#5BA02E`,mask:`url(#d)`},null),s(`path`,{d:`M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423`,fill:`#92C110`,mask:`url(#d)`},null),s(`path`,{d:`M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209`,fill:`#F2D7AD`,mask:`url(#d)`},null)])]),mR=()=>s(`svg`,{width:`251`,height:`294`},[s(`g`,{fill:`none`,"fill-rule":`evenodd`},[s(`path`,{d:`M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023`,fill:`#E4EBF7`},null),s(`path`,{d:`M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65`,fill:`#FFF`},null),s(`path`,{d:`M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{d:`M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126`,fill:`#FFF`},null),s(`path`,{d:`M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873`,fill:`#FFF`},null),s(`path`,{d:`M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{d:`M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375`,fill:`#FFF`},null),s(`path`,{d:`M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z`,stroke:`#FFF`,"stroke-width":`2`},null),s(`path`,{stroke:`#FFF`,"stroke-width":`2`,d:`M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668`},null),s(`path`,{d:`M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321`,fill:`#A26EF4`},null),s(`path`,{d:`M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734`,fill:`#FFF`},null),s(`path`,{d:`M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717`,fill:`#FFF`},null),s(`path`,{d:`M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61`,fill:`#5BA02E`},null),s(`path`,{d:`M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611`,fill:`#92C110`},null),s(`path`,{d:`M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17`,fill:`#F2D7AD`},null),s(`path`,{d:`M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085`,fill:`#FFF`},null),s(`path`,{d:`M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233`,fill:`#FFC6A0`},null),s(`path`,{d:`M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367`,fill:`#FFB594`},null),s(`path`,{d:`M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95`,fill:`#FFC6A0`},null),s(`path`,{d:`M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929`,fill:`#FFF`},null),s(`path`,{d:`M78.18 94.656s.911 7.41-4.914 13.078`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437`,stroke:`#E4EBF7`,"stroke-width":`.932`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z`,fill:`#FFC6A0`},null),s(`path`,{d:`M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91`,fill:`#FFB594`},null),s(`path`,{d:`M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103`,fill:`#5C2552`},null),s(`path`,{d:`M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145`,fill:`#FFC6A0`},null),s(`path`,{stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M100.843 77.099l1.701-.928-1.015-4.324.674-1.406`},null),s(`path`,{d:`M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32`,fill:`#552950`},null),s(`path`,{d:`M91.132 86.786s5.269 4.957 12.679 2.327`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25`,fill:`#DB836E`},null),s(`path`,{d:`M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073`,stroke:`#5C2552`,"stroke-width":`1.526`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254`,stroke:`#DB836E`,"stroke-width":`1.145`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M66.508 86.763s-1.598 8.83-6.697 14.078`,stroke:`#E4EBF7`,"stroke-width":`1.114`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M128.31 87.934s3.013 4.121 4.06 11.785`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M64.09 84.816s-6.03 9.912-13.607 9.903`,stroke:`#DB836E`,"stroke-width":`.795`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73`,fill:`#FFC6A0`},null),s(`path`,{d:`M130.532 85.488s4.588 5.757 11.619 6.214`,stroke:`#DB836E`,"stroke-width":`.75`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M121.708 105.73s-.393 8.564-1.34 13.612`,stroke:`#E4EBF7`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M115.784 161.512s-3.57-1.488-2.678-7.14`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68`,fill:`#CBD1D1`},null),s(`path`,{d:`M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z`,fill:`#2B0849`},null),s(`path`,{d:`M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62`,fill:`#A4AABA`},null),s(`path`,{d:`M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z`,fill:`#CBD1D1`},null),s(`path`,{d:`M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078`,fill:`#2B0849`},null),s(`path`,{d:`M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15`,fill:`#A4AABA`},null),s(`path`,{d:`M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954`,fill:`#7BB2F9`},null),s(`path`,{d:`M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M108.459 220.905s2.759-1.104 6.07-3.863`,stroke:`#648BD8`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null),s(`path`,{d:`M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017`,fill:`#192064`},null),s(`path`,{d:`M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806`,fill:`#FFF`},null),s(`path`,{d:`M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64`,fill:`#192064`},null),s(`path`,{d:`M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956`,stroke:`#648BD8`,"stroke-width":`1.051`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null)])]),hR=e=>{let{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:a,paddingXS:o,paddingLG:s,marginXS:c,lineHeight:l}=e;return{[t]:{padding:`${s*2}px ${a}px`,"&-rtl":{direction:`rtl`}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:`auto`},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:`center`,[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:c,textAlign:`center`},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:l,textAlign:`center`},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${i*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:`center`,"& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},gR=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},_R=e=>[hR(e),gR(e)],vR=e=>_R(e),yR=Le(`Result`,e=>{let{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,a=e.colorInfo,o=e.colorError,s=e.colorSuccess,c=e.colorWarning;return[vR(Fe(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:i,resultInfoIconColor:a,resultErrorIconColor:o,resultSuccessIconColor:s,resultWarningIconColor:c}))]},{imageWidth:250,imageHeight:295}),bR={success:ft,error:yt,info:qt,warning:dR},xR={404:fR,500:pR,403:mR},SR=Object.keys(xR),CR=()=>({prefixCls:String,icon:J.any,status:{type:[Number,String],default:`info`},title:J.any,subTitle:J.any,extra:J.any}),wR=(e,t)=>{let{status:n,icon:r}=t;if(SR.includes(`${n}`)){let t=xR[n];return s(`div`,{class:`${e}-icon ${e}-image`},[s(t,null,null)])}let i=bR[n],a=r||s(i,null,null);return s(`div`,{class:`${e}-icon`},[a])},TR=(e,t)=>t&&s(`div`,{class:`${e}-extra`},[t]),ER=d({compatConfig:{MODE:3},name:`AResult`,inheritAttrs:!1,props:CR(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:o}=K(`result`,e),[c,l]=yR(i),u=a(()=>Z(i.value,l.value,`${i.value}-${e.status}`,{[`${i.value}-rtl`]:o.value===`rtl`}));return()=>{let t=e.title??n.title?.call(n),a=e.subTitle??n.subTitle?.call(n),o=e.icon??n.icon?.call(n),l=e.extra??n.extra?.call(n),d=i.value;return c(s(`div`,X(X({},r),{},{class:[u.value,r.class]}),[wR(d,{status:e.status,icon:o}),s(`div`,{class:`${d}-title`},[t]),a&&s(`div`,{class:`${d}-subtitle`},[a]),TR(d,l),n.default&&s(`div`,{class:`${d}-content`},[n.default()])]))}}});ER.PRESENTED_IMAGE_403=xR[403],ER.PRESENTED_IMAGE_404=xR[404],ER.PRESENTED_IMAGE_500=xR[500],ER.install=function(e){return e.component(ER.name,ER),e};var DR=be(PD),OR=(e,t)=>{let{attrs:n}=t,{included:r,vertical:i,style:a,class:o}=n,{length:c,offset:l,reverse:u}=n;c<0&&(u=!u,c=Math.abs(c),l=100-l);let d=i?{[u?`top`:`bottom`]:`${l}%`,[u?`bottom`:`top`]:`auto`,height:`${c}%`}:{[u?`right`:`left`]:`${l}%`,[u?`left`:`right`]:`auto`,width:`${c}%`},f=G(G({},a),d);return r?s(`div`,{class:o,style:f},null):null};OR.inheritAttrs=!1;var kR=(e,t,n,r,i,a)=>{nt(!n||r>0,`Slider`,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");let o=Object.keys(t).map(parseFloat).sort((e,t)=>e-t);if(n&&r)for(let e=i;e<=a;e+=r)o.indexOf(e)===-1&&o.push(e);return o},AR=(e,t)=>{let{attrs:n}=t,{prefixCls:r,vertical:i,reverse:a,marks:o,dots:c,step:l,included:u,lowerBound:d,upperBound:f,max:p,min:m,dotStyle:h,activeDotStyle:g}=n,_=p-m,v=kR(i,o,c,l,m,p).map(e=>{let t=`${Math.abs(e-m)/_*100}%`,n=!u&&e===f||u&&e<=f&&e>=d,o=i?G(G({},h),{[a?`top`:`bottom`]:t}):G(G({},h),{[a?`right`:`left`]:t});n&&(o=G(G({},o),g));let c=Z({[`${r}-dot`]:!0,[`${r}-dot-active`]:n,[`${r}-dot-reverse`]:a});return s(`span`,{class:c,style:o,key:e},null)});return s(`div`,{class:`${r}-step`},[v])};AR.inheritAttrs=!1;var jR=(e,t)=>{let{attrs:n,slots:r}=t,{class:i,vertical:a,reverse:o,marks:c,included:l,upperBound:u,lowerBound:d,max:f,min:p,onClickLabel:m}=n,h=Object.keys(c),g=r.mark,_=f-p,v=h.map(parseFloat).sort((e,t)=>e-t).map(e=>{let t=typeof c[e]==`function`?c[e]():c[e],n=typeof t==`object`&&!Xe(t),r=n?t.label:t;if(!r&&r!==0)return null;g&&(r=g({point:e,label:r}));let f=!l&&e===u||l&&e<=u&&e>=d,h=Z({[`${i}-text`]:!0,[`${i}-text-active`]:f}),v={marginBottom:`-50%`,[o?`top`:`bottom`]:`${(e-p)/_*100}%`},y={transform:`translateX(${o?`50%`:`-50%`})`,msTransform:`translateX(${o?`50%`:`-50%`})`,[o?`right`:`left`]:`${(e-p)/_*100}%`},b=a?v:y,x=n?G(G({},b),t.style):b;return s(`span`,X({class:h,style:x,key:e,onMousedown:t=>m(t,e)},{[lr?`onTouchstartPassive`:`onTouchstart`]:t=>m(t,e)}),[r])});return s(`div`,{class:i},[v])};jR.inheritAttrs=!1;var MR=d({compatConfig:{MODE:3},name:`Handle`,inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:J.oneOfType([J.number,J.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:r,expose:i}=t,o=M(!1),c=M(),l=()=>{document.activeElement===c.value&&(o.value=!0)},u=e=>{o.value=!1,r(`blur`,e)},d=()=>{o.value=!1},f=()=>{var e;(e=c.value)==null||e.focus()},m=()=>{var e;(e=c.value)==null||e.blur()},h=()=>{o.value=!0,f()},g=e=>{e.preventDefault(),f(),r(`mousedown`,e)};i({focus:f,blur:m,clickFocus:h,ref:c});let _=null;D(()=>{_=Yn(document,`mouseup`,l)}),p(()=>{_?.remove()});let v=a(()=>{let{vertical:t,offset:n,reverse:r}=e;return t?{[r?`top`:`bottom`]:`${n}%`,[r?`bottom`:`top`]:`auto`,transform:r?null:`translateY(+50%)`}:{[r?`right`:`left`]:`${n}%`,[r?`left`:`right`]:`auto`,transform:`translateX(${r?`+`:`-`}50%)`}});return()=>{let{prefixCls:t,disabled:r,min:i,max:a,value:l,tabindex:f,ariaLabel:p,ariaLabelledBy:m,ariaValueTextFormatter:h,onMouseenter:_,onMouseleave:y}=e,b=Z(n.class,{[`${t}-handle-click-focused`]:o.value}),x={"aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":l,"aria-disabled":!!r},S=[n.style,v.value],C=f||0;(r||f===null)&&(C=null);let w;h&&(w=h(l));let T=G(G(G(G({},n),{role:`slider`,tabindex:C}),x),{class:b,onBlur:u,onKeydown:d,onMousedown:g,onMouseenter:_,onMouseleave:y,ref:c,style:S});return s(`div`,X(X({},T),{},{"aria-label":p,"aria-labelledby":m,"aria-valuetext":w}),null)}}});function NR(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function PR(e,t){let{min:n,max:r}=t;return er}function FR(e){return e.touches.length>1||e.type.toLowerCase()===`touchend`&&e.touches.length>0}function IR(e,t){let{marks:n,step:r,min:i,max:a}=t,o=Object.keys(n).map(parseFloat);if(r!==null){let t=10**LR(r),n=Math.floor((a*t-i*t)/(r*t)),s=Math.min((e-i)/r,n),c=Math.round(s)*r+i;o.push(c)}let s=o.map(t=>Math.abs(e-t));return o[s.indexOf(Math.min(...s))]}function LR(e){let t=e.toString(),n=0;return t.indexOf(`.`)>=0&&(n=t.length-t.indexOf(`.`)-1),n}function RR(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function zR(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function BR(e,t){let n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function VR(e,t){let{max:n,min:r}=t;return e<=r?r:e>=n?n:e}function HR(e,t){let{step:n}=t,r=isFinite(IR(e,t))?IR(e,t):0;return n===null?r:parseFloat(r.toFixed(LR(n)))}function UR(e){e.stopPropagation(),e.preventDefault()}function WR(e,t,n){let r={increase:(e,t)=>e+t,decrease:(e,t)=>e-t},i=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[i];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}function GR(e,t,n){let r=`increase`,i=`decrease`,a=r;switch(e.keyCode){case $.UP:a=t&&n?i:r;break;case $.RIGHT:a=!t&&n?i:r;break;case $.DOWN:a=t&&n?r:i;break;case $.LEFT:a=!t&&n?r:i;break;case $.END:return(e,t)=>t.max;case $.HOME:return(e,t)=>t.min;case $.PAGE_UP:return(e,t)=>e+t.step*2;case $.PAGE_DOWN:return(e,t)=>e-t.step*2;default:return}return(e,t)=>WR(a,e,t)}var KR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{this.document=this.sliderRef&&this.sliderRef.ownerDocument;let{autofocus:e,disabled:t}=this;e&&!t&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(e){var{index:t,directives:n,className:r,style:i}=e,a=KR(e,[`index`,`directives`,`className`,`style`]);if(delete a.dragging,a.value===null)return null;let o=G(G({},a),{class:r,style:i,key:t});return s(MR,o,null)},onDown(e,t){let n=t,{draggableTrack:r,vertical:i}=this.$props,{bounds:a}=this.$data,o=r&&this.positionGetValue&&this.positionGetValue(n)||[],s=NR(e,this.handlesRefs);if(this.dragTrack=r&&a.length>=2&&!s&&!o.map((e,t)=>{let n=t?!0:e>=a[t];return t===o.length-1?e<=a[t]:n}).some(e=>!e),this.dragTrack)this.dragOffset=n,this.startBounds=[...a];else{if(!s)this.dragOffset=0;else{let t=BR(i,e.target);this.dragOffset=n-t,n=t}this.onStart(n)}},onMouseDown(e){if(e.button!==0)return;this.removeDocumentEvents();let t=this.$props.vertical,n=RR(t,e);this.onDown(e,n),this.addDocumentMouseEvents()},onTouchStart(e){if(FR(e))return;let t=this.vertical,n=zR(t,e);this.onDown(e,n),this.addDocumentTouchEvents(),UR(e)},onFocus(e){let{vertical:t}=this;if(NR(e,this.handlesRefs)&&!this.dragTrack){let n=BR(t,e.target);this.dragOffset=0,this.onStart(n),UR(e),this.$emit(`focus`,e)}},onBlur(e){this.dragTrack||this.onEnd(),this.$emit(`blur`,e)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(e){if(!this.sliderRef){this.onEnd();return}let t=RR(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(e){if(FR(e)||!this.sliderRef){this.onEnd();return}let t=zR(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(e){this.sliderRef&&NR(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel(e,t){e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},()=>this.onEnd(!0))},getSliderStart(){let e=this.sliderRef,{vertical:t,reverse:n}=this,r=e.getBoundingClientRect();return t?n?r.bottom:r.top:window.scrollX+(n?r.right:r.left)},getSliderLength(){let e=this.sliderRef;if(!e)return 0;let t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents(){this.onTouchMoveListener=Yn(this.document,`touchmove`,this.onTouchMove),this.onTouchUpListener=Yn(this.document,`touchend`,this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Yn(this.document,`mousemove`,this.onMouseMove),this.onMouseUpListener=Yn(this.document,`mouseup`,this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var e;this.$props.disabled||(e=this.handlesRefs[0])==null||e.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(e=>{var t,n;(n=(t=this.handlesRefs[e])?.blur)==null||n.call(t)})},calcValue(e){let{vertical:t,min:n,max:r}=this,i=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-i)*(r-n)+n:i*(r-n)+n},calcValueByPos(e){let t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset(e){let{min:t,max:n}=this,r=(e-t)/(n-t);return Math.max(0,r*100)},saveSlider(e){this.sliderRef=e},saveHandle(e,t){this.handlesRefs[e]=t}},render(){let{prefixCls:e,marks:t,dots:n,step:r,included:i,disabled:a,vertical:o,reverse:c,min:l,max:u,maximumTrackStyle:d,railStyle:f,dotStyle:p,activeDotStyle:m,id:h}=this,{class:g,style:_}=this.$attrs,{tracks:v,handles:y}=this.renderSlider(),b=Z(e,g,{[`${e}-with-marks`]:Object.keys(t).length,[`${e}-disabled`]:a,[`${e}-vertical`]:o,[`${e}-horizontal`]:!o}),x={vertical:o,marks:t,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:u,min:l,reverse:c,class:`${e}-mark`,onClickLabel:a?qR:this.onClickMarkLabel},S={[lr?`onTouchstartPassive`:`onTouchstart`]:a?qR:this.onTouchStart};return s(`div`,X(X({id:h,ref:this.saveSlider,tabindex:`-1`,class:b},S),{},{onMousedown:a?qR:this.onMouseDown,onMouseup:a?qR:this.onMouseUp,onKeydown:a?qR:this.onKeyDown,onFocus:a?qR:this.onFocus,onBlur:a?qR:this.onBlur,style:_}),[s(`div`,{class:`${e}-rail`,style:G(G({},d),f)},null),v,s(AR,{prefixCls:e,vertical:o,reverse:c,marks:t,dots:n,step:r,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:u,min:l,dotStyle:p,activeDotStyle:m},null),y,s(jR,x,{mark:this.$slots.mark}),Oe(this)])}})}var YR=JR(d({compatConfig:{MODE:3},name:`Slider`,mixins:[$c],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:J.oneOfType([J.number,J.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:[`beforeChange`,`afterChange`,`change`],data(){let e=this.defaultValue===void 0?this.min:this.defaultValue,t=this.value===void 0?e:this.value;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){let{sValue:e}=this;this.setChangeValue(e)},max(){let{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){let t=e===void 0?this.sValue:e,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),PR(t,this.$props)&&this.$emit(`change`,n))},onChange(e){let t=!Ke(this,`value`),n=e.sValue>this.max?G(G({},e),{sValue:this.max}):e;t&&this.setState(n);let r=n.sValue;this.$emit(`change`,r)},onStart(e){this.setState({dragging:!0});let{sValue:t}=this;this.$emit(`beforeChange`,t);let n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){let{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit(`afterChange`,this.sValue),this.setState({dragging:!1})},onMove(e,t){UR(e);let{sValue:n}=this,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard(e){let{reverse:t,vertical:n}=this.$props,r=GR(e,n,t);if(r){UR(e);let{sValue:t}=this,n=r(t,this.$props),i=this.trimAlignValue(n);if(i===t)return;this.onChange({sValue:i}),this.$emit(`afterChange`,i),this.onEnd()}},getLowerBound(){let e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;let n=G(G({},this.$props),t);return HR(VR(e,n),n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:r,included:i,minimumTrackStyle:a,mergedTrackStyle:o,length:c,offset:l}=e;return s(OR,{class:`${t}-track`,vertical:r,included:i,offset:l,reverse:n,length:c,style:G(G({},a),o)},null)},renderSlider(){let{prefixCls:e,vertical:t,included:n,disabled:r,minimumTrackStyle:i,trackStyle:a,handleStyle:o,tabindex:s,ariaLabelForHandle:c,ariaLabelledByForHandle:l,ariaValueTextFormatterForHandle:u,min:d,max:f,startPoint:p,reverse:m,handle:h,defaultHandle:g}=this,_=h||g,{sValue:v,dragging:y}=this,b=this.calcOffset(v),x=_({class:`${e}-handle`,prefixCls:e,vertical:t,offset:b,value:v,dragging:y,disabled:r,min:d,max:f,reverse:m,index:0,tabindex:s,ariaLabel:c,ariaLabelledBy:l,ariaValueTextFormatter:u,style:o[0]||o,ref:e=>this.saveHandle(0,e),onFocus:this.onFocus,onBlur:this.onBlur}),S=p===void 0?0:this.calcOffset(p),C=a[0]||a;return{tracks:this.getTrack({prefixCls:e,reverse:m,vertical:t,included:n,offset:S,minimumTrackStyle:i,mergedTrackStyle:C,length:b-S}),handles:x}}}})),XR=e=>{let{value:t,handle:n,bounds:r,props:i}=e,{allowCross:a,pushable:o}=i,s=Number(o),c=VR(t,i),l=c;return!a&&n!=null&&r!==void 0&&(n>0&&c<=r[n-1]+s&&(l=r[n-1]+s),n=r[n+1]-s&&(l=r[n+1]-s)),HR(l,i)},ZR={defaultValue:J.arrayOf(J.number),value:J.arrayOf(J.number),count:Number,pushable:ye(J.oneOfType([J.looseBool,J.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:J.arrayOf(J.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},QR=JR(d({compatConfig:{MODE:3},name:`Range`,mixins:[$c],inheritAttrs:!1,props:Vn(ZR,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:[`beforeChange`,`afterChange`,`change`],displayName:`Range`,data(){let{count:e,min:t,max:n}=this,r=Array(...Array(e+1)).map(()=>t),i=Ke(this,`defaultValue`)?this.defaultValue:r,{value:a}=this;a===void 0&&(a=i);let o=a.map((e,t)=>XR({value:e,handle:t,props:this.$props}));return{sHandle:null,recent:o[0]===n?0:o.length-1,bounds:o}},watch:{value:{handler(e){let{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){let{value:e}=this;this.setChangeValue(e||this.bounds)},max(){let{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){let{bounds:t}=this,n=e.map((e,n)=>XR({value:e,handle:n,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((e,n)=>e===t[n]))return null}else n=e.map((e,t)=>XR({value:e,handle:t,props:this.$props}));if(this.setState({bounds:n}),e.some(e=>PR(e,this.$props))){let t=e.map(e=>VR(e,this.$props));this.$emit(`change`,t)}},onChange(e){if(!Ke(this,`value`))this.setState(e);else{let t={};[`sHandle`,`recent`].forEach(n=>{e[n]!==void 0&&(t[n]=e[n])}),Object.keys(t).length&&this.setState(t)}let t=G(G({},this.$data),e).bounds;this.$emit(`change`,t)},positionGetValue(e){let t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),i=this.getBoundNeedMoving(n,r);if(n===t[i])return null;let a=[...t];return a[i]=n,a},onStart(e){let{bounds:t}=this;this.$emit(`beforeChange`,t);let n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;let r=this.getClosestBound(n);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),n===t[this.prevMovedHandleIndex])return;let i=[...t];i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})},onEnd(e){let{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit(`afterChange`,this.bounds),this.setState({sHandle:null})},onMove(e,t,n,r){UR(e);let{$data:i,$props:a}=this,o=a.max||100,s=a.min||0;if(n){let e=a.vertical?-t:t;e=a.reverse?-e:e;let n=o-Math.max(...r),c=s-Math.min(...r),l=Math.min(Math.max(e/(this.getSliderLength()/100),c),n),u=r.map(e=>Math.floor(Math.max(Math.min(e+l,o),s)));i.bounds.map((e,t)=>e===u[t]).some(e=>!e)&&this.onChange({bounds:u});return}let{bounds:c,sHandle:l}=this,u=this.calcValueByPos(t);u!==c[l]&&this.moveTo(u)},onKeyboard(e){let{reverse:t,vertical:n}=this.$props,r=GR(e,n,t);if(r){UR(e);let{bounds:t,sHandle:n}=this,i=t[n===null?this.recent:n],a=XR({value:r(i,this.$props),handle:n,bounds:t,props:this.$props});if(a===i)return;this.moveTo(a,!0)}},getClosestBound(e){let{bounds:t}=this,n=0;for(let r=1;r=t[r]&&(n=r);return Math.abs(t[n+1]-e)e-t),this.internalPointsCache={marks:e,step:t,points:a}}return this.internalPointsCache.points},moveTo(e,t){let n=[...this.bounds],{sHandle:r,recent:i}=this,a=r===null?i:r;n[a]=e;let o=a;this.$props.pushable===!1?this.$props.allowCross&&(n.sort((e,t)=>e-t),o=n.indexOf(e)):this.pushSurroundingHandles(n,o),this.onChange({recent:o,sHandle:o,bounds:n}),t&&(this.$emit(`afterChange`,n),this.setState({},()=>{this.handlesRefs[o].focus()}),this.onEnd())},pushSurroundingHandles(e,t){let n=e[t],{pushable:r}=this,i=Number(r),a=0;if(e[t+1]-n=r.length||i<0)return!1;let a=t+n,o=r[i],{pushable:s}=this,c=Number(s),l=n*(e[a]-o);return this.pushHandle(e,a,n,c-l)?(e[t]=o,!0):!1},trimAlignValue(e){let{sHandle:t,bounds:n}=this;return XR({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:r,pushable:i}=n,a=this.$data||{},{bounds:o}=a;if(e=e===void 0?a.sHandle:e,i=Number(i),!r&&e!=null&&o!==void 0){if(e>0&&t<=o[e-1]+i)return o[e-1]+i;if(e=o[e+1]-i)return o[e+1]-i}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:r,vertical:i,included:a,offsets:o,trackStyle:c}=e;return t.slice(0,-1).map((e,t)=>{let l=t+1,u=Z({[`${n}-track`]:!0,[`${n}-track-${l}`]:!0});return s(OR,{class:u,vertical:i,reverse:r,included:a,offset:o[l-1],length:o[l]-o[l-1],style:c[t],key:l},null)})},renderSlider(){let{sHandle:e,bounds:t,prefixCls:n,vertical:r,included:i,disabled:a,min:o,max:s,reverse:c,handle:l,defaultHandle:u,trackStyle:d,handleStyle:f,tabindex:p,ariaLabelGroupForHandles:m,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:g}=this,_=l||u,v=t.map(e=>this.calcOffset(e)),y=`${n}-handle`,b=t.map((t,i)=>{let l=p[i]||0;(a||p[i]===null)&&(l=null);let u=e===i;return _({class:Z({[y]:!0,[`${y}-${i+1}`]:!0,[`${y}-dragging`]:u}),prefixCls:n,vertical:r,dragging:u,offset:v[i],value:t,index:i,tabindex:l,min:o,max:s,reverse:c,disabled:a,style:f[i],ref:e=>this.saveHandle(i,e),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:m[i],ariaLabelledBy:h[i],ariaValueTextFormatter:g[i]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:c,vertical:r,included:i,offsets:v,trackStyle:d}),handles:b}}}})),$R=d({compatConfig:{MODE:3},name:`SliderTooltip`,inheritAttrs:!1,props:d_(),setup(e,t){let{attrs:n,slots:r}=t,i=W(null),a=W(null);function o(){Rn.cancel(a.value),a.value=null}function c(){a.value=Rn(()=>{var e;(e=i.value)==null||e.forcePopupAlign(),a.value=null})}let l=()=>{o(),e.open&&c()};return H([()=>e.open,()=>e.title],()=>{l()},{flush:`post`,immediate:!0}),w(()=>{l()}),p(()=>{o()}),()=>s(m_,X(X({ref:i},e),n),r)}}),ez=e=>{let{componentCls:t,controlSize:n,dotSize:r,marginFull:i,marginPart:a,colorFillContentHover:o}=e;return{[t]:G(G({},Ne(e)),{position:`relative`,height:n,margin:`${a}px ${i}px`,padding:0,cursor:`pointer`,touchAction:`none`,"&-vertical":{margin:`${i}px ${a}px`},[`${t}-rail`]:{position:`absolute`,backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:`absolute`,backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:o},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:`absolute`,width:e.handleSize,height:e.handleSize,outline:`none`,[`${t}-dragging`]:{zIndex:1},"&::before":{content:`""`,position:`absolute`,insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:`transparent`},"&::after":{content:`""`,position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:`50%`,cursor:`pointer`,transition:` + inset-inline-start ${e.motionDurationMid}, + inset-block-start ${e.motionDurationMid}, + width ${e.motionDurationMid}, + height ${e.motionDurationMid}, + box-shadow ${e.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:`absolute`,fontSize:e.fontSize},[`${t}-mark-text`]:{position:`absolute`,display:`inline-block`,color:e.colorTextDescription,textAlign:`center`,wordBreak:`keep-all`,cursor:`pointer`,userSelect:`none`,"&-active":{color:e.colorText}},[`${t}-step`]:{position:`absolute`,background:`transparent`,pointerEvents:`none`},[`${t}-dot`]:{position:`absolute`,width:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:`50%`,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` + ${t}-dot + `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:`not-allowed`,width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new me(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:`not-allowed !important`}}})}},tz=(e,t)=>{let{componentCls:n,railSize:r,handleSize:i,dotSize:a}=e,o=t?`paddingBlock`:`paddingInline`,s=t?`width`:`height`,c=t?`height`:`width`,l=t?`insetBlockStart`:`insetInlineStart`,u=t?`top`:`insetInlineStart`;return{[o]:r,[c]:r*3,[`${n}-rail`]:{[s]:`100%`,[c]:r},[`${n}-track`]:{[c]:r},[`${n}-handle`]:{[l]:(r*3-i)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:i,[s]:`100%`},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:r,[s]:`100%`,[c]:r},[`${n}-dot`]:{position:`absolute`,[l]:(r-a)/2}}},nz=e=>{let{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:G(G({},tz(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},rz=e=>{let{componentCls:t}=e;return{[`${t}-vertical`]:G(G({},tz(e,!1)),{height:`100%`})}},iz=Le(`Slider`,e=>{let t=Fe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[ez(t),nz(t),rz(t)]},e=>{let t=e.controlHeightLG/4;return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:e.controlHeightSM/2,dotSize:8,handleLineWidth:e.lineWidth+1,handleLineWidthHover:e.lineWidth+3}}),az=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof e==`number`?e.toString():``,sz=d({compatConfig:{MODE:3},name:`ASlider`,inheritAttrs:!1,props:{id:String,prefixCls:String,tooltipPrefixCls:String,range:$t([Boolean,Object]),reverse:Y(),min:Number,max:Number,step:$t([Object,Number]),marks:ut(),dots:Y(),value:$t([Array,Number]),defaultValue:$t([Array,Number]),included:Y(),disabled:Y(),vertical:Y(),tipFormatter:$t([Function,Object],()=>oz),tooltipOpen:Y(),tooltipVisible:Y(),tooltipPlacement:q(),getTooltipPopupContainer:Q(),autofocus:Y(),handleStyle:$t([Array,Object]),trackStyle:$t([Array,Object]),onChange:Q(),onAfterChange:Q(),onFocus:Q(),onBlur:Q(),"onUpdate:value":Q()},slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i,expose:o}=t,{prefixCls:c,rootPrefixCls:l,direction:u,getPopupContainer:d,configProvider:f}=K(`slider`,e),[p,m]=iz(c),h=sd(),g=W(),_=W({}),v=(e,t)=>{_.value[e]=t},y=a(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?u.value===`rtl`?`left`:`right`:`top`),b=()=>{var e;(e=g.value)==null||e.focus()},x=()=>{var e;(e=g.value)==null||e.blur()},S=e=>{i(`update:value`,e),i(`change`,e),h.onFieldChange()},C=e=>{i(`blur`,e)};o({focus:b,blur:x});let w=t=>{var{tooltipPrefixCls:n}=t,r=t.info,{value:i,dragging:a,index:o}=r,u=az(r,[`value`,`dragging`,`index`]);let{tipFormatter:f,tooltipOpen:p=e.tooltipVisible,getTooltipPopupContainer:m}=e,h=f?_.value[o]||a:!1,g=p||p===void 0&&h;return s($R,{prefixCls:n,title:f?f(i):``,open:g,placement:y.value,transitionName:`${l.value}-zoom-down`,key:o,overlayClassName:`${c.value}-tooltip`,getPopupContainer:m||d?.value},{default:()=>[s(MR,X(X({},u),{},{value:i,onMouseenter:()=>v(o,!0),onMouseleave:()=>v(o,!1)}),null)]})};return()=>{let{tooltipPrefixCls:t,range:i,id:a=h.id.value}=e,o=az(e,[`tooltipPrefixCls`,`range`,`id`]),l=f.getPrefixCls(`tooltip`,t),d=Z(n.class,{[`${c.value}-rtl`]:u.value===`rtl`},m.value);u.value===`rtl`&&!o.vertical&&(o.reverse=!o.reverse);let _;return typeof i==`object`&&(_=i.draggableTrack),p(i?s(QR,X(X(X({},n),o),{},{step:o.step,draggableTrack:_,class:d,ref:g,handle:e=>w({tooltipPrefixCls:l,prefixCls:c.value,info:e}),prefixCls:c.value,onChange:S,onBlur:C}),{mark:r.mark}):s(YR,X(X(X({},n),o),{},{id:a,step:o.step,class:d,ref:g,handle:e=>w({tooltipPrefixCls:l,prefixCls:c.value,info:e}),prefixCls:c.value,onChange:S,onBlur:C}),{mark:r.mark}))}}}),cz=be(sz);function lz(e){return typeof e==`string`}function uz(){}var dz=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:q(),iconPrefix:String,icon:J.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:J.any,title:J.any,subTitle:J.any,progressDot:ye(J.oneOfType([J.looseBool,J.func])),tailContent:J.any,icons:J.shape({finish:J.any,error:J.any}).loose,onClick:Q(),onStepClick:Q(),stepIcon:Q(),itemRender:Q(),__legacy:Y()}),fz=d({compatConfig:{MODE:3},name:`Step`,inheritAttrs:!1,props:dz(),setup(e,t){let{slots:n,emit:r,attrs:i}=t,a=t=>{r(`click`,t),r(`stepClick`,e.stepIndex)},o=t=>{let{icon:r,title:i,description:a}=t,{prefixCls:o,stepNumber:c,status:l,iconPrefix:u,icons:d,progressDot:f=n.progressDot,stepIcon:p=n.stepIcon}=e,m,h=Z(`${o}-icon`,`${u}icon`,{[`${u}icon-${r}`]:r&&lz(r),[`${u}icon-check`]:!r&&l===`finish`&&(d&&!d.finish||!d),[`${u}icon-cross`]:!r&&l===`error`&&(d&&!d.error||!d)}),g=s(`span`,{class:`${o}-icon-dot`},null);return m=f?typeof f==`function`?s(`span`,{class:`${o}-icon`},[f({iconDot:g,index:c-1,status:l,title:i,description:a,prefixCls:o})]):s(`span`,{class:`${o}-icon`},[g]):r&&!lz(r)?s(`span`,{class:`${o}-icon`},[r]):d&&d.finish&&l===`finish`?s(`span`,{class:`${o}-icon`},[d.finish]):d&&d.error&&l===`error`?s(`span`,{class:`${o}-icon`},[d.error]):r||l===`finish`||l===`error`?s(`span`,{class:h},null):s(`span`,{class:`${o}-icon`},[c]),p&&(m=p({index:c-1,status:l,title:i,description:a,node:m})),m};return()=>{let{prefixCls:t,itemWidth:r,active:c,status:l=`wait`,tailContent:u,adjustMarginRight:d,disabled:f,title:p=n.title?.call(n),description:m=n.description?.call(n),subTitle:h=n.subTitle?.call(n),icon:g=n.icon?.call(n),onClick:_,onStepClick:v}=e,y=l||`wait`,b=Z(`${t}-item`,`${t}-item-${y}`,{[`${t}-item-custom`]:g,[`${t}-item-active`]:c,[`${t}-item-disabled`]:f===!0}),x={};r&&(x.width=r),d&&(x.marginRight=d);let S={onClick:_||uz};v&&!f&&(S.role=`button`,S.tabindex=0,S.onClick=a);let C=s(`div`,X(X({},Gn(i,[`__legacy`])),{},{class:[b,i.class],style:[i.style,x]}),[s(`div`,X(X({},S),{},{class:`${t}-item-container`}),[s(`div`,{class:`${t}-item-tail`},[u]),s(`div`,{class:`${t}-item-icon`},[o({icon:g,title:p,description:m})]),s(`div`,{class:`${t}-item-content`},[s(`div`,{class:`${t}-item-title`},[p,h&&s(`div`,{title:typeof h==`string`?h:void 0,class:`${t}-item-subtitle`},[h])]),m&&s(`div`,{class:`${t}-item-description`},[m])])])]);return e.itemRender?e.itemRender(C):C}}}),pz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i[]),icons:J.shape({finish:J.any,error:J.any}).loose,stepIcon:Q(),isInline:J.looseBool,itemRender:Q()},emits:[`change`],setup(e,t){let{slots:n,emit:r}=t,i=t=>{let{current:n}=e;n!==t&&r(`change`,t)},a=(t,r,a)=>{let{prefixCls:o,iconPrefix:c,status:l,current:u,initial:d,icons:f,stepIcon:p=n.stepIcon,isInline:m,itemRender:h,progressDot:g=n.progressDot}=e,_=m||g,v=G(G({},t),{class:``}),y=d+r,b={active:y===u,stepNumber:y+1,stepIndex:y,key:y,prefixCls:o,iconPrefix:c,progressDot:_,stepIcon:p,icons:f,onStepClick:i};return l===`error`&&r===u-1&&(v.class=`${o}-next-error`),v.status||=y===u?l:yh(v,e)),s(fz,X(X(X({},v),b),{},{__legacy:!1}),null))},o=(e,t)=>a(G({},e.props),t,t=>on(e,t));return()=>{let{prefixCls:t,direction:r,type:i,labelPlacement:c,iconPrefix:l,status:u,size:d,current:f,progressDot:p=n.progressDot,initial:m,icons:h,items:g,isInline:_,itemRender:v}=e,y=pz(e,[`prefixCls`,`direction`,`type`,`labelPlacement`,`iconPrefix`,`status`,`size`,`current`,`progressDot`,`initial`,`icons`,`items`,`isInline`,`itemRender`]),b=i===`navigation`,x=_||p,S=_?`horizontal`:r,C=_?void 0:d,w=x?`vertical`:c,T=Z(t,`${t}-${r}`,{[`${t}-${C}`]:C,[`${t}-label-${w}`]:S===`horizontal`,[`${t}-dot`]:!!x,[`${t}-navigation`]:b,[`${t}-inline`]:_});return s(`div`,X({class:T},y),[g.filter(e=>e).map((e,t)=>a(e,t)),ve(n.default?.call(n)).map(o)])}}}),hz=e=>{let{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:r,stepsIconCustomFontSize:i}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:`auto`,background:`none`,border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:i,lineHeight:`${r}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:`auto`,background:`none`}}}}},gz=e=>{let{componentCls:t,stepsIconSize:n,lineHeight:r,stepsSmallIconSize:i}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:`visible`,"&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:`block`,width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:`center`},"&-icon":{display:`inline-block`,marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:`none`}},"&-subtitle":{display:`block`,marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-i)/2}}}}}},_z=e=>{let{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:r,stepsNavActiveColor:i,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:`visible`,textAlign:`center`,"&-container":{display:`inline-block`,height:`100%`,marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:`start`,transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:G(G({maxWidth:`100%`,paddingInlineEnd:0},tn),{"&::after":{display:`none`}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:`pointer`,"&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:`none`}},"&::after":{position:`absolute`,top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:`100%`,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,borderBottom:`none`,borderInlineStart:`none`,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:`translateY(-50%) translateX(-50%) rotate(45deg)`,content:`""`},"&::before":{position:`absolute`,bottom:0,insetInlineStart:`50%`,display:`inline-block`,width:0,height:e.lineWidthBold,backgroundColor:i,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:`ease-out`,content:`""`}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:`100%`}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:`none`},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:`unset`,display:`block`,width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:`relative`,insetInlineStart:`50%`,display:`block`,width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:`center`,transform:`translateY(-50%) translateX(-50%) rotate(135deg)`},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:`hidden`}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:`hidden`}}}},vz=e=>{let{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:`relative`,[`${t}-progress`]:{position:`absolute`,insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},yz=e=>{let{componentCls:t,descriptionWidth:n,lineHeight:r,stepsCurrentDotSize:i,stepsDotSize:a,motionDurationSlow:o}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:`100%`,marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:(e.descriptionWidth-a)/2,paddingInlineEnd:0,lineHeight:`${a}px`,background:`transparent`,border:0,[`${t}-icon-dot`]:{position:`relative`,float:`left`,width:`100%`,height:`100%`,borderRadius:100,transition:`all ${o}`,"&::after":{position:`absolute`,top:-e.marginSM,insetInlineStart:(a-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:`transparent`,content:`""`}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:`relative`,top:(a-i)/2,width:i,height:i,lineHeight:`${i}px`,background:`none`,marginInlineStart:(e.descriptionWidth-i)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-a)/2,marginInlineStart:0,background:`none`},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,top:0,insetInlineStart:(a-i)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-a)/2,insetInlineStart:0,margin:0,padding:`${a+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(a-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-a)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-a)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:`inherit`}}}},bz=e=>{let{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:`rtl`,[`${t}-item`]:{"&-subtitle":{float:`left`}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:`rotate(-45deg)`}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:`rotate(225deg)`},[`${t}-item-icon`]:{float:`right`}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:`right`}}}}},xz=e=>{let{componentCls:t,stepsSmallIconSize:n,fontSizeSM:r,fontSize:i,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:r,lineHeight:`${n}px`,textAlign:`center`,borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:i,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:a,fontSize:i},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:`inherit`,height:`inherit`,lineHeight:`inherit`,background:`none`,border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:`none`}}}}},Sz=e=>{let{componentCls:t,stepsSmallIconSize:n,stepsIconSize:r}=e;return{[`&${t}-vertical`]:{display:`flex`,flexDirection:`column`,[`> ${t}-item`]:{display:`block`,flex:`1 0 auto`,paddingInlineStart:0,overflow:`visible`,[`${t}-item-icon`]:{float:`left`,marginInlineEnd:e.margin},[`${t}-item-content`]:{display:`block`,minHeight:e.controlHeight*1.5,overflow:`hidden`},[`${t}-item-title`]:{lineHeight:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:`absolute`,top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:`100%`,padding:`${r+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:`100%`}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:`block`},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:`none`}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:`absolute`,top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Cz=e=>{let{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:i}=e,a=e.paddingXS+e.lineWidth,o={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:`auto`,display:`inline-flex`,[`${t}-item`]:{flex:`none`,"&-container":{padding:`${a}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:`pointer`,transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:`auto`,marginTop:e.marginXS-e.lineWidth},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:`normal`,marginBottom:e.marginXXS/2},"&-description":{display:`none`},"&-tail":{marginInlineStart:0,top:a+n/2,transform:`translateY(-50%)`,"&:after":{width:`100%`,height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},[`&:first-child ${t}-item-tail`]:{width:`50%`,marginInlineStart:`50%`},[`&:last-child ${t}-item-tail`]:{display:`block`,width:`50%`},"&-wait":G({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${i}`}},o),"&-finish":G({[`${t}-item-tail::after`]:{backgroundColor:i},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:i,border:`${e.lineWidth}px ${e.lineType} ${i}`}},o),"&-error":o,"&-active, &-process":G({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},wz;(function(e){e.wait=`wait`,e.process=`process`,e.finish=`finish`,e.error=`error`})(wz||={});var Tz=(e,t)=>{let n=`${t.componentCls}-item`,r=`${e}IconColor`,i=`${e}TitleColor`,a=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,c=`${e}IconBorderColor`,l=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[l]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[i],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},Ez=e=>{let{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`;return G(G(G(G(G(G({[r]:{position:`relative`,display:`inline-block`,flex:1,overflow:`hidden`,verticalAlign:`top`,"&:last-child":{flex:`none`,[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:`none`}}},[`${r}-container`]:{outline:`none`},[`${r}-icon, ${r}-content`]:{display:`inline-block`,verticalAlign:`top`},[`${r}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:`center`,borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:`relative`,top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:`absolute`,top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:`100%`,"&::after":{display:`inline-block`,width:`100%`,height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:`""`}},[`${r}-title`]:{position:`relative`,display:`inline-block`,paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:`absolute`,top:e.stepsTitleLineHeight/2,insetInlineStart:`100%`,display:`block`,width:9999,height:e.lineWidth,background:e.processTailColor,content:`""`}},[`${r}-subtitle`]:{display:`inline`,marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:`normal`,fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Tz(wz.wait,e)),Tz(wz.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),Tz(wz.finish,e)),Tz(wz.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:`not-allowed`}})},Dz=e=>{let{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:`pointer`,[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:`nowrap`,"&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:`none`},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:`normal`}}}}},Oz=e=>{let{componentCls:t}=e;return{[t]:G(G(G(G(G(G(G(G(G(G(G(G(G({},Ne(e)),{display:`flex`,width:`100%`,fontSize:0,textAlign:`initial`}),Ez(e)),Dz(e)),hz(e)),xz(e)),Sz(e)),gz(e)),yz(e)),_z(e)),bz(e)),vz(e)),Cz(e))}},kz=Le(`Steps`,e=>{let{wireframe:t,colorTextDisabled:n,fontSizeHeading3:r,fontSize:i,controlHeight:a,controlHeightLG:o,colorTextLightSolid:s,colorText:c,colorPrimary:l,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:p,controlItemBgActive:m,colorError:h,colorBgContainer:g,colorBorderSecondary:_}=e,v=e.controlHeight,y=e.colorSplit;return[Oz(Fe(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:v,stepsIconCustomSize:v,stepsIconCustomTop:0,stepsIconCustomFontSize:o/2,stepsIconTop:-.5,stepsIconFontSize:i,stepsTitleLineHeight:a,stepsSmallIconSize:r,stepsDotSize:a/4,stepsCurrentDotSize:o/4,stepsNavContentMaxWidth:`auto`,processIconColor:s,processTitleColor:c,processDescriptionColor:c,processIconBgColor:l,processIconBorderColor:l,processDotColor:l,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?g:p,waitIconBorderColor:t?n:`transparent`,waitDotColor:n,finishIconColor:l,finishTitleColor:c,finishDescriptionColor:d,finishTailColor:l,finishIconBgColor:t?g:m,finishIconBorderColor:t?l:m,finishDotColor:l,errorIconColor:s,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:y,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:l,stepsProgressSize:o,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:_}))]},{descriptionWidth:140}),Az=d({compatConfig:{MODE:3},name:`ASteps`,inheritAttrs:!1,props:Vn({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Y(),items:vt(),labelPlacement:q(),status:q(),size:q(),direction:q(),progressDot:$t([Boolean,Function]),type:q(),onChange:Q(),"onUpdate:current":Q()},{current:0,responsive:!0,labelPlacement:`horizontal`}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i}=t,{prefixCls:o,direction:c,configProvider:l}=K(`steps`,e),[u,d]=kz(o),[,f]=Ct(),p=Ag(),m=a(()=>e.responsive&&p.value.xs?`vertical`:e.direction),h=a(()=>l.getPrefixCls(``,e.iconPrefix)),g=e=>{i(`update:current`,e),i(`change`,e)},_=a(()=>e.type===`inline`),v=a(()=>_.value?void 0:e.percent),y=t=>{let{node:n,status:r}=t;if(r===`process`&&e.percent!==void 0){let t=e.size===`small`?f.value.controlHeight:f.value.controlHeightLG;return s(`div`,{class:`${o.value}-progress-icon`},[s(KL,{type:`circle`,percent:v.value,size:t,strokeWidth:4,format:()=>null},null),n])}return n},b=a(()=>({finish:s(ed,{class:`${o.value}-finish-icon`},null),error:s(_t,{class:`${o.value}-error-icon`},null)}));return()=>{let t=Z({[`${o.value}-rtl`]:c.value===`rtl`,[`${o.value}-with-progress`]:v.value!==void 0},n.class,d.value);return u(s(mz,X(X(X({icons:b.value},n),Gn(e,[`percent`,`responsive`])),{},{items:e.items,direction:m.value,prefixCls:o.value,iconPrefix:h.value,class:t,onChange:g,isInline:_.value,itemRender:_.value?(e,t)=>e.description?s(m_,{title:e.description},{default:()=>[t]}):t:void 0}),G({stepIcon:y},r)))}}}),jz=d(G(G({compatConfig:{MODE:3}},fz),{name:`AStep`,props:dz()})),Mz=G(Az,{Step:jz,install:e=>(e.component(Az.name,Az),e.component(jz.name,jz),e)}),Nz=e=>{let{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Pz=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Fz=e=>{let{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:`absolute`,top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:`""`}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Iz=e=>{let{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:`none`},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},Lz=e=>{let{componentCls:t}=e;return{[t]:G(G(G(G({},Ne(e)),{position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),De(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}})}},Rz=Le(`Switch`,e=>{let t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=t-4,i=n-4,a=Fe(e,{switchMinWidth:r*2+8,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+2+4,switchPadding:2,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+4,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+2+4,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new me(`#00230b`).setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[Lz(a),Iz(a),Fz(a),Pz(a),Nz(a)]}),zz=_e(`small`,`default`),Bz=d({compatConfig:{MODE:3},name:`ASwitch`,__ANT_SWITCH:!0,inheritAttrs:!1,props:{id:String,prefixCls:String,size:J.oneOf(zz),disabled:{type:Boolean,default:void 0},checkedChildren:J.any,unCheckedChildren:J.any,tabindex:J.oneOfType([J.string,J.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:J.oneOfType([J.string,J.number,J.looseBool]),checkedValue:J.oneOfType([J.string,J.number,J.looseBool]).def(!0),unCheckedValue:J.oneOfType([J.string,J.number,J.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function},slots:Object,setup(e,t){let{attrs:n,slots:r,expose:i,emit:o}=t,l=sd(),u=pt(),d=a(()=>e.disabled??u.value);c(()=>{nt(!(`defaultChecked`in n),`Switch`,`'defaultChecked' is deprecated, please use 'v-model:checked'`),nt(!(`value`in n),`Switch`,"`value` is not validate prop, do you mean `checked`?")});let f=W(e.checked===void 0?n.defaultChecked:e.checked),p=a(()=>f.value===e.checkedValue);H(()=>e.checked,()=>{f.value=e.checked});let{prefixCls:m,direction:h,size:g}=K(`switch`,e),[_,v]=Rz(m),y=W(),b=()=>{var e;(e=y.value)==null||e.focus()};i({focus:b,blur:()=>{var e;(e=y.value)==null||e.blur()}}),D(()=>{x(()=>{e.autofocus&&!d.value&&y.value.focus()})});let S=(e,t)=>{d.value||(o(`update:checked`,e),o(`change`,e,t),l.onFieldChange())},C=e=>{o(`blur`,e)},w=t=>{b();let n=p.value?e.unCheckedValue:e.checkedValue;S(n,t),o(`click`,n,t)},T=t=>{t.keyCode===$.LEFT?S(e.unCheckedValue,t):t.keyCode===$.RIGHT&&S(e.checkedValue,t),o(`keydown`,t)},E=e=>{var t;(t=y.value)==null||t.blur(),o(`mouseup`,e)},O=a(()=>({[`${m.value}-small`]:g.value===`small`,[`${m.value}-loading`]:e.loading,[`${m.value}-checked`]:p.value,[`${m.value}-disabled`]:d.value,[m.value]:!0,[`${m.value}-rtl`]:h.value===`rtl`,[v.value]:!0}));return()=>_(s(Un,null,{default:()=>[s(`button`,X(X(X({},Gn(e,[`prefixCls`,`checkedChildren`,`unCheckedChildren`,`checked`,`autofocus`,`checkedValue`,`unCheckedValue`,`id`,`onChange`,`onUpdate:checked`])),n),{},{id:e.id??l.id.value,onKeydown:T,onClick:w,onBlur:C,onMouseup:E,type:`button`,role:`switch`,"aria-checked":f.value,disabled:d.value||e.loading,class:[n.class,O.value],ref:y}),[s(`div`,{class:`${m.value}-handle`},[e.loading?s(at,{class:`${m.value}-loading-icon`},null):null]),s(`span`,{class:`${m.value}-inner`},[s(`span`,{class:`${m.value}-inner-checked`},[Se(r,e,`checkedChildren`)]),s(`span`,{class:`${m.value}-inner-unchecked`},[Se(r,e,`unCheckedChildren`)])])])]}))}}),Vz=be(Bz),Hz=Symbol(`TableContextProps`),Uz=t=>{e(Hz,t)},Wz=()=>C(Hz,{}),Gz=`RC_TABLE_KEY`;function Kz(e){return e==null?[]:Array.isArray(e)?e:[e]}function qz(e,t){if(!t&&typeof t!=`number`)return e;let n=Kz(t),r=e;for(let e=0;e{let{key:r,dataIndex:i}=e||{},a=r||Kz(i).join(`-`)||Gz;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function Yz(){let e={};function t(e,n){n&&Object.keys(n).forEach(r=>{let i=n[r];i&&typeof i==`object`?(e[r]=e[r]||{},t(e[r],i)):e[r]=i})}return[...arguments].forEach(n=>{t(e,n)}),e}function Xz(e){return e!=null}var Zz=Symbol(`SlotsContextProps`),Qz=t=>{e(Zz,t)},$z=()=>C(Zz,a(()=>({}))),eB=Symbol(`ContextProps`),tB=t=>{e(eB,t)},nB=()=>C(eB,{onResizeColumn:()=>{}}),rB=`RC_TABLE_INTERNAL_COL_DEFINE`,iB=Symbol(`HoverContextProps`),aB=t=>{e(iB,t)},oB=()=>C(iB,{startRow:M(-1),endRow:M(-1),onHover(){}}),sB=M(!1),cB=()=>{D(()=>{sB.value=sB.value||cr(`position`,`sticky`)})},lB=()=>sB,uB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i=n}function fB(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!l(e)}var pB=d({name:`Cell`,props:[`prefixCls`,`record`,`index`,`renderIndex`,`dataIndex`,`customRender`,`component`,`colSpan`,`rowSpan`,`fixLeft`,`fixRight`,`firstFixLeft`,`lastFixLeft`,`firstFixRight`,`lastFixRight`,`appendNode`,`additionalProps`,`ellipsis`,`align`,`rowType`,`isSticky`,`column`,`cellType`,`transformCellText`],setup(e,t){let{slots:n}=t,r=$z(),{onHover:i,startRow:o,endRow:c}=oB(),u=a(()=>e.colSpan??e.additionalProps?.colSpan??e.additionalProps?.colspan),d=a(()=>e.rowSpan??e.additionalProps?.rowSpan??e.additionalProps?.rowspan),f=jg(()=>{let{index:t}=e;return dB(t,d.value||1,o.value,c.value)}),p=lB(),m=(t,n)=>{var r;let{record:a,index:o,additionalProps:s}=e;a&&i(o,o+n-1),(r=s?.onMouseenter)==null||r.call(s,t)},h=t=>{var n;let{record:r,additionalProps:a}=e;r&&i(-1,-1),(n=a?.onMouseleave)==null||n.call(a,t)},g=e=>{let t=ve(e)[0];return l(t)?t.type===ae?t.children:Array.isArray(t.children)?g(t.children):void 0:t},_=M(null);return H([f,()=>e.prefixCls,_],()=>{let t=Et(_.value);t&&(f.value?Zv(t,`${e.prefixCls}-cell-row-hover`):Qv(t,`${e.prefixCls}-cell-row-hover`))}),()=>{let{prefixCls:t,record:i,index:a,renderIndex:o,dataIndex:c,customRender:f,component:v=`td`,fixLeft:y,fixRight:b,firstFixLeft:x,lastFixLeft:S,firstFixRight:C,lastFixRight:w,appendNode:T=n.appendNode?.call(n),additionalProps:E={},ellipsis:D,align:O,rowType:k,isSticky:A,column:j={},cellType:M}=e,N=`${t}-cell`,P,F,I=n.default?.call(n);if(Xz(I)||M===`header`)F=I;else{let t=qz(i,c);if(F=t,f){let e=f({text:t,value:t,record:i,index:a,renderIndex:o,column:j.__originColumn__});fB(e)?(F=e.children,P=e.props):F=e}if(!(`RC_TABLE_INTERNAL_COL_DEFINE`in j)&&M===`body`&&r.value.bodyCell&&!j.slots?.customRender){let e=sr(r.value,`bodyCell`,{text:t,value:t,record:i,index:a,column:j.__originColumn__},()=>{let e=F===void 0?t:F;return[typeof e==`object`&&Xe(e)||typeof e!=`object`?e:null]});F=pe(e)}e.transformCellText&&(F=e.transformCellText({text:F,record:i,index:a,column:j.__originColumn__}))}typeof F==`object`&&!Array.isArray(F)&&!l(F)&&(F=null),D&&(S||C)&&(F=s(`span`,{class:`${N}-content`},[F])),Array.isArray(F)&&F.length===1&&(F=F[0]);let L=P||{},{colSpan:ee,rowSpan:R,style:z,class:B}=L,te=uB(L,[`colSpan`,`rowSpan`,`style`,`class`]),V=(ee===void 0?u.value:ee)??1,ne=(R===void 0?d.value:R)??1;if(V===0||ne===0)return null;let re={},H=typeof y==`number`&&p.value,U=typeof b==`number`&&p.value;H&&(re.position=`sticky`,re.left=`${y}px`),U&&(re.position=`sticky`,re.right=`${b}px`);let ie={};O&&(ie.textAlign=O);let W,ae=D===!0?{showTitle:!0}:D;ae&&(ae.showTitle||k===`header`)&&(typeof F==`string`||typeof F==`number`?W=F.toString():l(F)&&(W=g([F])));let oe=G(G(G({title:W},te),E),{colSpan:V===1?null:V,rowSpan:ne===1?null:ne,class:Z(N,{[`${N}-fix-left`]:H&&p.value,[`${N}-fix-left-first`]:x&&p.value,[`${N}-fix-left-last`]:S&&p.value,[`${N}-fix-right`]:U&&p.value,[`${N}-fix-right-first`]:C&&p.value,[`${N}-fix-right-last`]:w&&p.value,[`${N}-ellipsis`]:D,[`${N}-with-append`]:T,[`${N}-fix-sticky`]:(H||U)&&A&&p.value},E.class,B),onMouseenter:e=>{m(e,ne)},onMouseleave:h,style:[E.style,ie,re,z]});return s(v,X(X({},oe),{},{ref:_}),{default:()=>[T,F,n.dragHandle?.call(n)]})}}});function mB(e,t,n,r,i){let a=n[e]||{},o=n[t]||{},s,c;a.fixed===`left`?s=r.left[e]:o.fixed===`right`&&(c=r.right[t]);let l=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1];return i===`rtl`?s===void 0?c!==void 0&&(d=!(p&&p.fixed===`right`)):f=!(m&&m.fixed===`left`):s===void 0?c!==void 0&&(u=!(m&&m.fixed===`right`)):l=!(p&&p.fixed===`left`),{fixLeft:s,fixRight:c,lastFixLeft:l,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var hB={mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`},touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`}},gB=50,_B=d({compatConfig:{MODE:3},name:`DragHandle`,props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:gB},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}},i=()=>{n.remove(),r.remove()};E(()=>{i()}),P(()=>{ir(!isNaN(e.width),`Table`,`width must be a number when use resizable`)});let{onResizeColumn:o}=nB(),c=a(()=>typeof e.minWidth==`number`&&!isNaN(e.minWidth)?e.minWidth:gB),l=a(()=>typeof e.maxWidth==`number`&&!isNaN(e.maxWidth)?e.maxWidth:1/0),u=m(),d=0,f=M(!1),p,h=n=>{let r=0;r=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;let i=t-r,a=Math.max(d-i,c.value);a=Math.min(a,l.value),Rn.cancel(p),p=Rn(()=>{o(a,e.column.__originColumn__)})},g=e=>{h(e)},_=e=>{f.value=!1,h(e),i()},v=(e,a)=>{f.value=!0,i(),d=u.vnode.el.parentNode.getBoundingClientRect().width,!(e instanceof MouseEvent&&e.which!==1)&&(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=Yn(document.documentElement,a.move,g),r=Yn(document.documentElement,a.stop,_))},y=e=>{e.stopPropagation(),e.preventDefault(),v(e,hB.mouse)},b=e=>{e.stopPropagation(),e.preventDefault(),v(e,hB.touch)},x=e=>{e.stopPropagation(),e.preventDefault()};return()=>{let{prefixCls:t}=e,n={[lr?`onTouchstartPassive`:`onTouchstart`]:e=>b(e)};return s(`div`,X(X({class:`${t}-resize-handle ${f.value?`dragging`:``}`,onMousedown:y},n),{},{onClick:x}),[s(`div`,{class:`${t}-resize-handle-line`},null)])}}}),vB=d({name:`HeaderRow`,props:[`cells`,`stickyOffsets`,`flattenColumns`,`rowComponent`,`cellComponent`,`index`,`customHeaderRow`],setup(e){let t=Wz();return()=>{let{prefixCls:n,direction:r}=t,{cells:i,stickyOffsets:a,flattenColumns:o,rowComponent:c,cellComponent:l,customHeaderRow:u,index:d}=e,f;u&&(f=u(i.map(e=>e.column),d));let p=Jz(i.map(e=>e.column));return s(c,f,{default:()=>[i.map((e,t)=>{let{column:i}=e,c=mB(e.colStart,e.colEnd,o,a,r),u;i&&i.customHeaderCell&&(u=e.column.customHeaderCell(i));let d=i;return s(pB,X(X(X({},e),{},{cellType:`header`,ellipsis:i.ellipsis,align:i.align,component:l,prefixCls:n,key:p[t]},c),{},{additionalProps:u,rowType:`header`,column:i}),{default:()=>i.title,dragHandle:()=>d.resizable?s(_B,{prefixCls:n,width:d.width,minWidth:d.minWidth,maxWidth:d.maxWidth,column:d},null):null})})]})}}});function yB(e){let t=[];function n(e,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let a=r;return e.filter(Boolean).map(e=>{let r={key:e.key,class:Z(e.className,e.class),column:e,colStart:a},o=1,s=e.children;return s&&s.length>0&&(o=n(s,a,i+1).reduce((e,t)=>e+t,0),r.hasSubColumns=!0),`colSpan`in e&&({colSpan:o}=e),`rowSpan`in e&&(r.rowSpan=e.rowSpan),r.colSpan=o,r.colEnd=r.colStart+o-1,t[i].push(r),a+=o,o})}n(e,0);let r=t.length;for(let e=0;e{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=r-e)});return t}var bB=d({name:`TableHeader`,inheritAttrs:!1,props:[`columns`,`flattenColumns`,`stickyOffsets`,`customHeaderRow`],setup(e){let t=Wz(),n=a(()=>yB(e.columns));return()=>{let{prefixCls:r,getComponent:i}=t,{stickyOffsets:a,flattenColumns:o,customHeaderRow:c}=e,l=i([`header`,`wrapper`],`thead`),u=i([`header`,`row`],`tr`),d=i([`header`,`cell`],`th`);return s(l,{class:`${r}-thead`},{default:()=>[n.value.map((e,t)=>s(vB,{key:t,flattenColumns:o,cells:e,stickyOffsets:a,rowComponent:u,cellComponent:d,customHeaderRow:c,index:t},null))]})}}}),xB=Symbol(`ExpandedRowProps`),SB=t=>{e(xB,t)},CB=()=>C(xB,{}),wB=d({name:`ExpandedRow`,inheritAttrs:!1,props:[`prefixCls`,`component`,`cellComponent`,`expanded`,`colSpan`,`isEmpty`],setup(e,t){let{slots:n,attrs:r}=t,i=Wz(),{fixHeader:a,fixColumn:o,componentWidth:c,horizonScroll:l}=CB();return()=>{let{prefixCls:t,component:u,cellComponent:d,expanded:f,colSpan:p,isEmpty:m}=e;return s(u,{class:r.class,style:{display:f?null:`none`}},{default:()=>[s(pB,{component:d,prefixCls:t,colSpan:p},{default:()=>{let e=n.default?.call(n);return(m?l.value:o.value)&&(e=s(`div`,{style:{width:`${c.value-(a.value?i.scrollbarSize:0)}px`,position:`sticky`,left:0,overflow:`hidden`},class:`${t}-expanded-row-fixed`},[e])),e}})]})}}}),TB=d({name:`MeasureCell`,props:[`columnKey`],setup(e,t){let{emit:n}=t,r=W();return D(()=>{r.value&&n(`columnResize`,e.columnKey,r.value.offsetWidth)}),()=>s(pi,{onResize:t=>{let{offsetWidth:r}=t;n(`columnResize`,e.columnKey,r)}},{default:()=>[s(`td`,{ref:r,style:{padding:0,border:0,height:0}},[s(`div`,{style:{height:0,overflow:`hidden`}},[g(`\xA0`)])])]})}}),EB=Symbol(`BodyContextProps`),DB=t=>{e(EB,t)},OB=()=>C(EB,{}),kB=d({name:`BodyRow`,inheritAttrs:!1,props:[`record`,`index`,`renderIndex`,`recordKey`,`expandedKeys`,`rowComponent`,`cellComponent`,`customRow`,`rowExpandable`,`indent`,`rowKey`,`getRowKey`,`childrenColumnName`],setup(e,t){let{attrs:n}=t,r=Wz(),i=OB(),o=M(!1),c=a(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));P(()=>{c.value&&(o.value=!0)});let l=a(()=>i.expandableType===`row`&&(!e.rowExpandable||e.rowExpandable(e.record))),u=a(()=>i.expandableType===`nest`),d=a(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),f=a(()=>l.value||u.value),p=(e,t)=>{i.onTriggerExpand(e,t)},m=a(()=>e.customRow?.call(e,e.record,e.index)||{}),h=function(t){var n,r;i.expandRowByClick&&f.value&&p(e.record,t);var a=[...arguments].slice(1);(r=(n=m.value)?.onClick)==null||r.call(n,t,...a)},g=a(()=>{let{record:t,index:n,indent:r}=e,{rowClassName:a}=i;return typeof a==`string`?a:typeof a==`function`?a(t,n,r):``}),_=a(()=>Jz(i.flattenColumns));return()=>{let{class:t,style:a}=n,{record:f,index:y,rowKey:b,indent:x=0,rowComponent:S,cellComponent:C}=e,{prefixCls:w,fixedInfoList:T,transformCellText:E}=r,{flattenColumns:D,expandedRowClassName:O,indentSize:k,expandIcon:A,expandedRowRender:j,expandIconColumnIndex:M}=i,N=s(S,X(X({},m.value),{},{"data-row-key":b,class:Z(t,`${w}-row`,`${w}-row-level-${x}`,g.value,m.value.class),style:[a,m.value.style],onClick:h}),{default:()=>[D.map((t,n)=>{let{customRender:r,dataIndex:i,className:a}=t,o=_[n],l=T[n],m;t.customCell&&(m=t.customCell(f,y,t));let h=n===(M||0)&&u.value?s(v,null,[s(`span`,{style:{paddingLeft:`${k*x}px`},class:`${w}-row-indent indent-level-${x}`},null),A({prefixCls:w,expanded:c.value,expandable:d.value,record:f,onExpand:p})]):null;return s(pB,X(X({cellType:`body`,class:a,ellipsis:t.ellipsis,align:t.align,component:C,prefixCls:w,key:o,record:f,index:y,renderIndex:e.renderIndex,dataIndex:i,customRender:r},l),{},{additionalProps:m,column:t,transformCellText:E,appendNode:h}),null)})]}),P;if(l.value&&(o.value||c.value)){let e=j({record:f,index:y,indent:x+1,expanded:c.value}),t=O&&O(f,y,x);P=s(wB,{expanded:c.value,class:Z(`${w}-expanded-row`,`${w}-expanded-row-level-${x+1}`,t),prefixCls:w,component:S,cellComponent:C,colSpan:D.length,isEmpty:!1},{default:()=>[e]})}return s(v,null,[N,P])}}});function AB(e,t,n,r,i,a){let o=[];o.push({record:e,indent:t,index:a});let s=i(e),c=r?.has(s);if(e&&Array.isArray(e[n])&&c)for(let a=0;a{let i=t.value,a=n.value,o=e.value;if(a?.size){let e=[];for(let t=0;t({record:e,indent:0,index:t}))})}var MB=Symbol(`ResizeContextProps`),NB=t=>{e(MB,t)},PB=()=>C(MB,{onColumnResize:()=>{}}),FB=d({name:`TableBody`,props:[`data`,`getRowKey`,`measureColumnWidth`,`expandedKeys`,`customRow`,`rowExpandable`,`childrenColumnName`],setup(e,t){let{slots:n}=t,r=PB(),i=Wz(),a=OB(),o=jB(y(e,`data`),y(e,`childrenColumnName`),y(e,`expandedKeys`),y(e,`getRowKey`)),c=M(-1),l=M(-1),u;return aB({startRow:c,endRow:l,onHover:(e,t)=>{clearTimeout(u),u=setTimeout(()=>{c.value=e,l.value=t},100)}}),()=>{let{data:t,getRowKey:c,measureColumnWidth:l,expandedKeys:u,customRow:d,rowExpandable:f,childrenColumnName:p}=e,{onColumnResize:m}=r,{prefixCls:h,getComponent:g}=i,{flattenColumns:_}=a,v=g([`body`,`wrapper`],`tbody`),y=g([`body`,`row`],`tr`),b=g([`body`,`cell`],`td`),x;x=t.length?o.value.map((e,t)=>{let{record:n,indent:r,index:i}=e,a=c(n,t);return s(kB,{key:a,rowKey:a,record:n,recordKey:a,index:t,renderIndex:i,rowComponent:y,cellComponent:b,expandedKeys:u,customRow:d,getRowKey:c,rowExpandable:f,childrenColumnName:p,indent:r},null)}):s(wB,{expanded:!0,class:`${h}-placeholder`,prefixCls:h,component:y,cellComponent:b,colSpan:_.length,isEmpty:!0},{default:()=>[n.emptyNode?.call(n)]});let S=Jz(_);return s(v,{class:`${h}-tbody`},{default:()=>[l&&s(`tr`,{"aria-hidden":`true`,class:`${h}-measure-row`,style:{height:0,fontSize:0}},[S.map(e=>s(TB,{key:e,columnKey:e,onColumnResize:m},null))]),x]})}}}),IB={},LB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{fixed:n}=t,r=n===!0?`left`:n,i=t.children;return i&&i.length>0?[...e,...RB(i).map(e=>G({fixed:r},e))]:[...e,G(G({},t),{fixed:r})]},[])}function zB(e){return e.map(e=>{let{fixed:t}=e,n=LB(e,[`fixed`]),r=t;return t===`left`?r=`right`:t===`right`&&(r=`left`),G({fixed:r},n)})}function BB(e,t){let{prefixCls:n,columns:r,expandable:i,expandedKeys:o,getRowKey:c,onTriggerExpand:l,expandIcon:u,rowExpandable:d,expandIconColumnIndex:f,direction:p,expandRowByClick:m,expandColumnWidth:h,expandFixed:g}=e,_=$z(),v=a(()=>{if(i.value){let e=r.value.slice();if(!e.includes(IB)){let t=f.value||0;t>=0&&e.splice(t,0,IB)}let t=e.indexOf(IB);e=e.filter((e,n)=>e!==IB||n===t);let i=r.value[t],a;a=(g.value===`left`||g.value)&&!f.value?`left`:(g.value===`right`||g.value)&&f.value===r.value.length?`right`:i?i.fixed:null;let p=o.value,v=d.value,y=u.value,b=n.value,x=m.value,S={[rB]:{class:`${n.value}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:sr(_.value,`expandColumnTitle`,{},()=>[``]),fixed:a,class:`${n.value}-row-expand-icon-cell`,width:h.value,customRender:e=>{let{record:t,index:n}=e,r=c.value(t,n),i=p.has(r),a=!v||v(t),o=y({prefixCls:b,expanded:i,expandable:a,record:t,onExpand:l});return x?s(`span`,{onClick:e=>e.stopPropagation()},[o]):o}};return e.map(e=>e===IB?S:e)}return r.value.filter(e=>e!==IB)}),y=a(()=>{let e=v.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e});return[y,a(()=>p.value===`rtl`?zB(RB(y.value)):RB(y.value))]}function VB(e){let t=M(e),n,r=M([]);function i(e){r.value.push(e),Rn.cancel(n),n=Rn(()=>{let e=r.value;r.value=[],e.forEach(e=>{t.value=e(t.value)})})}return p(()=>{Rn.cancel(n)}),[t,i]}function HB(e){let t=W(e||null),n=W();function r(){clearTimeout(n.value)}function i(e){t.value=e,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return p(()=>{r()}),[i,a]}function UB(e,t,n){return a(()=>{let r=[],i=[],a=0,o=0,s=e.value,c=t.value,l=n.value;for(let e=0;e=0;--e){let r=t[e],a=n&&n[e],c=a&&a.RC_TABLE_INTERNAL_COL_DEFINE;if(r||c||o){let t=c||{},{columnType:n}=t,a=WB(t,[`columnType`]);i.unshift(s(`col`,X({key:e,style:{width:typeof r==`number`?`${r}px`:r}},a),null)),o=!0}}return s(`colgroup`,null,[i])}function KB(e,t){let{slots:n}=t;return s(`div`,null,[n.default?.call(n)])}KB.displayName=`Panel`;var qB=0,JB=d({name:`TableSummary`,props:[`fixed`],setup(e,t){let{slots:n}=t,r=Wz(),i=`table-summary-uni-key-${++qB}`,o=a(()=>e.fixed===``||e.fixed);return P(()=>{r.summaryCollect(i,o.value)}),p(()=>{r.summaryCollect(i,!1)}),()=>n.default?.call(n)}}),YB=d({compatConfig:{MODE:3},name:`ATableSummaryRow`,setup(e,t){let{slots:n}=t;return()=>s(`tr`,null,[n.default?.call(n)])}}),XB=Symbol(`SummaryContextProps`),ZB=t=>{e(XB,t)},QB=()=>C(XB,{}),$B=d({name:`ATableSummaryCell`,props:[`index`,`colSpan`,`rowSpan`,`align`],setup(e,t){let{attrs:n,slots:r}=t,i=Wz(),a=QB();return()=>{let{index:t,colSpan:o=1,rowSpan:c,align:l}=e,{prefixCls:u,direction:d}=i,{scrollColumnIndex:f,stickyOffsets:p,flattenColumns:m}=a,h=t+o-1+1===f?o+1:o,g=mB(t,t+h-1,m,p,d);return s(pB,X({class:n.class,index:t,component:`td`,prefixCls:u,record:null,dataIndex:null,align:l,colSpan:h,rowSpan:c,customRender:()=>r.default?.call(r)},g),null)}}}),eV=d({name:`TableFooter`,inheritAttrs:!1,props:[`stickyOffsets`,`flattenColumns`],setup(e,t){let{slots:n}=t,r=Wz();return ZB(k({stickyOffsets:y(e,`stickyOffsets`),flattenColumns:y(e,`flattenColumns`),scrollColumnIndex:a(()=>{let t=e.flattenColumns.length-1;return e.flattenColumns[t]?.scrollbar?t:null})})),()=>{let{prefixCls:e}=r;return s(`tfoot`,{class:`${e}-summary`},[n.default?.call(n)])}}}),tV=JB;function nV(e){let{prefixCls:t,record:n,onExpand:r,expanded:i,expandable:a}=e,o=`${t}-row-expand-icon`;if(!a)return s(`span`,{class:[o,`${t}-row-spaced`]},null);let c=e=>{r(n,e),e.stopPropagation()};return s(`span`,{class:{[o]:!0,[`${t}-row-expanded`]:i,[`${t}-row-collapsed`]:!i},onClick:c},null)}function rV(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}var iV=d({name:`StickyScrollBar`,inheritAttrs:!1,props:[`offsetScroll`,`container`,`scrollBodyRef`,`scrollBodySizeInfo`],emits:[`scroll`],setup(e,t){let{emit:n,expose:r}=t,i=Wz(),a=M(0),o=M(0),c=M(0);P(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,o.value=e.scrollBodySizeInfo.clientWidth||0,c.value=a.value&&o.value*(o.value/a.value)},{flush:`post`});let l=M(),[u,d]=VB({scrollLeft:0,isHiddenScrollBar:!0}),f=W({delta:0,x:0}),m=M(!1),h=()=>{m.value=!1},g=e=>{f.value={delta:e.pageX-u.value.scrollLeft,x:0},m.value=!0,e.preventDefault()},_=e=>{let{buttons:t}=e||(window==null?void 0:window.event);if(!m.value||t===0){m.value&&=!1;return}let r=f.value.x+e.pageX-f.value.x-f.value.delta;r<=0&&(r=0),r+c.value>=o.value&&(r=o.value-c.value),n(`scroll`,{scrollLeft:r/o.value*(a.value+2)}),f.value.x=e.pageX},v=()=>{if(!e.scrollBodyRef.value)return;let t=ll(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,r=e.container===window?document.documentElement.scrollTop+window.innerHeight:ll(e.container).top+e.container.clientHeight;n-sn()<=r||t>=r-e.offsetScroll?d(e=>G(G({},e),{isHiddenScrollBar:!0})):d(e=>G(G({},e),{isHiddenScrollBar:!1}))};r({setScrollLeft:e=>{d(t=>G(G({},t),{scrollLeft:e/a.value*o.value||0}))}});let y=null,b=null,S=null,C=null;D(()=>{y=Yn(document.body,`mouseup`,h,!1),b=Yn(document.body,`mousemove`,_,!1),S=Yn(window,`resize`,v,!1)}),w(()=>{x(()=>{v()})}),D(()=>{setTimeout(()=>{H([c,m],()=>{v()},{immediate:!0,flush:`post`})})}),H(()=>e.container,()=>{C?.remove(),C=Yn(e.container,`scroll`,v,!1)},{immediate:!0,flush:`post`}),p(()=>{y?.remove(),b?.remove(),C?.remove(),S?.remove()}),H(()=>G({},u.value),(t,n)=>{t.isHiddenScrollBar!==n?.isHiddenScrollBar&&!t.isHiddenScrollBar&&d(t=>{let n=e.scrollBodyRef.value;return n?G(G({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t})},{immediate:!0});let T=sn();return()=>{if(a.value<=o.value||!c.value||u.value.isHiddenScrollBar)return null;let{prefixCls:t}=i;return s(`div`,{style:{height:`${T}px`,width:`${o.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[s(`div`,{onMousedown:g,ref:l,class:Z(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:m.value}),style:{width:`${c.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),aV=de()?window:null;function oV(e,t){return a(()=>{let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>aV}=typeof e.value==`object`?e.value:{},o=a()||aV,s=!!e.value;return{isSticky:s,stickyClassName:s?`${t.value}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}})}function sV(e,t){return a(()=>{let n=[],r=e.value,i=t.value;for(let e=0;eo.isSticky&&!e.fixHeader?0:o.scrollbarSize),l=W(),u=e=>{let{currentTarget:t,deltaX:n}=e;n&&(i(`scroll`,{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},d=W();D(()=>{x(()=>{d.value=Yn(l.value,`wheel`,u)})}),p(()=>{var e;(e=d.value)==null||e.remove()});let f=a(()=>e.flattenColumns.every(e=>e.width&&e.width!==0&&e.width!==`0px`)),m=W([]),h=W([]);P(()=>{let t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${o.prefixCls}-cell-scrollbar`})};m.value=c.value?[...e.columns,n]:e.columns,h.value=c.value?[...e.flattenColumns,n]:e.flattenColumns});let g=a(()=>{let{stickyOffsets:t,direction:n}=e,{right:r,left:i}=t;return G(G({},t),{left:n===`rtl`?[...i.map(e=>e+c.value),0]:i,right:n===`rtl`?r:[...r.map(e=>e+c.value),0],isSticky:o.isSticky})}),_=sV(y(e,`colWidths`),y(e,`columCount`));return()=>{let{noData:t,columCount:i,stickyTopOffset:a,stickyBottomOffset:u,stickyClassName:d,maxContentScroll:p}=e,{isSticky:v}=o;return s(`div`,{style:G({overflow:`hidden`},v?{top:`${a}px`,bottom:`${u}px`}:{}),ref:l,class:Z(n.class,{[d]:!!d})},[s(`table`,{style:{tableLayout:`fixed`,visibility:t||_.value?null:`hidden`}},[(!t||!p||f.value)&&s(GB,{colWidths:_.value?[..._.value,c.value]:[],columCount:i+1,columns:h.value},null),r.default?.call(r,G(G({},e),{stickyOffsets:g.value,columns:m.value,flattenColumns:h.value}))])])}}});function lV(e){var t=[...arguments].slice(1);return k(eh(t.map(t=>[t,y(e,t)])))}var uV=[],dV={},fV=`rc-table-internal-hook`,pV=d({name:`VcTable`,inheritAttrs:!1,props:`prefixCls.data.columns.rowKey.tableLayout.scroll.rowClassName.title.footer.id.showHeader.components.customRow.customHeaderRow.direction.expandFixed.expandColumnWidth.expandedRowKeys.defaultExpandedRowKeys.expandedRowRender.expandRowByClick.expandIcon.onExpand.onExpandedRowsChange.onUpdate:expandedRowKeys.defaultExpandAllRows.indentSize.expandIconColumnIndex.expandedRowClassName.childrenColumnName.rowExpandable.sticky.transformColumns.internalHooks.internalRefs.canExpandable.onUpdateInternalRefs.transformCellText`.split(`.`),emits:[`expand`,`expandedRowsChange`,`updateInternalRefs`,`update:expandedRowKeys`],setup(e,t){let{attrs:n,slots:r,emit:o}=t,c=a(()=>e.data||uV),l=a(()=>!!c.value.length),u=a(()=>Yz(e.components,{})),d=(e,t)=>qz(u.value,e)||t,f=a(()=>{let t=e.rowKey;return typeof t==`function`?t:e=>e&&e[t]}),p=a(()=>e.expandIcon||nV),m=a(()=>e.childrenColumnName||`children`),h=a(()=>e.expandedRowRender?`row`:e.canExpandable||c.value.some(e=>e&&typeof e==`object`&&e[m.value])?`nest`:!1),g=M([]);P(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=rV(c.value,f.value,m.value))})();let _=a(()=>new Set(e.expandedRowKeys||g.value||[])),b=e=>{let t=f.value(e,c.value.indexOf(e)),n,r=_.value.has(t);r?(_.value.delete(t),n=[..._.value]):n=[..._.value,t],g.value=n,o(`expand`,!r,e),o(`update:expandedRowKeys`,n),o(`expandedRowsChange`,n)},S=W(0),[C,w]=BB(G(G({},i(e)),{expandable:a(()=>!!e.expandedRowRender),expandedKeys:_,getRowKey:f,onTriggerExpand:b,expandIcon:p}),a(()=>e.internalHooks===`rc-table-internal-hook`?e.transformColumns:null)),T=a(()=>({columns:C.value,flattenColumns:w.value})),E=W(),A=W(),j=W(),N=W({scrollWidth:0,clientWidth:0}),F=W(),[I,L]=dn(!1),[ee,R]=dn(!1),[z,B]=VB(new Map),te=a(()=>Jz(w.value)),V=a(()=>te.value.map(e=>z.value.get(e))),ne=a(()=>w.value.length),re=UB(V,ne,y(e,`direction`)),U=a(()=>e.scroll&&Xz(e.scroll.y)),ie=a(()=>e.scroll&&Xz(e.scroll.x)||!!e.expandFixed),ae=a(()=>ie.value&&w.value.some(e=>{let{fixed:t}=e;return t})),oe=W(),se=oV(y(e,`sticky`),y(e,`prefixCls`)),ce=k({}),le=a(()=>{let e=Object.values(ce)[0];return(U.value||se.value.isSticky)&&e}),ue=(e,t)=>{t?ce[e]=t:delete ce[e]},de=W({}),fe=W({}),pe=W({});P(()=>{U.value&&(fe.value={overflowY:`scroll`,maxHeight:We(e.scroll.y)}),ie.value&&(de.value={overflowX:`auto`},U.value||(fe.value={overflowY:`hidden`}),pe.value={width:e.scroll.x===!0?`auto`:We(e.scroll.x),minWidth:`100%`})});let me=(e,t)=>{Sn(E.value)&&B(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[he,ge]=HB(null);function _e(e,t){if(!t)return;if(typeof t==`function`){t(e);return}let n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}let K=t=>{let{currentTarget:n,scrollLeft:r}=t,i=e.direction===`rtl`,a=typeof r==`number`?r:n.scrollLeft,o=n||dV;if((!ge()||ge()===o)&&(he(o),_e(a,A.value),_e(a,j.value),_e(a,F.value),_e(a,oe.value?.setScrollLeft)),n){let{scrollWidth:e,clientWidth:t}=n;i?(L(-a0)):(L(a>0),R(a{ie.value&&j.value?K({currentTarget:j.value}):(L(!1),R(!1))},ye,be=e=>{e!==S.value&&(ve(),S.value=E.value?E.value.offsetWidth:e)},xe=e=>{let{width:t}=e;if(clearTimeout(ye),S.value===0){be(t);return}ye=setTimeout(()=>{be(t)},100)};H([ie,()=>e.data,()=>e.columns],()=>{ie.value&&ve()},{flush:`post`});let[Se,Ce]=dn(0);cB(),D(()=>{x(()=>{ve(),Ce(Kn(j.value).width),N.value={scrollWidth:j.value?.scrollWidth||0,clientWidth:j.value?.clientWidth||0}})}),O(()=>{x(()=>{let e=j.value?.scrollWidth||0,t=j.value?.clientWidth||0;(N.value.scrollWidth!==e||N.value.clientWidth!==t)&&(N.value={scrollWidth:e,clientWidth:t})})}),P(()=>{e.internalHooks===`rc-table-internal-hook`&&e.internalRefs&&e.onUpdateInternalRefs({body:j.value?j.value.$el||j.value:null})},{flush:`post`});let we=a(()=>e.tableLayout?e.tableLayout:ae.value?e.scroll.x===`max-content`?`auto`:`fixed`:U.value||se.value.isSticky||w.value.some(e=>{let{ellipsis:t}=e;return t})?`fixed`:`auto`),Te=()=>l.value?null:r.emptyText?.call(r)||`No Data`;Uz(k(G(G({},i(lV(e,`prefixCls`,`direction`,`transformCellText`))),{getComponent:d,scrollbarSize:Se,fixedInfoList:a(()=>w.value.map((t,n)=>mB(n,n,w.value,re.value,e.direction))),isSticky:a(()=>se.value.isSticky),summaryCollect:ue}))),DB(k(G(G({},i(lV(e,`rowClassName`,`expandedRowClassName`,`expandRowByClick`,`expandedRowRender`,`expandIconColumnIndex`,`indentSize`))),{columns:C,flattenColumns:w,tableLayout:we,expandIcon:p,expandableType:h,onTriggerExpand:b}))),NB({onColumnResize:me}),SB({componentWidth:S,fixHeader:U,fixColumn:ae,horizonScroll:ie});let Ee=()=>s(FB,{data:c.value,measureColumnWidth:U.value||ie.value||se.value.isSticky,expandedKeys:_.value,rowExpandable:e.rowExpandable,getRowKey:f.value,customRow:e.customRow,childrenColumnName:m.value},{emptyNode:Te}),De=()=>s(GB,{colWidths:w.value.map(e=>{let{width:t}=e;return t}),columns:w.value},null);return()=>{let{prefixCls:t,scroll:i,tableLayout:a,direction:o,title:l=r.title,footer:u=r.footer,id:f,showHeader:p,customHeaderRow:m}=e,{isSticky:h,offsetHeader:g,offsetSummary:_,offsetScroll:y,stickyClassName:b,container:x}=se.value,S=d([`table`],`table`),D=d([`body`]),O=r.summary?.call(r,{pageData:c.value}),k=()=>null,M={colWidths:V.value,columCount:w.value.length,stickyOffsets:re.value,customHeaderRow:m,fixHeader:U.value,scroll:i};if(U.value||h){let e=()=>null;typeof D==`function`?(e=()=>D(c.value,{scrollbarSize:Se.value,ref:j,onScroll:K}),M.colWidths=w.value.map((e,t)=>{let{width:n}=e,r=t===C.value.length-1?n-Se.value:n;return typeof r==`number`&&!Number.isNaN(r)?r:0})):e=()=>s(`div`,{style:G(G({},de.value),fe.value),onScroll:K,ref:j,class:Z(`${t}-body`)},[s(S,{style:G(G({},pe.value),{tableLayout:we.value})},{default:()=>[De(),Ee(),!le.value&&O&&s(eV,{stickyOffsets:re.value,flattenColumns:w.value},{default:()=>[O]})]})]);let n=G(G(G({noData:!c.value.length,maxContentScroll:ie.value&&i.x===`max-content`},M),T.value),{direction:o,stickyClassName:b,onScroll:K});k=()=>s(v,null,[p!==!1&&s(cV,X(X({},n),{},{stickyTopOffset:g,class:`${t}-header`,ref:A}),{default:e=>s(v,null,[s(bB,e,null),le.value===`top`&&s(eV,e,{default:()=>[O]})])}),e(),le.value&&le.value!==`top`&&s(cV,X(X({},n),{},{stickyBottomOffset:_,class:`${t}-summary`,ref:F}),{default:e=>s(eV,e,{default:()=>[O]})}),h&&j.value&&s(iV,{ref:oe,offsetScroll:y,scrollBodyRef:j,onScroll:K,container:x,scrollBodySizeInfo:N.value},null)])}else k=()=>s(`div`,{style:G(G({},de.value),fe.value),class:Z(`${t}-content`),onScroll:K,ref:j},[s(S,{style:G(G({},pe.value),{tableLayout:we.value})},{default:()=>[De(),p!==!1&&s(bB,X(X({},M),T.value),null),Ee(),O&&s(eV,{stickyOffsets:re.value,flattenColumns:w.value},{default:()=>[O]})]})]);let P=un(n,{aria:!0,data:!0}),L=()=>s(`div`,X(X({},P),{},{class:Z(t,{[`${t}-rtl`]:o===`rtl`,[`${t}-ping-left`]:I.value,[`${t}-ping-right`]:ee.value,[`${t}-layout-fixed`]:a===`fixed`,[`${t}-fixed-header`]:U.value,[`${t}-fixed-column`]:ae.value,[`${t}-scroll-horizontal`]:ie.value,[`${t}-has-fix-left`]:w.value[0]&&w.value[0].fixed,[`${t}-has-fix-right`]:w.value[ne.value-1]&&w.value[ne.value-1].fixed===`right`,[n.class]:n.class}),style:n.style,id:f,ref:E}),[l&&s(KB,{class:`${t}-title`},{default:()=>[l(c.value)]}),s(`div`,{class:`${t}-container`},[k()]),u&&s(KB,{class:`${t}-footer`},{default:()=>[u(c.value)]})]);return ie.value?s(pi,{onResize:xe},{default:L}):L()}}});function mV(){let e=G({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{let r=n[t];r!==void 0&&(e[t]=r)})}return e}function hV(e,t){let n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t==`object`?t:{}).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function gV(e,t,n){let r=a(()=>t.value&&typeof t.value==`object`?t.value:{}),i=a(()=>r.value.total||0),[o,s]=dn(()=>({current:`defaultCurrent`in r.value?r.value.defaultCurrent:1,pageSize:`defaultPageSize`in r.value?r.value.defaultPageSize:10})),c=a(()=>{let t=mV(o.value,r.value,{total:i.value>0?i.value:e.value}),n=Math.ceil((i.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t}),l=(e,n)=>{t.value!==!1&&s({current:e??1,pageSize:n||c.value.pageSize})},u=(e,i)=>{var a,o;t.value&&((o=(a=r.value).onChange)==null||o.call(a,e,i)),l(e,i),n(e,i||c.value.pageSize)};return[a(()=>t.value===!1?{}:G(G({},c.value),{onChange:u})),l]}function _V(e,t,n){let r=M({});H([e,t,n],()=>{let i=new Map,a=n.value,o=t.value;function s(e){e.forEach((e,t)=>{let n=a(e,t);i.set(n,e),e&&typeof e==`object`&&o in e&&s(e[o]||[])})}s(e.value),r.value={kvMap:i}},{deep:!0,immediate:!0});function i(e){return r.value.kvMap.get(e)}return[i]}var vV={},yV=`SELECT_ALL`,bV=`SELECT_INVERT`,xV=`SELECT_NONE`,SV=[];function CV(e,t){let n=[];return(t||[]).forEach(t=>{n.push(t),t&&typeof t==`object`&&e in t&&(n=[...n,...CV(e,t[e])])}),n}function wV(e,t){let n=a(()=>{let t=e.value||{},{checkStrictly:n=!0}=t;return G(G({},t),{checkStrictly:n})}),[r,i]=zu(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||SV,{value:a(()=>n.value.selectedRowKeys)}),o=M(new Map),c=e=>{if(n.value.preserveSelectedRowKeys){let n=new Map;e.forEach(e=>{let r=t.getRecordByKey(e);!r&&o.value.has(e)&&(r=o.value.get(e)),n.set(e,r)}),o.value=n}};P(()=>{c(r.value)});let l=a(()=>n.value.checkStrictly?null:BE(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),u=a(()=>CV(t.childrenColumnName.value,t.pageData.value)),d=a(()=>{let e=new Map,r=t.getRowKey.value,i=n.value.getCheckboxProps;return u.value.forEach((t,n)=>{let a=r(t,n),o=(i?i(t):null)||{};e.set(a,o)}),e}),{maxLevel:f,levelEntities:p}=pD(l),m=e=>!!d.value.get(t.getRowKey.value(e))?.disabled,h=a(()=>{if(n.value.checkStrictly)return[r.value||[],[]];let{checkedKeys:e,halfCheckedKeys:t}=nD(r.value,!0,l.value,f.value,p.value,m);return[e||[],t]}),g=a(()=>h.value[0]),_=a(()=>h.value[1]),v=a(()=>{let e=n.value.type===`radio`?g.value.slice(0,1):g.value;return new Set(e)}),y=a(()=>n.value.type===`radio`?new Set:new Set(_.value)),[b,x]=dn(null),S=e=>{let r,a;c(e);let{preserveSelectedRowKeys:s,onChange:l}=n.value,{getRecordByKey:u}=t;s?(r=e,a=e.map(e=>o.value.get(e))):(r=[],a=[],e.forEach(e=>{let t=u(e);t!==void 0&&(r.push(e),a.push(t))})),i(r),l?.(r,a)},C=(e,r,i,a)=>{let{onSelect:o}=n.value,{getRecordByKey:s}=t||{};if(o){let t=i.map(e=>s(e));o(s(e),r,t,a)}S(i)},w=a(()=>{let{onSelectInvert:e,onSelectNone:r,selections:i,hideSelectAll:a}=n.value,{data:o,pageData:s,getRowKey:c,locale:l}=t;return!i||a?null:(i===!0?[yV,bV,xV]:i).map(t=>t===`SELECT_ALL`?{key:`all`,text:l.value.selectionAll,onSelect(){S(o.value.map((e,t)=>c.value(e,t)).filter(e=>!d.value.get(e)?.disabled||v.value.has(e)))}}:t===`SELECT_INVERT`?{key:`invert`,text:l.value.selectInvert,onSelect(){let t=new Set(v.value);s.value.forEach((e,n)=>{let r=c.value(e,n);d.value.get(r)?.disabled||(t.has(r)?t.delete(r):t.add(r))});let n=Array.from(t);e&&(ir(!1,`Table`,"`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),S(n)}}:t===`SELECT_NONE`?{key:`none`,text:l.value.selectNone,onSelect(){r?.(),S(Array.from(v.value).filter(e=>d.value.get(e)?.disabled))}}:t)}),T=a(()=>u.value.length);return[r=>{let{onSelectAll:i,onSelectMultiple:a,columnWidth:o,type:c,fixed:h,renderCell:_,hideSelectAll:E,checkStrictly:D}=n.value,{prefixCls:O,getRecordByKey:k,getRowKey:A,expandType:j,getPopupContainer:M}=t;if(!e.value)return r.filter(e=>e!==vV);let N=r.slice(),P=new Set(v.value),F=u.value.map(A.value).filter(e=>!d.value.get(e).disabled),I=F.every(e=>P.has(e)),L=F.some(e=>P.has(e)),ee=()=>{let e=[];I?F.forEach(t=>{P.delete(t),e.push(t)}):F.forEach(t=>{P.has(t)||(P.add(t),e.push(t))});let t=Array.from(P);i?.(!I,t.map(e=>k(e)),e.map(e=>k(e))),S(t)},R;if(c!==`radio`){let e;if(w.value){let t=s(vy,{getPopupContainer:M.value},{default:()=>[w.value.map((e,t)=>{let{key:n,text:r,onSelect:i}=e;return s(vy.Item,{key:n||t,onClick:()=>{i?.(F)}},{default:()=>[r]})})]});e=s(`div`,{class:`${O.value}-selection-extra`},[s(wj,{overlay:t,getPopupContainer:M.value},{default:()=>[s(`span`,null,[s(Xu,null,null)])]})])}let t=u.value.map((e,t)=>{let n=A.value(e,t),r=d.value.get(n)||{};return G({checked:P.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===T.value,r=n&&t.every(e=>{let{checked:t}=e;return t}),i=n&&t.some(e=>{let{checked:t}=e;return t});R=!E&&s(`div`,{class:`${O.value}-selection`},[s(dA,{checked:n?r:!!T.value&&I,indeterminate:n?!r&&i:!I&&L,onChange:ee,disabled:T.value===0||n,"aria-label":e?`Custom selection`:`Select all`,skipGroup:!0},null),e])}let z;z=c===`radio`?e=>{let{record:t,index:n}=e,r=A.value(t,n),i=P.has(r);return{node:s(xS,X(X({},d.value.get(r)),{},{checked:i,onClick:e=>e.stopPropagation(),onChange:e=>{P.has(r)||C(r,!0,[r],e.nativeEvent)}}),null),checked:i}}:e=>{let{record:t,index:n}=e,r=A.value(t,n),i=P.has(r),o=y.value.has(r),c=d.value.get(r),u;return j.value===`nest`?(u=o,ir(typeof c?.indeterminate!=`boolean`,`Table`,"set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):u=c?.indeterminate??o,{node:s(dA,X(X({},c),{},{indeterminate:u,checked:i,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,o=-1,s=-1;if(n&&D){let e=new Set([b.value,r]);F.some((t,n)=>{if(e.has(t)){if(o===-1)o=n;else return s=n,!0}return!1})}if(s!==-1&&o!==s&&D){let e=F.slice(o,s+1),t=[];i?e.forEach(e=>{P.has(e)&&(t.push(e),P.delete(e))}):e.forEach(e=>{P.has(e)||(t.push(e),P.add(e))});let n=Array.from(P);a?.(!i,n.map(e=>k(e)),t.map(e=>k(e))),S(n)}else{let e=g.value;if(D){let n=i?SE(e,r):CE(e,r);C(r,!i,n,t)}else{let{checkedKeys:n,halfCheckedKeys:a}=nD([...e,r],!0,l.value,f.value,p.value,m),o=n;if(i){let e=new Set(n);e.delete(r),o=nD(Array.from(e),{checked:!1,halfCheckedKeys:a},l.value,f.value,p.value,m).checkedKeys}C(r,!i,o,t)}}x(r)}}),null),checked:i}};let B=e=>{let{record:t,index:n}=e,{node:r,checked:i}=z({record:t,index:n});return _?_(i,t,n,r):r};if(!N.includes(vV)){if(N.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=N;N=[e,vV,...t]}else N=[vV,...N]}let te=N.indexOf(vV);N=N.filter((e,t)=>e!==vV||t===te);let V=N[te-1],ne=N[te+1],re=h;re===void 0&&(ne?.fixed===void 0?V?.fixed!==void 0&&(re=V.fixed):re=ne.fixed),re&&V&&V.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&V.fixed===void 0&&(V.fixed=re);let H={fixed:re,width:o,className:`${O.value}-selection-column`,title:n.value.columnTitle||R,customRender:B,[rB]:{class:`${O.value}-selection-col`}};return N.map(e=>e===vV?H:e)},v]}var TV={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`};function EV(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],t=pe(e),n=[];return t.forEach(e=>{if(!e)return;let t=e.key,r=e.props?.style||{},i=e.props?.class||``,a=e.props||{};for(let[e,t]of Object.entries(a))a[Ae(e)]=t;let o=e.children||{},{default:s}=o,c=NV(o,[`default`]),l=G(G(G({},c),a),{style:r,class:i});if(t&&(l.key=t),e.type?.__ANT_TABLE_COLUMN_GROUP)l.children=LV(typeof s==`function`?s():s);else{let t=e.children?.default;l.customRender=l.customRender||t}n.push(l)}),n}var RV=`ascend`,zV=`descend`;function BV(e){return typeof e.sorter==`object`&&typeof e.sorter.multiple==`number`&&e.sorter.multiple}function VV(e){return typeof e==`function`?e:e&&typeof e==`object`&&e.compare?e.compare:!1}function HV(e,t){return t?e[e.indexOf(t)+1]:e[0]}function UV(e,t,n){let r=[];function i(e,t){r.push({column:e,key:PV(e,t),multiplePriority:BV(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,a)=>{let o=FV(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[...r,...UV(e.children,t,o)]):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:PV(e,o),multiplePriority:BV(e),sortOrder:e.defaultSortOrder}))}),r}function WV(e,t,n,r,i,a,o,c){return(t||[]).map((t,l)=>{let u=FV(l,c),d=t;if(d.sorter){let c=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=PV(d,u),p=n.find(e=>{let{key:t}=e;return t===f}),m=p?p.sortOrder:null,h=HV(c,m),g=c.includes(RV)&&s(MV,{class:Z(`${e}-column-sorter-up`,{active:m===RV}),role:`presentation`},null),_=c.includes(zV)&&s(OV,{role:`presentation`,class:Z(`${e}-column-sorter-down`,{active:m===zV})},null),{cancelSort:v,triggerAsc:y,triggerDesc:b}=a||{},x=v;h===zV?x=b:h===RV&&(x=y);let S=typeof l==`object`?l:{title:x};d=G(G({},d),{className:Z(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=s(`div`,{class:`${e}-column-sorters`},[s(`span`,{class:`${e}-column-title`},[IV(t.title,n)]),s(`span`,{class:Z(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(g&&_)})},[s(`span`,{class:`${e}-column-sorter-inner`},[g,_])])]);return l?s(m_,S,{default:()=>[r]}):r},customHeaderCell:n=>{let i=t.customHeaderCell&&t.customHeaderCell(n)||{},a=i.onClick,o=i.onKeydown;return i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:BV(t)}),a&&a(e)},i.onKeydown=e=>{e.keyCode===$.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:BV(t)}),o?.(e))},m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i.class=Z(i.class,`${e}-column-has-sorters`),i.tabindex=0,i}})}return`children`in d&&(d=G(G({},d),{children:WV(e,d.children,n,r,i,a,o,u)})),d})}function GV(e){let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function KV(e){let t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(GV);return t.length===0&&e.length?G(G({},GV(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function qV(e,t,n){let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return VV(t)&&n});return a.length?i.sort((e,t)=>{for(let n=0;n{let r=e[n];return r?G(G({},e),{[n]:qV(r,t,n)}):e}):i}function JV(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:i,tableLocale:o,showSorterTooltip:s}=e,[c,l]=dn(UV(n.value,!0)),u=a(()=>{let e=!0,t=UV(n.value,!1);if(!t.length)return c.value;let r=[];function i(t){e?r.push(t):r.push(G(G({},t),{sortOrder:null}))}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r}),d=a(()=>{let e=u.value.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}});function f(e){let t;t=e.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?[e]:[...u.value.filter(t=>{let{key:n}=t;return n!==e.key}),e],l(t),r(KV(t),t)}return[e=>WV(t.value,e,u.value,f,i.value,o.value,s.value),u,d,a(()=>KV(u.value))]}var YV={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`};function XV(e){for(var t=1;t{let{keyCode:t}=e;t===$.ENTER&&e.stopPropagation()},eH=(e,t)=>{let{slots:n}=t;return s(`div`,{onClick:e=>e.stopPropagation(),onKeydown:$V},[n.default?.call(n)])},tH=d({compatConfig:{MODE:3},name:`FilterSearch`,inheritAttrs:!1,props:{value:q(),onChange:Q(),filterSearch:$t([Boolean,Function]),tablePrefixCls:q(),locale:ut()},setup(e){return()=>{let{value:t,onChange:n,filterSearch:r,tablePrefixCls:i,locale:a}=e;return r?s(`div`,{class:`${i}-filter-dropdown-search`},[s(dN,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${i}-filter-dropdown-search-input`},{prefix:()=>s(hr,null,null)})]):null}}}),nH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ie.motion?e.motion:$v()),u=(t,n)=>{var r,i,a,o;n===`appear`?(i=(r=l.value)?.onAfterEnter)==null||i.call(r,t):n===`leave`&&((o=(a=l.value)?.onAfterLeave)==null||o.call(a,t)),c.value||e.onMotionEnd(),c.value=!0};return H(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType===`hide`&&i.value&&x(()=>{i.value=!1})},{immediate:!0,flush:`post`}),D(()=>{e.motionNodes&&e.onMotionStart()}),p(()=>{e.motionNodes&&u()}),()=>{let{motion:t,motionNodes:a,motionType:c,active:d,eventKey:f}=e,p=nH(e,[`motion`,`motionNodes`,`motionType`,`active`,`eventKey`]);return a?s(Gt,X(X({},l.value),{},{appear:c===`show`,onAfterAppear:e=>u(e,`appear`),onAfterLeave:e=>u(e,`leave`)}),{default:()=>[ie(s(`div`,{class:`${o.value.prefixCls}-treenode-motion`},[a.map(e=>{let t=nH(e.data,[]),{title:n,key:i,isStart:a,isEnd:o}=e;return delete t.children,s(xE,X(X({},t),{},{title:n,active:d,data:e.data,key:i,eventKey:i,isStart:a,isEnd:o}),r)})]),[[st,i.value]])]}):s(xE,X(X({class:n.class,style:n.style},p),{},{active:d,eventKey:f}),r)}}});function iH(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return ne.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}var oH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{},lH=`RC_TREE_MOTION_${Math.random()}`,uH={key:lH},dH={key:lH,level:0,index:0,pos:`0`,node:uH,nodes:[uH]},fH={parent:null,children:[],pos:dH.pos,data:uH,title:null,key:lH,isStart:[],isEnd:[]};function pH(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function mH(e){let{key:t,pos:n}=e;return FE(t,n)}function hH(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}var gH=d({compatConfig:{MODE:3},name:`NodeList`,inheritAttrs:!1,props:hE,setup(e,t){let{expose:n,attrs:r}=t,i=W(),o=W(),{expandedKeys:c,flattenNodes:l}=fE();n({scrollTo:e=>{i.value.scrollTo(e)},getIndentWidth:()=>o.value.offsetWidth});let u=M(l.value),d=M([]),f=W(null);function p(){u.value=l.value,d.value=[],f.value=null,e.onListChangeEnd()}let m=lE();H([()=>c.value.slice(),l],(t,n)=>{let[r,i]=t,[a,o]=n,s=iH(a,r);if(s.key!==null){let{virtual:t,height:n,itemHeight:r}=e;if(s.add){let e=o.findIndex(e=>{let{key:t}=e;return t===s.key}),a=pH(aH(o,i,s.key),t,n,r),c=o.slice();c.splice(e+1,0,fH),u.value=c,d.value=a,f.value=`show`}else{let e=i.findIndex(e=>{let{key:t}=e;return t===s.key}),a=pH(aH(i,o,s.key),t,n,r),c=i.slice();c.splice(e+1,0,fH),u.value=c,d.value=a,f.value=`hide`}}else o!==i&&(u.value=i)}),H(()=>m.value.dragging,e=>{e||p()});let h=a(()=>e.motion===void 0?u.value:l.value),g=()=>{e.onActiveChange(null)};return()=>{let t=G(G({},e),r),{prefixCls:n,selectable:a,checkable:c,disabled:l,motion:u,height:m,itemHeight:_,virtual:y,focusable:b,activeItem:x,focused:S,tabindex:C,onKeydown:w,onFocus:T,onBlur:E,onListChangeStart:D,onListChangeEnd:O}=t,k=oH(t,[`prefixCls`,`selectable`,`checkable`,`disabled`,`motion`,`height`,`itemHeight`,`virtual`,`focusable`,`activeItem`,`focused`,`tabindex`,`onKeydown`,`onFocus`,`onBlur`,`onListChangeStart`,`onListChangeEnd`]);return s(v,null,[S&&x&&s(`span`,{style:sH,"aria-live":`assertive`},[hH(x)]),s(`div`,null,[s(`input`,{style:sH,disabled:b===!1||l,tabindex:b===!1?null:C,onKeydown:w,onFocus:T,onBlur:E,value:``,onChange:cH,"aria-label":`for screen reader`},null)]),s(`div`,{class:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`}},[s(`div`,{class:`${n}-indent`},[s(`div`,{ref:o,class:`${n}-indent-unit`},null)])]),s(vu,X(X({},Gn(k,[`onActiveChange`])),{},{data:h.value,itemKey:mH,height:m,fullHeight:!1,virtual:y,itemHeight:_,prefixCls:`${n}-list`,ref:i,onVisibleChange:(e,t)=>{let n=new Set(e);t.filter(e=>!n.has(e)).some(e=>mH(e)===lH)&&p()}}),{default:e=>{let{pos:t}=e,n=oH(e.data,[]),{title:r,key:i,isStart:a,isEnd:o}=e,c=FE(i,t);return delete n.key,delete n.children,s(rH,X(X({},n),{},{eventKey:c,title:r,active:!!x&&i===x.key,data:e.data,isStart:a,isEnd:o,motion:u,motionNodes:i===lH?d.value:null,motionType:f.value,onMotionStart:D,onMotionEnd:p,onMousemove:g}),null)}})])}}});function _H(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:`2px`};switch(t){case-1:i.top=0,i.left=`${-n*r}px`;break;case 1:i.bottom=0,i.left=`${-n*r}px`;break;case 0:i.bottom=0,i.left=`${r}`}return s(`div`,{style:i},null)}var vH=10,yH=d({compatConfig:{MODE:3},name:`Tree`,inheritAttrs:!1,props:Vn(gE(),{prefixCls:`vc-tree`,showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:_H,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:r,expose:i}=t,o=M(!1),c={},l=M(),u=M([]),d=M([]),f=M([]),p=M([]),m=M([]),h=M([]),g={},_=k({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),v=M([]);H([()=>e.treeData,()=>e.children],()=>{v.value=e.treeData===void 0?LE(se(e.children)):e.treeData.slice()},{immediate:!0,deep:!0});let y=M({}),b=M(!1),S=M(null),C=M(!1),w=a(()=>IE(e.fieldNames)),T=M(),D=null,O=null,A=null,j=a(()=>({expandedKeysSet:N.value,selectedKeysSet:F.value,loadedKeysSet:I.value,loadingKeysSet:L.value,checkedKeysSet:ee.value,halfCheckedKeysSet:R.value,dragOverNodeKey:_.dragOverNodeKey,dropPosition:_.dropPosition,keyEntities:y.value})),N=a(()=>new Set(h.value)),F=a(()=>new Set(u.value)),I=a(()=>new Set(p.value)),L=a(()=>new Set(m.value)),ee=a(()=>new Set(d.value)),R=a(()=>new Set(f.value));P(()=>{if(v.value){let e=BE(v.value,{fieldNames:w.value});y.value=G({[lH]:dH},e.keyEntities)}});let z=!1;H([()=>e.expandedKeys,()=>e.autoExpandParent,y],(t,n)=>{let[r,i]=t,[a,o]=n,s=h.value;if(e.expandedKeys!==void 0||z&&i!==o)s=e.autoExpandParent||!z&&e.defaultExpandParent?NE(e.expandedKeys,y.value):e.expandedKeys;else if(!z&&e.defaultExpandAll){let e=G({},y.value);delete e[lH],s=Object.keys(e).map(t=>e[t].key)}else!z&&e.defaultExpandedKeys&&(s=e.autoExpandParent||e.defaultExpandParent?NE(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);s&&(h.value=s),z=!0},{immediate:!0});let B=M([]);P(()=>{B.value=RE(v.value,h.value,w.value)}),P(()=>{e.selectable&&(e.selectedKeys===void 0?!z&&e.defaultSelectedKeys&&(u.value=jE(e.defaultSelectedKeys,e)):u.value=jE(e.selectedKeys,e))});let{maxLevel:te,levelEntities:V}=pD(y);P(()=>{if(e.checkable){let t;if(e.checkedKeys===void 0?!z&&e.defaultCheckedKeys?t=ME(e.defaultCheckedKeys)||{}:v.value&&(t=ME(e.checkedKeys)||{checkedKeys:d.value,halfCheckedKeys:f.value}):t=ME(e.checkedKeys)||{},t){let{checkedKeys:n=[],halfCheckedKeys:r=[]}=t;if(!e.checkStrictly){let e=nD(n,!0,y.value,te.value,V.value);({checkedKeys:n,halfCheckedKeys:r}=e)}d.value=n,f.value=r}}}),P(()=>{e.loadedKeys&&(p.value=e.loadedKeys)});let ne=()=>{G(_,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},re=e=>{T.value.scrollTo(e)};H(()=>e.activeKey,()=>{e.activeKey!==void 0&&(S.value=e.activeKey)},{immediate:!0}),H(S,e=>{x(()=>{e!==null&&re({key:e})})},{immediate:!0,flush:`post`});let U=t=>{e.expandedKeys===void 0&&(h.value=t)},ie=()=>{_.draggingNodeKey!==null&&G(_,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),D=null,A=null},W=(t,n)=>{let{onDragend:r}=e;_.dragOverNodeKey=null,ie(),r?.({event:t,node:n.eventData}),O=null},ae=e=>{W(e,null,!0),window.removeEventListener(`dragend`,ae)},oe=(t,n)=>{let{onDragstart:r}=e,{eventKey:i,eventData:a}=n;O=n,D={x:t.clientX,y:t.clientY};let o=SE(h.value,i);_.draggingNodeKey=i,_.dragChildrenKeys=DE(i,y.value),l.value=T.value.getIndentWidth(),U(o),window.addEventListener(`dragend`,ae),r&&r({event:t,node:a})},ce=(t,n)=>{let{onDragenter:r,onExpand:i,allowDrop:a,direction:o}=e,{pos:s,eventKey:u}=n;if(A!==u&&(A=u),!O){ne();return}let{dropPosition:d,dropLevelOffset:f,dropTargetKey:p,dropContainerKey:m,dropTargetPos:g,dropAllowed:v,dragOverNodeKey:b}=AE(t,O,n,l.value,D,a,B.value,y.value,N.value,o);if(_.dragChildrenKeys.indexOf(p)!==-1||!v){ne();return}if(c||={},Object.keys(c).forEach(e=>{clearTimeout(c[e])}),O.eventKey!==n.eventKey&&(c[s]=window.setTimeout(()=>{if(_.draggingNodeKey===null)return;let e=h.value.slice(),r=y.value[n.eventKey];r&&(r.children||[]).length&&(e=CE(h.value,n.eventKey)),U(e),i&&i(e,{node:n.eventData,expanded:!0,nativeEvent:t})},800)),O.eventKey===p&&f===0){ne();return}G(_,{dragOverNodeKey:b,dropPosition:d,dropLevelOffset:f,dropTargetKey:p,dropContainerKey:m,dropTargetPos:g,dropAllowed:v}),r&&r({event:t,node:n.eventData,expandedKeys:h.value})},le=(t,n)=>{let{onDragover:r,allowDrop:i,direction:a}=e;if(!O)return;let{dropPosition:o,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropAllowed:d,dropTargetPos:f,dragOverNodeKey:p}=AE(t,O,n,l.value,D,i,B.value,y.value,N.value,a);_.dragChildrenKeys.indexOf(c)!==-1||!d||(O.eventKey===c&&s===0?(_.dropPosition!==null||_.dropLevelOffset!==null||_.dropTargetKey!==null||_.dropContainerKey!==null||_.dropTargetPos!==null||_.dropAllowed!==!1||_.dragOverNodeKey!==null)&&ne():(o!==_.dropPosition||s!==_.dropLevelOffset||c!==_.dropTargetKey||u!==_.dropContainerKey||f!==_.dropTargetPos||d!==_.dropAllowed||p!==_.dragOverNodeKey)&&G(_,{dropPosition:o,dropLevelOffset:s,dropTargetKey:c,dropContainerKey:u,dropTargetPos:f,dropAllowed:d,dragOverNodeKey:p}),r&&r({event:t,node:n.eventData}))},ue=(t,n)=>{A===n.eventKey&&!t.currentTarget.contains(t.relatedTarget)&&(ne(),A=null);let{onDragleave:r}=e;r&&r({event:t,node:n.eventData})},de=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{dragChildrenKeys:i,dropPosition:a,dropTargetKey:o,dropTargetPos:s,dropAllowed:c}=_;if(!c)return;let{onDrop:l}=e;if(_.dragOverNodeKey=null,ie(),o===null)return;let u=G(G({},VE(o,se(j.value))),{active:Ee.value?.key===o,data:y.value[o].node});i.indexOf(o);let d=wE(s),f={event:t,node:HE(u),dragNode:O?O.eventData:null,dragNodesKeys:[O.eventKey].concat(i),dropToGap:a!==0,dropPosition:a+Number(d[d.length-1])};r||l?.(f),O=null},fe=(e,t)=>{let{expanded:n,key:r}=t,i=B.value.filter(e=>e.key===r)[0],a=HE(G(G({},VE(r,j.value)),{data:i.data}));U(n?SE(h.value,r):CE(h.value,r)),Se(e,a)},pe=(t,n)=>{let{onClick:r,expandAction:i}=e;i===`click`&&fe(t,n),r&&r(t,n)},me=(t,n)=>{let{onDblclick:r,expandAction:i}=e;(i===`doubleclick`||i===`dblclick`)&&fe(t,n),r&&r(t,n)},he=(t,n)=>{let r=u.value,{onSelect:i,multiple:a}=e,{selected:o}=n,s=n[w.value.key],c=!o;r=c?a?CE(r,s):[s]:SE(r,s);let l=y.value,d=r.map(e=>{let t=l[e];return t?t.node:null}).filter(e=>e);e.selectedKeys===void 0&&(u.value=r),i&&i(r,{event:`select`,selected:c,node:n,selectedNodes:d,nativeEvent:t})},ge=(t,n,r)=>{let{checkStrictly:i,onCheck:a}=e,o=n[w.value.key],s,c={event:`check`,node:n,checked:r,nativeEvent:t},l=y.value;if(i){let t=r?CE(d.value,o):SE(d.value,o);s={checked:t,halfChecked:SE(f.value,o)},c.checkedNodes=t.map(e=>l[e]).filter(e=>e).map(e=>e.node),e.checkedKeys===void 0&&(d.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=nD([...d.value,o],!0,l,te.value,V.value);if(!r){let e=new Set(t);e.delete(o),{checkedKeys:t,halfCheckedKeys:n}=nD(Array.from(e),{checked:!1,halfCheckedKeys:n},l,te.value,V.value)}s=t,c.checkedNodes=[],c.checkedNodesPositions=[],c.halfCheckedKeys=n,t.forEach(e=>{let t=l[e];if(!t)return;let{node:n,pos:r}=t;c.checkedNodes.push(n),c.checkedNodesPositions.push({node:n,pos:r})}),e.checkedKeys===void 0&&(d.value=t,f.value=n)}a&&a(s,c)},_e=t=>{let n=t[w.value.key],r=new Promise((r,i)=>{let{loadData:a,onLoad:o}=e;if(!a||I.value.has(n)||L.value.has(n))return null;a(t).then(()=>{let i=CE(p.value,n),a=SE(m.value,n);o&&o(i,{event:`load`,node:t}),e.loadedKeys===void 0&&(p.value=i),m.value=a,r()}).catch(t=>{let a=SE(m.value,n);if(m.value=a,g[n]=(g[n]||0)+1,g[n]>=vH){let t=CE(p.value,n);e.loadedKeys===void 0&&(p.value=t),r()}i(t)}),m.value=CE(m.value,n)});return r.catch(()=>{}),r},K=(t,n)=>{let{onMouseenter:r}=e;r&&r({event:t,node:n})},ve=(t,n)=>{let{onMouseleave:r}=e;r&&r({event:t,node:n})},ye=(t,n)=>{let{onRightClick:r}=e;r&&(t.preventDefault(),r({event:t,node:n}))},be=t=>{let{onFocus:n}=e;b.value=!0,n&&n(t)},xe=t=>{let{onBlur:n}=e;b.value=!1,Te(null),n&&n(t)},Se=(t,n)=>{let r=h.value,{onExpand:i,loadData:a}=e,{expanded:o}=n,s=n[w.value.key];if(C.value)return;r.indexOf(s);let c=!o;if(r=c?CE(r,s):SE(r,s),U(r),i&&i(r,{node:n,expanded:c,nativeEvent:t}),c&&a){let e=_e(n);e&&e.then(()=>{}).catch(e=>{let t=SE(h.value,s);U(t),Promise.reject(e)})}},Ce=()=>{C.value=!0},we=()=>{setTimeout(()=>{C.value=!1})},Te=t=>{let{onActiveChange:n}=e;S.value!==t&&(e.activeKey!==void 0&&(S.value=t),t!==null&&re({key:t}),n&&n(t))},Ee=a(()=>S.value===null?null:B.value.find(e=>{let{key:t}=e;return t===S.value})||null),De=e=>{let t=B.value.findIndex(e=>{let{key:t}=e;return t===S.value});t===-1&&e<0&&(t=B.value.length),t=(t+e+B.value.length)%B.value.length;let n=B.value[t];if(n){let{key:e}=n;Te(e)}else Te(null)},Oe=a(()=>HE(G(G({},VE(S.value,j.value)),{data:Ee.value.data,active:!0}))),ke=t=>{let{onKeydown:n,checkable:r,selectable:i}=e;switch(t.which){case $.UP:De(-1),t.preventDefault();break;case $.DOWN:De(1),t.preventDefault()}let a=Ee.value;if(a&&a.data){let e=a.data.isLeaf===!1||!!(a.data.children||[]).length,n=Oe.value;switch(t.which){case $.LEFT:e&&N.value.has(S.value)?Se({},n):a.parent&&Te(a.parent.key),t.preventDefault();break;case $.RIGHT:e&&!N.value.has(S.value)?Se({},n):a.children&&a.children.length&&Te(a.children[0].key),t.preventDefault();break;case $.ENTER:case $.SPACE:r&&!n.disabled&&n.checkable!==!1&&!n.disableCheckbox?ge({},n,!ee.value.has(S.value)):!r&&i&&!n.disabled&&n.selectable!==!1&&he({},n)}}n&&n(t)};return i({onNodeExpand:Se,scrollTo:re,onKeydown:ke,selectedKeys:a(()=>u.value),checkedKeys:a(()=>d.value),halfCheckedKeys:a(()=>f.value),loadedKeys:a(()=>p.value),loadingKeys:a(()=>m.value),expandedKeys:a(()=>h.value)}),E(()=>{window.removeEventListener(`dragend`,ae),o.value=!0}),dE({expandedKeys:h,selectedKeys:u,loadedKeys:p,loadingKeys:m,checkedKeys:d,halfCheckedKeys:f,expandedKeysSet:N,selectedKeysSet:F,loadedKeysSet:I,loadingKeysSet:L,checkedKeysSet:ee,halfCheckedKeysSet:R,flattenNodes:B}),()=>{let{draggingNodeKey:t,dropLevelOffset:i,dropContainerKey:a,dropTargetKey:o,dropPosition:c,dragOverNodeKey:u}=_,{prefixCls:d,showLine:f,focusable:p,tabindex:m=0,selectable:h,showIcon:g,icon:v=r.icon,switcherIcon:x,draggable:C,checkable:w,checkStrictly:E,disabled:D,motion:O,loadData:k,filterTreeNode:A,height:j,itemHeight:M,virtual:N,dropIndicatorRender:P,onContextmenu:F,onScroll:I,direction:L,rootClassName:ee,rootStyle:R}=e,{class:z,style:B}=n,te=un(G(G({},e),n),{aria:!0,data:!0}),V;return V=C?typeof C==`object`?C:typeof C==`function`?{nodeDraggable:C}:{}:!1,s(cE,{value:{prefixCls:d,selectable:h,showIcon:g,icon:v,switcherIcon:x,draggable:V,draggingNodeKey:t,checkable:w,customCheckable:r.checkable,checkStrictly:E,disabled:D,keyEntities:y.value,dropLevelOffset:i,dropContainerKey:a,dropTargetKey:o,dropPosition:c,dragOverNodeKey:u,dragging:t!==null,indent:l.value,direction:L,dropIndicatorRender:P,loadData:k,filterTreeNode:A,onNodeClick:pe,onNodeDoubleClick:me,onNodeExpand:Se,onNodeSelect:he,onNodeCheck:ge,onNodeLoad:_e,onNodeMouseEnter:K,onNodeMouseLeave:ve,onNodeContextMenu:ye,onNodeDragStart:oe,onNodeDragEnter:ce,onNodeDragOver:le,onNodeDragLeave:ue,onNodeDragEnd:W,onNodeDrop:de,slots:r}},{default:()=>[s(`div`,{role:`tree`,class:Z(d,z,ee,{[`${d}-show-line`]:f,[`${d}-focused`]:b.value,[`${d}-active-focused`]:S.value!==null}),style:R},[s(gH,X({ref:T,prefixCls:d,style:B,disabled:D,selectable:h,checkable:!!w,motion:O,height:j,itemHeight:M,virtual:N,focusable:p,focused:b.value,tabindex:m,activeItem:Ee.value,onFocus:be,onBlur:xe,onKeydown:ke,onActiveChange:Te,onListChangeStart:Ce,onListChangeEnd:we,onContextmenu:F,onScroll:I},te),null)])]})}}}),bH=yH,xH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`};function SH(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),VH=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),HH=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,treeTitleHeight:a}=t,o=(a-t.fontSizeLG)/2,s=t.paddingXS;return{[n]:G(G({},Ne(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:`rotate(90deg)`}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:G({},xe(t)),[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging`]:{position:`relative`,"&:after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:i,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:zH,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`}}}},[`${r}`]:{display:`flex`,alignItems:`flex-start`,padding:`0 0 ${i}px 0`,outline:`none`,"&-rtl":{direction:`rtl`},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}}},[`&-active ${n}-node-content-wrapper`]:G({},xe(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:`inherit`,fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:`center`,visibility:`visible`,opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:`hidden`}}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:a}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher`]:G(G({},BH(e,t)),{position:`relative`,flex:`none`,alignSelf:`stretch`,width:a,margin:0,lineHeight:`${a}px`,textAlign:`center`,cursor:`pointer`,userSelect:`none`,"&-noop":{cursor:`default`},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:`rotate(-90deg)`}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:a/2,bottom:-i,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}}),[`${n}-checkbox`]:{top:`initial`,marginInlineEnd:s,marginBlockStart:o},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:`relative`,zIndex:`auto`,minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:`inherit`,lineHeight:`${a}px`,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:`inline-block`,width:a,height:a,lineHeight:`${a}px`,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${n}-node-content-wrapper`]:G({lineHeight:`${a}px`,userSelect:`none`},VH(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:a/2,bottom:-i,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end":{"&:before":{display:`none`}}}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:`auto !important`,bottom:`auto !important`,height:`${a/2}px !important`}}}}})}},UH=e=>{let{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:`relative`,"&:before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:`""`,pointerEvents:`none`},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:`none`,"&:hover":{background:`transparent`},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:`transparent`}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:`transparent`}}}}}},WH=(e,t)=>{let n=`.${e}`,r=`${n}-treenode`,i=t.paddingXS/2,a=t.controlHeightSM,o=Fe(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i,treeTitleHeight:a});return[HH(e,o),UH(o)]},GH=Le(`Tree`,(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:qk(`${n}-checkbox`,e)},WH(n,e),Hh(e)]}),KH=()=>{let e=gE();return G(G({},e),{showLine:$t([Boolean,Object]),multiple:Y(),autoExpandParent:Y(),checkStrictly:Y(),checkable:Y(),disabled:Y(),defaultExpandAll:Y(),defaultExpandParent:Y(),defaultExpandedKeys:vt(),expandedKeys:vt(),checkedKeys:$t([Array,Object]),defaultCheckedKeys:vt(),selectedKeys:vt(),defaultSelectedKeys:vt(),selectable:Y(),loadedKeys:vt(),draggable:Y(),showIcon:Y(),icon:Q(),switcherIcon:J.any,prefixCls:String,replaceFields:ut(),blockNode:Y(),openAnimation:J.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Q(),"onUpdate:checkedKeys":Q(),"onUpdate:expandedKeys":Q()})},qH=d({compatConfig:{MODE:3},name:`ATree`,inheritAttrs:!1,props:Vn(KH(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:r,emit:i,slots:o}=t;e.treeData===void 0&&o.default;let{prefixCls:c,direction:l,virtual:u}=K(`tree`,e),[d,f]=GH(c),p=W();r({treeRef:p,onNodeExpand:function(){var e;(e=p.value)==null||e.onNodeExpand(...arguments)},scrollTo:e=>{var t;(t=p.value)==null||t.scrollTo(e)},selectedKeys:a(()=>p.value?.selectedKeys),checkedKeys:a(()=>p.value?.checkedKeys),halfCheckedKeys:a(()=>p.value?.halfCheckedKeys),loadedKeys:a(()=>p.value?.loadedKeys),loadingKeys:a(()=>p.value?.loadingKeys),expandedKeys:a(()=>p.value?.expandedKeys)}),P(()=>{ir(e.replaceFields===void 0,`Tree`,"`replaceFields` is deprecated, please use fieldNames instead")});let m=(e,t)=>{i(`update:checkedKeys`,e),i(`check`,e,t)},h=(e,t)=>{i(`update:expandedKeys`,e),i(`expand`,e,t)},g=(e,t)=>{i(`update:selectedKeys`,e),i(`select`,e,t)};return()=>{let{showIcon:t,showLine:r,switcherIcon:i=o.switcherIcon,icon:a=o.icon,blockNode:_,checkable:v,selectable:y,fieldNames:b=e.replaceFields,motion:x=e.openAnimation,itemHeight:S=28,onDoubleclick:C,onDblclick:w}=e,T=G(G(G({},n),Gn(e,[`onUpdate:checkedKeys`,`onUpdate:expandedKeys`,`onUpdate:selectedKeys`,`onDoubleclick`])),{showLine:!!r,dropIndicatorRender:RH,fieldNames:b,icon:a,itemHeight:S}),E=o.default?ve(o.default()):void 0;return d(s(bH,X(X({},T),{},{virtual:u.value,motion:x,ref:p,prefixCls:c.value,class:Z({[`${c.value}-icon-hide`]:!t,[`${c.value}-block-node`]:_,[`${c.value}-unselectable`]:!y,[`${c.value}-rtl`]:l.value===`rtl`},n.class,f.value),direction:l.value,checkable:v,selectable:y,switcherIcon:e=>LH(c.value,i,e,o.leafIcon,r),onCheck:m,onExpand:h,onSelect:g,onDblclick:w||C,children:E}),G(G({},o),{checkable:()=>s(`span`,{class:`${c.value}-checkbox-inner`},null)})))}}}),JH={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`};function YH(e){for(var t=1;t{if(s===nU.End)return!1;if(c(e)){if(o.push(e),s===nU.None)s=nU.Start;else if(s===nU.Start)return s=nU.End,!1}else s===nU.Start&&o.push(e);return n.includes(e)}),o}function aU(e,t,n){let r=[...t],i=[];return rU(e,n,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length}),i}var oU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iG(G({},KH()),{expandAction:$t([Boolean,String])});function cU(e){let{isLeaf:t,expanded:n}=e;return s(t?wH:n?ZH:tU,null,null)}var lU=d({compatConfig:{MODE:3},name:`ADirectoryTree`,inheritAttrs:!1,props:Vn(sU(),{showIcon:!0,expandAction:`click`}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:i,expose:o}=t,c=W(e.treeData||LE(ve(r.default?.call(r))));H(()=>e.treeData,()=>{c.value=e.treeData}),O(()=>{x(()=>{e.treeData===void 0&&r.default&&(c.value=LE(ve(r.default?.call(r))))})});let l=W(),u=W(),d=a(()=>IE(e.fieldNames)),f=W();o({scrollTo:e=>{var t;(t=f.value)==null||t.scrollTo(e)},selectedKeys:a(()=>f.value?.selectedKeys),checkedKeys:a(()=>f.value?.checkedKeys),halfCheckedKeys:a(()=>f.value?.halfCheckedKeys),loadedKeys:a(()=>f.value?.loadedKeys),loadingKeys:a(()=>f.value?.loadingKeys),expandedKeys:a(()=>f.value?.expandedKeys)});let p=()=>{let{keyEntities:t}=BE(c.value,{fieldNames:d.value}),n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?NE(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n},m=W(e.selectedKeys||e.defaultSelectedKeys||[]),h=W(p());H(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(m.value=e.selectedKeys)},{immediate:!0}),H(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});let g=Km((e,t)=>{let{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||f.value.onNodeExpand(e,t)},200,{leading:!0}),_=(t,n)=>{e.expandedKeys===void 0&&(h.value=t),i(`update:expandedKeys`,t),i(`expand`,t,n)},v=(t,n)=>{let{expandAction:r}=e;r===`click`&&g(t,n),i(`click`,t,n)},y=(t,n)=>{let{expandAction:r}=e;(r===`dblclick`||r===`doubleclick`)&&g(t,n),i(`doubleclick`,t,n),i(`dblclick`,t,n)},b=(t,n)=>{let{multiple:r}=e,{node:a,nativeEvent:o}=n,s=a[d.value.key],f=G(G({},n),{selected:!0}),p=o?.ctrlKey||o?.metaKey,g=o?.shiftKey,_;r&&p?(_=t,l.value=s,u.value=_,f.selectedNodes=aU(c.value,_,d.value)):r&&g?(_=Array.from(new Set([...u.value||[],...iU({treeData:c.value,expandedKeys:h.value,startKey:s,endKey:l.value,fieldNames:d.value})])),f.selectedNodes=aU(c.value,_,d.value)):(_=[s],l.value=s,u.value=_,f.selectedNodes=aU(c.value,_,d.value)),i(`update:selectedKeys`,_),i(`select`,_,f),e.selectedKeys===void 0&&(m.value=_)},S=(e,t)=>{i(`update:checkedKeys`,e),i(`check`,e,t)},{prefixCls:C,direction:w}=K(`tree`,e);return()=>{let t=Z(`${C.value}-directory`,{[`${C.value}-directory-rtl`]:w.value===`rtl`},n.class),{icon:i=r.icon,blockNode:a=!0}=e,o=oU(e,[`icon`,`blockNode`]);return s(qH,X(X(X({},n),{},{icon:i||cU,ref:f,blockNode:a},o),{},{prefixCls:C.value,class:t,expandedKeys:h.value,selectedKeys:m.value,onSelect:b,onClick:v,onDblclick:y,onExpand:_,onCheck:S}),r)}}}),uU=xE,dU=G(qH,{DirectoryTree:lU,TreeNode:uU,install:e=>(e.component(qH.name,qH),e.component(uU.name,uU),e.component(lU.name,lU),e)});function fU(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=new Set;function i(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=r.has(e);if(In(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;ni(e[n],t[n],s))}return!1}return i(e,t)}var{SubMenu:pU,Item:mU}=vy;function hU(e){return e.some(e=>{let{children:t}=e;return t&&t.length>0})}function gU(e,t){return typeof t==`string`||typeof t==`number`?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function _U(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return s(pU,{key:c||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[_U({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:o})]});let l=i?dA:xS,u=s(mU,{key:e.value===void 0?t:c},{default:()=>[s(l,{checked:r.includes(c)},null),s(`span`,null,[e.text])]});return a.trim()?typeof o==`function`?o(a,e)?u:void 0:gU(a,e.text)?u:void 0:u})}var vU=d({name:`FilterDropdown`,props:[`tablePrefixCls`,`prefixCls`,`dropdownPrefixCls`,`column`,`filterState`,`filterMultiple`,`filterMode`,`filterSearch`,`columnKey`,`triggerFilter`,`locale`,`getPopupContainer`],setup(e,t){let{slots:n}=t,r=$z(),i=a(()=>e.filterMode??`menu`),o=a(()=>e.filterSearch??!1),c=a(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),l=a(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),u=M(!1),d=a(()=>!!(e.filterState&&(e.filterState.filteredKeys?.length||e.filterState.forceFiltered))),f=a(()=>xU(e.column?.filters)),m=a(()=>{let{filterDropdown:t,slots:n={},customFilterDropdown:i}=e.column;return t||n.filterDropdown&&r.value[n.filterDropdown]||i&&r.value.customFilterDropdown}),h=a(()=>{let{filterIcon:t,slots:n={}}=e.column;return t||n.filterIcon&&r.value[n.filterIcon]||r.value.customFilterIcon}),g=e=>{var t;u.value=e,(t=l.value)==null||t.call(l,e)},_=a(()=>typeof c.value==`boolean`?c.value:u.value),y=a(()=>e.filterState?.filteredKeys),b=M([]),x=e=>{let{selectedKeys:t}=e;b.value=t},S=(t,n)=>{let{node:r,checked:i}=n;e.filterMultiple?x({selectedKeys:t}):x({selectedKeys:i&&r.key?[r.key]:[]})};H(y,()=>{u.value&&x({selectedKeys:y.value||[]})},{immediate:!0});let C=M([]),w=M(),T=e=>{w.value=setTimeout(()=>{C.value=e})},E=()=>{clearTimeout(w.value)};p(()=>{clearTimeout(w.value)});let D=M(``),O=e=>{let{value:t}=e.target;D.value=t};H(u,()=>{u.value||(D.value=``)});let k=t=>{let{column:n,columnKey:r,filterState:i}=e,a=t&&t.length?t:null;if(a===null&&(!i||!i.filteredKeys)||fU(a,i?.filteredKeys,!0))return null;e.triggerFilter({column:n,key:r,filteredKeys:a})},A=()=>{g(!1),k(b.value)},j=function(){let{confirm:t,closeDropdown:n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};t&&k([]),n&&g(!1),D.value=``,e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(e=>String(e)):b.value=[]},N=function(){let{closeDropdown:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};e&&g(!1),k(b.value)},P=e=>{e&&y.value!==void 0&&(b.value=y.value||[]),g(e),!e&&!m.value&&A()},{direction:F}=K(``,e),I=e=>{if(e.target.checked){let e=f.value;b.value=e}else b.value=[]},L=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?t:n};return e.children&&(r.children=L({filters:e.children})),r})},ee=e=>G(G({},e),{text:e.title,value:e.key,children:e.children?.map(e=>ee(e))||[]}),R=a(()=>L({filters:e.column.filters})),z=a(()=>Z({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!hU(e.column.filters||[])})),B=()=>{let t=b.value,{column:n,locale:r,tablePrefixCls:a,filterMultiple:c,dropdownPrefixCls:l,getPopupContainer:u,prefixCls:d}=e;return(n.filters||[]).length===0?s(fe,{image:fe.PRESENTED_IMAGE_SIMPLE,description:r.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:`16px 0`}},null):i.value===`tree`?s(v,null,[s(tH,{filterSearch:o.value,value:D.value,onChange:O,tablePrefixCls:a,locale:r},null),s(`div`,{class:`${a}-filter-dropdown-tree`},[c?s(dA,{class:`${a}-filter-dropdown-checkall`,onChange:I,checked:t.length===f.value.length,indeterminate:t.length>0&&t.length[r.filterCheckall]}):null,s(dU,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,class:`${l}-menu`,onCheck:S,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:D.value.trim()?e=>typeof o.value==`function`?o.value(D.value,ee(e)):gU(D.value,e.title):void 0},null)])]):s(v,null,[s(tH,{filterSearch:o.value,value:D.value,onChange:O,tablePrefixCls:a,locale:r},null),s(vy,{multiple:c,prefixCls:`${l}-menu`,class:z.value,onClick:E,onSelect:x,onDeselect:x,selectedKeys:t,getPopupContainer:u,openKeys:C.value,onOpenChange:T},{default:()=>_U({filters:n.filters||[],filterSearch:o.value,prefixCls:d,filteredKeys:b.value,filterMultiple:c,searchValue:D.value})})])},te=a(()=>{let t=b.value;return e.column.filterResetToDefaultFilteredValue?fU((e.column.defaultFilteredValue||[]).map(e=>String(e)),t,!0):t.length===0});return()=>{let{tablePrefixCls:t,prefixCls:r,column:i,dropdownPrefixCls:a,locale:o,getPopupContainer:c}=e,l;l=typeof m.value==`function`?m.value({prefixCls:`${a}-custom`,setSelectedKeys:e=>x({selectedKeys:e}),selectedKeys:b.value,confirm:N,clearFilters:j,filters:i.filters,visible:_.value,column:i.__originColumn__,close:()=>{g(!1)}}):m.value?m.value:s(v,null,[B(),s(`div`,{class:`${r}-dropdown-btns`},[s(Ln,{type:`link`,size:`small`,disabled:te.value,onClick:()=>j()},{default:()=>[o.filterReset]}),s(Ln,{type:`primary`,size:`small`,onClick:A},{default:()=>[o.filterConfirm]})])]);let u=s(eH,{class:`${r}-dropdown`},{default:()=>[l]}),f;return f=typeof h.value==`function`?h.value({filtered:d.value,column:i.__originColumn__}):h.value?h.value:s(QV,null,null),s(`div`,{class:`${r}-column`},[s(`span`,{class:`${t}-column-title`},[n.default?.call(n)]),s(wj,{overlay:u,trigger:[`click`],open:_.value,onOpenChange:P,getPopupContainer:c,placement:F.value===`rtl`?`bottomLeft`:`bottomRight`},{default:()=>[s(`span`,{role:`button`,tabindex:-1,class:Z(`${r}-trigger`,{active:d.value}),onClick:e=>{e.stopPropagation()}},[f])]})])}}});function yU(e,t,n){let r=[];return(e||[]).forEach((e,i)=>{let a=FV(i,n),o=e.filterDropdown||e?.slots?.filterDropdown||e.customFilterDropdown;if(e.filters||o||`onFilter`in e){if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:PV(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:PV(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered})}`children`in e&&(r=[...r,...yU(e.children,t,a)])}),r}function bU(e,t,n,r,i,a,o,c){return n.map((n,l)=>{let u=FV(l,c),{filterMultiple:d=!0,filterMode:f,filterSearch:p}=n,m=n,h=n.filterDropdown||n?.slots?.filterDropdown||n.customFilterDropdown;if(m.filters||h){let c=PV(m,u),l=r.find(e=>{let{key:t}=e;return c===t});m=G(G({},m),{title:r=>s(vU,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:c,filterState:l,filterMultiple:d,filterMode:f,filterSearch:p,triggerFilter:a,locale:i,getPopupContainer:o},{default:()=>[IV(n.title,r)]})})}return`children`in m&&(m=G(G({},m),{children:bU(e,t,m.children,r,i,a,o,u)})),m})}function xU(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[...t,...xU(r)])}),t}function SU(e){let t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:i}=e,a=i.filterDropdown||i?.slots?.filterDropdown||i.customFilterDropdown,{filters:o}=i;if(a)t[n]=r||null;else if(Array.isArray(r)){let e=xU(o);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function CU(e,t){return t.reduce((e,t)=>{let{column:{onFilter:n,filters:r},filteredKeys:i}=t;return n&&i&&i.length?e.filter(e=>i.some(t=>{let i=xU(r),a=i.findIndex(e=>String(e)===String(t)),o=a===-1?t:i[a];return n(o,e)})):e},e)}function wU(e){return e.flatMap(e=>`children`in e?[e,...wU(e.children||[])]:[e])}function TU(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,locale:i,onFilterChange:o,getPopupContainer:s}=e,c=a(()=>wU(r.value)),[l,u]=dn(yU(c.value,!0)),d=a(()=>{let e=yU(c.value,!1);if(e.length===0)return e;let t=!0,n=!0;if(e.forEach(e=>{let{filteredKeys:r}=e;r===void 0?n=!1:t=!1}),t){let e=(c.value||[]).map((e,t)=>PV(e,FV(t)));return l.value.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{let n=c.value[e.findIndex(e=>e===t.key)];return G(G({},t),{column:G(G({},t.column),n),forceFiltered:n.filtered})})}return ir(n,`Table`,"Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),f=a(()=>SU(d.value)),p=e=>{let t=d.value.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),u(t),o(SU(t),t)};return[e=>bU(t.value,n.value,e,d.value,i.value,p,s.value),d,f]}function EU(e,t){return e.map(e=>{let n=G({},e);return n.title=IV(n.title,t),`children`in n&&(n.children=EU(n.children,t)),n})}function DU(e){return[t=>EU(t,e.value)]}function OU(e){return function(t){let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,c=`${n}-row-expand-icon`;return s(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},class:Z(c,{[`${c}-spaced`]:!o,[`${c}-expanded`]:o&&a,[`${c}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a},null)}}function kU(e,t){let n=t.value;return e.map(e=>{if(e===vV||e===IB)return e;let r=G({},e),{slots:i={}}=r;return r.__originColumn__=e,ir(!(`slots`in r),`Table`,"`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(e=>{let t=i[e];r[e]===void 0&&n[t]&&(r[e]=n[t])}),t.value.headerCell&&!e.slots?.title&&(r.title=sr(t.value,`headerCell`,{title:e.title,column:e},()=>[e.title])),`children`in r&&Array.isArray(r.children)&&(r.children=kU(r.children,t)),r})}function AU(e){return[t=>kU(t,e)]}var jU=e=>{let{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(n,r,i)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:G(G(G({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:`transparent !important`}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:`absolute`,top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:`""`}}}}},[` + > ${t}-content, + > ${t}-header + `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> td":{borderInlineEnd:0}}}}}},r(`middle`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},MU=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:G(G({},tn),{wordBreak:`keep-all`,[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:`visible`,[`${t}-cell-content`]:{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`}},[`${t}-column-title`]:{overflow:`hidden`,textOverflow:`ellipsis`,wordBreak:`keep-all`}})}}},NU=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},PU=e=>{let{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:i,lineWidth:a,paddingXS:o,lineType:s,tableBorderColor:c,tableExpandIconBg:l,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:m,tablePaddingVertical:h,tablePaddingHorizontal:g,tableExpandedRowBg:_,paddingXXS:v}=e,y=r/2-a,b=y*2+a*3,x=`${a}px ${s} ${c}`,S=v-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:G(G({},Li(e)),{position:`relative`,float:`left`,boxSizing:`border-box`,width:b,height:b,padding:0,color:`inherit`,lineHeight:`${b}px`,background:l,border:x,borderRadius:d,transform:`scale(${r/b})`,transition:`all ${i}`,userSelect:`none`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${i} ease-out`,content:`""`},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:a},"&::after":{top:S,bottom:S,insetInlineStart:y,width:a,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*m-a*3)/2-Math.ceil((p*1.4-a*3)/2),marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:_}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`auto`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`-${h}px -${g}px`,padding:`${h}px ${g}px`}}}},FU=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorTextDescription:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T}=e,E=`${n}-dropdown`,D=`${t}-filter-dropdown`,O=`${n}-tree`,k=`${l}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:-o,marginInline:`${o}px ${-m/2}px`,padding:`0 ${o}px`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[D]:G(G({},Ne(e)),{minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,[`${E}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,"&:empty::after":{display:`block`,padding:`${s}px 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${D}-tree`]:{paddingBlock:`${s}px 0`,paddingInline:s,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:C},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${D}-search`]:{padding:s,borderBottom:k,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${D}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${D}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${s-l}px ${s}px`,overflow:`hidden`,backgroundColor:`inherit`,borderTop:k}})}},{[`${n}-dropdown ${D}, ${D}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]},IU=e=>{let{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s}=e,c=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:`sticky !important`,zIndex:a,background:o},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:`absolute`,top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:`translateX(100%)`,transition:`box-shadow ${i}`,content:`""`,pointerEvents:`none`},[`${t}-cell-fix-left-all::after`]:{display:`none`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:`absolute`,top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:`translateX(-100%)`,transition:`box-shadow ${i}`,content:`""`,pointerEvents:`none`},[`${t}-container`]:{"&::before, &::after":{position:`absolute`,top:0,bottom:0,zIndex:s+1,width:30,transition:`box-shadow ${i}`,content:`""`,pointerEvents:`none`},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:`relative`,"&::before":{boxShadow:`inset 10px 0 8px -8px ${c}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:`transparent !important`}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:`relative`,"&::after":{boxShadow:`inset -10px 0 8px -8px ${c}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}}}}},LU=e=>{let{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-left":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-right":{justifyContent:`flex-end`}}}}},RU=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},zU=e=>{let{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-pagination-left`]:{justifyContent:`flex-end`},[`${t}-pagination-right`]:{justifyContent:`flex-start`},[`${t}-row-expand-icon`]:{"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}}}}},BU=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,paddingXS:a,tableHeaderIconColor:o,tableHeaderIconColorHover:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:o,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:s}}}}}},VU=e=>{let{componentCls:t}=e,n=(n,r,i,a)=>({[`${t}${t}-${n}`]:{fontSize:a,[` + ${t}-title, + ${t}-footer, + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${r}px ${i}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${i/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${i}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${i/4}px`}}});return{[`${t}-wrapper`]:G(G({},n(`middle`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},HU=e=>{let{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:`absolute`,top:0,height:`100% !important`,bottom:0,left:` auto !important`,right:` -8px`,cursor:`col-resize`,touchAction:`none`,userSelect:`auto`,width:`16px`,zIndex:1,"&-line":{display:`block`,width:`1px`,marginLeft:`7px`,height:`100% !important`,backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:`hidden`,[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:`absolute`,top:0,bottom:0,content:`" "`,width:`200vw`,transform:`translateX(-50%)`,opacity:0}}}},UU=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},WU=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s}=e,c=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:s,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${a}px !important`,zIndex:s,display:`flex`,alignItems:`center`,background:o,borderTop:c,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},GU=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r}=e,i=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},KU=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,lineWidth:a,lineType:o,tableBorderColor:s,tableFontSize:c,tableBg:l,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:m,tableRowHoverBg:h,tableSelectedRowBg:g,tableSelectedRowHoverBg:_,tableFooterTextColor:v,tableFooterBg:y,paddingContentVerticalLG:b}=e,x=`${a}px ${o} ${s}`;return{[`${t}-wrapper`]:G(G({clear:`both`,maxWidth:`100%`},Ve()),{[t]:G(G({},Ne(e)),{fontSize:c,background:l,borderRadius:`${u}px ${u}px 0 0`}),table:{width:`100%`,textAlign:`start`,borderRadius:`${u}px ${u}px 0 0`,borderCollapse:`separate`,borderSpacing:0},[` + ${t}-thead > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:`relative`,padding:`${b}px ${i}px`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${r}px ${i}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:`relative`,color:d,fontWeight:n,textAlign:`start`,background:p,borderBottom:x,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:m,transform:`translateY(-50%)`,transition:`background-color ${f}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:x,borderBottom:`transparent`},"&:last-child > td":{borderBottom:x},[`&:first-child > td, + &${t}-measure-row + tr > td`]:{borderTop:`none`,borderTopColor:`transparent`}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:x}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` + &${t}-row:hover > td, + > td${t}-cell-row-hover + `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:g},"&:hover > td":{background:_}}}},[`${t}-footer`]:{padding:`${r}px ${i}px`,color:v,background:y}})}},qU=Le(`Table`,e=>{let{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:i,colorSplit:a,colorBorderSecondary:o,fontSize:s,padding:c,paddingXS:l,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:m,opacityLoading:h,colorBgContainer:g,borderRadiusLG:_,colorFillContent:v,colorFillSecondary:y,controlInteractiveSize:b}=e,x=new me(p),S=new me(m),C=t,w=new me(y).onBackground(g).toHexString(),T=new me(v).onBackground(g).toHexString(),E=new me(f).onBackground(g).toHexString(),D=Fe(e,{tableFontSize:s,tableBg:g,tableRadius:_,tablePaddingVertical:c,tablePaddingHorizontal:c,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:l,tablePaddingVerticalSmall:l,tablePaddingHorizontalSmall:l,tableBorderColor:o,tableHeaderTextColor:i,tableHeaderBg:E,tableFooterTextColor:i,tableFooterBg:E,tableHeaderCellSplitColor:o,tableHeaderSortBg:w,tableHeaderSortHoverBg:T,tableHeaderIconColor:x.clone().setAlpha(x.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:w,tableHeaderFilterActiveBg:v,tableFilterDropdownBg:g,tableRowHoverBg:E,tableSelectedRowBg:C,tableSelectedRowHoverBg:n,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:d,tableExpandIconBg:g,tableExpandColumnWidth:b+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollBg:a});return[KU(D),LU(D),GU(D),UU(D),FU(D),jU(D),RU(D),PU(D),GU(D),NU(D),BU(D),IU(D),WU(D),MU(D),VU(D),HU(D),zU(D)]}),JU=[],YU=()=>({prefixCls:q(),columns:vt(),rowKey:$t([String,Function]),tableLayout:q(),rowClassName:$t([String,Function]),title:Q(),footer:Q(),id:q(),showHeader:Y(),components:ut(),customRow:Q(),customHeaderRow:Q(),direction:q(),expandFixed:$t([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:vt(),defaultExpandedRowKeys:vt(),expandedRowRender:Q(),expandRowByClick:Y(),expandIcon:Q(),onExpand:Q(),onExpandedRowsChange:Q(),"onUpdate:expandedRowKeys":Q(),defaultExpandAllRows:Y(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Y(),expandedRowClassName:Q(),childrenColumnName:q(),rowExpandable:Q(),sticky:$t([Boolean,Object]),dropdownPrefixCls:String,dataSource:vt(),pagination:$t([Boolean,Object]),loading:$t([Boolean,Object]),size:q(),bordered:Y(),locale:ut(),onChange:Q(),onResizeColumn:Q(),rowSelection:ut(),getPopupContainer:Q(),scroll:ut(),sortDirections:vt(),showSorterTooltip:$t([Boolean,Object],!0),transformCellText:Q()}),XU=d({name:`InternalTable`,inheritAttrs:!1,props:Vn(G(G({},YU()),{contextSlots:ut()}),{rowKey:`key`}),setup(e,t){let{attrs:n,slots:r,expose:i,emit:o}=t;ir(!(typeof e.rowKey==`function`&&e.rowKey.length>1),`Table`,"`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),Qz(a(()=>e.contextSlots)),tB({onResizeColumn:(e,t)=>{o(`resizeColumn`,e,t)}});let c=Ag(),l=a(()=>{let t=new Set(Object.keys(c.value).filter(e=>c.value[e]));return e.columns.filter(e=>!e.responsive||e.responsive.some(e=>t.has(e)))}),{size:u,renderEmpty:d,direction:f,prefixCls:p,configProvider:m}=K(`table`,e),[h,g]=qU(p),_=a(()=>e.transformCellText||m.transformCellText?.value),[v]=Ft(`Table`,Ut.Table,y(e,`locale`)),b=a(()=>e.dataSource||JU),S=a(()=>m.getPrefixCls(`dropdown`,e.dropdownPrefixCls)),C=a(()=>e.childrenColumnName||`children`),w=a(()=>b.value.some(e=>e?.[C.value])?`nest`:e.expandedRowRender?`row`:null),T=k({body:null}),E=e=>{G(T,e)},D=a(()=>typeof e.rowKey==`function`?e.rowKey:t=>t?.[e.rowKey]),[O]=_V(b,C,D),A={},j=function(t,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],{pagination:i,scroll:a,onChange:o}=e,s=G(G({},A),t);r&&(A.resetPagination(),s.pagination.current&&(s.pagination.current=1),i&&i.onChange&&i.onChange(1,s.pagination.pageSize)),a&&a.scrollToFirstRowOnChange!==!1&&T.body&&ia(0,{getContainer:()=>T.body}),o?.(s.pagination,s.filters,s.sorter,{currentDataSource:CU(qV(b.value,s.sorterStates,C.value),s.filterStates),action:n})},[M,N,F,I]=JV({prefixCls:p,mergedColumns:l,onSorterChange:(e,t)=>{j({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:a(()=>e.sortDirections||[`ascend`,`descend`]),tableLocale:v,showSorterTooltip:y(e,`showSorterTooltip`)}),L=a(()=>qV(b.value,N.value,C.value)),[ee,R,z]=TU({prefixCls:p,locale:v,dropdownPrefixCls:S,mergedColumns:l,onFilterChange:(e,t)=>{j({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:y(e,`getPopupContainer`)}),B=a(()=>CU(L.value,R.value)),[te]=AU(y(e,`contextSlots`)),[V]=DU(a(()=>{let e={},t=z.value;return Object.keys(t).forEach(n=>{t[n]!==null&&(e[n]=t[n])}),G(G({},F.value),{filters:e})})),[ne,re]=gV(a(()=>B.value.length),y(e,`pagination`),(e,t)=>{j({pagination:G(G({},A.pagination),{current:e,pageSize:t})},`paginate`)});P(()=>{A.sorter=I.value,A.sorterStates=N.value,A.filters=z.value,A.filterStates=R.value,A.pagination=e.pagination===!1?{}:hV(ne.value,e.pagination),A.resetPagination=re});let U=a(()=>{if(e.pagination===!1||!ne.value.pageSize)return B.value;let{current:t=1,total:n,pageSize:r=10}=ne.value;return ir(t>0,`Table`,"`current` should be positive number."),B.value.lengthr?B.value.slice((t-1)*r,t*r):B.value:B.value.slice((t-1)*r,t*r)});P(()=>{x(()=>{let{total:e,pageSize:t=10}=ne.value;B.value.lengtht&&ir(!1,`Table`,"`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:`post`});let ie=a(()=>e.showExpandColumn===!1?-1:w.value===`nest`&&e.expandIconColumnIndex===void 0?+!!e.rowSelection:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),ae=W();H(()=>e.rowSelection,()=>{ae.value=e.rowSelection?G({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});let[oe,se]=wV(ae,{prefixCls:p,data:B,pageData:U,getRowKey:D,getRecordByKey:O,expandType:w,childrenColumnName:C,locale:v,getPopupContainer:a(()=>e.getPopupContainer)}),ce=(t,n,r)=>{let i,{rowClassName:a}=e;return i=Z(typeof a==`function`?a(t,n,r):a),Z({[`${p.value}-row-selected`]:se.value.has(D.value(t,n))},i)};i({selectedKeySet:se});let le=a(()=>typeof e.indentSize==`number`?e.indentSize:15),ue=e=>V(oe(ee(M(te(e)))));return()=>{let{expandIcon:t=r.expandIcon||OU(v.value),pagination:i,loading:a,bordered:o}=e,c,m;if(i!==!1&&ne.value?.total){let e;e=ne.value.size?ne.value.size:u.value===`small`||u.value===`middle`?`small`:void 0;let t=t=>s(XF,X(X({},ne.value),{},{class:[`${p.value}-pagination ${p.value}-pagination-${t}`,ne.value.class],size:e}),null),n=f.value===`rtl`?`left`:`right`,{position:r}=ne.value;if(r!==null&&Array.isArray(r)){let e=r.find(e=>e.includes(`top`)),i=r.find(e=>e.includes(`bottom`)),a=r.every(e=>`${e}`==`none`);!e&&!i&&!a&&(m=t(n)),e&&(c=t(e.toLowerCase().replace(`top`,``))),i&&(m=t(i.toLowerCase().replace(`bottom`,``)))}else m=t(n)}let y;typeof a==`boolean`?y={spinning:a}:typeof a==`object`&&(y=G({spinning:!0},a));let x=Z(`${p.value}-wrapper`,{[`${p.value}-wrapper-rtl`]:f.value===`rtl`},n.class,g.value),S=Gn(e,[`columns`]);return h(s(`div`,{class:x,style:n.style},[s(bF,X({spinning:!1},y),{default:()=>[c,s(pV,X(X(X({},n),S),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ie.value,indentSize:le.value,expandIcon:t,columns:l.value,direction:f.value,prefixCls:p.value,class:Z({[`${p.value}-middle`]:u.value===`middle`,[`${p.value}-small`]:u.value===`small`,[`${p.value}-bordered`]:o,[`${p.value}-empty`]:b.value.length===0}),data:U.value,rowKey:D.value,rowClassName:ce,internalHooks:fV,internalRefs:T,onUpdateInternalRefs:E,transformColumns:ue,transformCellText:_.value}),G(G({},r),{emptyText:()=>r.emptyText?.call(r)||e.locale?.emptyText||d(`Table`)})),m]})]))}}}),ZU=d({name:`ATable`,inheritAttrs:!1,props:Vn(YU(),{rowKey:`key`}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:i}=t,a=W();return i({table:a}),()=>{let t=e.columns||LV(r.default?.call(r));return s(XU,X(X(X({ref:a},n),e),{},{columns:t||[],expandedRowRender:r.expandedRowRender||e.expandedRowRender,contextSlots:G({},r)}),r)}}}),QU=d({name:`ATableColumn`,slots:Object,render(){return null}}),$U=d({name:`ATableColumnGroup`,slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),eW=YB,tW=$B,nW=G(tV,{Cell:tW,Row:eW,name:`ATableSummary`}),rW=G(ZU,{SELECTION_ALL:yV,SELECTION_INVERT:bV,SELECTION_NONE:xV,SELECTION_COLUMN:vV,EXPAND_COLUMN:IB,Column:QU,ColumnGroup:$U,Summary:nW,install:e=>(e.component(nW.name,nW),e.component(tW.name,tW),e.component(eW.name,eW),e.component(ZU.name,ZU),e.component(QU.name,QU),e.component($U.name,$U),e)}),iW=d({compatConfig:{MODE:3},name:`Search`,inheritAttrs:!1,props:Vn({prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},{placeholder:``}),emits:[`change`],setup(e,t){let{emit:n}=t,r=t=>{var r;n(`change`,t),t.target.value===``&&((r=e.handleClear)==null||r.call(e))};return()=>{let{placeholder:t,value:n,prefixCls:i,disabled:a}=e;return s(dN,{placeholder:t,class:i,value:n,onChange:r,disabled:a,allowClear:!0},{prefix:()=>s(hr,null,null)})}}});function aW(){}var oW={renderedText:J.any,renderedEl:J.any,item:J.any,checked:Y(),prefixCls:String,disabled:Y(),showRemove:Y(),onClick:Function,onRemove:Function},sW=d({compatConfig:{MODE:3},name:`ListItem`,inheritAttrs:!1,props:oW,emits:[`click`,`remove`],setup(e,t){let{emit:n}=t;return()=>{let{renderedText:t,renderedEl:r,item:i,checked:a,disabled:o,prefixCls:c,showRemove:l}=e,u=Z({[`${c}-content-item`]:!0,[`${c}-content-item-disabled`]:o||i.disabled}),d;return(typeof t==`string`||typeof t==`number`)&&(d=String(t)),s(St,{componentName:`Transfer`,defaultLocale:Ut.Transfer},{default:e=>{let t=s(`span`,{class:`${c}-content-item-text`},[r]);return l?s(`li`,{class:u,title:d},[t,s(QI,{disabled:o||i.disabled,class:`${c}-content-item-remove`,"aria-label":e.remove,onClick:()=>{n(`remove`,i)}},{default:()=>[s(or,null,null)]})]):s(`li`,{class:u,title:d,onClick:o||i.disabled?aW:()=>{n(`click`,i)}},[s(dA,{class:`${c}-checkbox`,checked:a,disabled:o||i.disabled},null),t])}})}}}),cW={prefixCls:String,filteredRenderItems:J.array.def([]),selectedKeys:J.array,disabled:Y(),showRemove:Y(),pagination:J.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function lW(e){if(!e)return null;let t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e==`object`?G(G({},t),e):t}var uW=d({compatConfig:{MODE:3},name:`ListBody`,inheritAttrs:!1,props:cW,emits:[`itemSelect`,`itemRemove`,`scroll`],setup(e,t){let{emit:n,expose:r}=t,i=W(1),o=t=>{let{selectedKeys:r}=e,i=r.indexOf(t.key)>=0;n(`itemSelect`,t.key,!i)},c=e=>{n(`itemRemove`,[e.key])},l=e=>{n(`scroll`,e)},u=a(()=>lW(e.pagination));H([u,()=>e.filteredRenderItems],()=>{if(u.value){let t=Math.ceil(e.filteredRenderItems.length/u.value.pageSize);i.value=Math.min(i.value,t)}},{immediate:!0});let d=a(()=>{let{filteredRenderItems:t}=e,n=t;return u.value&&(n=t.slice((i.value-1)*u.value.pageSize,i.value*u.value.pageSize)),n}),f=e=>{i.value=e};return r({items:d}),()=>{let{prefixCls:t,filteredRenderItems:n,selectedKeys:r,disabled:a,showRemove:p}=e,m=null;u.value&&(m=s(XF,{simple:u.value.simple,showSizeChanger:u.value.showSizeChanger,showLessItems:u.value.showLessItems,size:`small`,disabled:a,class:`${t}-pagination`,total:n.length,pageSize:u.value.pageSize,current:i.value,onChange:f},null));let h=d.value.map(e=>{let{renderedEl:n,renderedText:i,item:l}=e,{disabled:u}=l,d=r.indexOf(l.key)>=0;return s(sW,{disabled:a||u,key:l.key,item:l,renderedText:i,renderedEl:n,checked:d,prefixCls:t,onClick:o,onRemove:c,showRemove:p},null)});return s(v,null,[s(`ul`,{class:Z(`${t}-content`,{[`${t}-content-show-remove`]:p}),onScroll:l},[h]),m])}}}),dW=e=>{let t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},fW=e=>{let t=new Map;return e.forEach((e,n)=>{let{disabled:r,key:i}=e;r&&t.set(i,n)}),t},pW=()=>null;function mW(e){return!!(e&&!Xe(e)&&Object.prototype.toString.call(e)===`[object Object]`)}function hW(e){return e.filter(e=>!e.disabled).map(e=>e.key)}var gW={prefixCls:String,dataSource:vt([]),filter:String,filterOption:Function,checkedKeys:J.arrayOf(J.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Y(!1),searchPlaceholder:String,notFoundContent:J.any,itemUnit:String,itemsUnit:String,renderList:J.any,disabled:Y(),direction:q(),showSelectAll:Y(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:J.any,showRemove:Y(),pagination:J.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},_W=d({compatConfig:{MODE:3},name:`TransferList`,inheritAttrs:!1,props:gW,slots:Object,setup(e,t){let{attrs:n,slots:r}=t,i=W(``),o=W(),c=W(),l=(e,t)=>{let n=e?e(t):null,r=!!n&&ve(n).length>0;return r||(n=s(uW,X(X({},t),{},{ref:c}),null)),{customize:r,bodyContent:n}},u=t=>{let{renderItem:n=pW}=e,r=n(t),i=mW(r);return{renderedText:i?r.value:r,renderedEl:i?r.label:r,item:t}},d=W([]),f=W([]);P(()=>{let t=[],n=[];e.dataSource.forEach(e=>{let r=u(e),{renderedText:a}=r;if(i.value&&i.value.trim()&&!x(a,e))return null;t.push(e),n.push(r)}),d.value=t,f.value=n});let p=a(()=>{let{checkedKeys:t}=e;if(t.length===0)return`none`;let n=dW(t);return d.value.every(e=>n.has(e.key)||!!e.disabled)?`all`:`part`}),m=a(()=>hW(d.value)),h=(t,n)=>Array.from(new Set([...t,...e.checkedKeys])).filter(e=>n.indexOf(e)===-1),_=t=>{let{disabled:n,prefixCls:r}=t,i=p.value===`all`;return s(dA,{disabled:e.dataSource?.length===0||n,checked:i,indeterminate:p.value===`part`,class:`${r}-checkbox`,onChange:()=>{let t=m.value;e.onItemSelectAll(h(i?[]:t,i?e.checkedKeys:[]))}},null)},y=t=>{var n;let{target:{value:r}}=t;i.value=r,(n=e.handleFilter)==null||n.call(e,t)},b=t=>{var n;i.value=``,(n=e.handleClear)==null||n.call(e,t)},x=(t,n)=>{let{filterOption:r}=e;return r?r(i.value,n):t.includes(i.value)},S=(t,n)=>{let{itemsUnit:r,itemUnit:i,selectAllLabel:a}=e;if(a)return typeof a==`function`?a({selectedCount:t,totalCount:n}):a;let o=n>1?r:i;return s(v,null,[(t>0?`${t}/`:``)+n,g(` `),o])},C=a(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction===`left`?0:1]:e.notFoundContent),w=(t,r,a,c,u,p)=>{let m=u?s(`div`,{class:`${t}-body-search-wrapper`},[s(iW,{prefixCls:`${t}-search`,onChange:y,handleClear:b,placeholder:r,value:i.value,disabled:p},null)]):null,h,{onEvents:g}=we(n),{bodyContent:_,customize:v}=l(c,G(G(G({},e),{filteredItems:d.value,filteredRenderItems:f.value,selectedKeys:a}),g));return h=v?s(`div`,{class:`${t}-body-customize-wrapper`},[_]):d.value.length?_:s(`div`,{class:`${t}-body-not-found`},[C.value]),s(`div`,{class:u?`${t}-body ${t}-body-with-search`:`${t}-body`,ref:o},[m,h])};return()=>{let{prefixCls:t,checkedKeys:i,disabled:a,showSearch:o,searchPlaceholder:l,selectAll:u,selectCurrent:f,selectInvert:p,removeAll:g,removeCurrent:y,renderList:b,onItemSelectAll:x,onItemRemove:C,showSelectAll:T=!0,showRemove:E,pagination:D}=e,O=r.footer?.call(r,G({},e)),k=Z(t,{[`${t}-with-pagination`]:!!D,[`${t}-with-footer`]:!!O}),A=w(t,l,i,b,o,a),j=O?s(`div`,{class:`${t}-footer`},[O]):null,M=!E&&!D&&_({disabled:a,prefixCls:t}),N=null;N=E?s(vy,null,{default:()=>[D&&s(vy.Item,{key:`removeCurrent`,onClick:()=>{let e=hW((c.value.items||[]).map(e=>e.item));C?.(e)}},{default:()=>[y]}),s(vy.Item,{key:`removeAll`,onClick:()=>{C?.(m.value)}},{default:()=>[g]})]}):s(vy,null,{default:()=>[s(vy.Item,{key:`selectAll`,onClick:()=>{let e=m.value;x(h(e,[]))}},{default:()=>[u]}),D&&s(vy.Item,{onClick:()=>{let e=hW((c.value.items||[]).map(e=>e.item));x(h(e,[]))}},{default:()=>[f]}),s(vy.Item,{key:`selectInvert`,onClick:()=>{let e;e=D?hW((c.value.items||[]).map(e=>e.item)):m.value;let t=new Set(i),n=[],r=[];e.forEach(e=>{t.has(e)?r.push(e):n.push(e)}),x(h(n,r))}},{default:()=>[p]})]});let P=s(wj,{class:`${t}-header-dropdown`,overlay:N,disabled:a},{default:()=>[s(Xu,null,null)]});return s(`div`,{class:k,style:n.style},[s(`div`,{class:`${t}-header`},[T?s(v,null,[M,P]):null,s(`span`,{class:`${t}-header-selected`},[s(`span`,null,[S(i.length,d.value.length)]),s(`span`,{class:`${t}-header-title`},[r.titleText?.call(r)])])]),A,j])}}});function vW(){}var yW=e=>{let{disabled:t,moveToLeft:n=vW,moveToRight:r=vW,leftArrowText:i=``,rightArrowText:a=``,leftActive:o,rightActive:c,class:l,style:u,direction:d,oneWay:f}=e;return s(`div`,{class:l,style:u},[s(Ln,{type:`primary`,size:`small`,disabled:t||!c,onClick:r,icon:s(d===`rtl`?SD:uv,null,null)},{default:()=>[a]}),!f&&s(Ln,{type:`primary`,size:`small`,disabled:t||!o,onClick:n,icon:s(d===`rtl`?uv:SD,null,null)},{default:()=>[i]})])};yW.displayName=`Operation`,yW.inheritAttrs=!1;var bW=e=>{let{antCls:t,componentCls:n,listHeight:r,controlHeightLG:i,marginXXS:a,margin:o}=e,s=`${t}-table`,c=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:`1 1 50%`,width:`auto`,height:`auto`,minHeight:r},[`${s}-wrapper`]:{[`${s}-small`]:{border:0,borderRadius:0,[`${s}-selection-column`]:{width:i,minWidth:i}},[`${s}-pagination${s}-pagination`]:{margin:`${o}px 0 ${a}px`}},[`${c}[disabled]`]:{backgroundColor:`transparent`}}}},xW=(e,t)=>{let{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},SW=e=>{let{componentCls:t}=e;return{[`${t}-status-error`]:G({},xW(e,e.colorError)),[`${t}-status-warning`]:G({},xW(e,e.colorWarning))}},CW=e=>{let{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:i,transferItemHeight:a,transferHeaderHeight:o,transferHeaderVerticalPadding:s,transferItemPaddingVertical:c,controlItemBgActive:l,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:f,listWidth:p,listWidthLG:m,fontSizeIcon:h,marginXS:g,paddingSM:_,lineType:v,iconCls:y,motionDurationSlow:b}=e;return{display:`flex`,flexDirection:`column`,width:p,height:f,border:`${i}px ${v} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:`auto`},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:`flex`,flex:`none`,alignItems:`center`,height:o,padding:`${s-i}px ${_}px ${s}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${i}px ${v} ${r}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:`none`},"&-title":G(G({},tn),{flex:`auto`,textAlign:`end`}),"&-dropdown":G(G({},Ge()),{fontSize:h,transform:`translateY(10%)`,cursor:`pointer`,"&[disabled]":{cursor:`not-allowed`}})},"&-body":{display:`flex`,flex:`auto`,flexDirection:`column`,overflow:`hidden`,fontSize:e.fontSize,"&-search-wrapper":{position:`relative`,flex:`none`,padding:_}},"&-content":{flex:`auto`,margin:0,padding:0,overflow:`auto`,listStyle:`none`,"&-item":{display:`flex`,alignItems:`center`,minHeight:a,padding:`${c}px ${_}px`,transition:`all ${b}`,"> *:not(:last-child)":{marginInlineEnd:g},"> *":{flex:`none`},"&-text":G(G({},tn),{flex:`auto`}),"&-remove":{position:`relative`,color:n,cursor:`pointer`,transition:`all ${b}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:`absolute`,insert:`-${c}px -50%`,content:`""`}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:`pointer`},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:l},"&-disabled":{color:d,cursor:`not-allowed`}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:`transparent`,cursor:`default`}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:`end`,borderTop:`${i}px ${v} ${r}`},"&-body-not-found":{flex:`none`,width:`100%`,margin:`auto 0`,color:d,textAlign:`center`},"&-footer":{borderTop:`${i}px ${v} ${r}`},"&-checkbox":{lineHeight:1}}},wW=e=>{let{antCls:t,iconCls:n,componentCls:r,transferHeaderHeight:i,marginXS:a,marginXXS:o,fontSizeIcon:s,fontSize:c,lineHeight:l}=e;return{[r]:G(G({},Ne(e)),{position:`relative`,display:`flex`,alignItems:`stretch`,[`${r}-disabled`]:{[`${r}-list`]:{background:e.colorBgContainerDisabled}},[`${r}-list`]:CW(e),[`${r}-operation`]:{display:`flex`,flex:`none`,flexDirection:`column`,alignSelf:`center`,margin:`0 ${a}px`,verticalAlign:`middle`,[`${t}-btn`]:{display:`block`,"&:first-child":{marginBottom:o},[n]:{fontSize:s}}},[`${t}-empty-image`]:{maxHeight:i/2-Math.round(c*l)}})}},TW=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},EW=Le(`Transfer`,e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:i,controlHeight:a}=e,o=Math.round(t*n),s=i,c=a,l=Fe(e,{transferItemHeight:c,transferHeaderHeight:s,transferHeaderVerticalPadding:Math.ceil((s-r-o)/2),transferItemPaddingVertical:(c-o)/2});return[wW(l),bW(l),SW(l),TW(l)]},{listWidth:180,listHeight:200,listWidthLG:250}),DW=d({compatConfig:{MODE:3},name:`ATransfer`,inheritAttrs:!1,props:{id:String,prefixCls:String,dataSource:vt([]),disabled:Y(),targetKeys:vt(),selectedKeys:vt(),render:Q(),listStyle:$t([Function,Object],()=>({})),operationStyle:ut(void 0),titles:vt(),operations:vt(),showSearch:Y(!1),filterOption:Q(),searchPlaceholder:String,notFoundContent:J.any,locale:ut(),rowKey:Q(),showSelectAll:Y(),selectAllLabels:vt(),children:Q(),oneWay:Y(),pagination:$t([Object,Boolean]),status:q(),onChange:Q(),onSelectChange:Q(),onSearch:Q(),onScroll:Q(),"onUpdate:targetKeys":Q(),"onUpdate:selectedKeys":Q()},slots:Object,setup(e,t){let{emit:n,attrs:r,slots:i,expose:o}=t,{configProvider:c,prefixCls:l,direction:u}=K(`transfer`,e),[d,f]=EW(l),p=W([]),m=W([]),h=sd(),g=ld.useInject(),_=a(()=>fd(g.status,e.status));H(()=>e.selectedKeys,()=>{p.value=e.selectedKeys?.filter(t=>e.targetKeys.indexOf(t)===-1)||[],m.value=e.selectedKeys?.filter(t=>e.targetKeys.indexOf(t)>-1)||[]},{immediate:!0});let v=(t,n)=>{let r={notFoundContent:n(`Transfer`)},a=Se(i,e,`notFoundContent`);return a&&(r.notFoundContent=a),e.searchPlaceholder!==void 0&&(r.searchPlaceholder=e.searchPlaceholder),G(G(G({},t),r),e.locale)},y=t=>{let{targetKeys:r=[],dataSource:i=[]}=e,a=t===`right`?p.value:m.value,o=fW(i),s=a.filter(e=>!o.has(e)),c=dW(s),l=t===`right`?s.concat(r):r.filter(e=>!c.has(e)),u=t===`right`?`left`:`right`;t===`right`?p.value=[]:m.value=[],n(`update:targetKeys`,l),T(u,[]),n(`change`,l,t,s),h.onFieldChange()},b=()=>{y(`left`)},x=()=>{y(`right`)},S=(e,t)=>{T(e,t)},C=e=>S(`left`,e),w=e=>S(`right`,e),T=(t,r)=>{t===`left`?(e.selectedKeys||(p.value=r),n(`update:selectedKeys`,[...r,...m.value]),n(`selectChange`,r,se(m.value))):(e.selectedKeys||(m.value=r),n(`update:selectedKeys`,[...r,...p.value]),n(`selectChange`,se(p.value),r))},E=(e,t)=>{let r=t.target.value;n(`search`,e,r)},D=e=>{E(`left`,e)},O=e=>{E(`right`,e)},k=e=>{n(`search`,e,``)},A=()=>{k(`left`)},j=()=>{k(`right`)},M=(e,t,n)=>{let r=e===`left`?[...p.value]:[...m.value],i=r.indexOf(t);i>-1&&r.splice(i,1),n&&r.push(t),T(e,r)},N=(e,t)=>M(`left`,e,t),F=(e,t)=>M(`right`,e,t),I=t=>{let{targetKeys:r=[]}=e,i=r.filter(e=>!t.includes(e));n(`update:targetKeys`,i),n(`change`,i,`left`,[...t])},L=(e,t)=>{n(`scroll`,e,t)},ee=e=>{L(`left`,e)},R=e=>{L(`right`,e)},z=(e,t)=>typeof e==`function`?e({direction:t}):e,B=W([]),te=W([]);P(()=>{let{dataSource:t,rowKey:n,targetKeys:r=[]}=e,i=[],a=Array(r.length),o=dW(r);t.forEach(e=>{n&&(e.key=n(e)),o.has(e.key)?a[o.get(e.key)]=e:i.push(e)}),B.value=i,te.value=a}),o({handleSelectChange:T});let V=t=>{let{disabled:n,operations:a=[],showSearch:o,listStyle:d,operationStyle:y,filterOption:S,showSelectAll:T,selectAllLabels:E=[],oneWay:k,pagination:M,id:P=h.id.value}=e,{class:L,style:V}=r,ne=i.children,re=!ne&&M,H=c.renderEmpty,U=v(t,H),{footer:ie}=i,W=e.render||i.render,ae=m.value.length>0,oe=p.value.length>0,se=Z(l.value,L,{[`${l.value}-disabled`]:n,[`${l.value}-customize-list`]:!!ne,[`${l.value}-rtl`]:u.value===`rtl`},dd(l.value,_.value,g.hasFeedback),f.value),ce=e.titles,le=(ce&&ce[0])??i.leftTitle?.call(i)??(U.titles||[``,``])[0],ue=(ce&&ce[1])??i.rightTitle?.call(i)??(U.titles||[``,``])[1];return s(`div`,X(X({},r),{},{class:se,style:V,id:P}),[s(_W,X({key:`leftList`,prefixCls:`${l.value}-list`,dataSource:B.value,filterOption:S,style:z(d,`left`),checkedKeys:p.value,handleFilter:D,handleClear:A,onItemSelect:N,onItemSelectAll:C,renderItem:W,showSearch:o,renderList:ne,onScroll:ee,disabled:n,direction:u.value===`rtl`?`right`:`left`,showSelectAll:T,selectAllLabel:E[0]||i.leftSelectAllLabel,pagination:re},U),{titleText:()=>le,footer:ie}),s(yW,{key:`operation`,class:`${l.value}-operation`,rightActive:oe,rightArrowText:a[0],moveToRight:x,leftActive:ae,leftArrowText:a[1],moveToLeft:b,style:y,disabled:n,direction:u.value,oneWay:k},null),s(_W,X({key:`rightList`,prefixCls:`${l.value}-list`,dataSource:te.value,filterOption:S,style:z(d,`right`),checkedKeys:m.value,handleFilter:O,handleClear:j,onItemSelect:F,onItemSelectAll:w,onItemRemove:I,renderItem:W,showSearch:o,renderList:ne,onScroll:R,disabled:n,direction:u.value===`rtl`?`left`:`right`,showSelectAll:T,selectAllLabel:E[1]||i.rightSelectAllLabel,showRemove:k,pagination:re},U),{titleText:()=>ue,footer:ie})])};return()=>d(s(St,{componentName:`Transfer`,defaultLocale:Ut.Transfer,children:V},null))}}),OW=be(DW);function kW(e){return Array.isArray(e)?e:e===void 0?[]:[e]}function AW(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{_title:t?[t]:[`title`,`label`],value:i,key:i,children:r||`children`}}function jW(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function MW(e,t){let n=[];function r(e){e.forEach(e=>{n.push(e[t.value]);let i=e[t.children];i&&r(i)})}return r(e),n}function NW(e){return e==null}var PW=Symbol(`TreeSelectContextPropsKey`);function FW(t){return e(PW,t)}function IW(){return C(PW,{})}var LW={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0},RW=d({compatConfig:{MODE:3},name:`OptionList`,inheritAttrs:!1,setup(e,t){let{slots:n,expose:r}=t,i=Kl(),o=Ml(),c=IW(),l=W(),u=yu(()=>c.treeData,[()=>i.open,()=>c.treeData],e=>e[0]),d=a(()=>{let{checkable:e,halfCheckedKeys:t,checkedKeys:n}=o;return e?{checked:n,halfChecked:t}:null});H(()=>i.open,()=>{x(()=>{var e;i.open&&!i.multiple&&o.checkedKeys.length&&((e=l.value)==null||e.scrollTo({key:o.checkedKeys[0]}))})},{immediate:!0,flush:`post`});let f=a(()=>String(i.searchValue).toLowerCase()),p=e=>f.value?String(e[o.treeNodeFilterProp]).toLowerCase().includes(f.value):!1,m=M(o.treeDefaultExpandedKeys),h=M(null);H(()=>i.searchValue,()=>{i.searchValue&&(h.value=MW(se(c.treeData),se(c.fieldNames)))},{immediate:!0});let g=a(()=>o.treeExpandedKeys?o.treeExpandedKeys.slice():i.searchValue?h.value:m.value),_=e=>{var t;m.value=e,h.value=e,(t=o.onTreeExpand)==null||t.call(o,e)},v=e=>{e.preventDefault()},y=(e,t)=>{let{node:n}=t;var r,a;let{checkable:s,checkedKeys:l}=o;s&&jW(n)||((r=c.onSelect)==null||r.call(c,n.key,{selected:!l.includes(n.key)}),i.multiple||(a=i.toggleOpen)==null||a.call(i,!1))},b=W(null),S=a(()=>o.keyEntities[b.value]),C=e=>{b.value=e};return r({scrollTo:function(){var e,t=[...arguments];return((e=l.value)?.scrollTo)?.call(e,...t)},onKeydown:e=>{var t;let{which:n}=e;switch(n){case $.UP:case $.DOWN:case $.LEFT:case $.RIGHT:(t=l.value)==null||t.onKeydown(e);break;case $.ENTER:if(S.value){let{selectable:e,value:t}=S.value.node||{};e!==!1&&y(null,{node:{key:b.value},selected:!o.checkedKeys.includes(t)})}break;case $.ESC:i.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{let{prefixCls:e,multiple:t,searchValue:r,open:a,notFoundContent:f=n.notFoundContent?.call(n)}=i,{listHeight:m,listItemHeight:h,virtual:x,dropdownMatchSelectWidth:w,treeExpandAction:T}=c,{checkable:E,treeDefaultExpandAll:D,treeIcon:O,showTreeIcon:k,switcherIcon:A,treeLine:j,loadData:M,treeLoadedKeys:N,treeMotion:P,onTreeLoad:F,checkedKeys:I}=o;if(u.value.length===0)return s(`div`,{role:`listbox`,class:`${e}-empty`,onMousedown:v},[f]);let L={fieldNames:c.fieldNames};return N&&(L.loadedKeys=N),g.value&&(L.expandedKeys=g.value),s(`div`,{onMousedown:v},[S.value&&a&&s(`span`,{style:LW,"aria-live":`assertive`},[S.value.node.value]),s(yH,X(X({ref:l,focusable:!1,prefixCls:`${e}-tree`,treeData:u.value,height:m,itemHeight:h,virtual:x!==!1&&w!==!1,multiple:t,icon:O,showIcon:k,switcherIcon:A,showLine:j,loadData:r?null:M,motion:P,activeKey:b.value,checkable:E,checkStrictly:!0,checkedKeys:d.value,selectedKeys:E?[]:I,defaultExpandAll:D},L),{},{onActiveChange:C,onSelect:y,onCheck:y,onExpand:_,onLoad:F,filterTreeNode:p,expandAction:T}),G(G({},n),{checkable:o.customSlots.treeCheckable}))])}}}),zW=`SHOW_ALL`,BW=`SHOW_PARENT`,VW=`SHOW_CHILD`;function HW(e,t,n,r){let i=new Set(e);return t===`SHOW_CHILD`?e.filter(e=>{let t=n[e];return!(t&&t.children&&t.children.some(e=>{let{node:t}=e;return i.has(t[r.value])})&&t.children.every(e=>{let{node:t}=e;return jW(t)||i.has(t[r.value])}))}):t===`SHOW_PARENT`?e.filter(e=>{let t=n[e],r=t?t.parent:null;return!(r&&!jW(r.node)&&i.has(r.key))}):e}var UW=()=>null;UW.inheritAttrs=!1,UW.displayName=`ATreeSelectNode`,UW.isTreeSelectNode=!0;var WW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:[];return ve(e).map(e=>{if(!GW(e))return null;let n=e.children||{},r=e.key,i={};for(let[t,n]of Object.entries(e.props))i[Ae(t)]=n;let{isLeaf:a,checkable:o,selectable:s,disabled:c,disableCheckbox:l}=i,u={isLeaf:a||a===``||void 0,checkable:o||o===``||void 0,selectable:s||s===``||void 0,disabled:c||c===``||void 0,disableCheckbox:l||l===``||void 0},d=G(G({},i),u),{title:f=n.title?.call(n,d),switcherIcon:p=n.switcherIcon?.call(n,d)}=i,m=WW(i,[`title`,`switcherIcon`]),h=n.default?.call(n),g=G(G(G({},m),{title:f,switcherIcon:p,key:r,isLeaf:a}),u),_=t(h);return _.length&&(g.children=_),g})}return t(e)}function qW(e){if(!e)return e;let t=G({},e);return`props`in t||Object.defineProperty(t,"props",{get(){return t}}),t}function JW(e,t,n,r,i,a){let o=null,c=null;function l(){function e(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`0`,l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return r.map((r,u)=>{let d=`${i}-${u}`,f=r[a.value],p=n.includes(f),m=e(r[a.children]||[],d,p),h=s(UW,r,{default:()=>[m.map(e=>e.node)]});if(t===f&&(o=h),p){let e={pos:d,node:h,children:m};return l||c.push(e),e}return null}).filter(e=>e)}c||(c=[],e(r),c.sort((e,t)=>{let{node:{props:{value:r}}}=e,{node:{props:{value:i}}}=t;return n.indexOf(r)-n.indexOf(i)}))}Object.defineProperty(e,"triggerNode",{get(){return l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get(){return l(),i?c:c.map(e=>{let{node:t}=e;return t})}})}function YW(e,t){let{id:n,pId:r,rootPId:i}=t,a={},o=[];return e.map(e=>{let t=G({},e),r=t[n];return a[r]=t,t.key=t.key||r,t}).forEach(e=>{let t=e[r],n=a[t];n&&(n.children=n.children||[],n.children.push(e)),(t===i||!n&&i===null)&&o.push(e)}),o}function XW(e,t,n){let r=M();return H([n,e,t],()=>{let i=n.value;e.value?r.value=n.value?YW(se(e.value),G({id:`id`,pId:`pId`,rootPId:null},i===!0?{}:i)):se(e.value).slice():r.value=KW(se(t.value))},{immediate:!0,deep:!0}),r}var ZW=(e=>{let t=M({valueLabels:new Map}),n=M();return H(e,()=>{n.value=se(e.value)},{immediate:!0}),[a(()=>{let{valueLabels:e}=t.value,r=new Map,i=n.value.map(t=>{let{value:n}=t,i=t.label??e.get(n);return r.set(n,i),G(G({},t),{label:i})});return t.value.valueLabels=r,i})]}),QW=((e,t)=>{let n=M(new Map),r=M({});return P(()=>{let i=t.value,a=BE(e.value,{fieldNames:i,initWrapper:e=>G(G({},e),{valueEntities:new Map}),processEntity:(e,t)=>{let n=e.node[i.value];t.valueEntities.set(n,e)}});n.value=a.valueEntities,r.value=a.keyEntities}),{valueEntities:n,keyEntities:r}}),$W=((e,t,n,r,i,a)=>{let o=M([]),s=M([]);return P(()=>{let c=e.value.map(e=>{let{value:t}=e;return t}),l=t.value.map(e=>{let{value:t}=e;return t}),u=c.filter(e=>!r.value[e]);n.value&&({checkedKeys:c,halfCheckedKeys:l}=nD(c,!0,r.value,i.value,a.value)),o.value=Array.from(new Set([...u,...c])),s.value=l}),[o,s]}),eG=((e,t,n)=>{let{treeNodeFilterProp:r,filterTreeNode:i,fieldNames:o}=n;return a(()=>{let{children:n}=o.value,a=t.value,s=r?.value;if(!a||i.value===!1)return e.value;let c;if(typeof i.value==`function`)c=i.value;else{let e=a.toUpperCase();c=(t,n)=>{let r=n[s];return String(r).toUpperCase().includes(e)}}function l(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=[];for(let i=0,o=e.length;ie.treeCheckable&&!e.treeCheckStrictly),u=a(()=>e.treeCheckable||e.treeCheckStrictly),d=a(()=>e.treeCheckStrictly||e.labelInValue),f=a(()=>u.value||e.multiple),p=a(()=>AW(e.fieldNames)),[m,h]=zu(``,{value:a(()=>e.searchValue===void 0?e.inputValue:e.searchValue),postState:e=>e||``}),g=t=>{var n;h(t),(n=e.onSearch)==null||n.call(e,t)},_=XW(y(e,`treeData`),y(e,`children`),y(e,`treeDataSimpleMode`)),{keyEntities:v,valueEntities:b}=QW(_,p),x=e=>{let t=[],n=[];return e.forEach(e=>{b.value.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},S=eG(_,m,{fieldNames:p,treeNodeFilterProp:y(e,`treeNodeFilterProp`),filterTreeNode:y(e,`filterTreeNode`)}),C=t=>{if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];let{_title:n}=p.value;for(let e=0;ekW(e).map(e=>nG(e)?{value:e}:e),T=e=>w(e).map(e=>{let{label:t}=e,{value:n,halfChecked:r}=e,i,a=b.value.get(n);return a&&(t??=C(a.node),i=a.node.disabled),{label:t,value:n,halfChecked:r,disabled:i}}),[E,D]=zu(e.defaultValue,{value:y(e,`value`)}),O=a(()=>w(E.value)),k=M([]),A=M([]);P(()=>{let e=[],t=[];O.value.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),k.value=e,A.value=t});let j=a(()=>k.value.map(e=>e.value)),{maxLevel:N,levelEntities:F}=pD(v),[I,L]=$W(k,A,l,v,N,F),[ee]=ZW(a(()=>{let t=HW(I.value,e.showCheckedStrategy,v.value,p.value).map(e=>v.value[e]?.node?.[p.value.value]??e).map(e=>({value:e,label:k.value.find(t=>t.value===e)?.label})),n=T(t),r=n[0];return!f.value&&r&&NW(r.value)&&NW(r.label)?[]:n.map(e=>G(G({},e),{label:e.label??e.value}))})),R=(t,n,r)=>{let i=T(t);if(D(i),e.autoClearSearchValue&&h(``),e.onChange){let i=t;l.value&&(i=HW(t,e.showCheckedStrategy,v.value,p.value).map(e=>{let t=b.value.get(e);return t?t.node[p.value.value]:e}));let{triggerValue:a,selected:o}=n||{triggerValue:void 0,selected:void 0},s=i;if(e.treeCheckStrictly){let e=A.value.filter(e=>!i.includes(e.value));s=[...s,...e]}let c=T(s),m={preValue:k.value,triggerValue:a},h=!0;(e.treeCheckStrictly||r===`selection`&&!o)&&(h=!1),JW(m,a,t,_.value,h,p.value),u.value?m.checked=o:m.selected=o;let g=d.value?c:c.map(e=>e.value);e.onChange(f.value?g:g[0],d.value?null:c.map(e=>e.label),m)}},z=(t,n)=>{let{selected:r,source:i}=n;var a,o;let s=se(v.value),c=se(b.value),u=s[t]?.node,d=u?.[p.value.value]??t;if(!f.value)R([d],{selected:!0,triggerValue:d},`option`);else{let e=r?[...j.value,d]:I.value.filter(e=>e!==d);if(l.value){let{missingRawValues:t,existRawValues:n}=x(e),i=n.map(e=>c.get(e).key),a;r?{checkedKeys:a}=nD(i,!0,s,N.value,F.value):{checkedKeys:a}=nD(i,{checked:!1,halfCheckedKeys:L.value},s,N.value,F.value),e=[...t,...a.map(e=>s[e].node[p.value.value])]}R(e,{selected:r,triggerValue:d},i||`option`)}r||!f.value?(a=e.onSelect)==null||a.call(e,d,qW(u)):(o=e.onDeselect)==null||o.call(e,d,qW(u))},B=t=>{if(e.onDropdownVisibleChange){let n={};Object.defineProperty(n,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(t,n)}},te=(e,t)=>{let n=e.map(e=>e.value);if(t.type===`clear`){R(n,{},`selection`);return}t.values.length&&z(t.values[0].value,{selected:!1,source:`selection`})},{treeNodeFilterProp:V,loadData:ne,treeLoadedKeys:re,onTreeLoad:H,treeDefaultExpandAll:U,treeExpandedKeys:ie,treeDefaultExpandedKeys:ae,onTreeExpand:oe,virtual:ce,listHeight:le,listItemHeight:ue,treeLine:de,treeIcon:fe,showTreeIcon:pe,switcherIcon:me,treeMotion:he,customSlots:ge,dropdownMatchSelectWidth:_e,treeExpandAction:K}=i(e);jl(Jl({checkable:u,loadData:ne,treeLoadedKeys:re,onTreeLoad:H,checkedKeys:I,halfCheckedKeys:L,treeDefaultExpandAll:U,treeExpandedKeys:ie,treeDefaultExpandedKeys:ae,onTreeExpand:oe,treeIcon:fe,treeMotion:he,showTreeIcon:pe,switcherIcon:me,treeLine:de,treeNodeFilterProp:V,keyEntities:v,customSlots:ge})),FW(Jl({virtual:ce,listHeight:le,listItemHeight:ue,treeData:S,fieldNames:p,onSelect:z,dropdownMatchSelectWidth:_e,treeExpandAction:K}));let ve=W();return r({focus(){var e;(e=ve.value)==null||e.focus()},blur(){var e;(e=ve.value)==null||e.blur()},scrollTo(e){var t;(t=ve.value)==null||t.scrollTo(e)}}),()=>{let t=Gn(e,`id.prefixCls.customSlots.value.defaultValue.onChange.onSelect.onDeselect.searchValue.inputValue.onSearch.autoClearSearchValue.filterTreeNode.treeNodeFilterProp.showCheckedStrategy.treeNodeLabelProp.multiple.treeCheckable.treeCheckStrictly.labelInValue.fieldNames.treeDataSimpleMode.treeData.children.loadData.treeLoadedKeys.onTreeLoad.treeDefaultExpandAll.treeExpandedKeys.treeDefaultExpandedKeys.onTreeExpand.virtual.listHeight.listItemHeight.onDropdownVisibleChange.treeLine.treeIcon.showTreeIcon.switcherIcon.treeMotion`.split(`.`));return s(tu,X(X(X({ref:ve},n),t),{},{id:c,prefixCls:e.prefixCls,mode:f.value?`multiple`:void 0,displayValues:ee.value,onDisplayValuesChange:te,searchValue:m.value,onSearch:g,OptionList:RW,emptyOptions:!_.value.length,onDropdownVisibleChange:B,tagRender:e.tagRender||o.tagRender,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth??!0}),o)}}}),iG=e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},WH(n,Fe(e,{colorBgContainer:r})),{[i]:{borderRadius:0,"&-list-holder-inner":{alignItems:`stretch`,[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:`auto`}}}}},qk(`${n}-checkbox`,e),{"&-rtl":{direction:`rtl`,[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:`rotate(90deg)`}}}}]}]};function aG(e,t){return Le(`TreeSelect`,e=>[iG(Fe(e,{treePrefixCls:t.value}))])(e)}var oG=(e,t,n)=>n===void 0?`${e}-${t}`:n;function sG(){return G(G({},Gn(tG(),[`showTreeIcon`,`treeMotion`,`inputIcon`,`getInputElement`,`treeLine`,`customSlots`])),{suffixIcon:J.any,size:q(),bordered:Y(),treeLine:$t([Boolean,Object]),replaceFields:ut(),placement:q(),status:q(),popupClassName:String,dropdownClassName:String,"onUpdate:value":Q(),"onUpdate:treeExpandedKeys":Q(),"onUpdate:searchValue":Q()})}var cG=d({compatConfig:{MODE:3},name:`ATreeSelect`,inheritAttrs:!1,props:Vn(sG(),{choiceTransitionName:``,listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:i,emit:o}=t;e.treeData===void 0&&r.default,ir(e.multiple!==!1||!e.treeCheckable,`TreeSelect`,"`multiple` will always be `true` when `treeCheckable` is true"),ir(e.replaceFields===void 0,`TreeSelect`,"`replaceFields` is deprecated, please use fieldNames instead"),ir(!e.dropdownClassName,`TreeSelect`,"`dropdownClassName` is deprecated. Please use `popupClassName` instead.");let c=sd(),l=ld.useInject(),u=a(()=>fd(l.status,e.status)),{prefixCls:d,renderEmpty:f,direction:p,virtual:m,dropdownMatchSelectWidth:h,size:g,getPopupContainer:_,getPrefixCls:v,disabled:y}=K(`select`,e),{compactSize:b,compactItemClassnames:x}=ln(d,p),S=a(()=>b.value||g.value),C=pt(),w=a(()=>y.value??C.value),T=a(()=>v()),E=a(()=>e.placement===void 0?p.value===`rtl`?`bottomRight`:`bottomLeft`:e.placement),D=a(()=>oG(T.value,lt(E.value),e.transitionName)),O=a(()=>oG(T.value,``,e.choiceTransitionName)),k=a(()=>v(`select-tree`,e.prefixCls)),A=a(()=>v(`tree-select`,e.prefixCls)),[j,M]=ng(d),[N]=aG(A,k),P=a(()=>Z(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:p.value===`rtl`},M.value)),F=a(()=>!!(e.treeCheckable||e.multiple)),I=a(()=>e.showArrow===void 0?e.loading||!F.value:e.showArrow),L=W();i({focus(){var e,t;(t=(e=L.value).focus)==null||t.call(e)},blur(){var e,t;(t=(e=L.value).blur)==null||t.call(e)}});let ee=function(){var e=[...arguments];o(`update:value`,e[0]),o(`change`,...e),c.onFieldChange()},R=e=>{o(`update:treeExpandedKeys`,e),o(`treeExpand`,e)},z=e=>{o(`update:searchValue`,e),o(`search`,e)},B=e=>{o(`blur`,e),c.onFieldBlur()};return()=>{let{notFoundContent:t=r.notFoundContent?.call(r),prefixCls:i,bordered:a,listHeight:o,listItemHeight:g,multiple:v,treeIcon:y,treeLine:b,showArrow:C,switcherIcon:T=r.switcherIcon?.call(r),fieldNames:te=e.replaceFields,id:V=c.id.value,placeholder:ne=r.placeholder?.call(r)}=e,{isFormItemInput:re,hasFeedback:H,feedbackIcon:U}=l,{suffixIcon:ie,removeIcon:W,clearIcon:ae}=td(G(G({},e),{multiple:F.value,showArrow:I.value,hasFeedback:H,feedbackIcon:U,prefixCls:d.value}),r),oe;oe=t===void 0?f(`Select`):t;let se=Gn(e,[`suffixIcon`,`itemIcon`,`removeIcon`,`clearIcon`,`switcherIcon`,`bordered`,`status`,`onUpdate:value`,`onUpdate:treeExpandedKeys`,`onUpdate:searchValue`]),ce=Z(!i&&A.value,{[`${d.value}-lg`]:S.value===`large`,[`${d.value}-sm`]:S.value===`small`,[`${d.value}-rtl`]:p.value===`rtl`,[`${d.value}-borderless`]:!a,[`${d.value}-in-form-item`]:re},dd(d.value,u.value,H),x.value,n.class,M.value),le={};return e.treeData===void 0&&r.default&&(le.children=pe(r.default())),j(N(s(rG,X(X(X(X({},n),se),{},{disabled:w.value,virtual:m.value,dropdownMatchSelectWidth:h.value,id:V,fieldNames:te,ref:L,prefixCls:d.value,class:ce,listHeight:o,listItemHeight:g,treeLine:!!b,inputIcon:ie,multiple:v,removeIcon:W,clearIcon:ae,switcherIcon:e=>LH(k.value,T,e,r.leafIcon,b),showTreeIcon:y,notFoundContent:oe,getPopupContainer:_?.value,treeMotion:null,dropdownClassName:P.value,choiceTransitionName:O.value,onChange:ee,onBlur:B,onSearch:z,onTreeExpand:R},le),{},{transitionName:D.value,customSlots:G(G({},r),{treeCheckable:()=>s(`span`,{class:`${d.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,placement:E.value,showArrow:H||C,placeholder:ne}),G(G({},r),{treeCheckable:()=>s(`span`,{class:`${d.value}-tree-checkbox-inner`},null)}))))}}}),lG=UW,uG=G(cG,{TreeNode:UW,SHOW_ALL:zW,SHOW_PARENT:BW,SHOW_CHILD:VW,install:e=>(e.component(cG.name,cG),e.component(lG.displayName,lG),e)}),dG=()=>({format:String,showNow:Y(),showHour:Y(),showMinute:Y(),showSecond:Y(),use12Hours:Y(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Y(),popupClassName:String,status:q()});function fG(e){let{TimePicker:t,RangePicker:n}=ZA(e,G(G({},dG()),{order:{type:Boolean,default:!0}}));return{TimePicker:d({name:`ATimePicker`,inheritAttrs:!1,props:G(G(G(G({},LA()),RA()),dG()),{addon:{type:Function}}),slots:Object,setup(e,n){let{slots:r,expose:i,emit:a,attrs:o}=n,c=e,l=sd();ir(!(r.addon||c.addon),`TimePicker`,"`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");let u=W();i({focus:()=>{var e;(e=u.value)==null||e.focus()},blur:()=>{var e;(e=u.value)==null||e.blur()}});let d=(e,t)=>{a(`update:value`,e),a(`change`,e,t),l.onFieldChange()},f=e=>{a(`update:open`,e),a(`openChange`,e)},p=e=>{a(`focus`,e)},m=e=>{a(`blur`,e),l.onFieldBlur()},h=e=>{a(`ok`,e)};return()=>{let{id:e=l.id.value}=c;return s(t,X(X(X({},o),Gn(c,[`onUpdate:value`,`onUpdate:open`])),{},{id:e,dropdownClassName:c.popupClassName,mode:void 0,ref:u,renderExtraFooter:c.addon||r.addon||c.renderExtraFooter||r.renderExtraFooter,onChange:d,onOpenChange:f,onFocus:p,onBlur:m,onOk:h}),r)}}}),TimeRangePicker:d({name:`ATimeRangePicker`,inheritAttrs:!1,props:G(G(G(G({},LA()),zA()),dG()),{order:{type:Boolean,default:!0}}),slots:Object,setup(e,t){let{slots:r,expose:i,emit:a,attrs:o}=t,c=e,l=W(),u=sd();i({focus:()=>{var e;(e=l.value)==null||e.focus()},blur:()=>{var e;(e=l.value)==null||e.blur()}});let d=(e,t)=>{a(`update:value`,e),a(`change`,e,t),u.onFieldChange()},f=e=>{a(`update:open`,e),a(`openChange`,e)},p=e=>{a(`focus`,e)},m=e=>{a(`blur`,e),u.onFieldBlur()},h=(e,t)=>{a(`panelChange`,e,t)},g=e=>{a(`ok`,e)},_=(e,t,n)=>{a(`calendarChange`,e,t,n)};return()=>{let{id:e=u.id.value}=c;return s(n,X(X(X({},o),Gn(c,[`onUpdate:open`,`onUpdate:value`])),{},{id:e,dropdownClassName:c.popupClassName,picker:`time`,mode:void 0,ref:l,onChange:d,onOpenChange:f,onFocus:p,onBlur:m,onPanelChange:h,onOk:g,onCalendarChange:_}),r)}}})}}var{TimePicker:pG,TimeRangePicker:mG}=fG(Xy),hG=G(pG,{TimePicker:pG,TimeRangePicker:mG,install:e=>(e.component(pG.name,pG),e.component(mG.name,mG),e)}),gG=d({compatConfig:{MODE:3},name:`ATimelineItem`,props:Vn({prefixCls:String,color:String,dot:J.any,pending:Y(),position:J.oneOf(_e(`left`,`right`,``)).def(``),label:J.any},{color:`blue`,pending:!1}),slots:Object,setup(e,t){let{slots:n}=t,{prefixCls:r}=K(`timeline`,e),i=a(()=>({[`${r.value}-item`]:!0,[`${r.value}-item-pending`]:e.pending})),o=a(()=>/blue|red|green|gray/.test(e.color||``)?void 0:e.color||`blue`),c=a(()=>({[`${r.value}-item-head`]:!0,[`${r.value}-item-head-${e.color||`blue`}`]:!o.value}));return()=>{let{label:t=n.label?.call(n),dot:a=n.dot?.call(n)}=e;return s(`li`,{class:i.value},[t&&s(`div`,{class:`${r.value}-item-label`},[t]),s(`div`,{class:`${r.value}-item-tail`},null),s(`div`,{class:[c.value,!!a&&`${r.value}-item-head-custom`],style:{borderColor:o.value,color:o.value}},[a]),s(`div`,{class:`${r.value}-item-content`},[n.default?.call(n)])])}}}),_G=e=>{let{componentCls:t}=e;return{[t]:G(G({},Ne(e)),{margin:0,padding:0,listStyle:`none`,[`${t}-item`]:{position:`relative`,margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:`none`,"&-tail":{position:`absolute`,insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:`transparent`},[`${t}-item-tail`]:{display:`none`}},"&-head":{position:`absolute`,width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:`50%`,"&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:`absolute`,insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:`auto`,height:`auto`,marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:`center`,border:0,borderRadius:0,transform:`translate(-50%, -50%)`},"&-content":{position:`relative`,insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:`break-word`},"&-last":{[`> ${t}-item-tail`]:{display:`none`},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, + &${t}-right, + &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:`50%`},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:`start`}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:`end`}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, + ${t}-item-head, + ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending + ${t}-item-last + ${t}-item-tail`]:{display:`block`,height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse + ${t}-item-last + ${t}-item-tail`]:{display:`none`},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:`block`,height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:`absolute`,insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:`end`},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:`start`}}},"&-rtl":{direction:`rtl`,[`${t}-item-head-custom`]:{transform:`translate(50%, -50%)`}}})}},vG=Le(`Timeline`,e=>[_G(Fe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3}))]),yG=d({compatConfig:{MODE:3},name:`ATimeline`,inheritAttrs:!1,props:Vn({prefixCls:String,pending:J.any,pendingDot:J.any,reverse:Y(),mode:J.oneOf(_e(`left`,`alternate`,`right`,``))},{reverse:!1,mode:``}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,{prefixCls:i,direction:a}=K(`timeline`,e),[c,l]=vG(i),u=(t,n)=>{let r=t.props||{};return e.mode===`alternate`?r.position===`right`?`${i.value}-item-right`:r.position===`left`||n%2==0?`${i.value}-item-left`:`${i.value}-item-right`:e.mode===`left`?`${i.value}-item-left`:e.mode===`right`||r.position===`right`?`${i.value}-item-right`:``};return()=>{let{pending:t=n.pending?.call(n),pendingDot:d=n.pendingDot?.call(n),reverse:f,mode:p}=e,m=typeof t==`boolean`?null:t,h=ve(n.default?.call(n)),g=t?s(gG,{pending:!!t,dot:d||s(at,null,null)},{default:()=>[m]}):null;g&&h.push(g);let _=f?h.reverse():h,v=_.length,y=`${i.value}-item-last`,b=_.map((e,n)=>{let r=n===v-2?y:``,i=n===v-1?y:``;return o(e,{class:Z([!f&&t?r:i,u(e,n)])})}),x=_.some(e=>!!(e.props?.label||e.children?.label)),S=Z(i.value,{[`${i.value}-pending`]:!!t,[`${i.value}-reverse`]:!!f,[`${i.value}-${p}`]:!!p&&!x,[`${i.value}-label`]:x,[`${i.value}-rtl`]:a.value===`rtl`},r.class,l.value);return c(s(`ul`,X(X({},r),{},{class:S}),[b]))}}});yG.Item=gG,yG.install=function(e){return e.component(yG.name,yG),e.component(gG.name,gG),e};var bG=yG,xG={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function SG(e){for(var t=1;t{let{sizeMarginHeadingVerticalEnd:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},EG=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[` + h${t}&, + div&-h${t}, + div&-h${t} > textarea, + h${t} + `]=TG(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},DG=e=>{let{componentCls:t}=e;return{"a&, a":G(G({},Li(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`}}})}},OG=()=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:re[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),kG=e=>{let{componentCls:t}=e,n=HS(e).inputPaddingVertical+1;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:-e.paddingSM,marginTop:-n,marginBottom:`calc(1em - ${n}px)`},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},AG=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),jG=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:`inline-block`,maxWidth:`100%`},"&-single-line":{whiteSpace:`nowrap`},"&-ellipsis-single-line":{overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),MG=e=>{let{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:G(G(G(G(G(G(G(G(G({color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"\n div&,\n p\n ":{marginBottom:`1em`}},EG(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),OG()),DG(e)),{[` + ${t}-expand, + ${t}-edit, + ${t}-copy + `]:G(G({},Li(e)),{marginInlineStart:e.marginXXS})}),kG(e)),AG(e)),jG()),{"&-rtl":{direction:`rtl`}})}},NG=Le(`Typography`,e=>[MG(e)],{sizeMarginHeadingVerticalStart:`1.2em`,sizeMarginHeadingVerticalEnd:`0.5em`}),PG=d({compatConfig:{MODE:3},name:`Editable`,inheritAttrs:!1,props:{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String},setup(e,t){let{emit:n,slots:r,attrs:a}=t,{prefixCls:o}=i(e),c=k({current:e.value||``,lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});H(()=>e.value,e=>{c.current=e});let l=W();D(()=>{if(l.value){let e=l.value?.resizableTextArea?.textArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}});function u(e){l.value=e}function d(e){let{target:{value:t}}=e;c.current=t.replace(/[\r\n]/g,``),n(`change`,c.current)}function f(){c.inComposition=!0}function p(){c.inComposition=!1}function m(e){let{keyCode:t}=e;t===$.ENTER&&e.preventDefault(),!c.inComposition&&(c.lastKeyCode=t)}function h(t){let{keyCode:r,ctrlKey:i,altKey:a,metaKey:o,shiftKey:s}=t;c.lastKeyCode===r&&!c.inComposition&&!i&&!a&&!o&&!s&&(r===$.ENTER?(_(),n(`end`)):r===$.ESC&&(c.current=e.originContent,n(`cancel`)))}function g(){_()}function _(){n(`save`,c.current.trim())}let[v,y]=NG(o);return()=>{let t=Z({[`${o.value}`]:!0,[`${o.value}-edit-content`]:!0,[`${o.value}-rtl`]:e.direction===`rtl`,[e.component?`${o.value}-${e.component}`:``]:!0},a.class,y.value);return v(s(`div`,X(X({},a),{},{class:t}),[s(QM,{ref:u,maxlength:e.maxlength,value:c.current,onChange:d,onKeydown:m,onKeyup:h,onCompositionstart:f,onCompositionend:p,onBlur:g,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),r.enterIcon?r.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):s(wG,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),FG=3,IG=8,LG,RG={padding:0,margin:0,display:`inline`,lineHeight:`inherit`};function zG(e,t){e.setAttribute(`aria-hidden`,`true`);let n=ul(window.getComputedStyle(t));e.setAttribute(`style`,n),e.style.position=`fixed`,e.style.left=`0`,e.style.height=`auto`,e.style.minHeight=`auto`,e.style.maxHeight=`auto`,e.style.paddingTop=`0`,e.style.paddingBottom=`0`,e.style.borderTopWidth=`0`,e.style.borderBottomWidth=`0`,e.style.top=`-999999px`,e.style.zIndex=`-1000`,e.style.textOverflow=`clip`,e.style.whiteSpace=`normal`,e.style.webkitLineClamp=`none`}function BG(e){let t=document.createElement(`div`);zG(t,e),t.appendChild(document.createTextNode(`text`)),document.body.appendChild(t);let n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}var VG=((e,t,n,r,i)=>{LG||(LG=document.createElement(`div`),LG.setAttribute(`aria-hidden`,`true`),document.body.appendChild(LG));let{rows:a,suffix:o=``}=t,c=BG(e),l=Math.round(c*a*100)/100;zG(LG,e);let u=Bt({render(){return s(`div`,{style:RG},[s(`span`,{style:RG},[n,o]),s(`span`,{style:RG},[r])])}});u.mount(LG);function d(){return Math.round(LG.getBoundingClientRect().height*100)/100-.1<=l}if(d())return u.unmount(),{content:n,text:LG.innerHTML,ellipsis:!1};let f=Array.prototype.slice.apply(LG.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(e=>{let{nodeType:t,data:n}=e;return t!==IG&&n!==``}),p=Array.prototype.slice.apply(LG.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();let m=[];LG.innerHTML=``;let h=document.createElement(`span`);LG.appendChild(h);let g=document.createTextNode(i+o);h.appendChild(g),p.forEach(e=>{LG.appendChild(e)});function _(e){h.insertBefore(e,g)}function v(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.length,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=Math.floor((n+r)/2);if(e.textContent=t.slice(0,a),n>=r-1)for(let i=r;i>=n;--i){let n=t.slice(0,i);if(e.textContent=n,d()||!n)return i===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return d()?v(e,t,a,r,a):v(e,t,n,a,i)}function y(e){if(e.nodeType===FG){let t=e.textContent||``,n=document.createTextNode(t);return _(n),v(n,t)}return{finished:!1,vNode:null}}return f.some(e=>{let{finished:t,vNode:n}=y(e);return n&&m.push(n),t}),{content:m,text:LG.innerHTML,ellipsis:!0}}),HG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=G(G({},e),r),{prefixCls:l,direction:u,component:d=`article`}=t,f=HG(t,[`prefixCls`,`direction`,`component`]);return o(s(d,X(X({},f),{},{class:Z(i.value,{[`${i.value}-rtl`]:a.value===`rtl`},r.class,c.value)}),{default:()=>[n.default?.call(n)]}))}}}),WG=()=>{let e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement,n=[];for(let t=0;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),cK=d({compatConfig:{MODE:3},name:`TypographyBase`,inheritAttrs:!1,props:sK(),setup(e,t){let{slots:n,attrs:r,emit:i}=t,{prefixCls:o,direction:c}=K(`typography`,e),l=k({copied:!1,ellipsisText:``,ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:``,copyStr:``,copiedStr:``,editStr:``,copyId:void 0,rafId:void 0,prevProps:void 0,originContent:``}),u=W(),d=W(),f=a(()=>{let t=e.ellipsis;return t?G({rows:1,expandable:!1},typeof t==`object`?t:null):{}});D(()=>{l.clientRendered=!0,j()}),p(()=>{clearTimeout(l.copyId),Rn.cancel(l.rafId)}),H([()=>f.value.rows,()=>e.content],()=>{x(()=>{O()})},{flush:`post`,deep:!0}),P(()=>{e.content===void 0&&(nt(!e.editable,`Typography`,"When `editable` is enabled, please use `content` instead of children"),nt(!e.ellipsis,`Typography`,"When `ellipsis` is enabled, please use `content` instead of children"))});function m(){return e.ellipsis||e.editable?e.content:Et(u.value)?.innerText}function h(e){let{onExpand:t}=f.value;l.expanded=!0,t?.(e)}function g(t){t.preventDefault(),l.originContent=e.content,E(!0)}function _(e){y(e),E(!1)}function y(t){let{onChange:n}=C.value;t!==e.content&&(i(`update:content`,t),n?.(t))}function b(){var e,t;(t=(e=C.value).onCancel)==null||t.call(e),E(!1)}function S(t){t.preventDefault(),t.stopPropagation();let{copyable:n}=e,r=G({},typeof n==`object`?n:null);r.text===void 0&&(r.text=m()),JG(r.text||``),l.copied=!0,x(()=>{r.onCopy&&r.onCopy(t),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}let C=a(()=>{let t=e.editable;return t?G({},typeof t==`object`?t:null):{editing:!1}}),[w,T]=zu(!1,{value:a(()=>C.value.editing)});function E(e){let{onStart:t}=C.value;e&&t&&t(),T(e)}H(w,e=>{var t;e||(t=d.value)==null||t.focus()},{flush:`post`});function O(e){if(e){let{width:t,height:n}=e;if(!t||!n)return}Rn.cancel(l.rafId),l.rafId=Rn(()=>{j()})}let A=a(()=>{let{rows:t,expandable:n,suffix:r,onEllipsis:i,tooltip:a}=f.value;return r||a||e.editable||e.copyable||n||i?!1:t===1?aK:iK}),j=()=>{let{ellipsisText:t,isEllipsis:n}=l,{rows:r,suffix:i,onEllipsis:a}=f.value;if(!r||r<0||!Et(u.value)||l.expanded||e.content===void 0||A.value)return;let{content:o,text:s,ellipsis:c}=VG(Et(u.value),{rows:r,suffix:i},e.content,ee(!0),oK);(t!==s||l.isEllipsis!==c)&&(l.ellipsisText=s,l.ellipsisContent=o,l.isEllipsis=c,n!==c&&a&&a(c))};function M(e,t){let{mark:n,code:r,underline:i,delete:a,strong:o,keyboard:c}=e,l=t;function u(e,t){if(!e)return;let n=function(){return l}();l=s(t,null,{default:()=>[n]})}return u(o,`strong`),u(i,`u`),u(a,`del`),u(r,`code`),u(n,`mark`),u(c,`kbd`),l}function N(e){let{expandable:t,symbol:r}=f.value;if(!t||!e&&(l.expanded||!l.isEllipsis))return null;let i=(n.ellipsisSymbol?n.ellipsisSymbol():r)||l.expandStr;return s(`a`,{key:`expand`,class:`${o.value}-expand`,onClick:h,"aria-label":l.expandStr},[i])}function F(){if(!e.editable)return;let{tooltip:t,triggerType:r=[`icon`]}=e.editable,i=n.editableIcon?n.editableIcon():s(nK,{role:`button`},null),a=n.editableTooltip?n.editableTooltip():l.editStr,c=typeof a==`string`?a:``;return r.indexOf(`icon`)===-1?null:s(m_,{key:`edit`,title:t===!1?``:a},{default:()=>[s(QI,{ref:d,class:`${o.value}-edit`,onClick:g,"aria-label":c},{default:()=>[i]})]})}function I(){if(!e.copyable)return;let{tooltip:t}=e.copyable,r=l.copied?l.copiedStr:l.copyStr,i=n.copyableTooltip?n.copyableTooltip({copied:l.copied}):r,a=typeof i==`string`?i:``,c=l.copied?s(ed,null,null):s(QG,null,null),u=n.copyableIcon?n.copyableIcon({copied:!!l.copied}):c;return s(m_,{key:`copy`,title:t===!1?``:i},{default:()=>[s(QI,{class:[`${o.value}-copy`,{[`${o.value}-copy-success`]:l.copied}],onClick:S,"aria-label":a},{default:()=>[u]})]})}function L(){let{class:t,style:i}=r,{maxlength:a,autoSize:u,onEnd:d}=C.value;return s(PG,{class:t,style:i,prefixCls:o.value,value:e.content,originContent:l.originContent,maxlength:a,autoSize:u,onSave:_,onChange:y,onCancel:b,onEnd:d,direction:c.value,component:e.component},{enterIcon:n.editableEnterIcon})}function ee(e){return[N(e),F(),I()].filter(e=>e)}return()=>{let{triggerType:t=[`icon`]}=C.value,i=e.ellipsis||e.editable?e.content===void 0?n.default?.call(n):e.content:n.default?n.default():e.content;return w.value?L():s(St,{componentName:`Text`,children:a=>{let d=G(G({},e),r),{type:p,disabled:m,content:h,class:_,style:y}=d,b=rK(d,[`type`,`disabled`,`content`,`class`,`style`]),{rows:x,suffix:S,tooltip:C}=f.value,{edit:w,copy:T,copied:E,expand:D}=a;l.editStr=w,l.copyStr=T,l.copiedStr=E,l.expandStr=D;let k=Gn(b,[`prefixCls`,`editable`,`copyable`,`ellipsis`,`mark`,`code`,`delete`,`underline`,`strong`,`keyboard`,`onUpdate:content`]),j=A.value,N=x===1&&j,P=x&&x>1&&j,F=i,I;if(x&&l.isEllipsis&&!l.expanded&&!j){let{title:e}=b,t=e||``;!e&&(typeof i==`string`||typeof i==`number`)&&(t=String(i)),t=t?.slice(String(l.ellipsisContent||``).length),F=s(v,null,[se(l.ellipsisContent),s(`span`,{title:t,"aria-hidden":`true`},[oK]),S])}else F=s(v,null,[i,S]);F=M(e,F);let L=C&&x&&l.isEllipsis&&!l.expanded&&!j,R=n.ellipsisTooltip?n.ellipsisTooltip():C;return s(pi,{onResize:O,disabled:!x},{default:()=>[s(UG,X({ref:u,class:[{[`${o.value}-${p}`]:p,[`${o.value}-disabled`]:m,[`${o.value}-ellipsis`]:x,[`${o.value}-single-line`]:x===1&&!l.isEllipsis,[`${o.value}-ellipsis-single-line`]:N,[`${o.value}-ellipsis-multiple-line`]:P},_],style:G(G({},y),{WebkitLineClamp:P?x:void 0}),"aria-label":I,direction:c.value,onClick:t.indexOf(`text`)===-1?()=>{}:g},k),{default:()=>[L?s(m_,{title:C===!0?i:R},{default:()=>[s(`span`,null,[F])]}):F,ee()]})]})}},null)}}}),lK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iGn(G(G({},sK()),{ellipsis:{type:Boolean,default:void 0}}),[`component`]),dK=(e,t)=>{let{slots:n,attrs:r}=t,i=G(G({},e),r),{ellipsis:a,rel:o}=i,c=lK(i,[`ellipsis`,`rel`]);nt(typeof a!=`object`,`Typography.Link`,"`ellipsis` only supports boolean value.");let l=G(G({},c),{rel:o===void 0&&c.target===`_blank`?`noopener noreferrer`:o,ellipsis:!!a,component:`a`});return delete l.navigate,s(cK,l,n)};dK.displayName=`ATypographyLink`,dK.inheritAttrs=!1,dK.props=uK();var fK=()=>Gn(sK(),[`component`]),pK=(e,t)=>{let{slots:n,attrs:r}=t,i=G(G(G({},e),{component:`div`}),r);return s(cK,i,n)};pK.displayName=`ATypographyParagraph`,pK.inheritAttrs=!1,pK.props=fK();var mK=()=>G(G({},Gn(sK(),[`component`])),{ellipsis:{type:[Boolean,Object],default:void 0}}),hK=(e,t)=>{let{slots:n,attrs:r}=t,{ellipsis:i}=e;nt(typeof i!=`object`||!i||!(`expandable`in i)&&!(`rows`in i),`Typography.Text`,"`ellipsis` do not support `expandable` or `rows` props.");let a=G(G(G({},e),{ellipsis:i&&typeof i==`object`?Gn(i,[`expandable`,`rows`]):i,component:`span`}),r);return s(cK,a,n)};hK.displayName=`ATypographyText`,hK.inheritAttrs=!1,hK.props=mK();var gK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iG(G({},Gn(sK(),[`component`,`strong`])),{level:Number}),yK=(e,t)=>{let{slots:n,attrs:r}=t,{level:i=1}=e,a=gK(e,[`level`]),o;_K.includes(i)?o=`h${i}`:(nt(!1,`Typography`,"Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),o=`h1`);let c=G(G(G({},a),{component:o}),r);return s(cK,c,n)};yK.displayName=`ATypographyTitle`,yK.inheritAttrs=!1,yK.props=vK(),UG.Text=hK,UG.Title=yK,UG.Paragraph=pK,UG.Link=dK,UG.Base=cK,UG.install=function(e){return e.component(UG.name,UG),e.component(UG.Text.displayName,hK),e.component(UG.Title.displayName,yK),e.component(UG.Paragraph.displayName,pK),e.component(UG.Link.displayName,dK),e};var bK=UG;function xK(e,t){let n=`cannot ${e.method} ${e.action} ${t.status}'`,r=Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function SK(e){let t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function CK(e){let t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});let n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{let r=e.data[t];if(Array.isArray(r)){r.forEach(e=>{n.append(`${t}[]`,e)});return}n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(xK(e,t),SK(t)):e.onSuccess(SK(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&`withCredentials`in t&&(t.withCredentials=!0);let r=e.headers||{};return r[`X-Requested-With`]!==null&&t.setRequestHeader(`X-Requested-With`,`XMLHttpRequest`),Object.keys(r).forEach(e=>{r[e]!==null&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}var wK=+new Date,TK=0;function EK(){return`vc-upload-${wK}-${++TK}`}var DK=((e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(`,`),r=e.name||``,i=e.type||``,a=i.replace(/\/.*$/,``);return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if(t.charAt(0)===`.`){let e=r.toLowerCase(),n=t.toLowerCase(),i=[n];return(n===`.jpg`||n===`.jpeg`)&&(i=[`.jpg`,`.jpeg`]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,``):i===t?!0:/^\w+$/.test(t)?(`${t}`,!0):!1})}return!0});function OK(e,t){let n=e.createReader(),r=[];function i(){n.readEntries(e=>{let n=Array.prototype.slice.apply(e);r=r.concat(n),n.length?i():t(r)})}i()}var kK=(e,t,n)=>{let r=(e,i)=>{e.path=i||``,e.isFile?e.file(r=>{n(r)&&(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,``),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),t([r]))}):e.isDirectory&&OK(e,t=>{t.forEach(t=>{r(t,`${i}${e.name}/`)})})};e.forEach(e=>{r(e.webkitGetAsEntry())})},AK=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}),jK=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},MK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);ijK(this,void 0,void 0,function*(){let{beforeUpload:r}=e,i=t;if(r){try{i=yield r(t,n)}catch{i=!1}if(i===!1)return{origin:t,parsedFile:null,action:null,data:null}}let{action:a}=e,o;o=typeof a==`function`?yield a(t):a;let{data:s}=e,c;c=typeof s==`function`?yield s(t):s;let l=(typeof i==`object`||typeof i==`string`)&&i?i:t,u;u=l instanceof File?l:new File([l],t.name,{type:t.type});let d=u;return d.uid=t.uid,{origin:t,data:c,parsedFile:d,action:o}}),d=t=>{let{data:n,origin:r,action:i,parsedFile:a}=t;if(!l)return;let{onStart:s,customRequest:c,name:u,headers:d,withCredentials:f,method:p}=e,{uid:m}=r,h=c||CK,g={action:i,filename:u,data:n,file:a,headers:d,withCredentials:f,method:p||`post`,onProgress:t=>{let{onProgress:n}=e;n?.(t,a)},onSuccess:(t,n)=>{let{onSuccess:r}=e;r?.(t,a,n),delete o[m]},onError:(t,n)=>{let{onError:r}=e;r?.(t,n,a),delete o[m]}};s(r),o[m]=h(g)},f=()=>{a.value=EK()},m=e=>{if(e){let t=e.uid?e.uid:e;o[t]&&o[t].abort&&o[t].abort(),delete o[t]}else Object.keys(o).forEach(e=>{o[e]&&o[e].abort&&o[e].abort(),delete o[e]})};D(()=>{l=!0}),p(()=>{l=!1,m()});let h=t=>{let n=[...t],r=n.map(e=>(e.uid=EK(),u(e,n)));Promise.all(r).then(t=>{let{onBatchStart:n}=e;n?.(t.map(e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}})),t.filter(e=>e.parsedFile!==null).forEach(e=>{d(e)})})},g=t=>{let{accept:n,directory:r}=e,{files:i}=t.target,a=[...i].filter(e=>!r||DK(e,n));h(a),f()},_=t=>{let n=c.value;if(!n)return;let{onClick:r}=e;n.click(),r&&r(t)},v=e=>{e.key===`Enter`&&_(e)},y=t=>{let{multiple:n}=e;if(t.preventDefault(),t.type!==`dragover`){if(e.directory)kK(Array.prototype.slice.call(t.dataTransfer.items),h,t=>DK(t,e.accept));else{let r=_h(Array.prototype.slice.call(t.dataTransfer.files),t=>DK(t,e.accept)),i=r[0],a=r[1];n===!1&&(i=i.slice(0,1)),h(i),a.length&&e.onReject&&e.onReject(a)}}};return i({abort:m}),()=>{let{componentTag:t,prefixCls:i,disabled:o,id:l,multiple:u,accept:d,capture:f,directory:p,openFileDialogOnClick:m,onMouseenter:h,onMouseleave:b}=e,x=MK(e,[`componentTag`,`prefixCls`,`disabled`,`id`,`multiple`,`accept`,`capture`,`directory`,`openFileDialogOnClick`,`onMouseenter`,`onMouseleave`]),S={[i]:!0,[`${i}-disabled`]:o,[r.class]:!!r.class},C=p?{directory:`directory`,webkitdirectory:`webkitdirectory`}:{};return s(t,X(X({},o?{}:{onClick:m?_:()=>{},onKeydown:m?v:()=>{},onMouseenter:h,onMouseleave:b,onDrop:y,onDragover:y,tabindex:`0`}),{},{class:S,role:`button`,style:r.style}),{default:()=>[s(`input`,X(X(X({},un(x,{aria:!0,data:!0})),{},{id:l,type:`file`,ref:c,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:a.value,style:{display:`none`},accept:d},C),{},{multiple:u,onChange:g},f==null?{}:{capture:f}),null),n.default?.call(n)]})}}});function PK(){}var FK=d({compatConfig:{MODE:3},name:`Upload`,inheritAttrs:!1,props:Vn(AK(),{componentTag:`span`,prefixCls:`rc-upload`,data:{},headers:{},name:`file`,multipart:!1,onStart:PK,onError:PK,onSuccess:PK,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:i}=t,a=W();return i({abort:e=>{var t;(t=a.value)==null||t.abort(e)}}),()=>s(NK,X(X(X({},e),r),{},{ref:a}),n)}}),IK={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z`}}]},name:`paper-clip`,theme:`outlined`};function LK(e){for(var t=1;t{let{uid:n}=t;return n===e.uid});return r===-1?n.push(e):n[r]=e,n}function QK(e,t){let n=e.uid===void 0?`name`:`uid`;return t.filter(t=>t[n]===e[n])[0]}function $K(e,t){let n=e.uid===void 0?`name`:`uid`,r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}var eq=function(){let e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:``).split(`/`),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[``])[0]},tq=e=>e.indexOf(`image/`)===0,nq=e=>{if(e.type&&!e.thumbUrl)return tq(e.type);let t=e.thumbUrl||e.url||``,n=eq(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},rq=200;function iq(e){return new Promise(t=>{if(!e.type||!tq(e.type)){t(``);return}let n=document.createElement(`canvas`);n.width=rq,n.height=rq,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${rq}px; height: ${rq}px; z-index: 9999; display: none;`,document.body.appendChild(n);let r=n.getContext(`2d`),i=new Image;if(i.onload=()=>{let{width:e,height:a}=i,o=rq,s=rq,c=0,l=0;e>a?(s=rq/e*a,l=-(s-o)/2):(o=rq/a*e,c=-(o-s)/2),r.drawImage(i,c,l,o,s);let u=n.toDataURL();document.body.removeChild(n),t(u)},i.crossOrigin=`anonymous`,e.type.startsWith(`image/svg+xml`)){let t=new FileReader;t.addEventListener(`load`,()=>{t.result&&(i.src=t.result)}),t.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var aq={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z`}}]},name:`download`,theme:`outlined`};function oq(e){for(var t=1;t{o.value=setTimeout(()=>{i.value=!0},300)}),p(()=>{clearTimeout(o.value)});let c=M(e.file?.status);H(()=>e.file?.status,e=>{e!==`removed`&&(c.value=e)});let{rootPrefixCls:l}=K(`upload`,e),u=a(()=>ge(`${l.value}-fade`));return()=>{let{prefixCls:t,locale:a,listType:o,file:l,items:d,progress:f,iconRender:p=n.iconRender,actionIconRender:m=n.actionIconRender,itemRender:h=n.itemRender,isImgUrl:g,showPreviewIcon:_,showRemoveIcon:v,showDownloadIcon:y,previewIcon:b=n.previewIcon,removeIcon:x=n.removeIcon,downloadIcon:S=n.downloadIcon,onPreview:C,onDownload:w,onClose:T}=e,{class:E,style:D}=r,O=p({file:l}),k=s(`div`,{class:`${t}-text-icon`},[O]);if(o===`picture`||o===`picture-card`){if(c.value===`uploading`||!l.thumbUrl&&!l.url){let e={[`${t}-list-item-thumbnail`]:!0,[`${t}-list-item-file`]:c.value!==`uploading`};k=s(`div`,{class:e},[O])}else{let e=g?.(l)?s(`img`,{src:l.thumbUrl||l.url,alt:l.name,class:`${t}-list-item-image`,crossorigin:l.crossOrigin},null):O,n={[`${t}-list-item-thumbnail`]:!0,[`${t}-list-item-file`]:g&&!g(l)};k=s(`a`,{class:n,onClick:e=>C(l,e),href:l.url||l.thumbUrl,target:`_blank`,rel:`noopener noreferrer`},[e])}}let A={[`${t}-list-item`]:!0,[`${t}-list-item-${c.value}`]:!0},j=typeof l.linkProps==`string`?JSON.parse(l.linkProps):l.linkProps,M=v?m({customIcon:x?x({file:l}):s(or,null,null),callback:()=>T(l),prefixCls:t,title:a.removeFile}):null,N=y&&c.value===`done`?m({customIcon:S?S({file:l}):s(cq,null,null),callback:()=>w(l),prefixCls:t,title:a.downloadFile}):null,P=o!==`picture-card`&&s(`span`,{key:`download-delete`,class:[`${t}-list-item-actions`,{picture:o===`picture`}]},[N,M]),F=`${t}-list-item-name`,I=l.url?[s(`a`,X(X({key:`view`,target:`_blank`,rel:`noopener noreferrer`,class:F,title:l.name},j),{},{href:l.url,onClick:e=>C(l,e)}),[l.name]),P]:[s(`span`,{key:`view`,class:F,onClick:e=>C(l,e),title:l.name},[l.name]),P],L=_?s(`a`,{href:l.url||l.thumbUrl,target:`_blank`,rel:`noopener noreferrer`,style:l.url||l.thumbUrl?void 0:{pointerEvents:`none`,opacity:.5},onClick:e=>C(l,e),title:a.previewFile},[b?b({file:l}):s(nN,null,null)]):null,ee=o===`picture-card`&&c.value!==`uploading`&&s(`span`,{class:`${t}-list-item-actions`},[L,c.value===`done`&&N,M]),R=s(`div`,{class:A},[k,I,ee,i.value&&s(Gt,u.value,{default:()=>[ie(s(`div`,{class:`${t}-list-item-progress`},[`percent`in l?s(KL,X(X({},f),{},{type:`line`,percent:l.percent}),null):null]),[[st,c.value===`uploading`]])]})]),z={[`${t}-list-item-container`]:!0,[`${E}`]:!!E},B=l.response&&typeof l.response==`string`?l.response:l.error?.statusText||l.error?.message||a.uploadError,te=c.value===`error`?s(m_,{title:B,getPopupContainer:e=>e.parentNode},{default:()=>[R]}):R;return s(`div`,{class:z,style:D},[h?h({originNode:te,file:l,fileList:d,actions:{download:w.bind(null,l),preview:C.bind(null,l),remove:T.bind(null,l)}}):te])}}}),uq=(e,t)=>{let{slots:n}=t;return ve(n.default?.call(n))[0]},dq=d({compatConfig:{MODE:3},name:`AUploadList`,props:Vn(YK(),{listType:`text`,progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:iq,isImageUrl:nq,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:r}=t,i=M(!1);D(()=>{i.value});let o=M([]);H(()=>e.items,function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.value=e.slice()},{immediate:!0,deep:!0}),P(()=>{if(e.listType!==`picture`&&e.listType!==`picture-card`)return;let t=!1;(e.items||[]).forEach((n,r)=>{typeof document>`u`||typeof window>`u`||!window.FileReader||!window.File||!(n.originFileObj instanceof File||n.originFileObj instanceof Blob)||n.thumbUrl!==void 0||(n.thumbUrl=``,e.previewFile&&e.previewFile(n.originFileObj).then(e=>{let i=e||``;i!==n.thumbUrl&&(o.value[r].thumbUrl=i,t=!0)}))}),t&&oe(o)});let c=(t,n)=>{if(e.onPreview)return n?.preventDefault(),e.onPreview(t)},l=t=>{typeof e.onDownload==`function`?e.onDownload(t):t.url&&window.open(t.url)},u=t=>{var n;(n=e.onRemove)==null||n.call(e,t)},d=t=>{let{file:r}=t,i=e.iconRender||n.iconRender;if(i)return i({file:r,listType:e.listType});let a=r.status===`uploading`,o=e.isImageUrl&&e.isImageUrl(r)?s(UK,null,null):s(qK,null,null),c=s(a?at:zK,null,null);return e.listType===`picture`?c=a?s(at,null,null):o:e.listType===`picture-card`&&(c=a?e.locale.uploading:o),c},f=e=>{let{customIcon:t,callback:n,prefixCls:r,title:i}=e,a={type:`text`,size:`small`,title:i,onClick:()=>{n()},class:`${r}-list-item-action`};return Xe(t)?s(Ln,a,{icon:()=>t}):s(Ln,a,{default:()=>[s(`span`,null,[t])]})};r({handlePreview:c,handleDownload:l});let{prefixCls:p,rootPrefixCls:m}=K(`upload`,e),h=a(()=>({[`${p.value}-list`]:!0,[`${p.value}-list-${e.listType}`]:!0})),g=a(()=>{let t=G({},$v(`${m.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;let n=G(G({},Qt(`${p.value}-${e.listType===`picture-card`?`animate-inline`:`animate`}`)),{class:h.value,appear:i.value});return e.listType===`picture-card`?n:G(G({},t),n)});return()=>{let{listType:t,locale:r,isImageUrl:i,showPreviewIcon:a,showRemoveIcon:m,showDownloadIcon:h,removeIcon:_,previewIcon:v,downloadIcon:y,progress:b,appendAction:x,itemRender:S,appendActionVisible:C}=e,w=x?.(),T=o.value;return s(jt,X(X({},g.value),{},{tag:`div`}),{default:()=>[T.map(e=>{let{uid:o}=e;return s(lq,{key:o,locale:r,prefixCls:p.value,file:e,items:T,progress:b,listType:t,isImgUrl:i,showPreviewIcon:a,showRemoveIcon:m,showDownloadIcon:h,onPreview:c,onDownload:l,onClose:u,removeIcon:_,previewIcon:v,downloadIcon:y,itemRender:S},G(G({},n),{iconRender:d,actionIconRender:f}))}),x?ie(s(uq,{key:`__ant_upload_appendAction`},{default:()=>w}),[[st,!!C]]):null]})}}}),fq=e=>{let{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:`relative`,width:`100%`,height:`100%`,textAlign:`center`,background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:`table`,width:`100%`,height:`100%`,outline:`none`},[`${t}-drag-container`]:{display:`table-cell`,verticalAlign:`middle`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:`not-allowed`,[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},pq=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSize:i,lineHeight:a}=e,o=`${t}-list-item`,s=`${o}-actions`,c=`${o}-action`,l=Math.round(i*a);return{[`${t}-wrapper`]:{[`${t}-list`]:G(G({},Ve()),{lineHeight:e.lineHeight,[o]:{position:`relative`,height:e.lineHeight*i,marginTop:e.marginXS,fontSize:i,display:`flex`,alignItems:`center`,transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:G(G({},tn),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:`auto`,transition:`all ${e.motionDurationSlow}`}),[s]:{[c]:{opacity:0},[`${c}${n}-btn-sm`]:{height:l,border:0,lineHeight:1,"> span":{transform:`scale(1)`}},[` + ${c}:focus, + &.picture ${c} + `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:i},[`${o}-progress`]:{position:`absolute`,bottom:-e.uploadProgressOffset,width:`100%`,paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:`none`,"> div":{margin:0}}},[`${o}:hover ${c}`]:{opacity:1,color:e.colorText},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:`table`,width:0,height:0,content:`""`}}})}}},mq=new Te(`uploadAnimateInlineIn`,{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),hq=new Te(`uploadAnimateInlineOut`,{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),gq=e=>{let{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:`forwards`},[`${n}-appear, ${n}-enter`]:{animationName:mq},[`${n}-leave`]:{animationName:hq}}},mq,hq]},_q=e=>{let{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i}=e,a=`${t}-list`,o=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[o]:{position:`relative`,height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:`transparent`},[`${o}-thumbnail`]:G(G({},tn),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:`center`,flex:`none`,[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:`block`,width:`100%`,height:`100%`,overflow:`hidden`}}),[`${o}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${o}-error`]:{borderColor:e.colorError,[`${o}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${o}-uploading`]:{borderStyle:`dashed`,[`${o}-name`]:{marginBottom:i}}}}}},vq=e=>{let{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i}=e,a=`${t}-list`,o=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:G(G({},Ve()),{display:`inline-block`,width:`100%`,[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:`center`,verticalAlign:`top`,backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:`pointer`,transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,height:`100%`,textAlign:`center`},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:`inline-block`,width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:`top`},"&::after":{display:`none`},[o]:{height:`100%`,margin:0,"&::before":{position:`absolute`,zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`" "`}},[`${o}:hover`]:{[`&::before, ${o}-actions`]:{opacity:1}},[`${o}-actions`]:{position:`absolute`,insetInlineStart:0,zIndex:10,width:`100%`,whiteSpace:`nowrap`,textAlign:`center`,opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`}},[`${o}-actions, ${o}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new me(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${o}-thumbnail, ${o}-thumbnail img`]:{position:`static`,display:`block`,width:`100%`,height:`100%`,objectFit:`contain`},[`${o}-name`]:{display:`none`,textAlign:`center`},[`${o}-file + ${o}-name`]:{position:`absolute`,bottom:e.margin,display:`block`,width:`calc(100% - ${e.paddingXS*2}px)`},[`${o}-uploading`]:{[`&${o}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:`none`}},[`${o}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},yq=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:`rtl`}}},bq=e=>{let{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:G(G({},Ne(e)),{[t]:{outline:0,"input[type='file']":{cursor:`pointer`}},[`${t}-select`]:{display:`inline-block`},[`${t}-disabled`]:{color:n,cursor:`not-allowed`}})}},xq=Le(`Upload`,e=>{let{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:a}=e,o=Math.round(n*r),s=Fe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:o/2+i,uploadPicCardSize:a*2.55});return[bq(s),fq(s),_q(s),vq(s),pq(s),gq(s),yq(s),Hh(s)]}),Sq=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);iu.value??p.value),[h,g]=zu(e.defaultFileList||[],{value:y(e,`fileList`),postState:e=>{let t=Date.now();return(e??[]).map((e,n)=>(!e.uid&&!Object.isFrozen(e)&&(e.uid=`__AUTO__${t}_${n}__`),e))}}),_=W(`drop`),v=W(null);D(()=>{ir(e.fileList!==void 0||r.value===void 0,`Upload`,"`value` is not a valid prop, do you mean `fileList`?"),ir(e.transformFile===void 0,`Upload`,"`transformFile` is deprecated. Please use `beforeUpload` directly."),ir(e.remove===void 0,`Upload`,"`remove` props is deprecated. Please use `remove` event.")});let b=(t,n,r)=>{var i,a;let s=[...n];e.maxCount===1?s=s.slice(-1):e.maxCount&&(s=s.slice(0,e.maxCount)),g(s);let c={file:t,fileList:s};r&&(c.event=r),(i=e[`onUpdate:fileList`])==null||i.call(e,c.fileList),(a=e.onChange)==null||a.call(e,c),o.onFieldChange()},x=(t,n)=>Sq(this,void 0,void 0,function*(){let{beforeUpload:r,transformFile:i}=e,a=t;if(r){let e=yield r(t,n);if(e===!1)return!1;if(delete t[wq],e===wq)return Object.defineProperty(t,wq,{value:!0,configurable:!0}),!1;typeof e==`object`&&e&&(a=e)}return i&&(a=yield i(a)),a}),S=e=>{let t=e.filter(e=>!e.file[wq]);if(!t.length)return;let n=t.map(e=>XK(e.file)),r=[...h.value];n.forEach(e=>{r=ZK(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status=`uploading`;else{let{originFileObj:t}=e,n;try{n=new File([t],t.name,{type:t.type})}catch{n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=new Date().getTime()}n.uid=e.uid,i=n}b(i,r)})},C=(e,t,n)=>{try{typeof e==`string`&&(e=JSON.parse(e))}catch{}if(!QK(t,h.value))return;let r=XK(t);r.status=`done`,r.percent=100,r.response=e,r.xhr=n;let i=ZK(r,h.value);b(r,i)},w=(e,t)=>{if(!QK(t,h.value))return;let n=XK(t);n.status=`uploading`,n.percent=e.percent;let r=ZK(n,h.value);b(n,r,e)},T=(e,t,n)=>{if(!QK(n,h.value))return;let r=XK(n);r.error=e,r.response=t,r.status=`error`;let i=ZK(r,h.value);b(r,i)},E=t=>{let n,r=e.onRemove||e.remove;Promise.resolve(typeof r==`function`?r(t):r).then(e=>{var r,i;if(e===!1)return;let a=$K(t,h.value);a&&(n=G(G({},t),{status:`removed`}),(r=h.value)==null||r.forEach(e=>{let t=n.uid===void 0?`name`:`uid`;e[t]===n[t]&&!Object.isFrozen(e)&&(e.status=`removed`)}),(i=v.value)==null||i.abort(n),b(n,a))})},O=t=>{var n;_.value=t.type,t.type===`drop`&&((n=e.onDrop)==null||n.call(e,t))};i({onBatchStart:S,onSuccess:C,onProgress:w,onError:T,fileList:h,upload:v});let[k]=Ft(`Upload`,Ut.Upload,a(()=>e.locale)),A=(t,r)=>{let{removeIcon:i,previewIcon:a,downloadIcon:o,previewFile:l,onPreview:u,onDownload:d,isImageUrl:f,progress:p,itemRender:g,iconRender:_,showUploadList:v}=e,{showDownloadIcon:y,showPreviewIcon:b,showRemoveIcon:x}=typeof v==`boolean`?{}:v;return v?s(dq,{prefixCls:c.value,listType:e.listType,items:h.value,previewFile:l,onPreview:u,onDownload:d,onRemove:E,showRemoveIcon:!m.value&&x,showPreviewIcon:b,showDownloadIcon:y,removeIcon:i,previewIcon:a,downloadIcon:o,iconRender:_,locale:k.value,isImageUrl:f,progress:p,itemRender:g,appendActionVisible:r,appendAction:t},G({},n)):t?.()};return()=>{let{listType:t,type:i}=e,{class:a,style:u}=r,p=Cq(r,[`class`,`style`]),g=G(G(G({onBatchStart:S,onError:T,onProgress:w,onSuccess:C},p),e),{id:e.id??o.id.value,prefixCls:c.value,beforeUpload:x,onChange:void 0,disabled:m.value});delete g.remove,(!n.default||m.value)&&delete g.id;let y={[`${c.value}-rtl`]:l.value===`rtl`};if(i===`drag`){let e=Z(c.value,{[`${c.value}-drag`]:!0,[`${c.value}-drag-uploading`]:h.value.some(e=>e.status===`uploading`),[`${c.value}-drag-hover`]:_.value===`dragover`,[`${c.value}-disabled`]:m.value,[`${c.value}-rtl`]:l.value===`rtl`},r.class,f.value);return d(s(`span`,X(X({},r),{},{class:Z(`${c.value}-wrapper`,y,a,f.value)}),[s(`div`,{class:e,onDrop:O,onDragover:O,onDragleave:O,style:r.style},[s(FK,X(X({},g),{},{ref:v,class:`${c.value}-btn`}),X({default:()=>[s(`div`,{class:`${c.value}-drag-container`},[n.default?.call(n)])]},n))]),A()]))}let b=Z(c.value,{[`${c.value}-select`]:!0,[`${c.value}-select-${t}`]:!0,[`${c.value}-disabled`]:m.value,[`${c.value}-rtl`]:l.value===`rtl`}),E=pe(n.default?.call(n)),D=e=>s(`div`,{class:b,style:e},[s(FK,X(X({},g),{},{ref:v}),n)]);return d(t===`picture-card`?s(`span`,X(X({},r),{},{class:Z(`${c.value}-wrapper`,`${c.value}-picture-card-wrapper`,y,r.class,f.value)}),[A(D,!!(E&&E.length))]):s(`span`,X(X({},r),{},{class:Z(`${c.value}-wrapper`,y,r.class,f.value)}),[D(E&&E.length?void 0:{display:`none`}),A()]))}}}),Eq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{height:t}=e,i=Eq(e,[`height`]),{style:a}=r,o=Eq(r,[`style`]),c=G(G(G({},i),o),{type:`drag`,style:G(G({},a),{height:typeof t==`number`?`${t}px`:t})});return s(Tq,c,n)}}}),Oq=Dq,kq=G(Tq,{Dragger:Dq,LIST_IGNORE:wq,install(e){return e.component(Tq.name,Tq),e.component(Dq.name,Dq),e}});function Aq(e){return e.replace(/([A-Z])/g,`-$1`).toLowerCase()}function jq(e){return Object.keys(e).map(t=>`${Aq(t)}: ${e[t]};`).join(` `)}function Mq(){return window.devicePixelRatio||1}function Nq(e,t,n,r){e.translate(t,n),e.rotate(Math.PI/180*Number(r)),e.translate(-t,-n)}var Pq=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(e=>e===t)),e.type===`attributes`&&e.target===t&&(n=!0),n},Fq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i2&&arguments[2]!==void 0?arguments[2]:{},{window:r=qx}=n,i=Fq(n,[`window`]),a,o=Gx(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=H(()=>Ux(e),e=>{s(),o.value&&r&&e&&(a=new MutationObserver(t),a.observe(e,i))},{immediate:!0}),l=()=>{s(),c()};return Vx(l),{isSupported:o,stop:l}}var Lq=2,Rq=3,zq=d({name:`AWatermark`,inheritAttrs:!1,props:Vn({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:$t([String,Array]),font:ut(),rootClassName:String,gap:vt(),offset:vt()},{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:r}=t,[,i]=Ct(),o=M(),c=M(),l=M(!1),u=a(()=>e.gap?.[0]??100),d=a(()=>e.gap?.[1]??100),f=a(()=>u.value/2),m=a(()=>d.value/2),h=a(()=>e.offset?.[0]??f.value),g=a(()=>e.offset?.[1]??m.value),_=a(()=>e.font?.fontSize??i.value.fontSizeLG),v=a(()=>e.font?.fontWeight??`normal`),y=a(()=>e.font?.fontStyle??`normal`),b=a(()=>e.font?.fontFamily??`sans-serif`),x=a(()=>e.font?.color??i.value.colorFill),S=a(()=>{let t={zIndex:e.zIndex??9,position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,pointerEvents:`none`,backgroundRepeat:`repeat`},n=h.value-f.value,r=g.value-m.value;return n>0&&(t.left=`${n}px`,t.width=`calc(100% - ${n}px)`,n=0),r>0&&(t.top=`${r}px`,t.height=`calc(100% - ${r}px)`,r=0),t.backgroundPosition=`${n}px ${r}px`,t}),C=()=>{c.value&&=(c.value.remove(),void 0)},w=(e,t)=>{var n;o.value&&c.value&&(l.value=!0,c.value.setAttribute(`style`,jq(G(G({},S.value),{backgroundImage:`url('${e}')`,backgroundSize:`${(u.value+t)*Lq}px`}))),(n=o.value)==null||n.append(c.value),setTimeout(()=>{l.value=!1}))},T=t=>{let n=120,r=64,i=e.content,a=e.image,o=e.width,s=e.height;if(!a&&t.measureText){t.font=`${Number(_.value)}px ${b.value}`;let e=Array.isArray(i)?i:[i],a=e.map(e=>t.measureText(e).width);n=Math.ceil(Math.max(...a)),r=Number(_.value)*e.length+(e.length-1)*Rq}return[o??n,s??r]},E=(t,n,r,i,a)=>{let o=Mq(),s=e.content,c=Number(_.value)*o;t.font=`${y.value} normal ${v.value} ${c}px/${a}px ${b.value}`,t.fillStyle=x.value,t.textAlign=`center`,t.textBaseline=`top`,t.translate(i/2,0),(Array.isArray(s)?s:[s])?.forEach((e,i)=>{t.fillText(e??``,n,r+i*(c+Rq*o))})},O=()=>{let t=document.createElement(`canvas`),n=t.getContext(`2d`),r=e.image,i=e.rotate??-22;if(n){c.value||=document.createElement(`div`);let e=Mq(),[a,o]=T(n),s=(u.value+a)*e,l=(d.value+o)*e;t.setAttribute(`width`,`${s*Lq}px`),t.setAttribute(`height`,`${l*Lq}px`);let f=u.value*e/2,p=d.value*e/2,m=a*e,h=o*e,g=(m+u.value*e)/2,_=(h+d.value*e)/2,v=f+s,y=p+l,b=g+s,x=_+l;if(n.save(),Nq(n,g,_,i),r){let e=new Image;e.onload=()=>{n.drawImage(e,f,p,m,h),n.restore(),Nq(n,b,x,i),n.drawImage(e,v,y,m,h),w(t.toDataURL(),a)},e.crossOrigin=`anonymous`,e.referrerPolicy=`no-referrer`,e.src=r}else E(n,f,p,m,h),n.restore(),Nq(n,b,x,i),E(n,v,y,m,h),w(t.toDataURL(),a)}};return D(()=>{O()}),H(()=>[e,i.value.colorFill,i.value.fontSizeLG],()=>{O()},{deep:!0,flush:`post`}),p(()=>{C()}),Iq(o,e=>{l.value||e.forEach(e=>{Pq(e,c.value)&&(C(),O())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:[`style`,`class`]}),()=>s(`div`,X(X({},r),{},{ref:o,class:[r.class,e.rootClassName],style:[{position:`relative`},r.style]}),[n.default?.call(n)])}}),Bq=be(zq);function Vq(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}function Hq(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}var Uq=G({overflow:`hidden`},tn),Wq=e=>{let{componentCls:t}=e;return{[t]:G(G(G(G(G({},Ne(e)),{display:`inline-block`,padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":G(G({},Hq(e)),{color:e.labelColorHover}),"&::after":{content:`""`,position:`absolute`,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,transition:`background-color ${e.motionDurationMid}`,pointerEvents:`none`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":G({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Uq),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:G(G({},Hq(e)),{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Vq(`&-disabled ${t}-item`,e)),Vq(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:`transform, width`}})}},Gq=Le(`Segmented`,e=>{let{lineWidthBold:t,lineWidth:n,colorTextLabel:r,colorText:i,colorFillSecondary:a,colorBgLayout:o,colorBgElevated:s}=e;return[Wq(Fe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:r,labelColorHover:i,bgColor:o,bgColorHover:a,bgColorSelected:s}))]}),Kq=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,qq=e=>e===void 0?void 0:`${e}px`,Jq=d({props:{value:bt(),getValueIndex:bt(),prefixCls:bt(),motionName:bt(),onMotionStart:bt(),onMotionEnd:bt(),direction:bt(),containerRef:bt()},emits:[`motionStart`,`motionEnd`],setup(e,t){let{emit:n}=t,r=W(),i=t=>{let n=e.getValueIndex(t),r=e.containerRef.value?.querySelectorAll(`.${e.prefixCls}-item`)[n];return r?.offsetParent&&r},o=W(null),c=W(null);H(()=>e.value,(e,t)=>{let r=i(t),a=i(e),s=Kq(r),l=Kq(a);o.value=s,c.value=l,n(r&&a?`motionStart`:`motionEnd`)},{flush:`post`});let l=a(()=>e.direction===`rtl`?qq(-o.value?.right):qq(o.value?.left)),u=a(()=>e.direction===`rtl`?qq(-c.value?.right):qq(c.value?.left)),d,f=e=>{clearTimeout(d),x(()=>{e&&(e.style.transform=`translateX(var(--thumb-start-left))`,e.style.width=`var(--thumb-start-width)`)})},m=t=>{d=setTimeout(()=>{t&&(Zv(t,`${e.motionName}-appear-active`),t.style.transform=`translateX(var(--thumb-active-left))`,t.style.width=`var(--thumb-active-width)`)})},h=t=>{o.value=null,c.value=null,t&&(t.style.transform=null,t.style.width=null,Qv(t,`${e.motionName}-appear-active`)),n(`motionEnd`)},g=a(()=>({"--thumb-start-left":l.value,"--thumb-start-width":qq(o.value?.width),"--thumb-active-left":u.value,"--thumb-active-width":qq(c.value?.width)}));return p(()=>{clearTimeout(d)}),()=>{let t={ref:r,style:g.value,class:[`${e.prefixCls}-thumb`]};return s(Gt,{appear:!0,onBeforeEnter:f,onEnter:m,onAfterEnter:h},{default:()=>[!o.value||!c.value?null:s(`div`,t,null)]})}}});function Yq(e){return e.map(e=>typeof e==`object`&&e?e:{label:e?.toString(),title:e?.toString(),value:e})}var Xq=()=>({prefixCls:String,options:vt(),block:Y(),disabled:Y(),size:q(),value:G(G({},$t([String,Number])),{required:!0}),motionName:String,onChange:Q(),"onUpdate:value":Q()}),Zq=(e,t)=>{let{slots:n,emit:r}=t,{value:i,disabled:a,payload:o,title:c,prefixCls:l,label:u=n.label,checked:d,className:f}=e,p=e=>{a||r(`change`,e,i)};return s(`label`,{class:Z({[`${l}-item-disabled`]:a},f)},[s(`input`,{class:`${l}-item-input`,type:`radio`,disabled:a,checked:d,onChange:p},null),s(`div`,{class:`${l}-item-label`,title:typeof c==`string`?c:``},[typeof u==`function`?u({value:i,disabled:a,payload:o,title:c}):u??i])])};Zq.inheritAttrs=!1;var Qq=d({name:`ASegmented`,inheritAttrs:!1,props:Vn(Xq(),{options:[],motionName:`thumb-motion`}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:i}=t,{prefixCls:o,direction:c,size:l}=K(`segmented`,e),[u,d]=Gq(o),f=M(),p=M(!1),m=a(()=>Yq(e.options)),h=(t,r)=>{e.disabled||(n(`update:value`,r),n(`change`,r))};return()=>{let t=o.value;return u(s(`div`,X(X({},i),{},{class:Z(t,{[d.value]:!0,[`${t}-block`]:e.block,[`${t}-disabled`]:e.disabled,[`${t}-lg`]:l.value==`large`,[`${t}-sm`]:l.value==`small`,[`${t}-rtl`]:c.value===`rtl`},i.class),ref:f}),[s(`div`,{class:`${t}-group`},[s(Jq,{containerRef:f,prefixCls:t,value:e.value,motionName:`${t}-${e.motionName}`,direction:c.value,getValueIndex:e=>m.value.findIndex(t=>t.value===e),onMotionStart:()=>{p.value=!0},onMotionEnd:()=>{p.value=!1}},null),m.value.map(n=>s(Zq,X(X({key:n.value,prefixCls:t,checked:n.value===e.value,onChange:h},n),{},{className:Z(n.className,`${t}-item`,{[`${t}-item-selected`]:n.value===e.value&&!p.value}),disabled:!!e.disabled||!!n.disabled}),r))])]))}}}),$q=be(Qq),eJ=e=>{let{componentCls:t}=e;return{[t]:G(G({},Ne(e)),{display:`flex`,justifyContent:`center`,alignItems:`center`,padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:`relative`,width:`100%`,height:`100%`,overflow:`hidden`,[`& > ${t}-mask`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:10,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,width:`100%`,height:`100%`,color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:`center`,[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:`transparent`}}},tJ=Le(`QRCode`,e=>eJ(Fe(e,{QRCodeTextColor:`rgba(0, 0, 0, 0.88)`,QRCodeMaskBackgroundColor:`rgba(255, 255, 255, 0.96)`}))),nJ={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`};function rJ(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:q(`canvas`),color:String,bgColor:String,includeMargin:Boolean,imageSettings:ut()}),DJ=()=>G(G({},EJ()),{errorLevel:q(`M`),icon:String,iconSize:{type:Number,default:40},status:q(`active`),bordered:{type:Boolean,default:!0}}),OJ;(function(e){class t{static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=o&&o<=s&&s<=t.MAX_VERSION)||c<-1||c>7)throw RangeError(`Invalid value`);let u,d;for(u=o;;u++){let n=t.getNumDataCodewords(u,r)*8,i=a.getTotalBits(e,u);if(i<=n){d=i;break}if(u>=s)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])l&&d<=t.getNumDataCodewords(u,e)*8&&(r=e);let f=[];for(let t of e){n(t.mode.modeBits,4,f),n(t.numChars,t.mode.numCharCountBits(u),f);for(let e of t.getData())f.push(e)}i(f.length==d);let p=t.getNumDataCodewords(u,r)*8;i(f.length<=p),n(0,Math.min(4,p-f.length),f),n(0,(8-f.length%8)%8,f),i(f.length%8==0);for(let e=236;f.lengthm[t>>>3]|=e<<7-(t&7)),new t(u,r,m,c)}constructor(e,n,r,a){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(a<-1||a>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let o=[];for(let e=0;e>>9)*1335;let a=(t<<10|n)^21522;i(!(a>>>15));for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(a,e));this.setFunctionModule(8,7,r(a,6)),this.setFunctionModule(8,8,r(a,7)),this.setFunctionModule(7,8,r(a,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(a,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(a,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(a,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;i(!(t>>>18));for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a{(e!=l-o||n>=c)&&f.push(t[e])});return i(f.length==s),f}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}i(n==e.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,a=Math.ceil(Math.abs(n*20-r*10)/r)-1;return i(0<=a&&a<=9),e+=a*t.PENALTY_N4,i(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return i(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return i(!(n>>>8)),n}finderPenaltyCountPatterns(e){let t=e[1];i(t<=this.size*3);let n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return!!(e>>>t&1)}function i(e){if(!e)throw Error(`Assertion error`)}class a{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new a(a.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!a.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(e,r){let i=null;e.forEach(function(a,o){if(!a&&i!==null){n.push(`M${i+t} ${r+t}h${o-i}v1H${i+t}z`),i=null;return}if(o===e.length-1){if(!a)return;i===null?n.push(`M${o+t},${r+t} h1v1H${o+t}z`):n.push(`M${i+t},${r+t} h${o+1-i}v1H${i+t}z`);return}a&&i===null&&(i=o)})}),n.join(``)}function BJ(e,t){return e.slice().map((e,n)=>n=t.y+t.h?e:e.map((e,n)=>n=t.x+t.w?e:!1))}function VJ(e,t,n,r){if(r==null)return null;let i=e.length+n*2,a=Math.floor(t*RJ),o=i/t,s=(r.width||a)*o,c=(r.height||a)*o,l=r.x==null?e.length/2-s/2:r.x*o,u=r.y==null?e.length/2-c/2:r.y*o,d=null;if(r.excavate){let e=Math.floor(l),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(s+l-e),h:Math.ceil(c+u-t)}}return{x:l,y:u,h:c,w:s,excavation:d}}function HJ(e,t){return t==null?e?IJ:LJ:Math.floor(t)}var UJ=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),WJ=d({name:`QRCodeCanvas`,inheritAttrs:!1,props:G(G({},EJ()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:r}=t,i=a(()=>e.imageSettings?.src),o=M(null),c=M(null),l=M(!1);return r({toDataURL:(e,t)=>o.value?.toDataURL(e,t)}),P(()=>{let{value:t,size:n=jJ,level:r=MJ,bgColor:i=NJ,fgColor:a=PJ,includeMargin:s=FJ,marginSize:u,imageSettings:d}=e;if(o.value!=null){let e=o.value,f=e.getContext(`2d`);if(!f)return;let p=kJ.QrCode.encodeText(t,AJ[r]).getModules(),m=HJ(s,u),h=p.length+m*2,g=VJ(p,n,m,d),_=c.value,v=l.value&&g!=null&&_!==null&&_.complete&&_.naturalHeight!==0&&_.naturalWidth!==0;v&&g.excavation!=null&&(p=BJ(p,g.excavation));let y=window.devicePixelRatio||1;e.height=e.width=n*y;let b=n/h*y;f.scale(b,b),f.fillStyle=i,f.fillRect(0,0,h,h),f.fillStyle=a,UJ?f.fill(new Path2D(zJ(p,m))):p.forEach(function(e,t){e.forEach(function(e,n){e&&f.fillRect(n+m,t+m,1,1)})}),v&&f.drawImage(_,g.x+m,g.y+m,g.w,g.h)}},{flush:`post`}),H(i,()=>{l.value=!1}),()=>{let t=e.size??jJ,r={height:`${t}px`,width:`${t}px`},a=null;return i.value!=null&&(a=s(`img`,{src:i.value,key:i.value,style:{display:`none`},onLoad:()=>{l.value=!0},ref:c},null)),s(v,null,[s(`canvas`,X(X({},n),{},{style:[r,n.style],ref:o}),null),a])}}}),GJ=d({name:`QRCodeSVG`,inheritAttrs:!1,props:G(G({},EJ()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,r=null,i=null,a=null,o=null;return P(()=>{let{value:c,size:l=jJ,level:u=MJ,includeMargin:d=FJ,marginSize:f,imageSettings:p}=e;t=kJ.QrCode.encodeText(c,AJ[u]).getModules(),n=HJ(d,f),r=t.length+n*2,i=VJ(t,l,n,p),p!=null&&i!=null&&(i.excavation!=null&&(t=BJ(t,i.excavation)),o=s(`image`,{"xlink:href":p.src,height:i.h,width:i.w,x:i.x+n,y:i.y+n,preserveAspectRatio:`none`},null)),a=zJ(t,n)}),()=>{let t=e.bgColor&&NJ,n=e.fgColor&&PJ;return s(`svg`,{height:e.size,width:e.size,viewBox:`0 0 ${r} ${r}`},[!!e.title&&s(`title`,null,[e.title]),s(`path`,{fill:t,d:`M0,0 h${r}v${r}H0z`,"shape-rendering":`crispEdges`},null),s(`path`,{fill:n,d:a,"shape-rendering":`crispEdges`},null),o])}}}),KJ=d({name:`AQrcode`,inheritAttrs:!1,props:DJ(),emits:[`refresh`],setup(e,t){let{emit:n,attrs:r,expose:i}=t,[o]=Ft(`QRCode`),{prefixCls:c}=K(`qrcode`,e),[l,u]=tJ(c),[,d]=Ct(),f=W();i({toDataURL:(e,t)=>f.value?.toDataURL(e,t)});let p=a(()=>{let{value:t,icon:n=``,size:r=160,iconSize:i=40,color:a=d.value.colorText,bgColor:o=`transparent`,errorLevel:s=`M`}=e,c={src:n,x:void 0,y:void 0,height:i,width:i,excavate:!0};return{value:t,size:r-(d.value.paddingSM+d.value.lineWidth)*2,level:s,bgColor:o,fgColor:a,imageSettings:n?c:void 0}});return()=>{let t=c.value;return l(s(`div`,X(X({},r),{},{style:[r.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:p.value.bgColor}],class:[u.value,t,{[`${t}-borderless`]:!e.bordered}]}),[e.status!==`active`&&s(`div`,{class:`${t}-mask`},[e.status===`loading`&&s(bF,null,null),e.status===`expired`&&s(v,null,[s(`p`,{class:`${t}-expired`},[o.value.expired]),s(Ln,{type:`link`,onClick:e=>n(`refresh`,e)},{default:()=>[o.value.refresh],icon:()=>s(TJ,null,null)})]),e.status===`scanned`&&s(`p`,{class:`${t}-scanned`},[o.value.scanned])]),e.type===`canvas`?s(WJ,X({ref:f},p.value),null):s(GJ,p.value,null)]))}}}),qJ=be(KJ);function JJ(e){let t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:i,bottom:a,left:o}=e.getBoundingClientRect();return r>=0&&o>=0&&i<=t&&a<=n}function YJ(e,t,n,r){let[i,o]=dn(void 0);P(()=>{let t=typeof e.value==`function`?e.value():e.value;o(t||null)},{flush:`post`});let[s,c]=dn(null),l=()=>{if(!t.value){c(null);return}if(i.value){!JJ(i.value)&&t.value&&i.value.scrollIntoView(r.value);let{left:e,top:n,width:a,height:o}=i.value.getBoundingClientRect(),l={left:e,top:n,width:a,height:o,radius:0};JSON.stringify(s.value)!==JSON.stringify(l)&&c(l)}else c(null)};return D(()=>{H([t,i],()=>{l()},{flush:`post`,immediate:!0}),window.addEventListener(`resize`,l)}),p(()=>{window.removeEventListener(`resize`,l)}),[a(()=>{if(!s.value)return s.value;let e=n.value?.offset||6,t=n.value?.radius||2;return{left:s.value.left-e,top:s.value.top-e,width:s.value.width+e*2,height:s.value.height+e*2,radius:t}}),i]}var XJ=()=>({arrow:$t([Boolean,Object]),target:$t([String,Function,Object]),title:$t([String,Object]),description:$t([String,Object]),placement:q(),mask:$t([Object,Boolean],!0),className:{type:String},style:ut(),scrollIntoViewOptions:$t([Boolean,Object])}),ZJ=()=>G(G({},XJ()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:Q(),onFinish:Q(),renderPanel:Q(),onPrev:Q(),onNext:Q()}),QJ=d({name:`DefaultPanel`,inheritAttrs:!1,props:ZJ(),setup(e,t){let{attrs:n}=t;return()=>{let{prefixCls:t,current:r,total:i,title:a,description:o,onClose:c,onPrev:l,onNext:u,onFinish:d}=e;return s(`div`,X(X({},n),{},{class:Z(`${t}-content`,n.class)}),[s(`div`,{class:`${t}-inner`},[s(`button`,{type:`button`,onClick:c,"aria-label":`Close`,class:`${t}-close`},[s(`span`,{class:`${t}-close-x`},[g(`×`)])]),s(`div`,{class:`${t}-header`},[s(`div`,{class:`${t}-title`},[a])]),s(`div`,{class:`${t}-description`},[o]),s(`div`,{class:`${t}-footer`},[s(`div`,{class:`${t}-sliders`},[i>1?[...Array.from({length:i}).keys()].map((e,t)=>s(`span`,{key:e,class:t===r?`active`:``},null)):null]),s(`div`,{class:`${t}-buttons`},[r===0?null:s(`button`,{class:`${t}-prev-btn`,onClick:l},[g(`Prev`)]),r===i-1?s(`button`,{class:`${t}-finish-btn`,onClick:d},[g(`Finish`)]):s(`button`,{class:`${t}-next-btn`,onClick:u},[g(`Next`)])])])])])}}}),$J=d({name:`TourStep`,inheritAttrs:!1,props:ZJ(),setup(e,t){let{attrs:n}=t;return()=>{let{current:t,renderPanel:r}=e;return s(v,null,[typeof r==`function`?r(G(G({},n),e),t):s(QJ,X(X({},n),e),null)])}}}),eY=0,tY=de();function nY(){let e;return tY?(e=eY,eY+=1):e=`TEST_OR_SSR`,e}function rY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W(``),t=`vc_unique_${nY()}`;return e.value||t}var iY={fill:`transparent`,"pointer-events":`auto`},aY=d({name:`TourMask`,props:{prefixCls:{type:String},pos:ut(),rootClassName:{type:String},showMask:Y(),fill:{type:String,default:`rgba(0,0,0,0.5)`},open:Y(),animated:$t([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t,r=rY();return()=>{let{prefixCls:t,open:i,rootClassName:a,pos:o,showMask:c,fill:l,animated:u,zIndex:d}=e,f=`${t}-mask-${r}`,p=typeof u==`object`?u?.placeholder:u;return s(qn,{visible:i,autoLock:!0},{default:()=>i&&s(`div`,X(X({},n),{},{class:Z(`${t}-mask`,a,n.class),style:[{position:`fixed`,left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:`none`},n.style]}),[c?s(`svg`,{style:{width:`100%`,height:`100%`}},[s(`defs`,null,[s(`mask`,{id:f},[s(`rect`,{x:`0`,y:`0`,width:`100vw`,height:`100vh`,fill:`white`},null),o&&s(`rect`,{x:o.left,y:o.top,rx:o.radius,width:o.width,height:o.height,fill:`black`,class:p?`${t}-placeholder-animated`:``},null)])]),s(`rect`,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:l,mask:`url(#${f})`},null),o&&s(v,null,[s(`rect`,X(X({},iY),{},{x:`0`,y:`0`,width:`100%`,height:o.top}),null),s(`rect`,X(X({},iY),{},{x:`0`,y:`0`,width:o.left,height:`100%`}),null),s(`rect`,X(X({},iY),{},{x:`0`,y:o.top+o.height,width:`100%`,height:`calc(100vh - ${o.top+o.height}px)`}),null),s(`rect`,X(X({},iY),{},{x:o.left+o.width,y:`0`,width:`calc(100vw - ${o.left+o.width}px)`,height:`100%`}),null)])]):null])})}}}),oY=[0,0],sY={left:{points:[`cr`,`cl`],offset:[-8,0]},right:{points:[`cl`,`cr`],offset:[8,0]},top:{points:[`bc`,`tc`],offset:[0,-8]},bottom:{points:[`tc`,`bc`],offset:[0,8]},topLeft:{points:[`bl`,`tl`],offset:[0,-8]},leftTop:{points:[`tr`,`tl`],offset:[-8,0]},topRight:{points:[`br`,`tr`],offset:[0,-8]},rightTop:{points:[`tl`,`tr`],offset:[8,0]},bottomRight:{points:[`tr`,`br`],offset:[0,8]},rightBottom:{points:[`bl`,`br`],offset:[8,0]},bottomLeft:{points:[`tl`,`bl`],offset:[0,8]},leftBottom:{points:[`br`,`bl`],offset:[-8,0]}};function cY(){let e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t={};return Object.keys(sY).forEach(n=>{t[n]=G(G({},sY[n]),{autoArrow:e,targetOffset:oY})}),t}cY();var lY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{builtinPlacements:e,popupAlign:t}=Ea();return{builtinPlacements:e,popupAlign:t,steps:vt(),open:Y(),defaultCurrent:{type:Number},current:{type:Number},onChange:Q(),onClose:Q(),onFinish:Q(),mask:$t([Boolean,Object],!0),arrow:$t([Boolean,Object],!0),rootClassName:{type:String},placement:q(`bottom`),prefixCls:{type:String,default:`rc-tour`},renderPanel:Q(),gap:ut(),animated:$t([Boolean,Object]),scrollIntoViewOptions:$t([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},fY=d({name:`Tour`,inheritAttrs:!1,props:Vn(dY(),{}),setup(e){let{defaultCurrent:t,placement:n,mask:r,scrollIntoViewOptions:o,open:c,gap:l,arrow:u}=i(e),d=W(),[f,p]=zu(0,{value:a(()=>e.current),defaultValue:t.value}),[m,h]=zu(void 0,{value:a(()=>e.open),postState:t=>f.value<0||f.value>=e.steps.length?!1:t??!0}),g=M(m.value);P(()=>{m.value&&!g.value&&p(0),g.value=m.value});let _=a(()=>e.steps[f.value]||{}),y=a(()=>_.value.placement??n.value),b=a(()=>m.value&&(_.value.mask??r.value)),x=a(()=>_.value.scrollIntoViewOptions??o.value),[S,C]=YJ(a(()=>_.value.target),c,l,x),w=a(()=>C.value?_.value.arrow===void 0?u.value:_.value.arrow:!1),T=a(()=>typeof w.value==`object`&&w.value.pointAtCenter);H(T,()=>{var e;(e=d.value)==null||e.forcePopupAlign()}),H(f,()=>{var e;(e=d.value)==null||e.forcePopupAlign()});let E=t=>{var n;p(t),(n=e.onChange)==null||n.call(e,t)};return()=>{let{prefixCls:t,steps:n,onClose:r,onFinish:i,rootClassName:o,renderPanel:c,animated:l,zIndex:u}=e,p=lY(e,[`prefixCls`,`steps`,`onClose`,`onFinish`,`rootClassName`,`renderPanel`,`animated`,`zIndex`]);if(C.value===void 0)return null;let g=()=>{h(!1),r?.(f.value)},x=typeof b.value==`boolean`?b.value:!!b.value,D=typeof b.value==`boolean`?void 0:b.value,O=()=>C.value||document.body,k=()=>s($J,X({arrow:w.value,key:`content`,prefixCls:t,total:n.length,renderPanel:c,onPrev:()=>{E(f.value-1)},onNext:()=>{E(f.value+1)},onClose:g,current:f.value,onFinish:()=>{g(),i?.()}},_.value),null),A=a(()=>{let e=S.value||uY,t={};return Object.keys(e).forEach(n=>{typeof e[n]==`number`?t[n]=`${e[n]}px`:t[n]=e[n]}),t});return m.value?s(v,null,[s(aY,{zIndex:u,prefixCls:t,pos:S.value,showMask:x,style:D?.style,fill:D?.color,open:m.value,animated:l,rootClassName:o},null),s(tl,X(X({},p),{},{arrow:!!p.arrow,builtinPlacements:_.value.target?p.builtinPlacements??cY(T.value):void 0,ref:d,popupStyle:_.value.target?_.value.style:G(G({},_.value.style),{position:`fixed`,left:uY.left,top:uY.top,transform:`translate(-50%, -50%)`}),popupPlacement:y.value,popupVisible:m.value,popupClassName:Z(o,_.value.className),prefixCls:t,popup:k,forceRender:!1,destroyPopupOnHide:!0,zIndex:u,mask:!1,getTriggerDOMNode:O}),{default:()=>[s(qn,{visible:m.value,autoLock:!0},{default:()=>[s(`div`,{class:Z(o,`${t}-target-placeholder`),style:G(G({},A.value),{position:`fixed`,pointerEvents:`none`})},null)]})]})]):null}}}),pY=()=>G(G({},dY()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),mY=d({name:`ATourPanel`,inheritAttrs:!1,props:G(G({},ZJ()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),setup(e,t){let{attrs:n,slots:r}=t,{current:o,total:c}=i(e),l=a(()=>o.value===c.value-1),u=t=>{var n;let r=e.prevButtonProps;(n=e.onPrev)==null||n.call(e,t),typeof r?.onClick==`function`&&r?.onClick()},d=t=>{var n,r;let i=e.nextButtonProps;l.value?(n=e.onFinish)==null||n.call(e,t):(r=e.onNext)==null||r.call(e,t),typeof i?.onClick==`function`&&i?.onClick()};return()=>{let{prefixCls:t,title:i,onClose:a,cover:f,description:p,type:m,arrow:h}=e,g=e.prevButtonProps,_=e.nextButtonProps,v;i&&(v=s(`div`,{class:`${t}-header`},[s(`div`,{class:`${t}-title`},[i])]));let y;p&&(y=s(`div`,{class:`${t}-description`},[p]));let b;f&&(b=s(`div`,{class:`${t}-cover`},[f]));let x;x=r.indicatorsRender?r.indicatorsRender({current:o.value,total:c}):[...Array.from({length:c.value}).keys()].map((e,n)=>s(`span`,{key:e,class:Z(n===o.value&&`${t}-indicator-active`,`${t}-indicator`)},null));let S=m===`primary`?`default`:`primary`,C={type:`default`,ghost:m===`primary`};return s(ct,{componentName:`Tour`,defaultLocale:Ut.Tour},{default:e=>s(`div`,X(X({},n),{},{class:Z(m===`primary`?`${t}-primary`:``,n.class,`${t}-content`)}),[h&&s(`div`,{class:`${t}-arrow`,key:`arrow`},null),s(`div`,{class:`${t}-inner`},[s(_t,{class:`${t}-close`,onClick:a},null),b,v,y,s(`div`,{class:`${t}-footer`},[c.value>1&&s(`div`,{class:`${t}-indicators`},[x]),s(`div`,{class:`${t}-buttons`},[o.value===0?null:s(Ln,X(X(X({},C),g),{},{onClick:u,size:`small`,class:Z(`${t}-prev-btn`,g?.className)}),{default:()=>[it(g?.children)?g.children():g?.children??e.Previous]}),s(Ln,X(X({type:S},_),{},{onClick:d,size:`small`,class:Z(`${t}-next-btn`,_?.className)}),{default:()=>[it(_?.children)?_?.children():l.value?e.Finish:e.Next]})])])])])})}}}),hY=e=>{let{defaultType:t,steps:n,current:r,defaultCurrent:i}=e,o=W(i?.value),s=a(()=>r?.value);H(s,e=>{o.value=e??i?.value},{immediate:!0});let c=e=>{o.value=e},l=a(()=>typeof o.value==`number`?n&&n.value?.[o.value]?.type:t?.value);return{currentMergedType:a(()=>l.value??t?.value),updateInnerCurrent:c}},gY=e=>{let{componentCls:t,lineHeight:n,padding:r,paddingXS:i,borderRadius:a,borderRadiusXS:o,colorPrimary:s,colorText:c,colorFill:l,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:p,fontSize:m,colorBgContainer:h,fontWeightStrong:g,marginXS:_,colorTextLightSolid:v,tourBorderRadius:y,colorWhite:b,colorBgTextHover:x,tourCloseSize:S,motionDurationSlow:C,antCls:w}=e;return[{[t]:G(G({},Ne(e)),{color:c,position:`absolute`,zIndex:p,display:`block`,visibility:`visible`,fontSize:m,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:`100%`,position:`relative`},[`&${t}-hidden`]:{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-inner`]:{textAlign:`start`,textDecoration:`none`,borderRadius:y,boxShadow:f,position:`relative`,backgroundColor:h,border:`none`,backgroundClip:`padding-box`,[`${t}-close`]:{position:`absolute`,top:r,insetInlineEnd:r,color:e.colorIcon,outline:`none`,width:S,height:S,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:`flex`,alignItems:`center`,justifyContent:`center`,"&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?`transparent`:e.colorFillContent}},[`${t}-cover`]:{textAlign:`center`,padding:`${r+S+i}px ${r}px 0`,img:{width:`100%`}},[`${t}-header`]:{padding:`${r}px ${r}px ${i}px`,[`${t}-title`]:{lineHeight:n,fontSize:m,fontWeight:g}},[`${t}-description`]:{padding:`0 ${r}px`,lineHeight:n,wordWrap:`break-word`},[`${t}-footer`]:{padding:`${i}px ${r}px ${r}px`,textAlign:`end`,borderRadius:`0 0 ${o}px ${o}px`,display:`flex`,[`${t}-indicators`]:{display:`inline-block`,[`${t}-indicator`]:{width:d,height:u,display:`inline-block`,borderRadius:`50%`,background:l,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:s}}},[`${t}-buttons`]:{marginInlineStart:`auto`,[`${w}-btn`]:{marginInlineStart:_}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":s,[`${t}-inner`]:{color:v,textAlign:`start`,textDecoration:`none`,backgroundColor:s,borderRadius:a,boxShadow:f,[`${t}-close`]:{color:v},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new me(v).setAlpha(.15).toRgbString(),"&-active":{background:v}}},[`${t}-prev-btn`]:{color:v,borderColor:new me(v).setAlpha(.15).toRgbString(),backgroundColor:s,"&:hover":{backgroundColor:new me(v).setAlpha(.15).toRgbString(),borderColor:`transparent`}},[`${t}-next-btn`]:{color:s,borderColor:`transparent`,background:b,"&:hover":{background:new me(x).onBackground(b).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${C}`}},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${t}-inner`]:{borderRadius:Math.min(y,8)}}},s_(e,{colorBg:`var(--antd-arrow-background-color)`,contentRadius:y,limitVerticalRadius:!0})]},_Y=Le(`Tour`,e=>{let{borderRadiusLG:t,fontSize:n,lineHeight:r}=e;return[gY(Fe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*r}))]}),vY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{steps:t,current:i,type:c,rootClassName:l}=e,u=vY(e,[`steps`,`current`,`type`,`rootClassName`]),d=Z({[`${f.value}-primary`]:g.value===`primary`,[`${f.value}-rtl`]:p.value===`rtl`},h.value,l),v=(e,t)=>s(mY,X(X({},e),{},{type:c,current:t}),{indicatorsRender:o.indicatorsRender}),y=e=>{_(e),r(`update:current`,e),r(`change`,e)},b=a(()=>Qg({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return m(s(fY,X(X(X({},n),u),{},{rootClassName:d,prefixCls:f.value,current:i,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:v,onChange:y,steps:t,builtinPlacements:b.value}),null))}}}),bY=be(yY),xY=Symbol(`appConfigContext`),SY=t=>e(xY,t),CY=()=>C(xY,{}),wY=Symbol(`appContext`),TY=t=>e(wY,t),EY=k({message:{},notification:{},modal:{}}),DY=()=>C(wY,EY),OY=e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a}}},kY=Le(`App`,e=>[OY(e)]),AY=()=>({rootClassName:String,message:ut(),notification:ut()}),jY=()=>DY(),MY=d({name:`AApp`,props:Vn(AY(),{}),setup(e,t){let{slots:n}=t,{prefixCls:r}=K(`app`,e),[i,o]=kY(r),c=a(()=>Z(o.value,r.value,e.rootClassName)),l=CY(),u=a(()=>({message:G(G({},l.message),e.message),notification:G(G({},l.notification),e.notification)}));SY(u.value);let[d,f]=Nt(u.value.message),[p,m]=xt(u.value.notification),[h,g]=rr();return TY(a(()=>({message:d,notification:p,modal:h})).value),()=>i(s(`div`,{class:c.value},[g(),f(),m(),n.default?.call(n)]))}});MY.useApp=jY,MY.install=function(e){e.component(MY.name,MY)};var NY=[`wrap`,`nowrap`,`wrap-reverse`],PY=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],FY=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],IY=(e,t)=>{let n={};return NY.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},LY=(e,t)=>{let n={};return FY.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},RY=(e,t)=>{let n={};return PY.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function zY(e,t){return Z(G(G(G({},IY(e,t)),LY(e,t)),RY(e,t)))}var BY=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},VY=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},HY=e=>{let{componentCls:t}=e,n={};return NY.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},UY=e=>{let{componentCls:t}=e,n={};return FY.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},WY=e=>{let{componentCls:t}=e,n={};return PY.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},GY=Le(`Flex`,e=>{let t=Fe(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[BY(t),VY(t),HY(t),UY(t),WY(t)]});function KY(e){return[`small`,`middle`,`large`].includes(e)}var qY=()=>({prefixCls:q(),vertical:Y(),wrap:q(),justify:q(),align:q(),flex:$t([Number,String]),gap:$t([Number,String]),component:bt()}),JY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i[c.value,u.value,zY(c.value,e),{[`${c.value}-rtl`]:o.value===`rtl`,[`${c.value}-gap-${e.gap}`]:KY(e.gap),[`${c.value}-vertical`]:e.vertical??i?.value.vertical}]);return()=>{let{flex:t,gap:i,component:a=`div`}=e,o=JY(e,[`flex`,`gap`,`component`]),c={};return t&&(c.flex=t),i&&!KY(i)&&(c.gap=`${i}px`),l(s(a,X({class:[r.class,d.value],style:[r.style,c]},Gn(o,[`justify`,`wrap`,`align`,`vertical`])),{default:()=>[n.default?.call(n)]}))}}}),XY=be(YY),ZY=S({Affix:()=>Gi,Alert:()=>Eg,Anchor:()=>_a,AnchorLink:()=>fa,App:()=>MY,AutoComplete:()=>hg,AutoCompleteOptGroup:()=>pg,AutoCompleteOption:()=>fg,Avatar:()=>S_,AvatarGroup:()=>x_,BackTop:()=>hM,Badge:()=>V_,BadgeRibbon:()=>R_,Breadcrumb:()=>Dy,BreadcrumbItem:()=>gv,BreadcrumbSeparator:()=>Ey,Button:()=>Ln,ButtonGroup:()=>Bn,Calendar:()=>nC,Card:()=>Mw,CardGrid:()=>jw,CardMeta:()=>Aw,Carousel:()=>ZT,Cascader:()=>nA,CheckableTag:()=>CA,Checkbox:()=>dA,CheckboxGroup:()=>uA,Col:()=>pA,Collapse:()=>Ww,CollapsePanel:()=>Uw,Comment:()=>_A,Compact:()=>fr,ConfigProvider:()=>Wt,DatePicker:()=>aj,Descriptions:()=>yj,DescriptionsItem:()=>fj,DirectoryTree:()=>lU,Divider:()=>Cj,Drawer:()=>Uj,Dropdown:()=>wj,DropdownButton:()=>ov,Empty:()=>fe,Flex:()=>XY,FloatButton:()=>gM,FloatButtonGroup:()=>uM,Form:()=>Wk,FormItem:()=>Fk,FormItemRest:()=>cd,Grid:()=>fA,Image:()=>iP,ImagePreviewGroup:()=>rP,Input:()=>dN,InputGroup:()=>NM,InputNumber:()=>LP,InputPassword:()=>uN,InputSearch:()=>FM,Layout:()=>sF,LayoutContent:()=>oF,LayoutFooter:()=>iF,LayoutHeader:()=>rF,LayoutSider:()=>aF,List:()=>aI,ListItem:()=>eI,ListItemMeta:()=>ZF,LocaleProvider:()=>Ht,Mentions:()=>LI,MentionsOption:()=>II,Menu:()=>vy,MenuDivider:()=>ty,MenuItem:()=>Bv,MenuItemGroup:()=>ey,Modal:()=>Zn,MonthPicker:()=>ej,PageHeader:()=>oL,Pagination:()=>XF,Popconfirm:()=>dL,Popover:()=>b_,Progress:()=>KL,QRCode:()=>qJ,QuarterPicker:()=>rj,Radio:()=>xS,RadioButton:()=>bS,RadioGroup:()=>yS,RangePicker:()=>ij,Rate:()=>sR,Result:()=>ER,Row:()=>DR,Segmented:()=>$q,Select:()=>ag,SelectOptGroup:()=>sg,SelectOption:()=>og,Skeleton:()=>Dw,SkeletonAvatar:()=>Ew,SkeletonButton:()=>Sw,SkeletonImage:()=>Tw,SkeletonInput:()=>Cw,SkeletonTitle:()=>QC,Slider:()=>cz,Space:()=>nL,Spin:()=>bF,Statistic:()=>YI,StatisticCountdown:()=>JI,Step:()=>jz,Steps:()=>Mz,SubMenu:()=>Yv,Switch:()=>Vz,TabPane:()=>BC,Table:()=>rW,TableColumn:()=>QU,TableColumnGroup:()=>$U,TableSummary:()=>nW,TableSummaryCell:()=>tW,TableSummaryRow:()=>eW,Tabs:()=>HC,Tag:()=>wA,Textarea:()=>QM,TimePicker:()=>hG,TimeRangePicker:()=>mG,Timeline:()=>bG,TimelineItem:()=>gG,Tooltip:()=>m_,Tour:()=>bY,Transfer:()=>OW,Tree:()=>dU,TreeNode:()=>uU,TreeSelect:()=>uG,TreeSelectNode:()=>lG,Typography:()=>bK,TypographyLink:()=>dK,TypographyParagraph:()=>pK,TypographyText:()=>hK,TypographyTitle:()=>yK,Upload:()=>kq,UploadDragger:()=>Oq,Watermark:()=>Bq,WeekPicker:()=>$A,message:()=>ot,notification:()=>zt}),QY={version:Ze,install:function(e){return Object.keys(ZY).forEach(t=>{let n=ZY[t];n.install&&e.use(n)}),e.use(Fi.StyleProvider),e.config.globalProperties.$message=ot,e.config.globalProperties.$notification=zt,e.config.globalProperties.$info=Zn.info,e.config.globalProperties.$success=Zn.success,e.config.globalProperties.$error=Zn.error,e.config.globalProperties.$warning=Zn.warning,e.config.globalProperties.$confirm=Zn.confirm,e.config.globalProperties.$destroyAll=Zn.destroyAll,e}},$Y={};function eX(e,t){let n=U(`router-view`);return _(),R(n)}var tX=ne($Y,[[`render`,eX]]),nX=typeof document<`u`,rX=/#/g,iX=/&/g,aX=/\//g,oX=/=/g,sX=/\?/g,cX=/\+/g,lX=/%5B/g,uX=/%5D/g,dX=/%5E/g,fX=/%60/g,pX=/%7B/g,mX=/%7C/g,hX=/%7D/g,gX=/%20/g;function _X(e){return e==null?``:encodeURI(``+e).replace(mX,`|`).replace(lX,`[`).replace(uX,`]`)}function vX(e){return _X(e).replace(pX,`{`).replace(hX,`}`).replace(dX,`^`)}function yX(e){return _X(e).replace(cX,`%2B`).replace(gX,`+`).replace(rX,`%23`).replace(iX,`%26`).replace(fX,"`").replace(pX,`{`).replace(hX,`}`).replace(dX,`^`)}function bX(e){return yX(e).replace(oX,`%3D`)}function xX(e){return _X(e).replace(rX,`%23`).replace(sX,`%3F`)}function SX(e){return xX(e).replace(aX,`%2F`)}function CX(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var wX=/\/$/,TX=e=>e.replace(wX,``);function EX(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=PX(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:CX(o)}}function DX(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function OX(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function kX(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&AX(t.matched[r],n.matched[i])&&jX(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function AX(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jX(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!MX(e[n],t[n]))return!1;return!0}function MX(e,t){return Or(e)?NX(e,t):Or(t)?NX(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function NX(e,t){return Or(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function PX(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var FX={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function IX(e){if(!e){if(nX){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),TX(e)}var LX=/^[^#]+#/;function RX(e,t){return e.replace(LX,`#`)+t}function zX(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var BX=()=>({left:window.scrollX,top:window.scrollY});function VX(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=zX(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function HX(e,t){return(history.state?history.state.position-t:-1)+e}var UX=new Map;function WX(e,t){UX.set(e,t)}function GX(e){let t=UX.get(e);return UX.delete(e),t}function KX(e){return typeof e==`string`||e&&typeof e==`object`}function qX(e){return typeof e==`string`||typeof e==`symbol`}function JX(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&yX(e)):[r&&yX(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function XX(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Or(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function ZX(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function QX(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Pr(4,{from:n,to:t})):e instanceof Error?c(e):KX(e)?c(Pr(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function $X(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e])){if(Fr(s)){let c=(s.__vccOpts||s)[t];c&&a.push(QX(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Sr(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&QX(c,n,r,o,e,i)()}))}}}return a}function eZ(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oAX(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>AX(e,s))||i.push(s))}return[n,r,i]}var tZ=()=>location.protocol+`//`+location.host;function nZ(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),OX(n,``)}return OX(n,e)+r+i}function rZ(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=nZ(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(jr({},e.state,{scroll:BX()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function iZ(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?BX():null}}function aZ(e){let{history:t,location:n}=window,r={value:nZ(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:tZ()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,jr({},t.state,iZ(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=jr({},i.value,t.state,{forward:e,scroll:BX()});a(o.current,o,!0),a(e,jr({},iZ(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function oZ(e){e=IX(e);let t=aZ(e),n=rZ(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=jr({location:``,base:e,go:r,createHref:RX.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var sZ={type:0,value:``},cZ=/[a-zA-Z0-9_]/;function lZ(e){if(!e)return[[]];if(e===`/`)return[[sZ]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function hZ(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var _Z={strict:!1,end:!0,sensitive:!1};function vZ(e,t,n){let r=pZ(lZ(e.path),n),i=jr(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function yZ(e,t){let n=[],r=new Map;t=kr(_Z,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=xZ(e);s.aliasOf=r&&r.record;let l=kr(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(xZ(jr({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=vZ(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!CZ(d)&&o(e.name)),DZ(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:Lr}function o(e){if(qX(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=TZ(e,n);n.splice(t,0,e),e.record.name&&!CZ(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Pr(1,{location:e});s=i.record.name,a=jr(bZ(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&bZ(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Pr(1,{location:e,currentLocation:t});s=i.record.name,a=jr({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:wZ(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function bZ(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function xZ(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:SZ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function SZ(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function CZ(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wZ(e){return e.reduce((e,t)=>jr(e,t.meta),{})}function TZ(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;hZ(e,t[i])<0?r=i:n=i+1}let i=EZ(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function EZ(e){let t=e;for(;t=t.parent;)if(DZ(t)&&hZ(e,t)===0)return t}function DZ({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function OZ(e){let t=C(Tr),n=C(wr),r=a(()=>{let n=b(e.to);return t.resolve(n)}),i=a(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(AX.bind(null,i));if(o>-1)return o;let s=NZ(e[t-2]);return t>1&&NZ(i)===s&&a[a.length-1].path!==s?a.findIndex(AX.bind(null,e[t-2])):o}),o=a(()=>i.value>-1&&MZ(n.params,r.value.params)),s=a(()=>i.value>-1&&i.value===n.matched.length-1&&jX(n.params,r.value.params));function c(n={}){if(jZ(n)){let n=t[b(e.replace)?`replace`:`push`](b(e.to)).catch(Lr);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:a(()=>r.value.href),isActive:o,isExactActive:s,navigate:c}}function kZ(e){return e.length===1?e[0]:e}var AZ=d({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:OZ,setup(e,{slots:t}){let n=k(OZ(e)),{options:r}=C(Tr),i=a(()=>({[PZ(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[PZ(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&kZ(t.default(n));return e.custom?r:le(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function jZ(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function MZ(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Or(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function NZ(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var PZ=(e,t,n)=>e??t??n,FZ=d({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){let i=C(Nr),o=a(()=>t.route||i.value),s=C(Er,0),c=a(()=>{let e=b(s),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=a(()=>o.value.matched[c.value]);e(Er,a(()=>c.value+1)),e(Cr,l),e(Nr,o);let u=W();return H(()=>[u.value,l.value,t.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!AX(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let e=o.value,i=t.name,a=l.value,s=a&&a.components[i];if(!s)return IZ(r.default,{Component:s,route:e});let c=a.props[i],d=c?c===!0?e.params:typeof c==`function`?c(e):c:null,f=le(s,jr({},d,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:u}));return IZ(r.default,{Component:f,route:e})||f}}});function IZ(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var LZ=FZ;function RZ(e){let t=yZ(e.routes,e),n=e.parseQuery||JX,r=e.stringifyQuery||YX,i=e.history,a=ZX(),o=ZX(),s=ZX(),c=M(FX),l=FX;nX&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ir.bind(null,e=>``+e),d=Ir.bind(null,SX),f=Ir.bind(null,CX);function p(e,n){let r,i;return qX(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=jr({},a||c.value),typeof e==`string`){let r=EX(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return jr(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=jr({},e,{path:EX(n,e.path,a.path).path});else{let t=jr({},e.params);for(let e in t)t[e]??delete t[e];o=jr({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=DX(r,jr({},e,{hash:vX(l),path:s.path})),m=i.createHref(p);return jr({fullPath:p,hash:l,query:r===YX?XX(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?EX(n,e,c.value.path):jr({},e)}function y(e,t){if(l!==e)return Pr(8,{from:t,to:e})}function S(e){return T(e)}function C(e){return S(jr(v(e),{replace:!0}))}function w(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),jr({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function T(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=w(n,i);if(u)return T(jr(v(u),{state:typeof u==`object`?jr({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&kX(r,i,n)&&(f=Pr(16,{to:d,from:i}),z(i,i,!0,!1)),(f?Promise.resolve(f):O(d,i)).catch(e=>Mr(e)?Mr(e,2)?e:R(e):L(e,d,i)).then(e=>{if(e){if(Mr(e,2))return T(jr({replace:s},v(e.to),{state:typeof e.to==`object`?jr({},a,e.to.state):a,force:o}),t||d)}else e=A(d,i,!0,s,a);return k(d,i,e),e})}function E(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function D(e){let t=V.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function O(e,t){let n,[r,i,s]=eZ(e,t);n=$X(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(QX(r,e,t))});let c=E.bind(null,e,t);return n.push(c),re(n).then(()=>{n=[];for(let r of a.list())n.push(QX(r,e,t));return n.push(c),re(n)}).then(()=>{n=$X(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(QX(r,e,t))});return n.push(c),re(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(Or(r.beforeEnter))for(let i of r.beforeEnter)n.push(QX(i,e,t));else n.push(QX(r.beforeEnter,e,t))}return n.push(c),re(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=$X(s,`beforeRouteEnter`,e,t,D),n.push(c),re(n))).then(()=>{n=[];for(let r of o.list())n.push(QX(r,e,t));return n.push(c),re(n)}).catch(e=>Mr(e,8)?e:Promise.reject(e))}function k(e,t,n){s.list().forEach(r=>D(()=>r(e,t,n)))}function A(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===FX,l=nX?history.state:{};n&&(r||s?i.replace(e.fullPath,jr({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,z(e,t,n,s),R()}let j;function N(){j||=i.listen((e,t,n)=>{if(!ne.listening)return;let r=_(e),a=w(r,ne.currentRoute.value);if(a){T(jr(a,{replace:!0,force:!0}),r).catch(Lr);return}l=r;let o=c.value;nX&&WX(HX(o.fullPath,n.delta),BX()),O(r,o).catch(e=>Mr(e,12)?e:Mr(e,2)?(T(jr(v(e.to),{force:!0}),r).then(e=>{Mr(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(Lr),Promise.reject()):(n.delta&&i.go(-n.delta,!1),L(e,r,o))).then(e=>{e||=A(r,o,!1),e&&(n.delta&&!Mr(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Mr(e,20)&&i.go(-1,!1)),k(r,o,e)}).catch(Lr)})}let P=ZX(),F=ZX(),I;function L(e,t,n){R(e);let r=F.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function ee(){return I&&c.value!==FX?Promise.resolve():new Promise((e,t)=>{P.add([e,t])})}function R(e){return I||(I=!e,N(),P.list().forEach(([t,n])=>e?n(e):t()),P.reset()),e}function z(t,n,r,i){let{scrollBehavior:a}=e;if(!nX||!a)return Promise.resolve();let o=!r&&GX(HX(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return x().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&VX(e)).catch(e=>t===c.value&&L(e,t,n))}let B=e=>i.go(e),te,V=new Set,ne={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:S,replace:C,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:F.add,isReady:ee,install(e){e.component(`RouterLink`,AZ),e.component(`RouterView`,LZ),e.config.globalProperties.$router=ne,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>b(c)}),nX&&!te&&c.value===FX&&(te=!0,S(i.location).catch(e=>{}));let t={};for(let e in FX)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Tr,ne),e.provide(wr,ce(t)),e.provide(Nr,c);let n=e.unmount;V.add(e),e.unmount=function(){V.delete(e),V.size<1&&(l=FX,j&&j(),j=null,c.value=FX,te=!1,I=!1),n()}}};function re(e){return e.reduce((e,t)=>e.then(()=>D(t)),Promise.resolve())}return ne}var zZ={key:0,class:`brand-copy`},BZ={key:0},VZ={class:`topbar-title`},HZ={class:`user-button`},UZ={class:`avatar`},WZ={class:`user-copy`},GZ=ne(d({__name:`AppLayout`,setup(e){let r=W(!1),i=Ar(),o=Dr(),c=an(),l=a(()=>i.path.startsWith(`/scenarios`)||i.path.startsWith(`/sops`)?[`scenarios`]:i.path.startsWith(`/execute`)?[`execute`]:i.path.startsWith(`/runs`)?[`runs`]:i.path.startsWith(`/knowledge`)?[`knowledge`]:[`dashboard`]),u={dashboard:`工作台`,scenarios:`场景与 SOP`,execute:`执行话术`,runs:`执行记录`,knowledge:`知识卡`},d=a(()=>u[l.value[0]]||`销冠 SOP`);D(()=>c.loadUser().catch(()=>c.logout()));function f({key:e}){o.push({dashboard:`/`,scenarios:`/scenarios`,execute:`/execute`,runs:`/runs`,knowledge:`/knowledge`}[e])}function p(){c.logout(),o.push(`/login`)}return(e,i)=>{let a=U(`a-menu-item`),o=U(`a-menu`),u=U(`a-layout-sider`),m=U(`a-button`),v=U(`a-dropdown`),y=U(`a-layout-header`),x=U(`router-view`),S=U(`a-layout-content`),C=U(`a-layout`);return _(),R(C,{class:`app-frame`},{default:z(()=>[s(u,{collapsed:r.value,"onUpdate:collapsed":i[0]||=e=>r.value=e,trigger:null,collapsible:``,width:224,class:`side-panel`},{default:z(()=>[h(`div`,{class:ue([`brand`,{compact:r.value}])},[i[3]||=h(`div`,{class:`brand-mark`},[h(`span`),h(`span`),h(`span`)],-1),r.value?t(``,!0):(_(),ee(`div`,zZ,[...i[2]||=[h(`strong`,null,`销冠 SOP`,-1),h(`small`,null,`经验执行系统`,-1)]]))],2),s(o,{mode:`inline`,theme:`dark`,"selected-keys":l.value,onClick:f},{default:z(()=>[s(a,{key:`dashboard`},{default:z(()=>[s(b(aJ)),i[4]||=h(`span`,null,`工作台`,-1)]),_:1}),s(a,{key:`scenarios`},{default:z(()=>[s(b(yr)),i[5]||=h(`span`,null,`场景与 SOP`,-1)]),_:1}),s(a,{key:`execute`},{default:z(()=>[s(b(xr)),i[6]||=h(`span`,null,`执行话术`,-1)]),_:1}),s(a,{key:`runs`},{default:z(()=>[s(b(lJ)),i[7]||=h(`span`,null,`执行记录`,-1)]),_:1}),s(a,{key:`knowledge`},{default:z(()=>[s(b(br)),i[8]||=h(`span`,null,`知识卡`,-1)]),_:1})]),_:1},8,[`selected-keys`]),h(`div`,{class:ue([`sider-foot`,{compact:r.value}])},[i[9]||=h(`span`,{class:`online-dot`},null,-1),r.value?t(``,!0):(_(),ee(`span`,BZ,`服务运行正常`))],2)]),_:1},8,[`collapsed`]),s(C,null,{default:z(()=>[s(y,{class:`topbar`},{default:z(()=>[s(m,{type:`text`,class:`collapse-button`,"aria-label":r.value?`展开导航`:`收起导航`,onClick:i[1]||=e=>r.value=!r.value},{default:z(()=>[r.value?(_(),R(b(xJ),{key:0})):(_(),R(b(_J),{key:1}))]),_:1},8,[`aria-label`]),h(`div`,VZ,n(d.value),1),s(v,{placement:`bottomRight`},{overlay:z(()=>[s(o,null,{default:z(()=>[s(a,{key:`logout`,onClick:p},{default:z(()=>[s(b(pJ)),i[10]||=g(` 退出登录`,-1)]),_:1})]),_:1})]),default:z(()=>[h(`button`,HZ,[h(`span`,UZ,n((b(c).user?.display_name||`管`).slice(0,1)),1),h(`span`,WZ,[h(`strong`,null,n(b(c).user?.display_name||`平台管理员`),1),h(`small`,null,n(b(c).user?.role_code===`admin`?`企业管理员`:b(c).user?.role_code),1)])])]),_:1})]),_:1}),s(S,{class:`content-area`},{default:z(()=>[s(x)]),_:1})]),_:1})]),_:1})}}}),[[`__scopeId`,`data-v-c7268e13`]]),KZ=`modulepreload`,qZ=function(e){return`/`+e},JZ={},YZ=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=qZ(t,n),t=s(t),t in JZ)return;JZ[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:KZ,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},XZ=RZ({history:oZ(),routes:[{path:`/login`,component:()=>YZ(()=>import(`./LoginView-CX7kNBHw.js`),__vite__mapDeps([0,1,2,3,4,5])),meta:{public:!0}},{path:`/`,component:GZ,children:[{path:``,name:`dashboard`,component:()=>YZ(()=>import(`./DashboardView-DpoQIy_X.js`),__vite__mapDeps([6,1,7,8,9,4,10]))},{path:`scenarios`,name:`scenarios`,component:()=>YZ(()=>import(`./ScenariosView-DZfzIhhk.js`),__vite__mapDeps([11,1,2,12,7,4,13]))},{path:`scenarios/:id`,name:`scenario-detail`,component:()=>YZ(()=>import(`./ScenarioDetailView-B-4AAfC9.js`),__vite__mapDeps([14,1,2,15,7,16,4,17]))},{path:`sops/:id`,name:`sop-editor`,component:()=>YZ(()=>import(`./SOPEditorView-CmiIrIPT.js`),__vite__mapDeps([18,1,2,15,7,16,4,19]))},{path:`execute`,name:`execute`,component:()=>YZ(()=>import(`./ExecuteView-DmAbM9s0.js`),__vite__mapDeps([20,1,2,9,21]))},{path:`runs`,name:`runs`,component:()=>YZ(()=>import(`./RunHistoryView-BpCB2LRG.js`),__vite__mapDeps([22,1,2,23]))},{path:`knowledge`,name:`knowledge`,component:()=>YZ(()=>import(`./KnowledgeView-W6lPD5mD.js`),__vite__mapDeps([24,1,2,15,7,25,26]))}]}]});XZ.beforeEach(e=>{if(!e.meta.public&&!localStorage.getItem(`access_token`))return`/login`;if(e.path===`/login`&&localStorage.getItem(`access_token`))return`/`}),Bt(tX).use(rn()).use(XZ).use(QY).mount(`#app`); \ No newline at end of file diff --git a/codes/web/dist/assets/useApi-CROJJdhE-BlzMTLF9.js b/codes/web/dist/assets/useApi-CROJJdhE-BlzMTLF9.js new file mode 100644 index 0000000..e16491c --- /dev/null +++ b/codes/web/dist/assets/useApi-CROJJdhE-BlzMTLF9.js @@ -0,0 +1 @@ +import{V as e}from"./client-CO11mUW5.js";function t(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function n(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&t(e.default)}var r=Object.assign;function i(e,t){let n={};for(let r in t){let i=t[r];n[r]=o(i)?i.map(e):e(i)}return n}var a=()=>{},o=Array.isArray;function s(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var c=Symbol(``);function l(e,t){return r(Error(),{type:e,[c]:!0},t)}function u(e,t){return e instanceof Error&&c in e&&(t==null||!!(e.type&t))}var d=Symbol(``),f=Symbol(``),p=Symbol(``),m=Symbol(``),h=Symbol(``);function g(){return e(p)}function _(t){return e(m)}export{n as a,d as c,m as d,p as f,f as g,g as h,o as i,s as l,_ as m,r as n,u as o,h as p,l as r,t as s,i as t,a as u}; \ No newline at end of file diff --git a/codes/web/dist/index.html b/codes/web/dist/index.html new file mode 100644 index 0000000..a24f93f --- /dev/null +++ b/codes/web/dist/index.html @@ -0,0 +1,25 @@ + + + + + + + 销冠 SOP 平台 + + + + + + + + + + + + + + + +
+ + diff --git a/codes/web/index.html b/codes/web/index.html new file mode 100644 index 0000000..2aa5032 --- /dev/null +++ b/codes/web/index.html @@ -0,0 +1,13 @@ + + + + + + + 销冠 SOP 平台 + + +
+ + + diff --git a/codes/web/package-lock.json b/codes/web/package-lock.json new file mode 100644 index 0000000..ff40b6f --- /dev/null +++ b/codes/web/package-lock.json @@ -0,0 +1,2291 @@ +{ + "name": "iqudo-top1-web", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "iqudo-top1-web", + "version": "0.1.0", + "dependencies": { + "@ant-design/icons-vue": "7.0.1", + "ant-design-vue": "4.2.6", + "axios": "1.19.0", + "dayjs": "1.11.21", + "pinia": "4.0.2", + "vue": "3.5.41", + "vue-router": "5.2.0" + }, + "devDependencies": { + "@types/node": "26.1.2", + "@vitejs/plugin-vue": "6.0.8", + "typescript": "5.9.3", + "vite": "8.2.0", + "vue-tsc": "3.3.9" + } + }, + "node_modules/@ant-design/colors": { + "version": "6.0.0", + "resolved": "https://registry.npmmirror.com/@ant-design/colors/-/colors-6.0.0.tgz", + "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==", + "license": "MIT", + "dependencies": { + "@ctrl/tinycolor": "^3.4.0" + } + }, + "node_modules/@ant-design/icons-svg": { + "version": "4.5.0", + "resolved": "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.5.0.tgz", + "integrity": "sha512-1BTUFyKPTBZ53MuTP8s0k5SFEXL7o3VHEOwLgzaoWKwnBeqIcqUtVshc4SKzhI6uACfqhJqBwBUE9FsWR3uULA==", + "license": "MIT" + }, + "node_modules/@ant-design/icons-vue": { + "version": "7.0.1", + "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-7.0.1.tgz", + "integrity": "sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^6.0.0", + "@ant-design/icons-svg": "^4.2.1" + }, + "peerDependencies": { + "vue": ">=3.0.3" + } + }, + "node_modules/@babel/generator": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/@babel/generator/-/generator-8.0.0.tgz", + "integrity": "sha512-NT9NrVwJsbSV6Y2FSstWa71EETOnzrjkL5/wX3D2mYHtKM+qvqB1DvR4D0Setb/gDBsHzRICifwEWMO8CnTF6g==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^8.0.0", + "@babel/types": "^8.0.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "@types/jsesc": "^2.5.0", + "jsesc": "^3.0.2" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/helper-string-parser": { + "version": "8.0.0", + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-8.0.0.tgz", + "integrity": "sha512-6mJgmFFFIIO82vvoLt9XtRC7/TkzXfts1t/SpRX4IHSzMgqoPYCWesVu1udUPUWioAE/2fcG6WuI8zrkE1gwrg==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/helper-validator-identifier": { + "version": "8.0.4", + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.4.tgz", + "integrity": "sha512-4wFaiLd0bVo4cIoTXI3zKI038NIWE/cr3jvBjejOVYVxV/m8Ltav1USiGzG1fmS5J2RhgEOgXNNK46cRPnRsrg==", + "license": "MIT", + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/parser": { + "version": "8.0.4", + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-8.0.4.tgz", + "integrity": "sha512-srpptsAkEbbNIC/q8nT7o+m6CQe8CJUTV/t7MYc9NnWlgYVtHOb7JH6SorxMhN0kuRJjVqXbKClG6xSbPtzz+g==", + "license": "MIT", + "dependencies": { + "@babel/types": "^8.0.4" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "node_modules/@babel/generator/node_modules/@babel/types": { + "version": "8.0.4", + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-8.0.4.tgz", + "integrity": "sha512-eY+Yn3dCqTGmyiq2QRU66lA5FL8lqqqvecHt0fF3uHONIa7ToYsaCiWV8lOKqAs0Rb2SjixiKFROngnulPtt2g==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^8.0.0", + "@babel/helper-validator-identifier": "^8.0.4" + }, + "engines": { + "node": "^22.18.0 || >=24.11.0" + } + }, + "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/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "license": "MIT", + "engines": { + "node": ">=6.9.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": "3.6.1", + "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", + "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.2", + "resolved": "https://registry.npmmirror.com/@emotion/hash/-/hash-0.9.2.tgz", + "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==", + "license": "MIT" + }, + "node_modules/@emotion/unitless": { + "version": "0.8.1", + "resolved": "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.8.1.tgz", + "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==", + "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==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "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==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.143.0", + "resolved": "https://registry.npmmirror.com/@oxc-project/types/-/types-0.143.0.tgz", + "integrity": "sha512-u6JZdLBTLotrNC9Vd6vPssINdzcCzleKAH6EJKImQb7GtYvX5keN2dxkoK44stCc4tffE6QQRtZTXVSzsLUlWA==", + "devOptional": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.3.tgz", + "integrity": "sha512-zrJtHDcaZJ1Fp7xf4hNl+7seH9Cn/N5TwLYkhgXREtBwAd/jaqW3uqeHxpDugJLVICWg4eW44kOQEGJ1r6jCGw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.3.tgz", + "integrity": "sha512-ieIiibVCp0tX7TLu2cafoNPv8wJyYi01ekXpbf8q2j7F4rGAhhXb/eQh7ge9DRBY78GwmRQtvjZDux7EDbA8kA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.3.tgz", + "integrity": "sha512-Zh9tCon19eDXJoihx0rqKhMUlMYqzwj3aPsSuHmI4RWZh62dWUL+DJN4C5YQya5TcQBJU/Fe8+rY0jhXTQITqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.3.tgz", + "integrity": "sha512-nGbJWewA1wrXXZiQhjAT5rhibGfns5ZNkDVqxsO6zJ3f3YvpoDNNmGMSbbhLuXKjNScaBJVOAboztAWVespQMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.3.tgz", + "integrity": "sha512-QNniJr5Kml0kDEB98jiDOJjXNroxIIi0IXIbdYzY26Xt1pVbeP62+KnoIZLwirOymX/0jDk/2gI/bNUv7A7OIw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.3.tgz", + "integrity": "sha512-TkqEAcmmvH3I/q4114NB4RVt6241Dao48pF45uLcFGrwAaIn0iITgTAKP/dLjbN0R4buJjGb91+UHSoFmpgIWw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.3.tgz", + "integrity": "sha512-NHqjnxpsndf4MPymxteFAWHHfkTL8HjWh1KB7z23ofZ6QO2euONuxDXjat69dKZRALnGypg8k8SsK8vZJoXv1Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.3.tgz", + "integrity": "sha512-6tbrbwfz5GB9DQ4Jwo6hy9v+vR31xZlvzZ6n5Xut6Hhx5PvrA9q/HsK8KMaYQp063iqZGXwNvZtYNLD7EM/x0w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.3.tgz", + "integrity": "sha512-oyuXxXmoZHjXC917IAPFAAv4wWAa0cM9afk8nx1+9/jNNOX1uPf8yDA6p7G0RypOfw/X0PQt5IfoquY1um+zSg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.3.tgz", + "integrity": "sha512-TytMwF2KVGqP2tgd0I1OY0PAv78dZRAYcF5ssDzjM34SUXCED3uXvSd5+lHoC0bTD6eEdFz7LdQNCO1y0oVk9w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.3.tgz", + "integrity": "sha512-/E9m3qstrJFVPoULV25mVQblSNExY2+kBsYe4sy0Tn0yOOgJ8wZbZt3KnRbF/XeU2Gl1STKUQnDNTqhIE5MD4A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.3.tgz", + "integrity": "sha512-Kr0OcsoQI816i6HOl3vFHpd1K0eZyh76zgfj4c1nTyaTsd5r2Mj1lwM4R90y/qaCfmTn9eHy0SKwi98eitRxug==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.3.tgz", + "integrity": "sha512-hOtMwTqnME+/gJcH/PCZ0wn0zPUjiWOgkHpxbSJpfGKMezHltx1S7/k1SitzVa7Ww2cqrDDaFbZEhcJZO8o+Jw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.3.tgz", + "integrity": "sha512-ekcqMMkI2PlhYnfzQnB/cEdYUVVJViWvoUyLrbzgDoi3Snfc1mVBwdnc306ufA5ejy8JSPjT2RlW1nQSjW7efg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmmirror.com/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/@simonwep/pickr": { + "version": "1.8.2", + "resolved": "https://registry.npmmirror.com/@simonwep/pickr/-/pickr-1.8.2.tgz", + "integrity": "sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==", + "license": "MIT", + "dependencies": { + "core-js": "^3.15.1", + "nanopop": "^2.1.0" + } + }, + "node_modules/@types/jsesc": { + "version": "2.5.1", + "resolved": "https://registry.npmmirror.com/@types/jsesc/-/jsesc-2.5.1.tgz", + "integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "26.1.2", + "resolved": "https://registry.npmmirror.com/@types/node/-/node-26.1.2.tgz", + "integrity": "sha512-Vu4a5UFA9rIIFJ7rB/Vaafh9lrCQszopTCx6KjFboXTGQbPNasehVR5TEiithSDGyd1DEiUByggTZsg8jukeIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~8.3.0" + } + }, + "node_modules/@vitejs/plugin-vue": { + "version": "6.0.8", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-6.0.8.tgz", + "integrity": "sha512-0ZjgOg7oO6farnNGup7yvoM/YXZV84OZxHAwtflItNa/6zzQyVb5LNxyea3FEKEX2XlagIKzrlH7wwxkKgtiew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "vue": "^3.2.25" + } + }, + "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-macros/common": { + "version": "3.1.4", + "resolved": "https://registry.npmmirror.com/@vue-macros/common/-/common-3.1.4.tgz", + "integrity": "sha512-/5Fv+6DgIcM9ajY05ZmKBv+LMX1M9A0X+IUwDRVdt67ciw8OV9bvG2r34p3RiEadlsQybjhKPRKNXDC8Bp23cw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-sfc": "^3.5.22", + "ast-kit": "^2.1.2", + "local-pkg": "^1.1.2", + "magic-string-ast": "^1.0.2", + "unplugin-utils": "^0.3.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/vue-macros" + }, + "peerDependencies": { + "vue": "^2.7.0 || ^3.2.25" + }, + "peerDependenciesMeta": { + "vue": { + "optional": true + } + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.41.tgz", + "integrity": "sha512-q0Xtv/F9w2YO/7htQhtiL+Ev2WCJbe5N2hc+XfgyKkEKqWpSxknmT8QOuGdEKNdjPq0c3F7rNpFkTo3Kfrm7pg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/shared": "3.5.41", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.41.tgz", + "integrity": "sha512-oKacVfNglLvGjnS6BXOlGL7EyG2h8X03pqXCjzotRZUaXGjbrTJUnVAQjrCqUnS+lyu31nwQjZY/d817GmCnfw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.41", + "@vue/shared": "3.5.41" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.41.tgz", + "integrity": "sha512-XJhip7R2wy6vX3knCxdZN4KracFaZUef58s1KYewqluedHIJaPIVfXoYT7MF1F8nCvv6k8bWWxDC8opMkg1VTQ==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@vue/compiler-core": "3.5.41", + "@vue/compiler-dom": "3.5.41", + "@vue/compiler-ssr": "3.5.41", + "@vue/shared": "3.5.41", + "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.41", + "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.41.tgz", + "integrity": "sha512-U3v5OejKEGqOI0Wy0+Sz7hGuIFZHA4LSXzrNM3IMIeDyJEBBfTpX26n3SDgToRpP2bLc9FfI2j/kSgcJ8Emq5A==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.41", + "@vue/shared": "3.5.41" + } + }, + "node_modules/@vue/devtools-api": { + "version": "8.2.1", + "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-8.2.1.tgz", + "integrity": "sha512-6u4vXBlIBAC1wMplIZgpyPn7uh/s4Bf6F5bMzvLv+EdJ0aHs/+4B7Ygv864EStQSjRbsRzTko/kUG1A1IejQ3A==", + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^8.2.1" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "8.2.1", + "resolved": "https://registry.npmmirror.com/@vue/devtools-kit/-/devtools-kit-8.2.1.tgz", + "integrity": "sha512-FIGIuq3AWReEpbAHY/cRGeHDfI0qOb8OCQ3YjbEAX04uaxIDbGc9rhkbVcG7rnfHPXE3RsU5KrWOu9V/okd8AQ==", + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^8.2.1", + "birpc": "^2.6.1", + "hookable": "^5.5.3", + "perfect-debounce": "^2.0.0" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "8.2.1", + "resolved": "https://registry.npmmirror.com/@vue/devtools-shared/-/devtools-shared-8.2.1.tgz", + "integrity": "sha512-Fkac7lUdGReh6pVOi3AYPRGe82LQqRmAfThW7RRligOAP0ZA/Z1z9XLHDM9dv34pV2HRc79DK8uKPeG2fLnA/g==", + "license": "MIT" + }, + "node_modules/@vue/language-core": { + "version": "3.3.9", + "resolved": "https://registry.npmmirror.com/@vue/language-core/-/language-core-3.3.9.tgz", + "integrity": "sha512-in/68oAa4BCtVY6n/nkuhLIkV8DHYd2UivedJ6cMZ6UYtlq9jaoaSNUBHYCVO44z3nKg7MdE5OBoHKt5SxeBKQ==", + "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.41", + "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.41.tgz", + "integrity": "sha512-rznsqKM0np0x18EjzF8x88MpEhdNsffbvFbckLL5+oUKz1BxAImEmO7J1ArRYSyo6aQaVoBDp7jEkT91OOxydA==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.41" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.41.tgz", + "integrity": "sha512-Vcry58hiAKwGen9Z1jUZE0feFsNArPCMOImYI8el48A9Idf6DuQYD0U05zZIF2Iad1hGhPSvcbBbAOhNr55fhg==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.41", + "@vue/shared": "3.5.41" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.41.tgz", + "integrity": "sha512-3vVBahVBS9+U6cmXBLyb8nE6/yYo4J/CGI9eVFs3KiMc0YHuudwKyShTD65jtJy/L9PUUxNAFu4cj4LiJ0UFbw==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.41", + "@vue/runtime-core": "3.5.41", + "@vue/shared": "3.5.41", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.41.tgz", + "integrity": "sha512-n6hx/pNFfbD6SuyeuMVkvqox8bwf/ET9JlA/kAz/imw8sw++wkqKe2mHX5KutjPpbKE4Z56yTHszoOjGMI9igQ==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.41", + "@vue/runtime-dom": "3.5.41", + "@vue/shared": "3.5.41" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.41.tgz", + "integrity": "sha512-IOnwSCma8j+9xJT6b8H0dEYidC80NsYmNMlZxRsukYcSoGaDBohog5hDxzeUXdFeGWFA++vWvxqOmrr96VlqMA==", + "license": "MIT" + }, + "node_modules/acorn": { + "version": "8.18.0", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "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/ant-design-vue": { + "version": "4.2.6", + "resolved": "https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-4.2.6.tgz", + "integrity": "sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==", + "license": "MIT", + "dependencies": { + "@ant-design/colors": "^6.0.0", + "@ant-design/icons-vue": "^7.0.0", + "@babel/runtime": "^7.10.5", + "@ctrl/tinycolor": "^3.5.0", + "@emotion/hash": "^0.9.0", + "@emotion/unitless": "^0.8.0", + "@simonwep/pickr": "~1.8.0", + "array-tree-filter": "^2.1.0", + "async-validator": "^4.0.0", + "csstype": "^3.1.1", + "dayjs": "^1.10.5", + "dom-align": "^1.12.1", + "dom-scroll-into-view": "^2.0.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.15", + "resize-observer-polyfill": "^1.5.1", + "scroll-into-view-if-needed": "^2.2.25", + "shallow-equal": "^1.0.0", + "stylis": "^4.1.3", + "throttle-debounce": "^5.0.0", + "vue-types": "^3.0.0", + "warning": "^4.0.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/ant-design-vue" + }, + "peerDependencies": { + "vue": ">=3.2.0" + } + }, + "node_modules/array-tree-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/array-tree-filter/-/array-tree-filter-2.1.0.tgz", + "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==", + "license": "MIT" + }, + "node_modules/ast-kit": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/ast-kit/-/ast-kit-2.2.0.tgz", + "integrity": "sha512-m1Q/RaVOnTp9JxPX+F+Zn7IcLYMzM8kZofDImfsKZd8MbR+ikdOzTeztStWqfrqIxZnYWryyI9ePm3NGjnZgGw==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "pathe": "^2.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/ast-walker-scope": { + "version": "0.9.0", + "resolved": "https://registry.npmmirror.com/ast-walker-scope/-/ast-walker-scope-0.9.0.tgz", + "integrity": "sha512-IJdzo2vLiElBxKzwS36VsCue/62d6IdWjnPB2v3nuPKeWGynp6FF/CYoLa5i/3jXH/z97ZDdsXz6abpgM6w07A==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.2", + "@babel/types": "^7.29.0", + "ast-kit": "^2.2.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "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/axios": { + "version": "1.19.0", + "resolved": "https://registry.npmmirror.com/axios/-/axios-1.19.0.tgz", + "integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==", + "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/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmmirror.com/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/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/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/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/compute-scroll-into-view": { + "version": "1.0.20", + "resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz", + "integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==", + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "license": "MIT" + }, + "node_modules/core-js": { + "version": "3.50.0", + "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.50.0.tgz", + "integrity": "sha512-BRWgOLKkFeCgRudR6zrs8p9XJZcE14grzKMMssoYrk6krtuEZ7MTKPIY5RzOnqsEKIR9kst7wNzphttraT+Yqw==", + "hasInstallScript": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "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.21", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.21.tgz", + "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "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==", + "devOptional": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dom-align": { + "version": "1.12.4", + "resolved": "https://registry.npmmirror.com/dom-align/-/dom-align-1.12.4.tgz", + "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==", + "license": "MIT" + }, + "node_modules/dom-scroll-into-view": { + "version": "2.0.1", + "resolved": "https://registry.npmmirror.com/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz", + "integrity": "sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==", + "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/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/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/exsolve": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.1.1.tgz", + "integrity": "sha512-9U/jZUgjnSGyntRr6y5Muu1MJcwFl6kPu7k8qLF0IMNfLqvw0NZ4nnVDq0RVoZ0RvCyumib4Ez3KYrVfilrw+g==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/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/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/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/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmmirror.com/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "license": "MIT" + }, + "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/is-plain-object": { + "version": "3.0.1", + "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", + "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "devOptional": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmmirror.com/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/local-pkg": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/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/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "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/magic-string-ast": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/magic-string-ast/-/magic-string-ast-1.0.3.tgz", + "integrity": "sha512-CvkkH1i81zl7mmb94DsRiFeG9V2fR2JeuK8yDgS8oiZSFa++wWLEgZ5ufEOyLHbvSbD1gTRKv9NdX69Rnvr9JA==", + "license": "MIT", + "dependencies": { + "magic-string": "^0.30.19" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/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/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/mlly": { + "version": "1.8.2", + "resolved": "https://registry.npmmirror.com/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", + "license": "MIT", + "dependencies": { + "acorn": "^8.16.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.3" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/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==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.17", + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.17.tgz", + "integrity": "sha512-xQLf0A3HOMlgHq0n247/LRuAOYmB7dXJ/DvAxGvsSBij45XtBSmQycu+F8ODbHwns/XyFZagyL1+J0Offw1E0g==", + "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/nanopop": { + "version": "2.4.2", + "resolved": "https://registry.npmmirror.com/nanopop/-/nanopop-2.4.2.tgz", + "integrity": "sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==", + "license": "MIT" + }, + "node_modules/nostics": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/nostics/-/nostics-1.2.0.tgz", + "integrity": "sha512-FGqEfhQjrvo1lL8KFifdTQiNwwQHJxC1jtYE1Rc54qF/jxONUNL+kC9gS1krX8Q65PgrQ5fCqH/I4NhWBvdSqg==", + "license": "MIT" + }, + "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/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/perfect-debounce/-/perfect-debounce-2.1.0.tgz", + "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.5", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pinia": { + "version": "4.0.2", + "resolved": "https://registry.npmmirror.com/pinia/-/pinia-4.0.2.tgz", + "integrity": "sha512-yKVVA7bSj5oRZFp/Ab9wLlmyb5gPUYEiIm4ryiWTe/xe7PtkRdMVOp1X1ggvq0c6Uj7Q0Du1HnV2mtAwM0Ks1g==", + "license": "MIT", + "dependencies": { + "nostics": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@vue/devtools-api": "^8.1.5", + "typescript": ">=5.6.0", + "vue": "^3.5.11" + }, + "peerDependenciesMeta": { + "@vue/devtools-api": { + "optional": false + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/pkg-types": { + "version": "2.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.3.1.tgz", + "integrity": "sha512-y+ichcgc2LrADuhLNAx8DFjVfgz91pRxfZdI3UDhxHvcVEZsenLO+7XaU5vOp0u/7V/wZ+plyuQxtrDlZJ+yeg==", + "license": "MIT", + "dependencies": { + "confbox": "^0.2.4", + "exsolve": "^1.0.8", + "pathe": "^2.0.3" + } + }, + "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/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/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/resize-observer-polyfill": { + "version": "1.5.1", + "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", + "license": "MIT" + }, + "node_modules/rolldown": { + "version": "1.2.3", + "resolved": "https://registry.npmmirror.com/rolldown/-/rolldown-1.2.3.tgz", + "integrity": "sha512-rn9wpmxplLf7NLNyCk9FyWh3FM43DbY8jOzCdEPzH7uflhTftRbCEpqi6Ly2osgoU8OwObtmavMbWLaWy4LX7A==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.143.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.2.3", + "@rolldown/binding-darwin-arm64": "1.2.3", + "@rolldown/binding-darwin-x64": "1.2.3", + "@rolldown/binding-freebsd-x64": "1.2.3", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.3", + "@rolldown/binding-linux-arm64-gnu": "1.2.3", + "@rolldown/binding-linux-arm64-musl": "1.2.3", + "@rolldown/binding-linux-ppc64-gnu": "1.2.3", + "@rolldown/binding-linux-s390x-gnu": "1.2.3", + "@rolldown/binding-linux-x64-gnu": "1.2.3", + "@rolldown/binding-linux-x64-musl": "1.2.3", + "@rolldown/binding-openharmony-arm64": "1.2.3", + "@rolldown/binding-win32-arm64-msvc": "1.2.3", + "@rolldown/binding-win32-x64-msvc": "1.2.3" + } + }, + "node_modules/scroll-into-view-if-needed": { + "version": "2.2.31", + "resolved": "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz", + "integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==", + "license": "MIT", + "dependencies": { + "compute-scroll-into-view": "^1.0.20" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "license": "MIT" + }, + "node_modules/shallow-equal": { + "version": "1.2.1", + "resolved": "https://registry.npmmirror.com/shallow-equal/-/shallow-equal-1.2.1.tgz", + "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==", + "license": "MIT" + }, + "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/stylis": { + "version": "4.4.0", + "resolved": "https://registry.npmmirror.com/stylis/-/stylis-4.4.0.tgz", + "integrity": "sha512-5Z9ZpRzfuH6l/UAvCPAPUo3665Nk2wLaZU3x+TLHKVzIz33+sbJqbtrYoC3KD4/uVOr2Zp+L0LySezP9OHV9yA==", + "license": "MIT" + }, + "node_modules/throttle-debounce": { + "version": "5.0.2", + "resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.2.tgz", + "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", + "license": "MIT", + "engines": { + "node": ">=12.22" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.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/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "8.3.0", + "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-8.3.0.tgz", + "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unplugin": { + "version": "3.3.0", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-3.3.0.tgz", + "integrity": "sha512-qa66K+crbfyE6JK10GjvbJeRrOsuC/JpbnHctfyp/i4oBTxWOzJfRZyDiOk1PtErMFRu8JhsU/wPvOdBNWe5Rg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "picomatch": "^4.0.4", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@farmfe/core": "*", + "@rspack/core": "*", + "bun-types-no-globals": "*", + "esbuild": "*", + "rolldown": "*", + "rollup": "*", + "unloader": "*", + "vite": "*", + "webpack": "*" + }, + "peerDependenciesMeta": { + "@farmfe/core": { + "optional": true + }, + "@rspack/core": { + "optional": true + }, + "bun-types-no-globals": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "rolldown": { + "optional": true + }, + "rollup": { + "optional": true + }, + "unloader": { + "optional": true + }, + "vite": { + "optional": true + }, + "webpack": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.2", + "resolved": "https://registry.npmmirror.com/unplugin-utils/-/unplugin-utils-0.3.2.tgz", + "integrity": "sha512-xVToRh2CTmLk2HnEG7ac4rl1MJTT3RFkpS8B++/SnB0kXvuaavD+n3m/vrzyWQOdJNSZQACnbz01pnppbwV5BA==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/vite": { + "version": "8.2.0", + "resolved": "https://registry.npmmirror.com/vite/-/vite-8.2.0.tgz", + "integrity": "sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.5", + "postcss": "^8.5.23", + "rolldown": "~1.2.0", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.4.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vscode-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/vscode-uri/-/vscode-uri-3.1.0.tgz", + "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/vue": { + "version": "3.5.41", + "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.41.tgz", + "integrity": "sha512-2laE0p+aK+/AOPG/XL/WepOs/GlK755LJ1XECi9kDUrz1FKNw8rb2Xzlw9JS1rqEV55nb0ttsKxVlTCcd+R5cg==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.41", + "@vue/compiler-sfc": "3.5.41", + "@vue/runtime-dom": "3.5.41", + "@vue/server-renderer": "3.5.41", + "@vue/shared": "3.5.41" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "5.2.0", + "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-5.2.0.tgz", + "integrity": "sha512-QAC5i0LEb1GLG0LXDQmHu8L7FX12j0KwU/JTKmLQUJMrn04gQdKP6Du+p0QwpHb3iy71vBlqnHQ8WAfOSAWhqw==", + "license": "MIT", + "dependencies": { + "@babel/generator": "^8.0.0", + "@vue-macros/common": "^3.1.3", + "@vue/devtools-api": "^8.1.5", + "ast-walker-scope": "^0.9.0", + "chokidar": "^5.0.0", + "json5": "^2.2.3", + "local-pkg": "^1.2.1", + "magic-string": "^0.30.21", + "mlly": "^1.8.2", + "muggle-string": "^0.4.1", + "nostics": "^1.1.4", + "pathe": "^2.0.3", + "picomatch": "^4.0.5", + "scule": "^1.3.0", + "tinyglobby": "^0.2.17", + "unplugin": "^3.3.0", + "unplugin-utils": "^0.3.2", + "yaml": "^2.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "@pinia/colada": ">=0.21.2", + "@vue/compiler-sfc": "^3.5.34 || ^4.0.0", + "pinia": "^3.0.4 || ^4.0.2", + "vite": "^7.3.0 || ^8.0.0", + "vue": "^3.5.34 || ^4.0.0" + }, + "peerDependenciesMeta": { + "@pinia/colada": { + "optional": true + }, + "@vue/compiler-sfc": { + "optional": true + }, + "pinia": { + "optional": true + }, + "vite": { + "optional": true + } + } + }, + "node_modules/vue-tsc": { + "version": "3.3.9", + "resolved": "https://registry.npmmirror.com/vue-tsc/-/vue-tsc-3.3.9.tgz", + "integrity": "sha512-TS3Y1ux/IRoE8OCP2PpACAeOseuIs0UvWrcr7u+w3PmfY+SlCfEf8zjrBgnQksHUgLpthi5vHlffcQTQTdPBZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@volar/typescript": "2.4.28", + "@vue/language-core": "3.3.9" + }, + "bin": { + "vue-tsc": "bin/vue-tsc.js" + }, + "peerDependencies": { + "typescript": ">=5.0.0" + } + }, + "node_modules/vue-types": { + "version": "3.0.2", + "resolved": "https://registry.npmmirror.com/vue-types/-/vue-types-3.0.2.tgz", + "integrity": "sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==", + "license": "MIT", + "dependencies": { + "is-plain-object": "3.0.1" + }, + "engines": { + "node": ">=10.15.0" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/warning": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/warning/-/warning-4.0.3.tgz", + "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.9.0", + "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.9.0.tgz", + "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + } + } +} diff --git a/codes/web/package.json b/codes/web/package.json new file mode 100644 index 0000000..fb54df9 --- /dev/null +++ b/codes/web/package.json @@ -0,0 +1,27 @@ +{ + "name": "iqudo-top1-web", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vue-tsc --noEmit && vite build", + "preview": "vite preview" + }, + "dependencies": { + "@ant-design/icons-vue": "7.0.1", + "ant-design-vue": "4.2.6", + "axios": "1.19.0", + "dayjs": "1.11.21", + "pinia": "4.0.2", + "vue": "3.5.41", + "vue-router": "5.2.0" + }, + "devDependencies": { + "@types/node": "26.1.2", + "@vitejs/plugin-vue": "6.0.8", + "typescript": "5.9.3", + "vite": "8.2.0", + "vue-tsc": "3.3.9" + } +} diff --git a/codes/web/src/App.vue b/codes/web/src/App.vue new file mode 100644 index 0000000..98240ae --- /dev/null +++ b/codes/web/src/App.vue @@ -0,0 +1,3 @@ + diff --git a/codes/web/src/api/client.ts b/codes/web/src/api/client.ts new file mode 100644 index 0000000..86d5ea6 --- /dev/null +++ b/codes/web/src/api/client.ts @@ -0,0 +1,46 @@ +import axios, { type AxiosRequestConfig } from 'axios' + +interface Envelope { code: string; message: string; data: T } + +const client = axios.create({ baseURL: '/api/v1', timeout: 15000 }) + +client.interceptors.request.use((config) => { + const token = localStorage.getItem('access_token') + if (token) config.headers.Authorization = `Bearer ${token}` + return config +}) + +client.interceptors.response.use( + (response) => response, + (error) => { + if (error.response?.status === 401 && !error.config?.url?.includes('/auth/login')) { + localStorage.removeItem('access_token') + localStorage.removeItem('refresh_token') + if (window.location.pathname !== '/login') window.location.href = '/login' + } + return Promise.reject(error) + }, +) + +export const api = { + async get(url: string, config?: AxiosRequestConfig): Promise { + const response = await client.get>(url, config) + return response.data.data + }, + async post(url: string, data?: unknown): Promise { + const response = await client.post>(url, data) + return response.data.data + }, + async put(url: string, data?: unknown): Promise { + const response = await client.put>(url, data) + return response.data.data + }, + async delete(url: string): Promise { + const response = await client.delete>(url) + return response.data.data + }, +} + +export function apiMessage(error: any): string { + return error?.response?.data?.message || error?.message || '操作失败,请稍后重试' +} diff --git a/codes/web/src/env.d.ts b/codes/web/src/env.d.ts new file mode 100644 index 0000000..11f02fe --- /dev/null +++ b/codes/web/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/codes/web/src/layouts/AppLayout.vue b/codes/web/src/layouts/AppLayout.vue new file mode 100644 index 0000000..173a7a8 --- /dev/null +++ b/codes/web/src/layouts/AppLayout.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/codes/web/src/main.ts b/codes/web/src/main.ts new file mode 100644 index 0000000..d71ee18 --- /dev/null +++ b/codes/web/src/main.ts @@ -0,0 +1,9 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import Antd from 'ant-design-vue' +import 'ant-design-vue/dist/reset.css' +import './styles/main.css' +import App from './App.vue' +import router from './router' + +createApp(App).use(createPinia()).use(router).use(Antd).mount('#app') diff --git a/codes/web/src/router/index.ts b/codes/web/src/router/index.ts new file mode 100644 index 0000000..160975b --- /dev/null +++ b/codes/web/src/router/index.ts @@ -0,0 +1,29 @@ +import { createRouter, createWebHistory } from 'vue-router' +import AppLayout from '@/layouts/AppLayout.vue' + +const router = createRouter({ + history: createWebHistory(), + routes: [ + { path: '/login', component: () => import('@/views/LoginView.vue'), meta: { public: true } }, + { + path: '/', + component: AppLayout, + children: [ + { path: '', name: 'dashboard', component: () => import('@/views/DashboardView.vue') }, + { path: 'scenarios', name: 'scenarios', component: () => import('@/views/ScenariosView.vue') }, + { path: 'scenarios/:id', name: 'scenario-detail', component: () => import('@/views/ScenarioDetailView.vue') }, + { path: 'sops/:id', name: 'sop-editor', component: () => import('@/views/SOPEditorView.vue') }, + { path: 'execute', name: 'execute', component: () => import('@/views/ExecuteView.vue') }, + { path: 'runs', name: 'runs', component: () => import('@/views/RunHistoryView.vue') }, + { path: 'knowledge', name: 'knowledge', component: () => import('@/views/KnowledgeView.vue') }, + ], + }, + ], +}) + +router.beforeEach((to) => { + if (!to.meta.public && !localStorage.getItem('access_token')) return '/login' + if (to.path === '/login' && localStorage.getItem('access_token')) return '/' +}) + +export default router diff --git a/codes/web/src/stores/auth.ts b/codes/web/src/stores/auth.ts new file mode 100644 index 0000000..e8e2254 --- /dev/null +++ b/codes/web/src/stores/auth.ts @@ -0,0 +1,34 @@ +import { defineStore } from 'pinia' +import { computed, ref } from 'vue' +import { api } from '@/api/client' +import type { User } from '@/types' + +interface LoginResult { access_token: string; refresh_token: string; expires_at: string; user: User } + +export const useAuthStore = defineStore('auth', () => { + const user = ref(null) + const token = ref(localStorage.getItem('access_token') || '') + const authenticated = computed(() => Boolean(token.value)) + + async function login(username: string, password: string) { + const result = await api.post('/auth/login', { username, password }) + token.value = result.access_token + user.value = result.user + localStorage.setItem('access_token', result.access_token) + localStorage.setItem('refresh_token', result.refresh_token) + } + + async function loadUser() { + if (!token.value) return + user.value = await api.get('/auth/me') + } + + function logout() { + token.value = '' + user.value = null + localStorage.removeItem('access_token') + localStorage.removeItem('refresh_token') + } + + return { user, token, authenticated, login, loadUser, logout } +}) diff --git a/codes/web/src/styles/main.css b/codes/web/src/styles/main.css new file mode 100644 index 0000000..c5710da --- /dev/null +++ b/codes/web/src/styles/main.css @@ -0,0 +1,48 @@ +:root { + color: #202825; + background: #f4f6f5; + font-family: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif; + font-synthesis: none; + text-rendering: optimizeLegibility; + --ink: #202825; + --muted: #69746f; + --line: #dce2df; + --surface: #ffffff; + --canvas: #f4f6f5; + --green: #16775b; + --green-dark: #0f5843; + --coral: #d5644a; + --amber: #b97a20; +} + +* { box-sizing: border-box; } +html, body, #app { min-height: 100%; margin: 0; } +body { min-width: 320px; } +button, input, textarea, select { font: inherit; letter-spacing: 0; } + +.page-shell { max-width: 1440px; margin: 0 auto; padding: 24px 28px 40px; } +.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; } +.page-heading h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: 0; } +.page-heading p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; } +.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } +.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; } +.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); } +.muted { color: var(--muted); } +.empty-copy { max-width: 360px; margin: 0 auto; color: var(--muted); line-height: 1.7; text-align: center; } +.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; background: var(--green); } +.ant-btn { border-radius: 5px; box-shadow: none; } +.ant-btn-primary { background: var(--green); } +.ant-btn-primary:hover { background: var(--green-dark) !important; } +.ant-table-wrapper .ant-table { border-radius: 0 0 6px 6px; } +.ant-table-wrapper .ant-table-thead > tr > th { color: #52605a; font-size: 12px; font-weight: 650; background: #f7f9f8; } +.ant-tag { border-radius: 3px; } +.ant-modal-content, .ant-drawer-content { border-radius: 6px !important; } +.ant-card { border-radius: 6px; } +.ant-input, .ant-input-number, .ant-select-selector, .ant-input-affix-wrapper { border-radius: 4px !important; } + +@media (max-width: 760px) { + .page-shell { padding: 18px 14px 28px; } + .page-heading { flex-direction: column; } + .page-actions { width: 100%; } + .page-heading h1 { font-size: 23px; } +} diff --git a/codes/web/src/types/index.ts b/codes/web/src/types/index.ts new file mode 100644 index 0000000..6815161 --- /dev/null +++ b/codes/web/src/types/index.ts @@ -0,0 +1,10 @@ +export interface BaseEntity { id: number; created_at: string; updated_at: string } +export interface User { user_id: number; tenant_id: number; role_code: string; username: string; display_name: string } +export interface Scenario extends BaseEntity { tenant_id: number; name: string; industry: string; role_name: string; goal: string; trigger_text: string; visibility: string; status: string; created_by: number } +export interface ScenarioField extends BaseEntity { scenario_id: number; field_key: string; field_name: string; field_type: string; required: boolean; options: unknown[]; validation: Record; sort_order: number } +export interface SOP extends BaseEntity { scenario_id: number; name: string; description: string; status: string } +export interface SOPVersion extends BaseEntity { sop_id: number; version: number; status: string; start_node_key: string; published_at?: string } +export interface SOPNode extends BaseEntity { node_key: string; type: string; title: string; content: string; config: Record; position_x: number; position_y: number } +export interface SOPEdge extends BaseEntity { source_node_key: string; target_node_key: string; condition: Record; priority: number } +export interface SOPRun extends BaseEntity { sop_id: number; sop_version_id: number; current_node_key: string; status: string; answers: Record; result: string; started_at: string; completed_at?: string; sop_name?: string } +export interface KnowledgeCard extends BaseEntity { scenario_id: number; title: string; status: string; content?: Record } diff --git a/codes/web/src/views/DashboardView.vue b/codes/web/src/views/DashboardView.vue new file mode 100644 index 0000000..c141a38 --- /dev/null +++ b/codes/web/src/views/DashboardView.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/codes/web/src/views/ExecuteView.vue b/codes/web/src/views/ExecuteView.vue new file mode 100644 index 0000000..11c1b31 --- /dev/null +++ b/codes/web/src/views/ExecuteView.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/codes/web/src/views/KnowledgeView.vue b/codes/web/src/views/KnowledgeView.vue new file mode 100644 index 0000000..6cbb044 --- /dev/null +++ b/codes/web/src/views/KnowledgeView.vue @@ -0,0 +1,17 @@ + + + diff --git a/codes/web/src/views/LoginView.vue b/codes/web/src/views/LoginView.vue new file mode 100644 index 0000000..d0e1673 --- /dev/null +++ b/codes/web/src/views/LoginView.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/codes/web/src/views/RunHistoryView.vue b/codes/web/src/views/RunHistoryView.vue new file mode 100644 index 0000000..7203478 --- /dev/null +++ b/codes/web/src/views/RunHistoryView.vue @@ -0,0 +1,12 @@ + + + diff --git a/codes/web/src/views/SOPEditorView.vue b/codes/web/src/views/SOPEditorView.vue new file mode 100644 index 0000000..fa76d95 --- /dev/null +++ b/codes/web/src/views/SOPEditorView.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/codes/web/src/views/ScenarioDetailView.vue b/codes/web/src/views/ScenarioDetailView.vue new file mode 100644 index 0000000..a0d77b8 --- /dev/null +++ b/codes/web/src/views/ScenarioDetailView.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/codes/web/src/views/ScenariosView.vue b/codes/web/src/views/ScenariosView.vue new file mode 100644 index 0000000..7480eac --- /dev/null +++ b/codes/web/src/views/ScenariosView.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/codes/web/tsconfig.json b/codes/web/tsconfig.json new file mode 100644 index 0000000..4ece981 --- /dev/null +++ b/codes/web/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2022", + "useDefineForClassFields": true, + "module": "ESNext", + "moduleResolution": "Bundler", + "strict": true, + "jsx": "preserve", + "resolveJsonModule": true, + "isolatedModules": true, + "esModuleInterop": true, + "lib": ["ES2022", "DOM", "DOM.Iterable"], + "skipLibCheck": true, + "baseUrl": ".", + "paths": { "@/*": ["src/*"] }, + "types": ["vite/client", "node"] + }, + "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue", "vite.config.ts"] +} diff --git a/codes/web/vite.config.ts b/codes/web/vite.config.ts new file mode 100644 index 0000000..49e6793 --- /dev/null +++ b/codes/web/vite.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import { fileURLToPath, URL } from 'node:url' + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, + }, + server: { + host: '127.0.0.1', + port: 5173, + proxy: { '/api': 'http://127.0.0.1:8080' }, + }, + build: { + outDir: 'dist', + sourcemap: false, + }, +}) diff --git a/docs/technical-implementation.md b/docs/technical-implementation.md new file mode 100644 index 0000000..2464f4a --- /dev/null +++ b/docs/technical-implementation.md @@ -0,0 +1,493 @@ +# 销冠平台技术实现方案 + +## 1. 文档范围 + +本文档用于指导“场景化销售话术与 SOP 平台”的第一阶段实现。 + +第一阶段的核心闭环是: + +```text +创建场景 -> 配置自定义字段 -> 编排 SOP -> 审核发布 -> 一线人员执行 -> 记录反馈 +``` + +场景不写死在代码中。宠物医生问诊问药只是一个配置示例,后续可以创建保险咨询、房地产销售、教育课程顾问等其他场景。 + +本阶段暂不实现文件存储、AI 自动生成、CRM 集成和微服务拆分。 + +## 2. 技术选型 + +### 2.1 后端 + +- Go:业务服务和流程执行引擎 +- Gin:HTTP 路由、中间件和请求处理 +- Zap:结构化日志 +- cleanenv:YAML 配置解析和环境变量覆盖 +- GORM:MySQL 数据访问 +- golang-migrate:数据库迁移 +- `go-playground/validator`:请求参数校验 +- JWT + Refresh Token:登录认证 + +第一阶段采用模块化单体。所有业务模块运行在一个 Go 服务中,通过清晰的内部边界保持可维护性,后续再根据实际负载拆分服务。 + +配置加载使用 `github.com/ilyakaznacheev/cleanenv`。它的行为简单明确:先读取 YAML 文件,再读取环境变量,环境变量值覆盖文件中的同名配置。 + +### 2.2 前端 + +- Vue 3 +- Vite +- TypeScript +- Ant Design Vue +- Vue Router +- Pinia +- Axios + +SOP 编辑器第一版使用步骤卡片和条件配置,不立即引入复杂的画布编辑器。需要图形化节点编排时,使用 Vue 生态的流程图组件,不使用 React Flow。 + +### 2.3 数据库和运行环境 + +- MySQL 8.0+ +- Docker Compose:本地开发 +- Nginx:生产环境反向代理 +- Linux 容器部署 + +本阶段不引入 Redis。登录会话、场景配置和执行状态先使用 MySQL;只有出现异步任务、缓存或高并发需求时再增加 Redis。 + +## 3. 配置管理 + +配置结构统一放在 `internal/config/`,业务代码不能直接读取环境变量。 + +配置优先级如下: + +```text +结构体默认值 < config.yml < 当前环境配置文件 < 环境变量 +``` + +配置文件约定如下: + +```text +configs/config.example.yml # 配置模板,可提交,不包含敏感信息 +configs/config.yml # 基础配置 +configs/config.test.yml # 测试环境覆盖配置 +configs/config.prod.yml # 生产环境覆盖配置 +``` + +运行环境通过 `APP_ENV` 或启动参数 `--env` 选择,优先级为启动参数高于环境变量: + +```text +未指定环境 -> config.yml +APP_ENV=test -> config.yml + config.test.yml +APP_ENV=prod -> config.yml + config.prod.yml +``` + +`config.yml` 作为基础文件必须存在。`test` 和 `prod` 环境对应的覆盖文件也必须存在;缺失时服务直接退出。环境配置文件只填写与基础配置不同的字段,未填写的字段沿用 `config.yml`。 + +配置文件路径通过 `--config-dir` 指定,默认使用当前工作目录下的 `configs/`。部署时可以挂载外部配置目录,不需要把真实生产配置提交到代码仓库。 + +环境变量名称通过结构体标签显式声明,例如: + +```text +APP_SERVER_HOST +APP_SERVER_PORT +APP_DATABASE_HOST +APP_DATABASE_PORT +APP_DATABASE_USER +APP_DATABASE_PASSWORD +APP_DATABASE_NAME +``` + +配置字段约定: + +- `yaml`:YAML 文件中的字段名。 +- `env`:环境变量名称,必须显式声明。 +- `env-default`:没有文件值和环境变量时使用的默认值。 +- `env-required:"true"`:必须由环境变量提供的敏感或关键配置。 +- `env-prefix`:为嵌套配置统一增加环境变量前缀。 +- `env-layout`:日期、时间等特殊类型的解析格式。 + +生产环境中,数据库密码、JWT 密钥等敏感字段必须使用 `env-required:"true"`,不写入 YAML 文件。配置加载失败或必填项缺失时,服务直接退出,不使用不完整配置继续启动。 + +加载过程必须保持以下顺序:先加载基础配置,再加载当前环境配置,最后执行环境变量覆盖。环境变量不能被后续 YAML 文件覆盖。 + +## 4. 目录规划 + +代码统一放在 `codes/` 目录下。按照 `golang-standards/project-layout` 的组织方式,同时遵循“根目录放置 main.go”和“前端放在 web 目录”的项目约束。 + +```text +codes/ +├── main.go # Go 服务入口,位于代码根目录 +├── go.mod +├── go.sum +├── internal/ +│ ├── config/ # 配置加载 +│ ├── logger/ # Zap 初始化和日志字段规范 +│ ├── middleware/ # 认证、租户、请求日志、异常恢复 +│ ├── router/ # 路由注册 +│ ├── handler/ # HTTP 接口层 +│ ├── service/ # 业务服务层 +│ ├── repository/ # 数据访问层 +│ ├── model/ # 数据库模型和请求响应模型 +│ ├── engine/ # SOP 流程执行引擎 +│ └── webassets/ # 前端嵌入和静态资源处理 +├── pkg/ +│ └── response/ # 可被外部复用的通用响应结构 +├── configs/ +│ ├── config.yml +│ ├── config.test.yml +│ ├── config.prod.yml +│ └── config.example.yml +├── migrations/ # MySQL 数据库迁移文件 +├── scripts/ # 构建、检查和发布脚本 +└── web/ + ├── package.json + ├── vite.config.ts + ├── index.html + ├── src/ + │ ├── api/ + │ ├── components/ + │ ├── layouts/ + │ ├── router/ + │ ├── stores/ + │ ├── types/ + │ └── views/ + └── dist/ # 前端构建产物,由 Go 使用 go:embed 嵌入 +``` + +说明:`cmd/` 目录不使用,Go 入口固定为 `codes/main.go`。`codes/web/dist/` 是构建产物目录,前端构建完成后由 Go 服务作为静态资源提供。 + +```text +浏览器 + ├── 管理端:场景、字段、SOP、知识卡、审核 + └── 执行端:按 SOP 执行和记录客户回答 + | + v + Go HTTP 服务 + ├── 身份认证与租户权限 + ├── 场景配置服务 + ├── SOP 版本服务 + ├── 流程执行引擎 + ├── 知识卡服务 + └── 执行记录与统计 + | + v + MySQL +``` + +## 5. 系统架构 + +Go 服务同时承担 API 服务和前端静态资源服务。前端构建后通过 `go:embed` 打入 Go 二进制,生产环境只需要部署一个服务包和配置文件。 + +## 6. go:embed 方案 + +前端构建输出到 `codes/web/dist/`,Go 服务通过 `go:embed` 嵌入该目录。 + +构建流程为: + +```text +进入 codes/web -> 安装依赖 -> 执行前端构建 -> 生成 web/dist + -> 回到 codes -> 执行 Go 构建 -> 生成包含前端资源的二进制 +``` + +服务端静态资源处理规则: + +- `/api/` 路径只进入 Go API 路由。 +- 静态文件路径优先读取 `web/dist` 中对应文件。 +- 非 API 且找不到文件的路径回退到 `index.html`,支持 Vue Router 的 history 模式。 +- 前端资源由 Nginx 或应用服务设置长期缓存,`index.html` 不使用长期缓存。 + +前端 `dist` 不存在时,Go 项目不能完成编译,因此代码仓库需要保留一个可构建的前端产物占位文件,或者在 CI 中强制先执行前端构建。 + +## 7. 场景模型 + +场景是平台的一级可配置对象,不能在代码中写死行业字段。 + +一个场景至少包含: + +- 场景名称 +- 所属行业 +- 适用角色 +- 使用目标 +- 触发条件 +- 可见范围 +- 自定义字段 +- 一个或多个 SOP +- 关联知识卡 +- 发布状态 + +例如宠物医生问诊问药场景可以配置: + +```text +pet_type 宠物种类 +pet_age 年龄 +pet_weight 体重 +symptom 症状 +symptom_duration 症状持续时间 +has_emergency_sign 是否存在急症 +``` + +保险咨询场景则可以配置客户年龄、职业、预算和保险类型。新增场景只需要增加配置数据,不需要修改业务代码。 + +## 8. SOP 模型 + +SOP 由版本、节点和连线组成。 + +第一阶段支持以下节点类型: + +- `start`:流程开始 +- `message`:展示标准话术 +- `question`:提问并写入一个场景字段 +- `form`:一次收集多个字段 +- `choice`:让执行人员选择客户回答 +- `condition`:根据已收集字段进行分支 +- `knowledge`:展示已审核知识卡 +- `escalate`:转人工、转医生或线下处理 +- `finish`:结束流程 + +条件必须保存为结构化规则,不能让用户输入或执行任意 JavaScript。条件规则支持等于、不等于、包含、大于、小于、全部满足、任一满足等操作。 + +发布前需要校验: + +- 只有一个开始节点 +- 所有节点都可从开始节点访问 +- 所有分支都有出口 +- 不存在无法结束的路径 +- 必填字段存在对应采集节点 +- 关联知识卡已经审核 +- 急症或高风险分支有明确的转人工或转诊动作 + +## 9. MySQL 数据表 + +核心表如下: + +```text +users 用户 +tenants 企业或组织 +tenant_members 企业成员和角色 +roles 角色权限 + +scenarios 场景 +scenario_fields 场景自定义字段 + +sops SOP 基础信息 +sop_versions SOP 版本 +sop_nodes SOP 节点 +sop_edges SOP 连线和条件 + +knowledge_cards 话术或知识卡 +knowledge_card_versions 知识卡版本 + +sop_runs SOP 执行实例 +sop_run_events SOP 节点执行事件 +sop_feedback 执行反馈 +audit_logs 操作审计 +``` + +关键设计: + +- 所有租户相关数据必须能追溯到 `tenant_id`。 +- 场景字段使用行记录保存,避免把场景字段写死在表结构中。 +- 节点配置和条件规则使用 MySQL JSON 字段保存。 +- 已发布版本不可直接修改,修改时复制为新的草稿版本。 +- 版本状态流转为 `draft -> reviewing -> published -> offline`;管理员也可以从草稿直接发布。 +- 执行过程保存事件记录,便于复盘和统计。 +- 需要参与筛选和统计的字段不能只存 JSON,应在事件表或统计表中建立结构化字段。 + +## 10. 后端接口规划 + +### 场景接口 + +```text +POST /api/v1/scenarios +GET /api/v1/scenarios +GET /api/v1/scenarios/:id +PUT /api/v1/scenarios/:id +DELETE /api/v1/scenarios/:id +``` + +### 自定义字段接口 + +```text +POST /api/v1/scenarios/:id/fields +PUT /api/v1/scenario-fields/:id +DELETE /api/v1/scenario-fields/:id +``` + +### SOP 接口 + +```text +POST /api/v1/scenarios/:id/sops +GET /api/v1/scenarios/:id/sops +PUT /api/v1/sops/:id/draft +POST /api/v1/sops/:id/validate +POST /api/v1/sops/:id/submit-review +POST /api/v1/sops/:id/publish +POST /api/v1/sops/:id/offline +``` + +### SOP 执行接口 + +```text +POST /api/v1/runs +GET /api/v1/runs/:id +POST /api/v1/runs/:id/answer +POST /api/v1/runs/:id/finish +POST /api/v1/runs/:id/feedback +``` + +## 11. 流程执行引擎 + +执行流程如下: + +1. 创建执行实例,绑定一个已发布的 SOP 版本。 +2. 加载开始节点并返回给前端。 +3. 前端展示话术、表单或选项。 +4. 后端校验客户回答和字段类型。 +5. 在事务中保存回答和节点事件。 +6. 根据结构化条件计算下一节点。 +7. 返回下一节点或结束动作。 + +流程引擎只处理通用节点和规则,不理解“宠物”“保险”等具体业务。行业知识放在场景字段、话术内容和知识卡中。 + +## 12. Zap 日志规范 + +使用 Zap 输出结构化 JSON 日志到 stdout,由 Docker、Kubernetes 或云平台采集,不由应用自己维护日志文件。 + +日志至少包含: + +- `service` +- `env` +- `request_id` +- `tenant_id` +- `user_id` +- `action` +- `resource` +- `resource_id` +- `duration_ms` +- `err` + +日志等级约定: + +- `DEBUG`:本地开发细节 +- `INFO`:正常请求、发布、执行等业务事件 +- `WARN`:参数异常、权限拒绝、客户端错误 +- `ERROR`:服务异常、数据库失败、流程执行失败 + +禁止记录密码、Token、完整客户聊天内容和未脱敏的个人信息。 + +Gin 请求日志中需要记录请求方法、路径、状态码、耗时和 Request ID。业务日志使用结构化字段,不使用字符串拼接。 + +## 13. 前端页面规划 + +### 管理端 + +- 场景列表 +- 创建/编辑场景 +- 自定义字段配置 +- SOP 列表 +- SOP 步骤编辑器 +- 节点条件配置 +- 知识卡管理 +- 审核发布中心 +- 执行数据看板 + +### 执行端 + +- 场景选择 +- SOP 当前节点 +- 客户信息录入 +- 标准话术展示 +- 分支选择 +- 转人工或转诊提醒 +- 执行结果和反馈 + +Ant Design Vue 主要使用 `Form`、`Table`、`Drawer`、`Modal`、`Steps`、`Tree`、`Tabs` 和 `Descriptions`。动态字段表单由场景字段配置生成,字段校验规则也由配置生成。 + +## 14. 安全与权限 + +- 用户登录后从 Token 中获取 `tenant_id`,不能信任前端传入的租户 ID。 +- 所有查询必须自动附加租户条件。 +- 场景、SOP、知识卡、执行记录都需要做资源级权限判断。 +- 发布、下线、审核和修改权限分离。 +- 已发布 SOP 版本只读,修改时复制为新的草稿版本。 +- 记录关键操作到 `audit_logs`。 +- 条件规则禁止执行任意代码。 + +## 15. 第一阶段开发顺序 + +### 第 1 阶段:基础服务 + +- Go 服务初始化 +- Zap 日志 +- 配置加载 +- MySQL 连接 +- 登录和租户权限 +- 前端构建和 go:embed + +### 第 2 阶段:场景配置 + +- 场景 CRUD +- 自定义字段 CRUD +- 场景权限 +- 场景状态管理 + +### 第 3 阶段:SOP 编排 + +- 节点管理 +- 连线和条件配置 +- 草稿保存 +- 流程校验 +- 版本复制 + +### 第 4 阶段:SOP 执行 + +- 创建执行实例 +- 节点展示 +- 回答提交 +- 条件跳转 +- 执行事件记录 + +### 第 5 阶段:审核和反馈 + +- 提交审核 +- 审核发布 +- 下线和回滚 +- 执行反馈 +- 基础数据统计 + +## 16. 构建和部署约定 + +首次初始化本地 MySQL 数据库时执行: + +```bash +cd codes +mysql -uroot -p < scripts/create-databases.sql +``` + +服务启动时会自动执行 `migrations/` 中的迁移,创建业务表并记录 `schema_migrations` 版本。 + +本地开发时前后端可以分别启动: + +```text +前端开发服务:codes/web +Go API 服务:codes +``` + +生产构建时先构建前端,再构建 Go 服务。最终产物只需要: + +- Go 二进制 +- 配置文件 +- MySQL 数据库 + +前端静态资源已经通过 `go:embed` 编译进入 Go 二进制,不需要单独部署前端静态目录。 + +## 17. 暂不实现的内容 + +- 文件上传和对象存储 +- AI 自动提炼话术 +- AI 客户模拟陪练 +- CRM、企业微信和客服系统集成 +- 多服务拆分 +- Redis 缓存 +- 消息队列 +- 复杂 BI 分析 + +这些内容等核心闭环验证成功后再加入,避免第一版架构过度复杂。