From 731ffdbc25e3ddf4fc98f5a27ad81ef2cd197562 Mon Sep 17 00:00:00 2001 From: Bingtan Lu Date: Sun, 15 Jan 2023 17:15:17 +0800 Subject: [PATCH 1/2] feat: Add backend for dashboard Signed-off-by: Bingtan Lu --- app.go | 21 +- go.mod | 14 ++ go.sum | 396 +++++++++++++++++++++++++++++++- interface.go | 3 + metrics.go | 60 +++++ web/backend/common.go | 36 +++ web/backend/event.go | 67 ++++++ web/backend/event_test.go | 23 ++ web/backend/server.go | 15 ++ web/dashboard/src/App.tsx | 27 +-- web/dashboard/src/Dashboard.tsx | 27 +++ web/simple/main.go | 21 +- web/web.go | 36 ++- web/web_test.go | 12 +- 14 files changed, 723 insertions(+), 35 deletions(-) create mode 100644 metrics.go create mode 100644 web/backend/common.go create mode 100644 web/backend/event.go create mode 100644 web/backend/event_test.go create mode 100644 web/backend/server.go create mode 100644 web/dashboard/src/Dashboard.tsx diff --git a/app.go b/app.go index 029bbce..c5c940e 100644 --- a/app.go +++ b/app.go @@ -11,6 +11,8 @@ import ( "github.com/google/go-github/v48/github" "github.com/shurcooL/githubv4" "github.com/spf13/pflag" + + "github.com/airconduct/go-probot/web" ) func NewGithubAPP() App[GithubClient] { @@ -18,6 +20,8 @@ func NewGithubAPP() App[GithubClient] { handlers: make(map[string]Handler), clients: make(map[int64]*github.Client), graphqlClients: make(map[int64]*githubv4.Client), + serveMux: http.NewServeMux(), + metrics: new(eventMetrics), } } @@ -36,6 +40,9 @@ type githubApp struct { graphqlURL string uploadURL string serverOpts ServerOptions + serveMux *http.ServeMux + + metrics *eventMetrics dataMutex sync.RWMutex hmacToken []byte @@ -82,6 +89,7 @@ func (app *githubApp) On(events ...WebhookEvent) handlerLoader { return fmt.Errorf("event type %s already exists", key) } app.handlers[key] = h + app.metrics.add(key, event.Type()) } return nil }) @@ -92,17 +100,21 @@ func (app *githubApp) Run(ctx context.Context) error { return err } - mux := http.NewServeMux() if app.serverOpts.Path == "" { app.serverOpts.Path = "/" } - mux.HandleFunc(app.serverOpts.Path, app.handle) - server := &http.Server{Addr: fmt.Sprintf("%s:%d", app.serverOpts.Address, app.serverOpts.Port), Handler: mux} + app.serveMux.HandleFunc(app.serverOpts.Path, app.handle) + web.RegisterHandler(app.serveMux, app.metrics) + server := &http.Server{Addr: fmt.Sprintf("%s:%d", app.serverOpts.Address, app.serverOpts.Port), Handler: app.serveMux} server.RegisterOnShutdown(app.shutdown) app.logger.Info("Kuilei hook is serving", "addr", server.Addr) return server.ListenAndServe() } +func (app *githubApp) ServeMux() *http.ServeMux { + return app.serveMux +} + func (app *githubApp) shutdown() {} func (app *githubApp) initialize() error { @@ -151,6 +163,9 @@ func (app *githubApp) handle(w http.ResponseWriter, r *http.Request) { return } app.logger.Info("Handle event", "event", event) + defer func() { + app.metrics.inc(handlerKey, event) + }() switch event { case "branch_protection_rule": diff --git a/go.mod b/go.mod index 4f09c64..78d57c8 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,11 @@ go 1.19 require ( github.com/bradleyfalzon/ghinstallation v1.1.1 + github.com/emicklei/go-restful-openapi/v2 v2.9.1 + github.com/emicklei/go-restful/v3 v3.10.1 github.com/go-logr/logr v1.2.3 github.com/go-logr/zapr v1.2.3 + github.com/go-openapi/spec v0.20.7 github.com/google/go-github/v48 v48.2.0 github.com/h2non/gock v1.2.0 github.com/onsi/ginkgo/v2 v2.7.0 @@ -17,16 +20,27 @@ require ( require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect + github.com/go-openapi/jsonpointer v0.19.5 // indirect + github.com/go-openapi/jsonreference v0.20.0 // indirect + github.com/go-openapi/swag v0.19.15 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/go-github/v29 v29.0.2 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/mailru/easyjson v0.7.6 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 // indirect go.uber.org/atomic v1.7.0 // indirect go.uber.org/multierr v1.6.0 // indirect golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect golang.org/x/net v0.4.0 // indirect + golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect golang.org/x/sys v0.3.0 // indirect golang.org/x/text v0.5.0 // indirect + google.golang.org/protobuf v1.28.1 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 6bb7dd1..f0fccfc 100644 --- a/go.sum +++ b/go.sum @@ -1,21 +1,122 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= +github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/bradleyfalzon/ghinstallation v1.1.1 h1:pmBXkxgM1WeF8QYvDLT5kuQiHMcmf+X015GI0KM/E3I= github.com/bradleyfalzon/ghinstallation v1.1.1/go.mod h1:vyCmHTciHx/uuyN82Zc3rXN3X2KTK8nUTCrTMwAhcug= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 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/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/emicklei/go-restful-openapi/v2 v2.9.1 h1:Of8B1rXdG81il5TTiSY+9Qrh7pYOr8aLdynHIpvo7fM= +github.com/emicklei/go-restful-openapi/v2 v2.9.1/go.mod h1:VKNgZyYviM1hnyrjD9RDzP2RuE94xTXxV+u6MGN4v4k= +github.com/emicklei/go-restful/v3 v3.7.3/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.10.1 h1:rc42Y5YTp7Am7CS630D7JmhRjq4UlEUuEKfrDac4bSQ= +github.com/emicklei/go-restful/v3 v3.10.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/zapr v1.2.3 h1:a9vnzlIBPQBBkeaR9IuMUfmVOrQlkoC4YfPoFkX3T7A= github.com/go-logr/zapr v1.2.3/go.mod h1:eIauM6P8qSvTw5o2ez6UEAfGjQKrxQTl5EoK+Qa2oG4= +github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= +github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= +github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= +github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= +github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= +github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v29 v29.0.2 h1:opYN6Wc7DOz7Ku3Oh4l7prmkOMwEcQxpFtxdU8N8Pts= @@ -25,17 +126,51 @@ github.com/google/go-github/v48 v48.2.0/go.mod h1:dDlehKBDo850ZPvCTK0sEqTCVWcrGl github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/h2non/gock v1.2.0 h1:K6ol8rfrRkUOefooBC8elXoaNGYkpp7y2qcxGG6BzUE= github.com/h2non/gock v1.2.0/go.mod h1:tNhoxHYW2W42cYkYb1WqzdbYIieALC99kpYr7rH/BQk= github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 h1:2VTzZjLZBgl62/EtslCrtky5vbi9dd7HrQPQIx6wqiw= github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +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/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +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/nbio/st v0.0.0-20140626010706-e9e8d9816f32 h1:W6apQkHrMkS0Muv8G/TipAy/FJl/rCYT0+EuS8+Z0z4= github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32/go.mod h1:9wM+0iRr9ahx58uYLpLIr5fm8diHn0JbqRycJi6w0Ms= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/onsi/ginkgo/v2 v2.7.0 h1:/XxtEV3I3Eif/HobnVx9YmJgk8ENdRsuUmM+fLCFNow= github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo= github.com/onsi/gomega v1.24.2 h1:J/tulyYK6JwBldPViHJReihxxZ+22FHs0piGjQAvoUE= @@ -45,6 +180,8 @@ 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/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/shurcooL/githubv4 v0.0.0-20221229060216-a8d4a561cc93 h1:JNy04upyaTaAGVlUFAL+60/1nphmJtuTu36tLhbaqXk= github.com/shurcooL/githubv4 v0.0.0-20221229060216-a8d4a561cc93/go.mod h1:hAF0iLZy4td2EX+/8Tw+4nodhlMrwN3HupfaXj3zkGo= github.com/shurcooL/graphql v0.0.0-20220606043923-3cf50f8a0a29 h1:B1PEwpArrNp4dkQrfxh/abbBAOZBVp0ds+fBEOUOqOc= @@ -54,8 +191,17 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 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.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= @@ -66,35 +212,275 @@ go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.4.0 h1:Q5QPcMlvfxFTAPV0+07Xz/MpK9NTXu2VDUuy0FeMfaU= golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/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= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/interface.go b/interface.go index a56fe25..24af4f2 100644 --- a/interface.go +++ b/interface.go @@ -2,6 +2,7 @@ package probot import ( "context" + "net/http" "github.com/go-logr/logr" "github.com/spf13/pflag" @@ -11,6 +12,8 @@ type App[GT GitClientType] interface { AddFlags(flags *pflag.FlagSet) On(events ...WebhookEvent) handlerLoader Run(ctx context.Context) error + + ServeMux() *http.ServeMux } type ProbotContext[GT GitClientType, PT gitEventType] interface { diff --git a/metrics.go b/metrics.go new file mode 100644 index 0000000..75ca92c --- /dev/null +++ b/metrics.go @@ -0,0 +1,60 @@ +package probot + +import ( + "context" + "sort" + "strings" + "sync" + + "github.com/airconduct/go-probot/web/backend" +) + +type eventMetrics struct { + events sync.Map +} + +var _ backend.EventSource = &eventMetrics{} + +func (m *eventMetrics) add(name, tp string) { + m.events.Store(name, backend.Event{ + Name: name, Type: backend.EventType(tp), + Metrics: backend.EventMetrics{}, + }) +} + +func (m *eventMetrics) inc(name, tp string) { + e, _ := m.events.LoadOrStore(name, backend.Event{ + Name: name, Type: backend.EventType(tp), + Metrics: backend.EventMetrics{}, + }) + event := e.(backend.Event) + event.Metrics.Count++ + m.events.Store(name, event) +} + +func (m *eventMetrics) ListEvent(ctx context.Context, opts backend.ListOptions) (backend.EventList, error) { + out := backend.EventList{} + m.events.Range(func(key, value any) bool { + out.Items = append(out.Items, value.(backend.Event)) + return true + }) + sort.Slice(out.Items, func(i, j int) bool { + return strings.Compare(out.Items[i].Name, out.Items[j].Name) < 0 + }) + if opts.Limit > 0 { + start := opts.Offset * opts.Limit + end := opts.Offset*opts.Limit + opts.Limit + if start < 0 { + start = 0 + } else if start > int64(len(out.Items)) { + start = int64(len(out.Items)) + } + if end < 0 { + end = 0 + } else if end > int64(len(out.Items)) { + end = int64(len(out.Items)) + } + out.Items = out.Items[start:end] + } + return out, nil +} diff --git a/web/backend/common.go b/web/backend/common.go new file mode 100644 index 0000000..cadb25d --- /dev/null +++ b/web/backend/common.go @@ -0,0 +1,36 @@ +package backend + +import ( + "strconv" + + "github.com/emicklei/go-restful/v3" +) + +func WithListOptionsParam(builder *restful.RouteBuilder) *restful.RouteBuilder { + return builder.Param(restful.QueryParameter("page_size", "The maximum number of return items")). + Param(restful.QueryParameter("page_num", "The first (page_size * page_num) items will be skipped.")). + Param(restful.QueryParameter("filter", "The returned items will be filtered according to the filter.")) +} + +func ListOptionsFromRequest(req *restful.Request) (opts ListOptions, err error) { + if raw := req.QueryParameter("page_size"); raw != "" { + opts.Limit, err = strconv.ParseInt(req.QueryParameter("page_size"), 10, 64) + if err != nil { + return + } + } + if raw := req.QueryParameter("page_num"); raw != "" { + opts.Offset, err = strconv.ParseInt(req.QueryParameter("page_num"), 10, 64) + if err != nil { + return + } + } + opts.Filter = req.QueryParameter("filter") + return +} + +type ListOptions struct { + Limit int64 + Offset int64 + Filter string +} diff --git a/web/backend/event.go b/web/backend/event.go new file mode 100644 index 0000000..8b012ad --- /dev/null +++ b/web/backend/event.go @@ -0,0 +1,67 @@ +package backend + +import ( + "context" + "net/http" + + restfulspec "github.com/emicklei/go-restful-openapi/v2" + "github.com/emicklei/go-restful/v3" +) + +func AddEventService(ws *restful.WebService, es EventSource) { + handler := &eventHandler{es: es} + tags := []string{"events"} + ws.Route(WithListOptionsParam( + ws.GET("/events").To(handler.ListEvent). + Metadata(restfulspec.KeyOpenAPITags, tags). + Doc("get all events"). + Returns(200, "OK", EventList{}), + )) +} + +type eventHandler struct { + es EventSource +} + +func (h *eventHandler) ListEvent(req *restful.Request, resp *restful.Response) { + ctx, cancel := context.WithCancel(req.Request.Context()) + defer cancel() + opts, err := ListOptionsFromRequest(req) + if err != nil { + resp.WriteError(http.StatusBadRequest, err) + return + } + + events, err := h.es.ListEvent(ctx, opts) + if err != nil { + resp.WriteError(http.StatusBadRequest, err) + return + } + if err := resp.WriteEntity(events); err != nil { + resp.WriteError(http.StatusBadRequest, err) + return + } +} + +type EventSource interface { + ListEvent(ctx context.Context, opts ListOptions) (EventList, error) +} + +type EventList struct { + Items []Event +} + +type Event struct { + // Name of event, it should be shown on dashboard + Name string `json:"name"` + // Type of event. All events can be grouped by the type. + Type EventType `json:"type"` + // Metrics is the metrical data about this event + Metrics EventMetrics `json:"metrics"` +} + +type EventType string + +type EventMetrics struct { + Count int64 `json:"count"` +} diff --git a/web/backend/event_test.go b/web/backend/event_test.go new file mode 100644 index 0000000..47a92f1 --- /dev/null +++ b/web/backend/event_test.go @@ -0,0 +1,23 @@ +package backend + +import ( + "encoding/json" + "fmt" + "testing" +) + +func TestEvent(t *testing.T) { + events := EventList{Items: []Event{ + {Name: "foo", Type: EventType("foo"), Metrics: EventMetrics{ + Count: 1, + }}, + {Name: "bar", Type: EventType("bar"), Metrics: EventMetrics{ + Count: 1, + }}, + }} + raw, err := json.Marshal(events) + if err != nil { + fmt.Println(err) + } + fmt.Println(string(raw)) +} diff --git a/web/backend/server.go b/web/backend/server.go new file mode 100644 index 0000000..1864127 --- /dev/null +++ b/web/backend/server.go @@ -0,0 +1,15 @@ +package backend + +import ( + restful "github.com/emicklei/go-restful/v3" +) + +func WebService(event EventSource) *restful.WebService { + ws := new(restful.WebService) + ws.Path("/api") + ws.Consumes(restful.MIME_JSON) + ws.Produces(restful.MIME_JSON) // you can specify this per route as well + + AddEventService(ws, event) + return ws +} diff --git a/web/dashboard/src/App.tsx b/web/dashboard/src/App.tsx index 56ee376..cb9d3ba 100644 --- a/web/dashboard/src/App.tsx +++ b/web/dashboard/src/App.tsx @@ -4,16 +4,16 @@ import './App.css' import { Routes, Route, Outlet, Link } from "react-router-dom"; -import { Menu, Card, Collapse, Space } from "antd"; +import { Menu } from "antd"; import { - DashboardOutlined, PullRequestOutlined, InfoCircleOutlined, + DashboardOutlined, CopyrightOutlined } from '@ant-design/icons'; import 'antd/dist/reset.css'; -const { Panel } = Collapse; import Welcome from './Welcome' import ErrorPage from './error-page' +import Dashboard from './Dashboard' export default function App() { return
@@ -58,27 +58,6 @@ function About() {
} -function Dashboard() { - const onChange = (key: string | string[]) => { - console.log(key); - }; - return
-

Event Listener

- -
issue
- }> - FOO -
-
pulls
- }> - BAR -
-
-
-} - function NoMatch() { return ( // diff --git a/web/dashboard/src/Dashboard.tsx b/web/dashboard/src/Dashboard.tsx new file mode 100644 index 0000000..d5118de --- /dev/null +++ b/web/dashboard/src/Dashboard.tsx @@ -0,0 +1,27 @@ +import { + PullRequestOutlined, InfoCircleOutlined, +} from '@ant-design/icons'; +import { Menu, Card, Collapse, Space } from "antd"; +const { Panel } = Collapse; + +export default function Dashboard() { + const onChange = (key: string | string[]) => { + console.log(key); + }; + + return
+

Event Listener

+ +
issue
+ }> + FOO +
+
pulls
+ }> + BAR +
+
+
+} \ No newline at end of file diff --git a/web/simple/main.go b/web/simple/main.go index 3250408..7cd4dda 100644 --- a/web/simple/main.go +++ b/web/simple/main.go @@ -1,14 +1,33 @@ package main import ( + "context" "fmt" "net/http" "github.com/airconduct/go-probot/web" + "github.com/airconduct/go-probot/web/backend" ) func main() { - web.RegisterHandler(http.DefaultServeMux) + web.RegisterHandler(http.DefaultServeMux, &fakeEventSource{}) fmt.Println("http://127.0.0.1:7771") http.ListenAndServe("127.0.0.1:7771", nil) } + +type fakeEventSource struct{} + +var _ backend.EventSource = &fakeEventSource{} + +func (es *fakeEventSource) ListEvent(ctx context.Context, opts backend.ListOptions) (backend.EventList, error) { + return backend.EventList{ + Items: []backend.Event{ + {Name: "foo", Type: backend.EventType("foo"), Metrics: backend.EventMetrics{ + Count: 1, + }}, + {Name: "bar", Type: backend.EventType("bar"), Metrics: backend.EventMetrics{ + Count: 2, + }}, + }, + }, nil +} diff --git a/web/web.go b/web/web.go index 894667a..a8b7482 100644 --- a/web/web.go +++ b/web/web.go @@ -4,6 +4,12 @@ import ( "embed" "io/fs" "net/http" + + restfulspec "github.com/emicklei/go-restful-openapi/v2" + "github.com/emicklei/go-restful/v3" + "github.com/go-openapi/spec" + + "github.com/airconduct/go-probot/web/backend" ) //go:embed dist/* @@ -24,7 +30,35 @@ func StaticHandler() http.Handler { }) } -func RegisterHandler(mux *http.ServeMux) { +func RegisterHandler( + mux *http.ServeMux, + event backend.EventSource, +) { mux.Handle("/dashboard/", StaticHandler()) mux.Handle("/assets/", http.FileServer(http.FS(Static()))) + + ws := backend.WebService(event) + c := restful.NewContainer() + c.ServeMux = mux + c.Add(ws) + + config := restfulspec.Config{ + WebServices: c.RegisteredWebServices(), // you control what services are visible + APIPath: "/api/apidocs.json", + PostBuildSwaggerObjectHandler: enrichSwaggerObject, + } + c.Add(restfulspec.NewOpenAPIService(config)) +} + +func enrichSwaggerObject(swo *spec.Swagger) { + swo.Info = &spec.Info{ + InfoProps: spec.InfoProps{ + Title: "ModelRegistry Service", + Description: "Resource for managing model registry", + Version: "0.0.1", + }, + } + swo.Tags = []spec.Tag{{TagProps: spec.TagProps{ + Name: "go-probot", + Description: "Dashboard backedn API"}}} } diff --git a/web/web_test.go b/web/web_test.go index 09a1d7f..7be4488 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -1,6 +1,7 @@ package web_test import ( + "context" "net/http" "net/http/httptest" @@ -8,6 +9,7 @@ import ( . "github.com/onsi/gomega" "github.com/airconduct/go-probot/web" + "github.com/airconduct/go-probot/web/backend" ) var _ = Describe("Web", func() { @@ -17,7 +19,7 @@ var _ = Describe("Web", func() { }) It("Handler should be registered", func() { mux := http.NewServeMux() - web.RegisterHandler(mux) + web.RegisterHandler(mux, &fakeEventSource{}) server := httptest.NewServer(mux) resp, err := http.Get(server.URL) @@ -37,3 +39,11 @@ var _ = Describe("Web", func() { Expect(resp.StatusCode).Should(Equal(200)) }) }) + +type fakeEventSource struct{} + +var _ backend.EventSource = &fakeEventSource{} + +func (es *fakeEventSource) ListEvent(ctx context.Context, opts backend.ListOptions) (backend.EventList, error) { + return backend.EventList{}, nil +} From c4bcea9580ec4ae758a8567f1f8496bde3e7cbe7 Mon Sep 17 00:00:00 2001 From: Bingtan Lu Date: Tue, 17 Jan 2023 18:05:13 +0800 Subject: [PATCH 2/2] feat(dashboard): Add event list on dashboard Signed-off-by: Bingtan Lu --- web/backend/event.go | 2 +- web/dashboard/package.json | 1 + web/dashboard/src/Dashboard.tsx | 65 ++++++--- web/dashboard/vite.config.ts | 8 ++ web/dist/assets/index-308a209e.js | 226 ++++++++++++++++++++++++++++++ web/dist/assets/index-3bcbcabd.js | 208 --------------------------- web/dist/index.html | 2 +- 7 files changed, 286 insertions(+), 226 deletions(-) create mode 100644 web/dist/assets/index-308a209e.js delete mode 100644 web/dist/assets/index-3bcbcabd.js diff --git a/web/backend/event.go b/web/backend/event.go index 8b012ad..46aa312 100644 --- a/web/backend/event.go +++ b/web/backend/event.go @@ -48,7 +48,7 @@ type EventSource interface { } type EventList struct { - Items []Event + Items []Event `json:"items"` } type Event struct { diff --git a/web/dashboard/package.json b/web/dashboard/package.json index 0d64068..a2e7d01 100644 --- a/web/dashboard/package.json +++ b/web/dashboard/package.json @@ -3,6 +3,7 @@ "private": true, "version": "0.0.0", "type": "module", + "proxy": "http://localhost:7771", "scripts": { "dev": "vite", "build": "tsc && vite build --outDir=../dist --emptyOutDir", diff --git a/web/dashboard/src/Dashboard.tsx b/web/dashboard/src/Dashboard.tsx index d5118de..86bd11b 100644 --- a/web/dashboard/src/Dashboard.tsx +++ b/web/dashboard/src/Dashboard.tsx @@ -1,27 +1,60 @@ +import { useState, useEffect } from 'react' + import { PullRequestOutlined, InfoCircleOutlined, } from '@ant-design/icons'; -import { Menu, Card, Collapse, Space } from "antd"; +import { Menu, Card, Collapse, Space, Spin } from "antd"; const { Panel } = Collapse; + +interface EventList { + items: Event[] +} + +interface Event { + name:string; + type:string; + metrics: { + count:number; + }; +} + export default function Dashboard() { - const onChange = (key: string | string[]) => { - console.log(key); + const zeroEventList : EventList = { + items: [], + } + const [eventList, setEventList] = useState(zeroEventList) + + const refresh = async () => { + const response = await fetch("/api/events") + const data = await response.json() as EventList + setEventList((eventList)=>data) + }; + + useEffect(()=>{ + const intervalId = setInterval(() => { + refresh() + }, 1000 * 5) // in milliseconds + return () => clearInterval(intervalId) + }) + + const onChange = async (key: string | string[]) => { + // TODO: add some actions here }; return

Event Listener

- -
issue
- }> - FOO -
-
pulls
- }> - BAR -
-
+ {eventList.items.length==0? + {await refresh()}}>Loading... : + + {eventList.items.map((event, idx)=>{ + return {event.name} + }> +

Count: {event.metrics.count}

+
+ })} +
}
-} \ No newline at end of file +} + diff --git a/web/dashboard/vite.config.ts b/web/dashboard/vite.config.ts index 5a33944..ba5a265 100644 --- a/web/dashboard/vite.config.ts +++ b/web/dashboard/vite.config.ts @@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + server: { + proxy: { + '/api': { + target: "http://127.0.0.1:7771", + changeOrigin: true + } + } + } }) diff --git a/web/dist/assets/index-308a209e.js b/web/dist/assets/index-308a209e.js new file mode 100644 index 0000000..d2e69c9 --- /dev/null +++ b/web/dist/assets/index-308a209e.js @@ -0,0 +1,226 @@ +function Nb(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ql={},_b={get exports(){return Ql},set exports(e){Ql=e}},zs={},c={},Ab={get exports(){return c},set exports(e){c=e}},fe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Na=Symbol.for("react.element"),Lb=Symbol.for("react.portal"),Fb=Symbol.for("react.fragment"),zb=Symbol.for("react.strict_mode"),Db=Symbol.for("react.profiler"),jb=Symbol.for("react.provider"),Hb=Symbol.for("react.context"),Bb=Symbol.for("react.forward_ref"),Vb=Symbol.for("react.suspense"),Wb=Symbol.for("react.memo"),Ub=Symbol.for("react.lazy"),Dp=Symbol.iterator;function Kb(e){return e===null||typeof e!="object"?null:(e=Dp&&e[Dp]||e["@@iterator"],typeof e=="function"?e:null)}var Fh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zh=Object.assign,Dh={};function uo(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||Fh}uo.prototype.isReactComponent={};uo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};uo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jh(){}jh.prototype=uo.prototype;function md(e,t,n){this.props=e,this.context=t,this.refs=Dh,this.updater=n||Fh}var hd=md.prototype=new jh;hd.constructor=md;zh(hd,uo.prototype);hd.isPureReactComponent=!0;var jp=Array.isArray,Hh=Object.prototype.hasOwnProperty,gd={current:null},Bh={key:!0,ref:!0,__self:!0,__source:!0};function Vh(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Hh.call(t,r)&&!Bh.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1>>1,z=I[U];if(0>>1;Ui(Y,j))qi(ee,Y)?(I[U]=ee,I[q]=j,U=q):(I[U]=Y,I[X]=j,U=X);else if(qi(ee,j))I[U]=ee,I[q]=j,U=q;else break e}}return D}function i(I,D){var j=I.sortIndex-D.sortIndex;return j!==0?j:I.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],f=1,d=null,p=3,h=!1,g=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(I){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=I)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function S(I){if(b=!1,y(I),!g)if(n(s)!==null)g=!0,F(x);else{var D=n(u);D!==null&&L(S,D.startTime-I)}}function x(I,D){g=!1,b&&(b=!1,m($),$=-1),h=!0;var j=p;try{for(y(D),d=n(s);d!==null&&(!(d.expirationTime>D)||I&&!R());){var U=d.callback;if(typeof U=="function"){d.callback=null,p=d.priorityLevel;var z=U(d.expirationTime<=D);D=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(s)&&r(s),y(D)}else r(s);d=n(s)}if(d!==null)var B=!0;else{var X=n(u);X!==null&&L(S,X.startTime-D),B=!1}return B}finally{d=null,p=j,h=!1}}var C=!1,E=null,$=-1,M=5,k=-1;function R(){return!(e.unstable_now()-kI||125U?(I.sortIndex=j,t(u,I),n(s)===null&&I===n(u)&&(b?(m($),$=-1):b=!0,L(S,j-U))):(I.sortIndex=z,t(s,I),g||h||(g=!0,F(x))),I},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(I){var D=p;return function(){var j=p;p=D;try{return I.apply(this,arguments)}finally{p=j}}}})(Uh);(function(e){e.exports=Uh})(iS);/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kh=c,Ut=Mc;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ic=Object.prototype.hasOwnProperty,oS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Bp={},Vp={};function aS(e){return Ic.call(Vp,e)?!0:Ic.call(Bp,e)?!1:oS.test(e)?Vp[e]=!0:(Bp[e]=!0,!1)}function lS(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sS(e,t,n,r){if(t===null||typeof t>"u"||lS(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dt[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var bd=/[\-:]([a-z])/g;function Sd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(bd,Sd);dt[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(bd,Sd);dt[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(bd,Sd);dt[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function wd(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2l||i[a]!==o[l]){var s=` +`+i[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Nu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ao(e):""}function uS(e){switch(e.tag){case 5:return Ao(e.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 2:case 15:return e=_u(e.type,!1),e;case 11:return e=_u(e.type.render,!1),e;case 1:return e=_u(e.type,!0),e;default:return""}}function Lc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case Ri:return"Portal";case Nc:return"Profiler";case Cd:return"StrictMode";case _c:return"Suspense";case Ac:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qh:return(e.displayName||"Context")+".Consumer";case Xh:return(e._context.displayName||"Context")+".Provider";case xd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ed:return t=e.displayName||null,t!==null?t:Lc(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return Lc(e(t))}catch{}}return null}function cS(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lc(t);case 8:return t===Cd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Rr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fS(e){var t=Qh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Za(e){e._valueTracker||(e._valueTracker=fS(e))}function Zh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Fc(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Up(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jh(e,t){t=t.checked,t!=null&&wd(e,"checked",t,!1)}function zc(e,t){Jh(e,t);var n=Rr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dc(e,t.type,Rr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dc(e,t,n){(t!=="number"||Jl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function Vi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function la(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dS=["Webkit","ms","Moz","O"];Object.keys(Vo).forEach(function(e){dS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vo[t]=Vo[e]})});function rg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vo.hasOwnProperty(e)&&Vo[e]?(""+t).trim():t+"px"}function ig(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=rg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pS=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bc(e,t){if(t){if(pS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Vc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wc=null;function $d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uc=null,Wi=null,Ui=null;function qp(e){if(e=La(e)){if(typeof Uc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Vs(t),Uc(e.stateNode,e.type,t))}}function og(e){Wi?Ui?Ui.push(e):Ui=[e]:Wi=e}function ag(){if(Wi){var e=Wi,t=Ui;if(Ui=Wi=null,qp(e),t)for(e=0;e>>=0,e===0?32:31-(ES(e)/$S|0)|0}var el=64,tl=4194304;function Fo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=Fo(l):(o&=a,o!==0&&(r=Fo(o)))}else a=n&~i,a!==0?r=Fo(a):o!==0&&(r=Fo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function _a(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-gn(t),e[t]=n}function RS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Uo),iv=String.fromCharCode(32),ov=!1;function Pg(e,t){switch(e){case"keyup":return rw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Og(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mi=!1;function ow(e,t){switch(e){case"compositionend":return Og(t);case"keypress":return t.which!==32?null:(ov=!0,iv);case"textInput":return e=t.data,e===iv&&ov?null:e;default:return null}}function aw(e,t){if(Mi)return e==="compositionend"||!Nd&&Pg(e,t)?(e=Eg(),_l=kd=dr=null,Mi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=uv(n)}}function Mg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ig(){for(var e=window,t=Jl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jl(e.document)}return t}function _d(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mw(e){var t=Ig(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mg(n.ownerDocument.documentElement,n)){if(r!==null&&_d(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=cv(n,o);var a=cv(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ii=null,Qc=null,Go=null,Zc=!1;function fv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zc||Ii==null||Ii!==Jl(r)||(r=Ii,"selectionStart"in r&&_d(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Go&&pa(Go,r)||(Go=r,r=as(Qc,"onSelect"),0Ai||(e.current=of[Ai],of[Ai]=null,Ai--)}function $e(e,t){Ai++,of[Ai]=e.current,e.current=t}var kr={},gt=Ir(kr),Mt=Ir(!1),ii=kr;function Zi(e,t){var n=e.type.contextTypes;if(!n)return kr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function ss(){Te(Mt),Te(gt)}function yv(e,t,n){if(gt.current!==kr)throw Error(H(168));$e(gt,t),$e(Mt,n)}function Hg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,cS(e)||"Unknown",i));return Fe({},n,r)}function us(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kr,ii=gt.current,$e(gt,e),$e(Mt,Mt.current),!0}function bv(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Hg(e,t,ii),r.__reactInternalMemoizedMergedChildContext=e,Te(Mt),Te(gt),$e(gt,e)):Te(Mt),$e(Mt,n)}var Vn=null,Ws=!1,Xu=!1;function Bg(e){Vn===null?Vn=[e]:Vn.push(e)}function Ow(e){Ws=!0,Bg(e)}function Nr(){if(!Xu&&Vn!==null){Xu=!0;var e=0,t=be;try{var n=Vn;for(be=1;e>=a,i-=a,Un=1<<32-gn(t)+i|n<$?(M=E,E=null):M=E.sibling;var k=p(m,E,y[$],S);if(k===null){E===null&&(E=M);break}e&&E&&k.alternate===null&&t(m,E),v=o(k,v,$),C===null?x=k:C.sibling=k,C=k,E=M}if($===y.length)return n(m,E),Me&&Wr(m,$),x;if(E===null){for(;$$?(M=E,E=null):M=E.sibling;var R=p(m,E,k.value,S);if(R===null){E===null&&(E=M);break}e&&E&&R.alternate===null&&t(m,E),v=o(R,v,$),C===null?x=R:C.sibling=R,C=R,E=M}if(k.done)return n(m,E),Me&&Wr(m,$),x;if(E===null){for(;!k.done;$++,k=y.next())k=d(m,k.value,S),k!==null&&(v=o(k,v,$),C===null?x=k:C.sibling=k,C=k);return Me&&Wr(m,$),x}for(E=r(m,E);!k.done;$++,k=y.next())k=h(E,m,$,k.value,S),k!==null&&(e&&k.alternate!==null&&E.delete(k.key===null?$:k.key),v=o(k,v,$),C===null?x=k:C.sibling=k,C=k);return e&&E.forEach(function(O){return t(m,O)}),Me&&Wr(m,$),x}function w(m,v,y,S){if(typeof y=="object"&&y!==null&&y.type===ki&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Qa:e:{for(var x=y.key,C=v;C!==null;){if(C.key===x){if(x=y.type,x===ki){if(C.tag===7){n(m,C.sibling),v=i(C,y.props.children),v.return=m,m=v;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===lr&&Pv(x)===C.type){n(m,C.sibling),v=i(C,y.props),v.ref=To(m,C,y),v.return=m,m=v;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===ki?(v=ti(y.props.children,m.mode,S,y.key),v.return=m,m=v):(S=Bl(y.type,y.key,y.props,null,m.mode,S),S.ref=To(m,v,y),S.return=m,m=S)}return a(m);case Ri:e:{for(C=y.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===y.containerInfo&&v.stateNode.implementation===y.implementation){n(m,v.sibling),v=i(v,y.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=nc(y,m.mode,S),v.return=m,m=v}return a(m);case lr:return C=y._init,w(m,v,C(y._payload),S)}if(Lo(y))return g(m,v,y,S);if(xo(y))return b(m,v,y,S);sl(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,y),v.return=m,m=v):(n(m,v),v=tc(y,m.mode,S),v.return=m,m=v),a(m)):n(m,v)}return w}var eo=Yg(!0),Qg=Yg(!1),Fa={},An=Ir(Fa),ga=Ir(Fa),ya=Ir(Fa);function qr(e){if(e===Fa)throw Error(H(174));return e}function Vd(e,t){switch($e(ya,t),$e(ga,e),$e(An,Fa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hc(t,e)}Te(An),$e(An,t)}function to(){Te(An),Te(ga),Te(ya)}function Zg(e){qr(ya.current);var t=qr(An.current),n=Hc(t,e.type);t!==n&&($e(ga,e),$e(An,n))}function Wd(e){ga.current===e&&(Te(An),Te(ga))}var Ae=Ir(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qu=[];function Ud(){for(var e=0;en?n:4,e(!0);var r=Yu.transition;Yu.transition={};try{e(!1),t()}finally{be=n,Yu.transition=r}}function v0(){return un().memoizedState}function Mw(e,t,n){var r=$r(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},m0(e))h0(t,n);else if(n=Kg(e,t,n,r),n!==null){var i=Ct();yn(n,e,r,i),g0(n,t,r)}}function Iw(e,t,n){var r=$r(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(m0(e))h0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Sn(l,a)){var s=t.interleaved;s===null?(i.next=i,Hd(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=Kg(e,t,i,r),n!==null&&(i=Ct(),yn(n,e,r,i),g0(n,t,r))}}function m0(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function h0(e,t){Xo=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function g0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Od(e,n)}}var gs={readContext:sn,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},Nw={readContext:sn,useCallback:function(e,t){return Mn().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:Tv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zl(4194308,4,u0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zl(4194308,4,e,t)},useInsertionEffect:function(e,t){return zl(4,2,e,t)},useMemo:function(e,t){var n=Mn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Mw.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Mn();return e={current:e},t.memoizedState=e},useState:Ov,useDebugValue:Yd,useDeferredValue:function(e){return Mn().memoizedState=e},useTransition:function(){var e=Ov(!1),t=e[0];return e=kw.bind(null,e[1]),Mn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Mn();if(Me){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),it===null)throw Error(H(349));ai&30||t0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Tv(r0.bind(null,r,o,e),[e]),r.flags|=2048,wa(9,n0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Mn(),t=it.identifierPrefix;if(Me){var n=Kn,r=Un;n=(r&~(1<<32-gn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ba++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[In]=t,e[ha]=r,P0(e,t,!1,!1),t.stateNode=e;e:{switch(a=Vc(n,r),n){case"dialog":Pe("cancel",e),Pe("close",e),i=r;break;case"iframe":case"object":case"embed":Pe("load",e),i=r;break;case"video":case"audio":for(i=0;iro&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304)}else{if(!r)if(e=ms(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Me)return mt(t),null}else 2*Ve()-o.renderingStartTime>ro&&n!==1073741824&&(t.flags|=128,r=!0,Ro(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,n=Ae.current,$e(Ae,r?n&1|2:n&1),t):(mt(t),null);case 22:case 23:return np(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ht&1073741824&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function Hw(e,t){switch(Ld(t),t.tag){case 1:return It(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return to(),Te(Mt),Te(gt),Ud(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wd(t),null;case 13:if(Te(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Ae),null;case 4:return to(),null;case 10:return jd(t.type._context),null;case 22:case 23:return np(),null;case 24:return null;default:return null}}var cl=!1,ht=!1,Bw=typeof WeakSet=="function"?WeakSet:Set,G=null;function Di(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function gf(e,t,n){try{n()}catch(r){je(e,t,r)}}var Fv=!1;function Vw(e,t){if(Jc=is,e=Ig(),_d(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(l=a+i),d!==o||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++f===r&&(s=a),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},is=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var b=g.memoizedProps,w=g.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:vn(t.type,b),w);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(S){je(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return g=Fv,Fv=!1,g}function qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&gf(t,n,o)}i=i.next}while(i!==r)}}function Gs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function R0(e){var t=e.alternate;t!==null&&(e.alternate=null,R0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[In],delete t[ha],delete t[rf],delete t[$w],delete t[Pw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function k0(e){return e.tag===5||e.tag===3||e.tag===4}function zv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||k0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ls));else if(r!==4&&(e=e.child,e!==null))for(bf(e,t,n),e=e.sibling;e!==null;)bf(e,t,n),e=e.sibling}function Sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sf(e,t,n),e=e.sibling;e!==null;)Sf(e,t,n),e=e.sibling}var ut=null,mn=!1;function or(e,t,n){for(n=n.child;n!==null;)M0(e,t,n),n=n.sibling}function M0(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Ds,n)}catch{}switch(n.tag){case 5:ht||Di(n,t);case 6:var r=ut,i=mn;ut=null,or(e,t,n),ut=r,mn=i,ut!==null&&(mn?(e=ut,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ut.removeChild(n.stateNode));break;case 18:ut!==null&&(mn?(e=ut,n=n.stateNode,e.nodeType===8?Gu(e.parentNode,n):e.nodeType===1&&Gu(e,n),fa(e)):Gu(ut,n.stateNode));break;case 4:r=ut,i=mn,ut=n.stateNode.containerInfo,mn=!0,or(e,t,n),ut=r,mn=i;break;case 0:case 11:case 14:case 15:if(!ht&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&gf(n,t,a),i=i.next}while(i!==r)}or(e,t,n);break;case 1:if(!ht&&(Di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){je(n,t,l)}or(e,t,n);break;case 21:or(e,t,n);break;case 22:n.mode&1?(ht=(r=ht)||n.memoizedState!==null,or(e,t,n),ht=r):or(e,t,n);break;default:or(e,t,n)}}function Dv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Bw),t.forEach(function(r){var i=Zw.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function dn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ve()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uw(r/1960))-r,10e?16:e,pr===null)var r=!1;else{if(e=pr,pr=null,Ss=0,pe&6)throw Error(H(331));var i=pe;for(pe|=4,G=e.current;G!==null;){var o=G,a=o.child;if(G.flags&16){var l=o.deletions;if(l!==null){for(var s=0;sVe()-ep?ei(e,0):Jd|=n),Nt(e,t)}function D0(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=Ct();e=Qn(e,t),e!==null&&(_a(e,t,n),Nt(e,n))}function Qw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),D0(e,n)}function Zw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),D0(e,n)}var j0;j0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)kt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return kt=!1,Dw(e,t,n);kt=!!(e.flags&131072)}else kt=!1,Me&&t.flags&1048576&&Vg(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Dl(e,t),e=t.pendingProps;var i=Zi(t,gt.current);Gi(t,n),i=Gd(null,t,r,e,i,n);var o=Xd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(o=!0,us(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bd(t),i.updater=Us,t.stateNode=i,i._reactInternals=t,cf(t,r,e,n),t=pf(null,t,r,!0,o,n)):(t.tag=0,Me&&o&&Ad(t),St(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Dl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=eC(r),e=vn(r,e),i){case 0:t=df(null,t,r,e,n);break e;case 1:t=_v(null,t,r,e,n);break e;case 11:t=Iv(null,t,r,e,n);break e;case 14:t=Nv(null,t,r,vn(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vn(r,i),df(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vn(r,i),_v(e,t,r,i,n);case 3:e:{if(x0(t),e===null)throw Error(H(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Gg(e,t),vs(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=no(Error(H(423)),t),t=Av(e,t,r,n,i);break e}else if(r!==i){i=no(Error(H(424)),t),t=Av(e,t,r,n,i);break e}else for(Bt=Cr(t.stateNode.containerInfo.firstChild),Wt=t,Me=!0,hn=null,n=Qg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ji(),r===i){t=Zn(e,t,n);break e}St(e,t,r,n)}t=t.child}return t;case 5:return Zg(t),e===null&&lf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,tf(r,i)?a=null:o!==null&&tf(r,o)&&(t.flags|=32),C0(e,t),St(e,t,a,n),t.child;case 6:return e===null&&lf(t),null;case 13:return E0(e,t,n);case 4:return Vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):St(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vn(r,i),Iv(e,t,r,i,n);case 7:return St(e,t,t.pendingProps,n),t.child;case 8:return St(e,t,t.pendingProps.children,n),t.child;case 12:return St(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,$e(ds,r._currentValue),r._currentValue=a,o!==null)if(Sn(o.value,a)){if(o.children===i.children&&!Mt.current){t=Zn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Gn(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),sf(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(H(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),sf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}St(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gi(t,n),i=sn(i),r=r(i),t.flags|=1,St(e,t,r,n),t.child;case 14:return r=t.type,i=vn(r,t.pendingProps),i=vn(r.type,i),Nv(e,t,r,i,n);case 15:return S0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vn(r,i),Dl(e,t),t.tag=1,It(r)?(e=!0,us(t)):e=!1,Gi(t,n),qg(t,r,i),cf(t,r,i,n),pf(null,t,r,!0,e,n);case 19:return $0(e,t,n);case 22:return w0(e,t,n)}throw Error(H(156,t.tag))};function H0(e,t){return pg(e,t)}function Jw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,n,r){return new Jw(e,t,n,r)}function ip(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eC(e){if(typeof e=="function")return ip(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xd)return 11;if(e===Ed)return 14}return 2}function Pr(e,t){var n=e.alternate;return n===null?(n=rn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bl(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")ip(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ki:return ti(n.children,i,o,t);case Cd:a=8,i|=8;break;case Nc:return e=rn(12,n,t,i|2),e.elementType=Nc,e.lanes=o,e;case _c:return e=rn(13,n,t,i),e.elementType=_c,e.lanes=o,e;case Ac:return e=rn(19,n,t,i),e.elementType=Ac,e.lanes=o,e;case Yh:return qs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xh:a=10;break e;case qh:a=9;break e;case xd:a=11;break e;case Ed:a=14;break e;case lr:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=rn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ti(e,t,n,r){return e=rn(7,e,r,t),e.lanes=n,e}function qs(e,t,n,r){return e=rn(22,e,r,t),e.elementType=Yh,e.lanes=n,e.stateNode={isHidden:!1},e}function tc(e,t,n){return e=rn(6,e,null,t),e.lanes=n,e}function nc(e,t,n){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lu(0),this.expirationTimes=Lu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function op(e,t,n,r,i,o,a,l,s){return e=new tC(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bd(o),e}function nC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Kt})(rS);const xa=Lh(oa);var Gv=oa;kc.createRoot=Gv.createRoot,kc.hydrateRoot=Gv.hydrateRoot;const lC="/assets/robot-31049626.svg";/** + * @remix-run/router v1.2.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function uC(){return Math.random().toString(36).substr(2,8)}function qv(e){return{usr:e.state,key:e.key}}function $f(e,t,n,r){return n===void 0&&(n=null),xs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?po(t):t,{state:n,key:t&&t.key||r||uC()})}function Ea(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function po(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function cC(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Ea(e);return et(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function fC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=vr.Pop,s=null;function u(){l=vr.Pop,s&&s({action:l,location:p.location})}function f(h,g){l=vr.Push;let b=$f(p.location,h,g);n&&n(b,h);let w=qv(b),m=p.createHref(b);try{a.pushState(w,"",m)}catch{i.location.assign(m)}o&&s&&s({action:l,location:p.location})}function d(h,g){l=vr.Replace;let b=$f(p.location,h,g);n&&n(b,h);let w=qv(b),m=p.createHref(b);a.replaceState(w,"",m),o&&s&&s({action:l,location:p.location})}let p={get action(){return l},get location(){return e(i,a)},listen(h){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Xv,u),s=h,()=>{i.removeEventListener(Xv,u),s=null}},createHref(h){return t(i,h)},encodeLocation(h){let g=cC(typeof h=="string"?h:Ea(h));return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:d,go(h){return a.go(h)}};return p}var Yv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yv||(Yv={}));function dC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?po(t):t,i=G0(r.pathname||"/",n);if(i==null)return null;let o=U0(e);pC(o);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};s.relativePath.startsWith("/")&&(et(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Or([r,s.relativePath]),f=n.concat(s);o.children&&o.children.length>0&&(et(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),U0(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:SC(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let s of K0(o.path))i(o,a,s)}),t}function K0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=K0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?o:[o,s].join("/"))),i&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function pC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vC=/^:\w+$/,mC=3,hC=2,gC=1,yC=10,bC=-2,Qv=e=>e==="*";function SC(e,t){let n=e.split("/"),r=n.length;return n.some(Qv)&&(r+=bC),t&&(r+=hC),n.filter(i=>!Qv(i)).reduce((i,o)=>i+(vC.test(o)?mC:o===""?gC:yC),r)}function wC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function CC(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a{if(f==="*"){let p=l[d]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return u[f]=PC(l[d]||"",f),u},{}),pathname:o,pathnameBase:a,pattern:e}}function EC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),up(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function $C(e){try{return decodeURI(e)}catch(t){return up(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function PC(e,t){try{return decodeURIComponent(e)}catch(n){return up(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function G0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function up(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function OC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?po(e):e;return{pathname:n?n.startsWith("/")?n:TC(n,t):t,search:kC(r),hash:MC(i)}}function TC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function rc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function X0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function q0(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=po(e):(i=xs({},e),et(!i.pathname||!i.pathname.includes("?"),rc("?","pathname","search",i)),et(!i.pathname||!i.pathname.includes("#"),rc("#","pathname","hash",i)),et(!i.search||!i.search.includes("#"),rc("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(r||a==null)l=n;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}l=d>=0?t[d]:"/"}let s=OC(i,l),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const Or=e=>e.join("/").replace(/\/\/+/g,"/"),RC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class IC{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function NC(e){return e instanceof IC}const _C=["post","put","patch","delete"];[..._C];/** + * React Router v6.6.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.value=r,i.getSnapshot=t,ic(i)&&o({inst:i})},[e,r,t]),zC(()=>(ic(i)&&o({inst:i}),e(()=>{ic(i)&&o({inst:i})})),[e]),jC(r),r}function ic(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!LC(n,r)}catch{return!0}}function BC(e,t,n){return t()}const VC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WC=!VC,UC=WC?BC:HC;"useSyncExternalStore"in Zl&&(e=>e.useSyncExternalStore)(Zl);const KC=c.createContext(null),GC=c.createContext(null),Y0=c.createContext(null),eu=c.createContext(null),tu=c.createContext(null),fi=c.createContext({outlet:null,matches:[]}),Q0=c.createContext(null);function XC(e,t){let{relative:n}=t===void 0?{}:t;za()||et(!1);let{basename:r,navigator:i}=c.useContext(eu),{hash:o,pathname:a,search:l}=Z0(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:Or([r,a])),i.createHref({pathname:s,search:l,hash:o})}function za(){return c.useContext(tu)!=null}function nu(){return za()||et(!1),c.useContext(tu).location}function qC(){za()||et(!1);let{basename:e,navigator:t}=c.useContext(eu),{matches:n}=c.useContext(fi),{pathname:r}=nu(),i=JSON.stringify(X0(n).map(l=>l.pathnameBase)),o=c.useRef(!1);return c.useEffect(()=>{o.current=!0}),c.useCallback(function(l,s){if(s===void 0&&(s={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let u=q0(l,JSON.parse(i),r,s.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Or([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state,s)},[e,t,i,r])}const YC=c.createContext(null);function QC(e){let t=c.useContext(fi).outlet;return t&&c.createElement(YC.Provider,{value:e},t)}function Z0(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=c.useContext(fi),{pathname:i}=nu(),o=JSON.stringify(X0(r).map(a=>a.pathnameBase));return c.useMemo(()=>q0(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function ZC(e,t){za()||et(!1);let{navigator:n}=c.useContext(eu),r=c.useContext(Y0),{matches:i}=c.useContext(fi),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let s=nu(),u;if(t){var f;let b=typeof t=="string"?po(t):t;l==="/"||(f=b.pathname)!=null&&f.startsWith(l)||et(!1),u=b}else u=s;let d=u.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",h=dC(e,{pathname:p}),g=nx(h&&h.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Or([l,n.encodeLocation?n.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Or([l,n.encodeLocation?n.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,r||void 0);return t&&g?c.createElement(tu.Provider,{value:{location:Pf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:vr.Pop}},g):g}function JC(){let e=J0(),t=NC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unhandled Thrown Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:i},n):null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:o},"errorElement")," props on ",c.createElement("code",{style:o},"")))}class ex extends c.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?c.createElement(fi.Provider,{value:this.props.routeContext},c.createElement(Q0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tx(e){let{routeContext:t,match:n,children:r}=e,i=c.useContext(KC);return i&&n.route.errorElement&&(i._deepestRenderedBoundaryId=n.route.id),c.createElement(fi.Provider,{value:t},r)}function nx(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||et(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,l)=>{let s=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||c.createElement(JC,null):null,f=t.concat(r.slice(0,l+1)),d=()=>c.createElement(tx,{match:a,routeContext:{outlet:o,matches:f}},s?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||l===0)?c.createElement(ex,{location:n.location,component:u,error:s,children:d(),routeContext:{outlet:null,matches:f}}):d()},null)}var Zv;(function(e){e.UseRevalidator="useRevalidator"})(Zv||(Zv={}));var Es;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Es||(Es={}));function rx(e){let t=c.useContext(Y0);return t||et(!1),t}function ix(e){let t=c.useContext(fi);return t||et(!1),t}function ox(e){let t=ix(),n=t.matches[t.matches.length-1];return n.route.id||et(!1),n.route.id}function J0(){var e;let t=c.useContext(Q0),n=rx(Es.UseRouteError),r=ox(Es.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function ax(e){return QC(e.context)}function Do(e){et(!1)}function lx(e){let{basename:t="/",children:n=null,location:r,navigationType:i=vr.Pop,navigator:o,static:a=!1}=e;za()&&et(!1);let l=t.replace(/^\/*/,"/"),s=c.useMemo(()=>({basename:l,navigator:o,static:a}),[l,o,a]);typeof r=="string"&&(r=po(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:h="default"}=r,g=c.useMemo(()=>{let b=G0(u,l);return b==null?null:{pathname:b,search:f,hash:d,state:p,key:h}},[l,u,f,d,p,h]);return g==null?null:c.createElement(eu.Provider,{value:s},c.createElement(tu.Provider,{children:n,value:{location:g,navigationType:i}}))}function sx(e){let{children:t,location:n}=e,r=c.useContext(GC),i=r&&!t?r.router.routes:Of(t);return ZC(i,n)}var Jv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Jv||(Jv={}));new Promise(()=>{});function Of(e,t){t===void 0&&(t=[]);let n=[];return c.Children.forEach(e,(r,i)=>{if(!c.isValidElement(r))return;if(r.type===c.Fragment){n.push.apply(n,Of(r.props.children,t));return}r.type!==Do&&et(!1),!r.props.index||!r.props.children||et(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=Of(r.props.children,o)),n.push(a)}),n}/** + * React Router DOM v6.6.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function cx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fx(e,t){return e.button===0&&(!t||t==="_self")&&!cx(e)}const dx=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function px(e){let{basename:t,children:n,window:r}=e,i=c.useRef();i.current==null&&(i.current=sC({window:r,v5Compat:!0}));let o=i.current,[a,l]=c.useState({action:o.action,location:o.location});return c.useLayoutEffect(()=>o.listen(l),[o]),c.createElement(lx,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const Rf=c.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:s,to:u,preventScrollReset:f}=t,d=ux(t,dx),p=XC(u,{relative:i}),h=vx(u,{replace:a,state:l,target:s,preventScrollReset:f,relative:i});function g(b){r&&r(b),b.defaultPrevented||h(b)}return c.createElement("a",Tf({},d,{href:p,onClick:o?r:g,ref:n,target:s}))});var em;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(em||(em={}));var tm;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tm||(tm={}));function vx(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,l=qC(),s=nu(),u=Z0(e,{relative:a});return c.useCallback(f=>{if(fx(f,n)){f.preventDefault();let d=r!==void 0?r:Ea(s)===Ea(u);l(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[s,l,u,r,i,n,e,o,a])}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(e)}function mx(e,t){if(ge(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ge(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ey(e){var t=mx(e,"string");return ge(t)==="symbol"?t:String(t)}function nm(e,t){for(var n=0;n"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 ie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gx(e,t){if(t&&(ge(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}function pi(e){var t=hx();return function(){var r=$s(e),i;if(t){var o=$s(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gx(this,i)}}var Mf={},yx={get exports(){return Mf},set exports(e){Mf=e}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Oe.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(wn(r)):Ps.isFragment(r)&&r.props?n=n.concat(wn(r.props.children,t)):n.push(r))}),n}var rm={};function $x(e,t){}function Px(e,t,n){!t&&!rm[n]&&(e(!1,n),rm[n]=!0)}function ln(e,t){Px($x,e,t)}function A(e,t,n){return t=ey(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t0},e.prototype.connect_=function(){!If||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Nx?(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(){!If||!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(t){var n=t.propertyName,r=n===void 0?"":n,i=Ix.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),oy=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof io(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Bx(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof io(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Vx(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ly=typeof WeakMap<"u"?new WeakMap:new iy,sy=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=_x.getInstance(),r=new Wx(t,n,this);ly.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){sy.prototype[e]=function(){var t;return(t=ly.get(this))[e].apply(t,arguments)}});var uy=function(){return typeof Ts.ResizeObserver<"u"?Ts.ResizeObserver:sy}(),mr=new Map;function Ux(e){e.forEach(function(t){var n,r=t.target;(n=mr.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var cy=new uy(Ux);function Kx(e,t){mr.has(e)||(mr.set(e,new Set),cy.observe(e)),mr.get(e).add(t)}function Gx(e,t){mr.has(e)&&(mr.get(e).delete(t),mr.get(e).size||(cy.unobserve(e),mr.delete(e)))}var Xx=function(e){di(n,e);var t=pi(n);function n(){return Xt(this,n),t.apply(this,arguments)}return qt(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),Nf=c.createContext(null);function qx(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),i=c.useRef([]),o=c.useContext(Nf),a=c.useCallback(function(l,s,u){r.current+=1;var f=r.current;i.current.push({size:l,element:s,data:u}),Promise.resolve().then(function(){f===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(l,s,u)},[n,o]);return c.createElement(Nf.Provider,{value:a},t)}function Yx(e){var t=e.children,n=e.disabled,r=c.useRef(null),i=c.useRef(null),o=c.useContext(Nf),a=typeof t=="function",l=a?t(r):t,s=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&c.isValidElement(l)&&pp(l),f=u?l.ref:null,d=c.useMemo(function(){return pu(f,r)},[f,r]),p=c.useRef(e);p.current=e;var h=c.useCallback(function(g){var b=p.current,w=b.onResize,m=b.data,v=g.getBoundingClientRect(),y=v.width,S=v.height,x=g.offsetWidth,C=g.offsetHeight,E=Math.floor(y),$=Math.floor(S);if(s.current.width!==E||s.current.height!==$||s.current.offsetWidth!==x||s.current.offsetHeight!==C){var M={width:E,height:$,offsetWidth:x,offsetHeight:C};s.current=M;var k=x===Math.round(y)?y:x,R=C===Math.round(S)?S:C,O=_(_({},M),{},{offsetWidth:k,offsetHeight:R});o==null||o(O,g,m),w&&Promise.resolve().then(function(){w(O,g)})}},[]);return c.useEffect(function(){var g=Os(r.current)||Os(i.current);return g&&!n&&Kx(g,h),function(){return Gx(g,h)}},[r.current,n]),c.createElement(Xx,{ref:i},u?c.cloneElement(l,{ref:d}):l)}var Qx="rc-observer-key";function $a(e){var t=e.children,n=typeof t=="function"?[t]:wn(t);return n.map(function(r,i){var o=(r==null?void 0:r.key)||"".concat(Qx,"-").concat(i);return c.createElement(Yx,re({},e,{key:o}),r)})}$a.Collection=qx;function En(e,t){var n=_({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function _f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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)}function eE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function he(e,t){if(e==null)return{};var n=eE(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(o);if(ln(!s,"Warning: There may be circular references"),s)return!1;if(o===a)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):aE}function mu(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function lE(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function gy(e){return Array.from((Lf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!nr())return null;var n=t.csp,r=t.prepend,i=document.createElement("style");i.setAttribute(am,lE(r)),n!=null&&n.nonce&&(i.nonce=n==null?void 0:n.nonce),i.innerHTML=e;var o=mu(t),a=o.firstChild;if(r){if(r==="queue"){var l=gy(o).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(am))});if(l.length)return o.insertBefore(i,l[l.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function by(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mu(t);return gy(n).find(function(r){return r.getAttribute(hy(t))===e})}function Sy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=by(e,t);if(n){var r=mu(t);r.removeChild(n)}}function sE(e,t){var n=Lf.get(e);if(!n||!Jo(document,n)){var r=yy("",t),i=r.parentNode;Lf.set(e,i),e.removeChild(r)}}function Ms(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=mu(n);sE(r,n);var i=by(t,n);if(i){var o,a;if(!((o=n.csp)===null||o===void 0)&&o.nonce&&i.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;i.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var s=yy(e,n);return s.setAttribute(hy(n),t),s}function Is(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&ge(r)==="object"?t+=Is(r):t+=r}),t}function uE(e,t){return mp("".concat(t,"_").concat(Is(e)))}var ea="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),wy="903px";function cE(e,t){if(nr()){var n;Ms(e,ea);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var i=getComputedStyle(r).width===wy;return(n=r.parentNode)===null||n===void 0||n.removeChild(r),Sy(ea),i}return!1}var oc=void 0;function fE(){return oc===void 0&&(oc=cE("@layer ".concat(ea," { .").concat(ea," { width: ").concat(wy,"!important; } }"),function(e){e.className=ea})),oc}var dE={},pE="css",Kr=new Map;function vE(e){Kr.set(e,(Kr.get(e)||0)+1)}function mE(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Af,'="').concat(e,'"]'));t.forEach(function(n){if(n[Zo]===ks){var r;(r=n.parentNode)===null||r===void 0||r.removeChild(n)}})}}function hE(e){Kr.set(e,(Kr.get(e)||0)-1);var t=Array.from(Kr.keys()),n=t.filter(function(r){var i=Kr.get(r)||0;return i<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},r=n.salt,i=r===void 0?"":r,o=n.override,a=o===void 0?dE:o,l=n.formatToken,s=c.useMemo(function(){return Object.assign.apply(Object,[{}].concat(Q(t)))},[t]),u=c.useMemo(function(){return Is(s)},[s]),f=c.useMemo(function(){return Is(a)},[a]),d=my("token",[i,e.id,u,f],function(){var p=e.getDerivativeToken(s),h=_(_({},p),a);l&&(h=l(h));var g=uE(h,i);h._tokenKey=g,vE(g);var b="".concat(pE,"-").concat(mp(g));return h._hashId=b,[h,b]},function(p){hE(p[0]._tokenKey)});return d}var yE={animationIterationCount: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},Cy="comm",xy="rule",Ey="decl",bE="@import",SE="@keyframes",wE=Math.abs,hp=String.fromCharCode;function $y(e){return e.trim()}function Ff(e,t,n){return e.replace(t,n)}function CE(e,t){return e.indexOf(t)}function Pa(e,t){return e.charCodeAt(t)|0}function Oa(e,t,n){return e.slice(t,n)}function ur(e){return e.length}function Py(e){return e.length}function pl(e,t){return t.push(e),e}var hu=1,oo=1,Oy=0,cn=0,Xe=0,vo="";function gp(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:hu,column:oo,length:a,return:""}}function xE(){return Xe}function EE(){return Xe=cn>0?Pa(vo,--cn):0,oo--,Xe===10&&(oo=1,hu--),Xe}function bn(){return Xe=cn2||zf(Xe)>3?"":" "}function TE(e,t){for(;--t&&bn()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return gu(e,Vl()+(t<6&&ni()==32&&bn()==32))}function Df(e){for(;bn();)switch(Xe){case e:return cn;case 34:case 39:e!==34&&e!==39&&Df(Xe);break;case 40:e===41&&Df(e);break;case 92:bn();break}return cn}function RE(e,t){for(;bn()&&e+Xe!==47+10;)if(e+Xe===42+42&&ni()===47)break;return"/*"+gu(t,cn-1)+"*"+hp(e===47?e:bn())}function kE(e){for(;!zf(ni());)bn();return gu(e,cn)}function ME(e){return PE(Wl("",null,null,null,[""],e=$E(e),0,[0],e))}function Wl(e,t,n,r,i,o,a,l,s){for(var u=0,f=0,d=a,p=0,h=0,g=0,b=1,w=1,m=1,v=0,y="",S=i,x=o,C=r,E=y;w;)switch(g=v,v=bn()){case 40:if(g!=108&&Pa(E,d-1)==58){CE(E+=Ff(ac(v),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=ac(v);break;case 9:case 10:case 13:case 32:E+=OE(g);break;case 92:E+=TE(Vl()-1,7);continue;case 47:switch(ni()){case 42:case 47:pl(IE(RE(bn(),Vl()),t,n),s);break;default:E+="/"}break;case 123*b:l[u++]=ur(E)*m;case 125*b:case 59:case 0:switch(v){case 0:case 125:w=0;case 59+f:h>0&&ur(E)-d&&pl(h>32?sm(E+";",r,n,d-1):sm(Ff(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(pl(C=lm(E,t,n,u,f,i,l,y,S=[],x=[],d),o),v===123)if(f===0)Wl(E,t,C,C,S,o,d,l,x);else switch(p===99&&Pa(E,3)===110?100:p){case 100:case 109:case 115:Wl(e,C,C,r&&pl(lm(e,C,C,0,0,i,l,y,i,S=[],d),x),i,x,d,l,r?S:x);break;default:Wl(E,C,C,C,[""],x,0,l,x)}}u=f=h=0,b=m=1,y=E="",d=a;break;case 58:d=1+ur(E),h=g;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&EE()==125)continue}switch(E+=hp(v),v*b){case 38:m=f>0?1:(E+="\f",-1);break;case 44:l[u++]=(ur(E)-1)*m,m=1;break;case 64:ni()===45&&(E+=ac(bn())),p=ni(),f=d=ur(y=E+=kE(Vl())),v++;break;case 45:g===45&&ur(E)==2&&(b=0)}}return o}function lm(e,t,n,r,i,o,a,l,s,u,f){for(var d=i-1,p=i===0?o:[""],h=Py(p),g=0,b=0,w=0;g0?p[m]+" "+v:Ff(v,/&\f/g,p[m])))&&(s[w++]=y);return gp(e,t,n,i===0?xy:l,s,u,f)}function IE(e,t,n){return gp(e,t,n,Cy,hp(xE()),Oa(e,2,-2),0)}function sm(e,t,n,r){return gp(e,t,n,Ey,Oa(e,0,r),Oa(e,r+1,-1),r)}function jf(e,t){for(var n="",r=Py(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,f=n.transformers,d=f===void 0?[]:f;n.linters;var p="",h={};function g(y){var S=y.getName(l);if(!h[S]){var x=e(y.style,n,{root:!1,parentSelectors:a}),C=V(x,1),E=C[0];h[S]="@keyframes ".concat(y.getName(l)).concat(E)}}function b(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(x){Array.isArray(x)?b(x,S):x&&S.push(x)}),S}var w=b(Array.isArray(t)?t:[t]);if(w.forEach(function(y){var S=typeof y=="string"&&!i?{}:y;if(typeof S=="string")p+="".concat(S,` +`);else if(S._keyframe)g(S);else{var x=d.reduce(function(C,E){var $;return(E==null||($=E.visit)===null||$===void 0?void 0:$.call(E,C))||C},S);Object.keys(x).forEach(function(C){var E=x[C];if(ge(E)==="object"&&E&&(C!=="animationName"||!E._keyframe)&&!AE(E)){var $=!1,M=C.trim(),k=!1;(i||o)&&l?M.startsWith("@")?$=!0:M=LE(C,l,u):i&&!l&&(M==="&"||M==="")&&(M="",k=!0);var R=e(E,n,{root:k,injectHash:$,parentSelectors:[].concat(Q(a),[M])}),O=V(R,2),P=O[0],T=O[1];h=_(_({},h),T),p+="".concat(M).concat(P)}else{var N,F=(N=E==null?void 0:E.value)!==null&&N!==void 0?N:E,L=C.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),I=F;!yE[C]&&typeof I=="number"&&I!==0&&(I="".concat(I,"px")),C==="animationName"&&E!==null&&E!==void 0&&E._keyframe&&(g(E),I=E.getName(l)),p+="".concat(L,":").concat(I,";")}})}}),!i)p="{".concat(p,"}");else if(s&&fE()){var m=s.split(","),v=m[m.length-1].trim();p="@layer ".concat(v," {").concat(p,"}"),m.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,h]};function zE(e,t){return mp("".concat(e.join("%")).concat(t))}function DE(){return null}function dm(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=c.useContext(dy),l=a.autoClear;a.mock;var s=a.defaultCache,u=a.hashPriority,f=a.container,d=a.ssrInline,p=a.transformers,h=a.linters,g=n._tokenKey,b=[g].concat(Q(r)),w=um,m=my("style",b,function(){var C=t(),E=FE(C,{hashId:i,hashPriority:u,layer:o,path:r.join("-"),transformers:p,linters:h}),$=V(E,2),M=$[0],k=$[1],R=cm(M),O=zE(b,R);if(w){var P=Ms(R,O,{mark:Yr,prepend:"queue",attachTo:f});P[Zo]=ks,P.setAttribute(Af,g),Object.keys(k).forEach(function(T){fm.has(T)||(fm.add(T),Ms(cm(k[T]),"_effect-".concat(T),{mark:Yr,prepend:"queue",attachTo:f}))})}return[R,g,O]},function(C,E){var $=V(C,3),M=$[2];(E||l)&&um&&Sy(M,{mark:Yr})}),v=V(m,3),y=v[0],S=v[1],x=v[2];return function(C){var E;if(!d||w||!s)E=c.createElement(DE,null);else{var $;E=c.createElement("style",re({},($={},A($,Af,S),A($,Yr,x),$),{dangerouslySetInnerHTML:{__html:y}}))}return c.createElement(c.Fragment,null,E,C)}}var ze=function(){function e(t,n){Xt(this,e),A(this,"name",void 0),A(this,"style",void 0),A(this,"_keyframe",!0),this.name=t,this.style=n}return qt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function jE(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s,u;a=(s=a)===null||s===void 0||(u=s.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,f){var d=V(u,2),p=d[1];return i.internalGet(f)[1]0,void 0),pm+=1}return qt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),lc=new yp;function BE(e){var t=Array.isArray(e)?e:[e];return lc.has(t)||lc.set(t,new HE(t)),lc.get(t)}function yi(e){return e.notSplit=!0,e}yi(["borderTop","borderBottom"]),yi(["borderTop"]),yi(["borderBottom"]),yi(["borderLeft","borderRight"]),yi(["borderLeft"]),yi(["borderRight"]);var VE=c.createContext({});const Ty=VE;var Qr="RC_FORM_INTERNAL_HOOKS",Ce=function(){ln(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ao=c.createContext({getFieldValue:Ce,getFieldsValue:Ce,getFieldError:Ce,getFieldWarning:Ce,getFieldsError:Ce,isFieldsTouched:Ce,isFieldTouched:Ce,isFieldValidating:Ce,isFieldsValidating:Ce,resetFields:Ce,setFields:Ce,setFieldValue:Ce,setFieldsValue:Ce,validateFields:Ce,submit:Ce,getInternalHooks:function(){return Ce(),{dispatch:Ce,initEntityValue:Ce,registerField:Ce,useSubscribe:Ce,setInitialValues:Ce,destroyForm:Ce,setCallbacks:Ce,registerWatch:Ce,getFields:Ce,setValidateMessages:Ce,setPreserve:Ce,getInitialValue:Ce}}});function Hf(e){return e==null?[]:Array.isArray(e)?e:[e]}function Cn(){Cn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(O,P,T){O[P]=T.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(O,P,T){return Object.defineProperty(O,P,{value:T,enumerable:!0,configurable:!0,writable:!0}),O[P]}try{s({},"")}catch{s=function(T,N,F){return T[N]=F}}function u(O,P,T,N){var F=P&&P.prototype instanceof p?P:p,L=Object.create(F.prototype),I=new M(N||[]);return r(L,"_invoke",{value:x(O,T,I)}),L}function f(O,P,T){try{return{type:"normal",arg:O.call(P,T)}}catch(N){return{type:"throw",arg:N}}}e.wrap=u;var d={};function p(){}function h(){}function g(){}var b={};s(b,o,function(){return this});var w=Object.getPrototypeOf,m=w&&w(w(k([])));m&&m!==t&&n.call(m,o)&&(b=m);var v=g.prototype=p.prototype=Object.create(b);function y(O){["next","throw","return"].forEach(function(P){s(O,P,function(T){return this._invoke(P,T)})})}function S(O,P){function T(F,L,I,D){var j=f(O[F],O,L);if(j.type!=="throw"){var U=j.arg,z=U.value;return z&&ge(z)=="object"&&n.call(z,"__await")?P.resolve(z.__await).then(function(B){T("next",B,I,D)},function(B){T("throw",B,I,D)}):P.resolve(z).then(function(B){U.value=B,I(U)},function(B){return T("throw",B,I,D)})}D(j.arg)}var N;r(this,"_invoke",{value:function(L,I){function D(){return new P(function(j,U){T(L,I,j,U)})}return N=N?N.then(D,D):D()}})}function x(O,P,T){var N="suspendedStart";return function(F,L){if(N==="executing")throw new Error("Generator is already running");if(N==="completed"){if(F==="throw")throw L;return R()}for(T.method=F,T.arg=L;;){var I=T.delegate;if(I){var D=C(I,T);if(D){if(D===d)continue;return D}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(N==="suspendedStart")throw N="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);N="executing";var j=f(O,P,T);if(j.type==="normal"){if(N=T.done?"completed":"suspendedYield",j.arg===d)continue;return{value:j.arg,done:T.done}}j.type==="throw"&&(N="completed",T.method="throw",T.arg=j.arg)}}}function C(O,P){var T=P.method,N=O.iterator[T];if(N===void 0)return P.delegate=null,T==="throw"&&O.iterator.return&&(P.method="return",P.arg=void 0,C(O,P),P.method==="throw")||T!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+T+"' method")),d;var F=f(N,O.iterator,P.arg);if(F.type==="throw")return P.method="throw",P.arg=F.arg,P.delegate=null,d;var L=F.arg;return L?L.done?(P[O.resultName]=L.value,P.next=O.nextLoc,P.method!=="return"&&(P.method="next",P.arg=void 0),P.delegate=null,d):L:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,d)}function E(O){var P={tryLoc:O[0]};1 in O&&(P.catchLoc=O[1]),2 in O&&(P.finallyLoc=O[2],P.afterLoc=O[3]),this.tryEntries.push(P)}function $(O){var P=O.completion||{};P.type="normal",delete P.arg,O.completion=P}function M(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(E,this),this.reset(!0)}function k(O){if(O){var P=O[o];if(P)return P.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var T=-1,N=function F(){for(;++T=0;--F){var L=this.tryEntries[F],I=L.completion;if(L.tryLoc==="root")return N("end");if(L.tryLoc<=this.prev){var D=n.call(L,"catchLoc"),j=n.call(L,"finallyLoc");if(D&&j){if(this.prev=0;--N){var F=this.tryEntries[N];if(F.tryLoc<=this.prev&&n.call(F,"finallyLoc")&&this.prev=0;--T){var N=this.tryEntries[T];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),$(N),d}},catch:function(P){for(var T=this.tryEntries.length-1;T>=0;--T){var N=this.tryEntries[T];if(N.tryLoc===P){var F=N.completion;if(F.type==="throw"){var L=F.arg;$(N)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(P,T,N){return this.delegate={iterator:k(P),resultName:T,nextLoc:N},this.method==="next"&&(this.arg=void 0),d}},e}function vm(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,i)}function Da(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(s){vm(o,r,i,a,l,"next",s)}function l(s){vm(o,r,i,a,l,"throw",s)}a(void 0)})}}function Zr(){return Zr=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 Ul(e,t,n){return UE()?Ul=Reflect.construct.bind():Ul=function(i,o,a){var l=[null];l.push.apply(l,o);var s=Function.bind.apply(i,l),u=new s;return a&&Ta(u,a.prototype),u},Ul.apply(null,arguments)}function KE(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Vf(e){var t=typeof Map=="function"?new Map:void 0;return Vf=function(r){if(r===null||!KE(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Ul(r,arguments,Bf(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ta(i,r)},Vf(e)}var GE=/%[sdj%]/g,XE=function(){};typeof process<"u"&&process.env;function Wf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Vt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function qE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qE(t)&&typeof e=="string"&&!e)}function YE(e,t,n){var r=[],i=0,o=e.length;function a(l){r.push.apply(r,l||[]),i++,i===o&&n(r)}e.forEach(function(l){t(l,a)})}function mm(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\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},jo={integer:function(t){return jo.number(t)&&parseInt(t,10)===t},float:function(t){return jo.number(t)&&!jo.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!jo.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(bm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(n$())},hex:function(t){return typeof t=="string"&&!!t.match(bm.hex)}},r$=function(t,n,r,i,o){if(t.required&&n===void 0){Ry(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?jo[l](n)||i.push(Vt(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&i.push(Vt(o.messages.types[l],t.fullField,t.type))},i$=function(t,n,r,i,o){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=n,d=null,p=typeof n=="number",h=typeof n=="string",g=Array.isArray(n);if(p?d="number":h?d="string":g&&(d="array"),!d)return!1;g&&(f=n.length),h&&(f=n.replace(u,"_").length),a?f!==t.len&&i.push(Vt(o.messages[d].len,t.fullField,t.len)):l&&!s&&ft.max?i.push(Vt(o.messages[d].max,t.fullField,t.max)):l&&s&&(ft.max)&&i.push(Vt(o.messages[d].range,t.fullField,t.min,t.max))},bi="enum",o$=function(t,n,r,i,o){t[bi]=Array.isArray(t[bi])?t[bi]:[],t[bi].indexOf(n)===-1&&i.push(Vt(o.messages[bi],t.fullField,t[bi].join(", ")))},a$=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Vt(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(Vt(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ce={required:Ry,whitespace:t$,type:r$,range:i$,enum:o$,pattern:a$},l$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n,"string")&&!t.required)return r();ce.required(t,n,i,a,o,"string"),tt(n,"string")||(ce.type(t,n,i,a,o),ce.range(t,n,i,a,o),ce.pattern(t,n,i,a,o),t.whitespace===!0&&ce.whitespace(t,n,i,a,o))}r(a)},s$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&ce.type(t,n,i,a,o)}r(a)},u$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&(ce.type(t,n,i,a,o),ce.range(t,n,i,a,o))}r(a)},c$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&ce.type(t,n,i,a,o)}r(a)},f$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),tt(n)||ce.type(t,n,i,a,o)}r(a)},d$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&(ce.type(t,n,i,a,o),ce.range(t,n,i,a,o))}r(a)},p$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&(ce.type(t,n,i,a,o),ce.range(t,n,i,a,o))}r(a)},v$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();ce.required(t,n,i,a,o,"array"),n!=null&&(ce.type(t,n,i,a,o),ce.range(t,n,i,a,o))}r(a)},m$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&ce.type(t,n,i,a,o)}r(a)},h$="enum",g$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o),n!==void 0&&ce[h$](t,n,i,a,o)}r(a)},y$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n,"string")&&!t.required)return r();ce.required(t,n,i,a,o),tt(n,"string")||ce.pattern(t,n,i,a,o)}r(a)},b$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n,"date")&&!t.required)return r();if(ce.required(t,n,i,a,o),!tt(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),ce.type(t,s,i,a,o),s&&ce.range(t,s.getTime(),i,a,o)}}r(a)},S$=function(t,n,r,i,o){var a=[],l=Array.isArray(n)?"array":typeof n;ce.required(t,n,i,a,o,l),r(a)},sc=function(t,n,r,i,o){var a=t.type,l=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tt(n,a)&&!t.required)return r();ce.required(t,n,i,l,o,a),tt(n,a)||ce.type(t,n,i,l,o)}r(l)},w$=function(t,n,r,i,o){var a=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tt(n)&&!t.required)return r();ce.required(t,n,i,a,o)}r(a)},ta={string:l$,method:s$,number:u$,boolean:c$,regexp:f$,integer:d$,float:p$,array:v$,object:m$,enum:g$,pattern:y$,date:b$,url:sc,hex:sc,email:sc,required:S$,any:w$};function Uf(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Kf=Uf(),ja=function(){function e(n){this.rules=null,this._messages=Kf,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=ym(Uf(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var l=r,s=i,u=o;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function f(b){var w=[],m={};function v(S){if(Array.isArray(S)){var x;w=(x=w).concat.apply(x,S)}else w.push(S)}for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!My(e,t.slice(0,-1))?e:Iy(e,t,n,r)}function yu(e){return Array.isArray(e)?$$(e):ge(e)==="object"&&e!==null?E$(e):e}function E$(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=yu(e[n]);return t}return e}function $$(e){return e.map(function(t){return yu(t)})}function Be(e){return Hf(e)}function hr(e,t){var n=My(e,t);return n}function ar(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=x$(e,t,n,r);return i}function Sm(e,t){var n={};return t.forEach(function(r){var i=hr(e,r);n=ar(n,r,i)}),n}function na(e,t){return e&&e.some(function(n){return _y(n,t)})}function wm(e){return ge(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ny(e,t){var n=Array.isArray(e)?Q(e):_({},e);return t&&Object.keys(t).forEach(function(r){var i=n[r],o=t[r],a=wm(i)&&wm(o);n[r]=a?Ny(i,o||{}):yu(o)}),n}function Kl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(Q(e.slice(0,n)),[i],Q(e.slice(n,t)),Q(e.slice(t+1,r))):o<0?[].concat(Q(e.slice(0,t)),Q(e.slice(t+1,n+1)),[i],Q(e.slice(n+1,r))):e}var T$=ja;function R$(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var xm="CODE_LOGIC_ERROR";function Gf(e,t,n,r,i){return Xf.apply(this,arguments)}function Xf(){return Xf=Da(Cn().mark(function e(t,n,r,i,o){var a,l,s,u,f,d,p,h,g;return Cn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return a=_({},r),delete a.ruleIndex,a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(xm)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),u=new T$(A({},t,[a])),f=Kl({},ky,i.validateMessages),u.messages(f),d=[],w.prev=9,w.next=12,Promise.resolve(u.validate(A({},t,n),_({},i)));case 12:w.next=17;break;case 14:w.prev=14,w.t0=w.catch(9),w.t0.errors&&(d=w.t0.errors.map(function(m,v){var y=m.message,S=y===xm?f.default:y;return c.isValidElement(S)?c.cloneElement(S,{key:"error_".concat(v)}):S}));case 17:if(!(!d.length&&s)){w.next=22;break}return w.next=20,Promise.all(n.map(function(m,v){return Gf("".concat(t,".").concat(v),m,s,i,o)}));case 20:return p=w.sent,w.abrupt("return",p.reduce(function(m,v){return[].concat(Q(m),Q(v))},[]));case 22:return h=_(_({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),g=d.map(function(m){return typeof m=="string"?R$(m,h):m}),w.abrupt("return",g);case 25:case"end":return w.stop()}},e,null,[[9,14]])})),Xf.apply(this,arguments)}function k$(e,t,n,r,i,o){var a=e.join("."),l=n.map(function(f,d){var p=f.validator,h=_(_({},f),{},{ruleIndex:d});return p&&(h.validator=function(g,b,w){var m=!1,v=function(){for(var x=arguments.length,C=new Array(x),E=0;E0&&arguments[0]!==void 0?arguments[0]:Zt;if(i.validatePromise===d){var x;i.validatePromise=null;var C=[],E=[];(x=S.forEach)===null||x===void 0||x.call(S,function($){var M=$.rule.warningOnly,k=$.errors,R=k===void 0?Zt:k;M?E.push.apply(E,Q(R)):C.push.apply(C,Q(R))}),i.errors=C,i.warnings=E,i.triggerMetaEvent(),i.reRender()}}),y});return i.validatePromise=d,i.dirty=!0,i.errors=Zt,i.warnings=Zt,i.triggerMetaEvent(),i.reRender(),d},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var s=i.props.fieldContext,u=s.getInternalHooks(Qr),f=u.getInitialValue;return f(i.getNamePath())!==void 0},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){i.prevValidating=i.isFieldValidating();var s={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()};return s},i.getOnlyChild=function(s){if(typeof s=="function"){var u=i.getMeta();return _(_({},i.getOnlyChild(s(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var f=wn(s);return f.length!==1||!c.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}},i.getValue=function(s){var u=i.props.fieldContext.getFieldsValue,f=i.getNamePath();return hr(s||u(!0),f)},i.getControlled=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,f=u.trigger,d=u.validateTrigger,p=u.getValueFromEvent,h=u.normalize,g=u.valuePropName,b=u.getValueProps,w=u.fieldContext,m=d!==void 0?d:w.validateTrigger,v=i.getNamePath(),y=w.getInternalHooks,S=w.getFieldsValue,x=y(Qr),C=x.dispatch,E=i.getValue(),$=b||function(O){return A({},g,O)},M=s[f],k=_(_({},s),$(E));k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var O,P=arguments.length,T=new Array(P),N=0;N=0&&M<=k.length?(u.keys=[].concat(Q(u.keys.slice(0,M)),[u.id],Q(u.keys.slice(M))),v([].concat(Q(k.slice(0,M)),[$],Q(k.slice(M))))):(u.keys=[].concat(Q(u.keys),[u.id]),v([].concat(Q(k),[$]))),u.id+=1},remove:function($){var M=S(),k=new Set(Array.isArray($)?$:[$]);k.size<=0||(u.keys=u.keys.filter(function(R,O){return!k.has(O)}),v(M.filter(function(R,O){return!k.has(O)})))},move:function($,M){if($!==M){var k=S();$<0||$>=k.length||M<0||M>=k.length||(u.keys=Cm(u.keys,$,M),v(Cm(k,$,M)))}}},C=m||[];return Array.isArray(C)||(C=[]),i(C.map(function(E,$){var M=u.keys[$];return M===void 0&&(u.keys[$]=u.id,M=u.keys[$],u.id+=1),{name:$,key:M,isListField:!0}}),x,b)})))};function L$(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Ly="__@field_split__";function uc(e){return e.map(function(t){return"".concat(ge(t),":").concat(t)}).join(Ly)}var Si=function(){function e(){Xt(this,e),this.kvs=new Map}return qt(e,[{key:"set",value:function(n,r){this.kvs.set(uc(n),r)}},{key:"get",value:function(n){return this.kvs.get(uc(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(uc(n))}},{key:"map",value:function(n){return Q(this.kvs.entries()).map(function(r){var i=V(r,2),o=i[0],a=i[1],l=o.split(Ly);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),f=V(u,3),d=f[1],p=f[2];return d==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),F$=["name","errors"],z$=qt(function e(t){var n=this;Xt(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===Qr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(ln(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,i){if(n.initialValues=r||{},i){var o,a=Kl({},r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var s=l.key;a=ar(a,s,hr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new Si;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var i=hr(n.initialValues,r);return r.length?yu(i):i},this.setCallbacks=function(r){n.callbacks=r},this.setValidateMessages=function(r){n.validateMessages=r},this.setPreserve=function(r){n.preserve=r},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue();n.watchList.forEach(function(o){o(i,r)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Si;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=Be(o);return i.get(a)||{INVALIDATE_NAME_PATH:Be(o)}})},this.getFieldsValue=function(r,i){if(n.warningUnhooked(),r===!0&&!i)return n.store;var o=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return o.forEach(function(l){var s,u="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!r&&(!((s=l.isListField)===null||s===void 0)&&s.call(l))))if(!i)a.push(u);else{var f="getMeta"in l?l.getMeta():null;i(f)&&a.push(u)}}),Sm(n.store,a.map(Be))},this.getFieldValue=function(r){n.warningUnhooked();var i=Be(r);return hr(n.store,i)},this.getFieldsError=function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Be(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var i=Be(r),o=n.getFieldsError([i])[0];return o.errors},this.getFieldWarning=function(r){n.warningUnhooked();var i=Be(r),o=n.getFieldsError([i])[0];return o.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new Si,o=n.getFieldEntities(!0);o.forEach(function(s){var u=s.props.initialValue,f=s.getNamePath();if(u!==void 0){var d=i.get(f)||new Set;d.add({entity:s,value:u}),i.set(f,d)}});var a=function(u){u.forEach(function(f){var d=f.props.initialValue;if(d!==void 0){var p=f.getNamePath(),h=n.getInitialValue(p);if(h!==void 0)ln(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var g=i.get(p);if(g&&g.size>1)ln(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var b=n.getFieldValue(p);(!r.skipExist||b===void 0)&&n.updateStore(ar(n.store,p,Q(g)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=i.get(s);if(u){var f;(f=l).push.apply(f,Q(Q(u).map(function(d){return d.entity})))}})):l=o,a(l)},this.resetFields=function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Kl({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Be);o.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(ar(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)},this.setFields=function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var l=a.name;a.errors;var s=he(a,F$),u=Be(l);o.push(u),"value"in s&&n.updateStore(ar(n.store,u,s.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)},this.getFields=function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),l=o.getMeta(),s=_(_({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return i},this.initEntityValue=function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=hr(n.store,o);a===void 0&&n.updateStore(ar(n.store,o,i))}},this.isMergedPreserve=function(r){var i=r!==void 0?r:n.preserve;return i??!0},this.registerField=function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(d){return!_y(d.getNamePath(),i)})){var f=n.store;n.updateStore(ar(f,i,u,!0)),n.notifyObservers(f,[i],{type:"remove"}),n.triggerDependenciesUpdate(f,i)}}n.notifyWatch([i])}},this.dispatch=function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}},this.notifyObservers=function(r,i,o){if(n.subscribable){var a=_(_({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,i,a)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Q(o))}),o},this.updateValue=function(r,i){var o=Be(r),a=n.store;n.updateStore(ar(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(a,o),s=n.callbacks.onValuesChange;if(s){var u=Sm(n.store,[o]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Q(l)))},this.setFieldsValue=function(r){n.warningUnhooked();var i=n.store;if(r){var o=Kl(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(r,i){n.setFields([{name:r,value:i}])},this.getDependencyChildrenFields=function(r){var i=new Set,o=[],a=new Si;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(f){var d=Be(f);a.update(d,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(u){var f=a.get(u)||new Set;f.forEach(function(d){if(!i.has(d)){i.add(d);var p=d.getNamePath();d.isFieldDirty()&&p.length&&(o.push(p),s(p))}})};return l(r),o},this.triggerOnFieldsChange=function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var l=new Si;i.forEach(function(u){var f=u.name,d=u.errors;l.set(f,d)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=a.filter(function(u){var f=u.name;return na(r,f)});o(s,a)}},this.validateFields=function(r,i){n.warningUnhooked();var o=!!r,a=o?r.map(Be):[],l=[];n.getFieldEntities(!0).forEach(function(f){if(o||a.push(f.getNamePath()),i!=null&&i.recursive&&o){var d=f.getNamePath();d.every(function(g,b){return r[b]===g||r[b]===void 0})&&a.push(d)}if(!(!f.props.rules||!f.props.rules.length)){var p=f.getNamePath();if(!o||na(a,p)){var h=f.validateRules(_({validateMessages:_(_({},ky),n.validateMessages)},i));l.push(h.then(function(){return{name:p,errors:[],warnings:[]}}).catch(function(g){var b,w=[],m=[];return(b=g.forEach)===null||b===void 0||b.call(g,function(v){var y=v.rule.warningOnly,S=v.errors;y?m.push.apply(m,Q(S)):w.push.apply(w,Q(S))}),w.length?Promise.reject({name:p,errors:w,warnings:m}):{name:p,errors:w,warnings:m}}))}}});var s=L$(l);n.lastValidatePromise=s,s.catch(function(f){return f}).then(function(f){var d=f.map(function(p){var h=p.name;return h});n.notifyObservers(n.store,d,{type:"validateFinish"}),n.triggerOnFieldsChange(d,f)});var u=s.then(function(){return n.lastValidatePromise===s?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(f){var d=f.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:d,outOfDate:n.lastValidatePromise!==s})});return u.catch(function(f){return f}),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})},this.forceRootUpdate=t});function Fy(e){var t=c.useRef(),n=c.useState({}),r=V(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new z$(o);t.current=a.getForm()}return[t.current]}var Qf=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),D$=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=c.useContext(Qf),l=c.useRef({});return c.createElement(Qf.Provider,{value:_(_({},a),{},{validateMessages:_(_({},a.validateMessages),n),triggerFormChange:function(u,f){r&&r(u,{changedFields:f,forms:l.current}),a.triggerFormChange(u,f)},triggerFormFinish:function(u,f){i&&i(u,{values:f,forms:l.current}),a.triggerFormFinish(u,f)},registerForm:function(u,f){u&&(l.current=_(_({},l.current),{},A({},u,f))),a.registerForm(u,f)},unregisterForm:function(u){var f=_({},l.current);delete f[u],l.current=f,a.unregisterForm(u)}})},o)},j$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],H$=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,l=t.preserve,s=t.children,u=t.component,f=u===void 0?"form":u,d=t.validateMessages,p=t.validateTrigger,h=p===void 0?"onChange":p,g=t.onValuesChange,b=t.onFieldsChange,w=t.onFinish,m=t.onFinishFailed,v=he(t,j$),y=c.useContext(Qf),S=Fy(a),x=V(S,1),C=x[0],E=C.getInternalHooks(Qr),$=E.useSubscribe,M=E.setInitialValues,k=E.setCallbacks,R=E.setValidateMessages,O=E.setPreserve,P=E.destroyForm;c.useImperativeHandle(n,function(){return C}),c.useEffect(function(){return y.registerForm(r,C),function(){y.unregisterForm(r)}},[y,C,r]),R(_(_({},y.validateMessages),d)),k({onValuesChange:g,onFieldsChange:function(z){if(y.triggerFormChange(r,z),b){for(var B=arguments.length,X=new Array(B>1?B-1:0),Y=1;Y1)&&(e=1),e}function hl(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Jr(e){return e.length===1?"0"+e:String(e)}function X$(e,t,n){return{r:ft(e,255)*255,g:ft(t,255)*255,b:ft(n,255)*255}}function Pm(e,t,n){e=ft(e,255),t=ft(t,255),n=ft(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,l=(r+i)/2;if(r===i)a=0,o=0;else{var s=r-i;switch(a=l>.5?s/(2-r-i):s/(r+i),r){case e:o=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function q$(e,t,n){var r,i,o;if(e=ft(e,360),t=ft(t,100),n=ft(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=cc(l,a,e+1/3),i=cc(l,a,e),o=cc(l,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Zf(e,t,n){e=ft(e,255),t=ft(t,255),n=ft(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,l=r-i,s=r===0?0:l/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var ed={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 Pi(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=n2(e)),typeof e=="object"&&(jn(e.r)&&jn(e.g)&&jn(e.b)?(t=X$(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):jn(e.h)&&jn(e.s)&&jn(e.v)?(r=hl(e.s),i=hl(e.v),t=Y$(e.h,r,i),a=!0,l="hsv"):jn(e.h)&&jn(e.s)&&jn(e.l)&&(r=hl(e.s),o=hl(e.l),t=q$(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=zy(n),{ok:a,format:e.format||l,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 e2="[-\\+]?\\d+%?",t2="[-\\+]?\\d*\\.\\d+%?",gr="(?:".concat(t2,")|(?:").concat(e2,")"),fc="[\\s|\\(]+(".concat(gr,")[,|\\s]+(").concat(gr,")[,|\\s]+(").concat(gr,")\\s*\\)?"),dc="[\\s|\\(]+(".concat(gr,")[,|\\s]+(").concat(gr,")[,|\\s]+(").concat(gr,")[,|\\s]+(").concat(gr,")\\s*\\)?"),pn={CSS_UNIT:new RegExp(gr),rgb:new RegExp("rgb"+fc),rgba:new RegExp("rgba"+dc),hsl:new RegExp("hsl"+fc),hsla:new RegExp("hsla"+dc),hsv:new RegExp("hsv"+fc),hsva:new RegExp("hsva"+dc),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 n2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ed[e])e=ed[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=pn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=pn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=pn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=pn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pn.hex8.exec(e),n?{r:jt(n[1]),g:jt(n[2]),b:jt(n[3]),a:Om(n[4]),format:t?"name":"hex8"}:(n=pn.hex6.exec(e),n?{r:jt(n[1]),g:jt(n[2]),b:jt(n[3]),format:t?"name":"hex"}:(n=pn.hex4.exec(e),n?{r:jt(n[1]+n[1]),g:jt(n[2]+n[2]),b:jt(n[3]+n[3]),a:Om(n[4]+n[4]),format:t?"name":"hex8"}:(n=pn.hex3.exec(e),n?{r:jt(n[1]+n[1]),g:jt(n[2]+n[2]),b:jt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function jn(e){return Boolean(pn.CSS_UNIT.exec(String(e)))}var on=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=J$(t)),this.originalInput=t;var i=Pi(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?i=l/12.92:i=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=zy(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Zf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Zf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Pm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Pm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Jf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Q$(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(ft(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(ft(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Jf(this.r,this.g,this.b,!1),n=0,r=Object.entries(ed);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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=ml(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=ml(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ml(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=ml(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(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},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,o=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+l)%1;return a},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();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},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],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-gl*t:Math.round(e.h)+gl*t:r=n?Math.round(e.h)+gl*t:Math.round(e.h)-gl*t,r<0?r+=360:r>=360&&(r-=360),r}function Mm(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Tm*t:t===jy?r=e.s+Tm:r=e.s+r2*t,r>1&&(r=1),n&&t===Dy&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Im(e,t,n){var r;return n?r=e.v+i2*t:r=e.v-o2*t,r>1&&(r=1),Number(r.toFixed(2))}function Ra(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Pi(e),i=Dy;i>0;i-=1){var o=Rm(r),a=yl(Pi({h:km(o,i,!0),s:Mm(o,i,!0),v:Im(o,i,!0)}));n.push(a)}n.push(yl(r));for(var l=1;l<=jy;l+=1){var s=Rm(r),u=yl(Pi({h:km(s,l),s:Mm(s,l),v:Im(s,l)}));n.push(u)}return t.theme==="dark"?a2.map(function(f){var d=f.index,p=f.opacity,h=yl(l2(Pi(t.backgroundColor||"#141414"),Pi(n[d]),p*100));return h}):n}var pc={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"},vc={},mc={};Object.keys(pc).forEach(function(e){vc[e]=Ra(pc[e]),vc[e].primary=vc[e][5],mc[e]=Ra(pc[e],{theme:"dark",backgroundColor:"#141414"}),mc[e].primary=mc[e][5]});const s2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},u2=s2;function c2(e){const{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)}}const Hy={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"},f2=Object.assign(Object.assign({},Hy),{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.645, 0.045, 0.355, 1)",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}),Sp=f2;function d2(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:f}=e,d=n(s),p=n(i),h=n(o),g=n(a),b=n(l),w=r(u,f);return Object.assign(Object.assign({},w),{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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorBgMask:new on("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const p2=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}},v2=p2;function m2(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},v2(r))}const Hn=(e,t)=>new on(e).setAlpha(t).toRgbString(),Mo=(e,t)=>new on(e).darken(t).toHexString(),h2=e=>{const t=Ra(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]}},g2=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Hn(r,.88),colorTextSecondary:Hn(r,.65),colorTextTertiary:Hn(r,.45),colorTextQuaternary:Hn(r,.25),colorFill:Hn(r,.15),colorFillSecondary:Hn(r,.06),colorFillTertiary:Hn(r,.04),colorFillQuaternary:Hn(r,.02),colorBgLayout:Mo(n,4),colorBgContainer:Mo(n,0),colorBgElevated:Mo(n,0),colorBgSpotlight:Hn(r,.85),colorBorder:Mo(n,15),colorBorderSecondary:Mo(n,6)}};function y2(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(2.71828,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const b2=e=>{const t=y2(e),n=t.map(i=>i.size),r=t.map(i=>i.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]}},S2=b2;function w2(e){const t=Object.keys(Hy).map(n=>{const r=Ra(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),d2(e,{generateColorPalettes:h2,generateNeutralColorPalettes:g2})),S2(e.fontSize)),c2(e)),u2(e)),m2(e))}function hc(e){return e>=0&&e<=255}function bl(e,t){const{r:n,g:r,b:i,a:o}=new on(e).toRgb();if(o<1)return e;const{r:a,g:l,b:s}=new on(t).toRgb();for(let u=.01;u<=1;u+=.01){const f=Math.round((n-a*(1-u))/u),d=Math.round((r-l*(1-u))/u),p=Math.round((i-s*(1-u))/u);if(hc(f)&&hc(d)&&hc(p))return new on({r:f,g:d,b:p,a:Math.round(u*100)/100}).toRgbString()}return new on({r:n,g:r,b:i,a:1}).toRgbString()}var C2=globalThis&&globalThis.__rest||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[p]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,l=768,s=992,u=1200,f=1600;return Object.assign(Object.assign(Object.assign({},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:bl(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:bl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:bl(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:bl(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) + `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` + 0 1px 2px -2px ${new on("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new on("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new on("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)}const E2=(e,t,n,r,i)=>{const o=e/2,a=o-n*(Math.sqrt(2)-1),l=o,s=o+n*(1-1/Math.sqrt(2)),u=o-n*(1-1/Math.sqrt(2)),f=2*o-t*(1/Math.sqrt(2)),d=t*(1/Math.sqrt(2)),p=4*o-f,h=d,g=4*o-s,b=u,w=4*o-a,m=l;return{borderRadius:{_skip_check_:!0,value:`0 0 ${t}px`},pointerEvents:"none",width:e*2,height:e*2,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),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*2,height:e/2,background:r,clipPath:`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${u} L ${f} ${d} A ${t} ${t} 0 0 1 ${p} ${h} L ${g} ${b} A ${n} ${n} 0 0 0 ${w} ${m} Z')`,content:'""'}}},bu={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},vi=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),By=()=>({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"},"& &-icon":{display:"block"}}),lo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),$2=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, + &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),P2=(e,t)=>{const{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"}}}}},Vy=e=>({outline:`${e.lineWidth*4}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Wy=e=>({"&:focus-visible":Object.assign({},Vy(e))}),O2="anticon",T2=(e,t)=>t||(e?`ant-${e}`:"ant"),We=c.createContext({getPrefixCls:T2,iconPrefixCls:O2});function _r(e,t,n){return r=>{const[i,o,a]=_2(),{getPrefixCls:l,iconPrefixCls:s}=c.useContext(We),u=l();return dm({theme:i,token:o,hashId:a,path:["Shared",u]},()=>[{"&":$2(o)}]),[dm({theme:i,token:o,hashId:a,path:[e,r,s]},()=>{const{token:f,flush:d}=k2(o),p=typeof n=="function"?n(f):n,h=Object.assign(Object.assign({},p),o[e]),g=`.${r}`,b=Ln(f,{componentCls:g,prefixCls:r,iconCls:`.${s}`,antCls:`.${u}`},h),w=t(b,{hashId:a,prefixCls:r,rootPrefixCls:u,iconPrefixCls:s,overrideComponentToken:o[e]});return d(e,h),[P2(o,r),w]}),a]}}const Uy=typeof CSSINJS_STATISTIC<"u";let td=!0;function Ln(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),td=!0,r}function R2(){}function k2(e){let t,n=e,r=R2;return Uy&&(t=new Set,n=new Proxy(e,{get(i,o){return td&&t.add(o),i[o]}}),r=(i,o)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const M2=BE(w2),I2={token:Sp,hashed:!0},N2=Oe.createContext(I2);function _2(){const{token:e,hashed:t,theme:n,components:r}=Oe.useContext(N2),i=`${W$}-${t||""}`,o=n||M2,[a,l]=gE(o,[Sp,e],{salt:i,override:Object.assign({override:e},r),formatToken:x2});return[o,a,t?l:""]}const A2=c.createContext(void 0),Ky=A2;globalThis&&globalThis.__rest;var Gy=function(t){return+setTimeout(t,16)},Xy=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Gy=function(t){return window.requestAnimationFrame(t)},Xy=function(t){return window.cancelAnimationFrame(t)});var Nm=0,wp=new Map;function qy(e){wp.delete(e)}var He=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Nm+=1;var r=Nm;function i(o){if(o===0)qy(r),t();else{var a=Gy(function(){i(o-1)});wp.set(r,a)}}return i(n),r};He.cancel=function(e){var t=wp.get(e);return qy(t),Xy(t)};function Ho(e,t,n,r){var i=xa.unstable_batchedUpdates?function(a){xa.unstable_batchedUpdates(n,a)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,r)}}}function L2(e,t){ln(e,"[@ant-design/icons] ".concat(t))}function _m(e){return ge(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ge(e.icon)==="object"||typeof e.icon=="function")}function Am(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function nd(e,t,n){return n?Oe.createElement(e.tag,_(_({key:t},Am(e.attrs)),n),(e.children||[]).map(function(r,i){return nd(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):Oe.createElement(e.tag,_({key:t},Am(e.attrs)),(e.children||[]).map(function(r,i){return nd(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Yy(e){return Ra(e)[0]}function Qy(e){return e?Array.isArray(e)?e:[e]:[]}var F2=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + 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); + } +} +`,z2=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F2,n=c.useContext(Ty),r=n.csp;c.useEffect(function(){Ms(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},D2=["icon","className","onClick","style","primaryColor","secondaryColor"],ra={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function j2(e){var t=e.primaryColor,n=e.secondaryColor;ra.primaryColor=t,ra.secondaryColor=n||Yy(t),ra.calculated=!!n}function H2(){return _({},ra)}var Su=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,l=t.secondaryColor,s=he(t,D2),u=ra;if(a&&(u={primaryColor:a,secondaryColor:l||Yy(a)}),z2(),L2(_m(n),"icon should be icon definiton, but got ".concat(n)),!_m(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=_(_({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),nd(f.icon,"svg-".concat(f.name),_({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Su.displayName="IconReact";Su.getTwoToneColors=H2;Su.setTwoToneColors=j2;const Cp=Su;function Zy(e){var t=Qy(e),n=V(t,2),r=n[0],i=n[1];return Cp.setTwoToneColors({primaryColor:r,secondaryColor:i})}function B2(){var e=Cp.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var V2=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Zy("#1890ff");var wu=c.forwardRef(function(e,t){var n,r=e.className,i=e.icon,o=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,f=he(e,V2),d=c.useContext(Ty),p=d.prefixCls,h=p===void 0?"anticon":p,g=d.rootClassName,b=W(g,h,(n={},A(n,"".concat(h,"-").concat(i.name),!!i.name),A(n,"".concat(h,"-spin"),!!o||i.name==="loading"),n),r),w=l;w===void 0&&s&&(w=-1);var m=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=Qy(u),y=V(v,2),S=y[0],x=y[1];return c.createElement("span",_(_({role:"img","aria-label":i.name},f),{},{ref:t,tabIndex:w,onClick:s,className:b}),c.createElement(Cp,{icon:i,primaryColor:S,secondaryColor:x,style:m}))});wu.displayName="AntdIcon";wu.getTwoToneColor=B2;wu.setTwoToneColor=Zy;const Ar=wu;var W2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const U2=W2;var Jy=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:U2}))};Jy.displayName="CloseOutlined";const K2=c.forwardRef(Jy);function Lm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function G2(e,t){var n={animationend:Lm("Animation","AnimationEnd"),transitionend:Lm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var X2=G2(nr(),typeof window<"u"?window:{}),e1={};if(nr()){var q2=document.createElement("div");e1=q2.style}var Sl={};function t1(e){if(Sl[e])return Sl[e];var t=X2[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=He(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var i1=nr()?c.useLayoutEffect:c.useEffect,Hm=[Wn,Hi,Bi,xp],o1=!1,Z2=!0;function a1(e){return e===Bi||e===xp}const J2=function(e,t){var n=Tr(jm),r=V(n,2),i=r[0],o=r[1],a=Q2(),l=V(a,2),s=l[0],u=l[1];function f(){o(Wn,!0)}return i1(function(){if(i!==jm&&i!==xp){var d=Hm.indexOf(i),p=Hm[d+1],h=t(i);h===o1?o(p,!0):s(function(g){function b(){g.isCanceled()||o(p,!0)}h===!0?b():Promise.resolve(h).then(b)})}},[e,i]),c.useEffect(function(){return function(){u()}},[]),[f,i]},eP=function(e){var t=c.useRef(),n=c.useRef(e);n.current=e;var r=c.useCallback(function(a){n.current(a)},[]);function i(a){a&&(a.removeEventListener(zm,r),a.removeEventListener(Fm,r))}function o(a){t.current&&t.current!==a&&i(t.current),a&&a!==t.current&&(a.addEventListener(zm,r),a.addEventListener(Fm,r),t.current=a)}return c.useEffect(function(){return function(){i(t.current)}},[]),[o,i]};function tP(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,u=s===void 0?!0:s,f=r.motionDeadline,d=r.motionLeaveImmediately,p=r.onAppearPrepare,h=r.onEnterPrepare,g=r.onLeavePrepare,b=r.onAppearStart,w=r.onEnterStart,m=r.onLeaveStart,v=r.onAppearActive,y=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,C=r.onEnterEnd,E=r.onLeaveEnd,$=r.onVisibleChanged,M=Tr(),k=V(M,2),R=k[0],O=k[1],P=Tr(Oi),T=V(P,2),N=T[0],F=T[1],L=Tr(null),I=V(L,2),D=I[0],j=I[1],U=c.useRef(!1),z=c.useRef(null);function B(){return n()}var X=c.useRef(!1);function Y(se){var ae=B();if(!(se&&!se.deadline&&se.target!==ae)){var _e=X.current,at;N===wl&&_e?at=x==null?void 0:x(ae,se):N===Cl&&_e?at=C==null?void 0:C(ae,se):N===xl&&_e&&(at=E==null?void 0:E(ae,se)),N!==Oi&&_e&&at!==!1&&(F(Oi,!0),j(null,!0))}}var q=eP(Y),ee=V(q,1),oe=ee[0],le=c.useMemo(function(){var se,ae,_e;switch(N){case wl:return se={},A(se,Wn,p),A(se,Hi,b),A(se,Bi,v),se;case Cl:return ae={},A(ae,Wn,h),A(ae,Hi,w),A(ae,Bi,y),ae;case xl:return _e={},A(_e,Wn,g),A(_e,Hi,m),A(_e,Bi,S),_e;default:return{}}},[N]),Ie=J2(N,function(se){if(se===Wn){var ae=le[Wn];return ae?ae(B()):o1}if(te in le){var _e;j(((_e=le[te])===null||_e===void 0?void 0:_e.call(le,B(),null))||null)}return te===Bi&&(oe(B()),f>0&&(clearTimeout(z.current),z.current=setTimeout(function(){Y({deadline:!0})},f))),Z2}),ye=V(Ie,2),Ue=ye[0],te=ye[1],Ee=a1(te);X.current=Ee,i1(function(){O(t);var se=U.current;if(U.current=!0,!!e){var ae;!se&&t&&l&&(ae=wl),se&&t&&o&&(ae=Cl),(se&&!t&&u||!se&&d&&!t&&u)&&(ae=xl),ae&&(F(ae),Ue())}},[t]),c.useEffect(function(){(N===wl&&!l||N===Cl&&!o||N===xl&&!u)&&F(Oi)},[l,o,u]),c.useEffect(function(){return function(){U.current=!1,clearTimeout(z.current)}},[]);var Ne=c.useRef(!1);c.useEffect(function(){R&&(Ne.current=!0),R!==void 0&&N===Oi&&((Ne.current||R)&&($==null||$(R)),Ne.current=!0)},[R,N]);var Z=D;return le[Wn]&&te===Hi&&(Z=_({transition:"none"},Z)),[N,te,Z,R??t]}var nP=function(e){di(n,e);var t=pi(n);function n(){return Xt(this,n),t.apply(this,arguments)}return qt(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function rP(e){var t=e;ge(e)==="object"&&(t=e.transitionSupport);function n(i){return!!(i.motionName&&t)}var r=c.forwardRef(function(i,o){var a=i.visible,l=a===void 0?!0:a,s=i.removeOnLeave,u=s===void 0?!0:s,f=i.forceRender,d=i.children,p=i.motionName,h=i.leavedClassName,g=i.eventProps,b=n(i),w=c.useRef(),m=c.useRef();function v(){try{return w.current instanceof HTMLElement?w.current:Os(m.current)}catch{return null}}var y=tP(b,l,v,i),S=V(y,4),x=S[0],C=S[1],E=S[2],$=S[3],M=c.useRef($);$&&(M.current=!0);var k=c.useCallback(function(L){w.current=L,ry(o,L)},[o]),R,O=_(_({},g),{},{visible:l});if(!d)R=null;else if(x===Oi||!n(i))$?R=d(_({},O),k):!u&&M.current?R=d(_(_({},O),{},{className:h}),k):f?R=d(_(_({},O),{},{style:{display:"none"}}),k):R=null;else{var P,T;C===Wn?T="prepare":a1(C)?T="active":C===Hi&&(T="start"),R=d(_(_({},O),{},{className:W(Dm(p,x),(P={},A(P,Dm(p,"".concat(x,"-").concat(T)),T),A(P,p,typeof p=="string"),P)),style:E}),k)}if(c.isValidElement(R)&&pp(R)){var N=R,F=N.ref;F||(R=c.cloneElement(R,{ref:k}))}return c.createElement(nP,{ref:m},R)});return r.displayName="CSSMotion",r}const mo=rP(Y2),{isValidElement:Jn}=Zl;function iP(e){return e&&Jn(e)&&e.type===c.Fragment}function oP(e,t,n){return Jn(e)?c.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function er(e,t){return oP(e,e,t)}function rd(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a"u"||typeof window>"u")return!1;var 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==null?void 0:e.substr(0,4))};var K={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=K.F1&&n<=K.F12)return!1;switch(n){case K.ALT:case K.CAPS_LOCK:case K.CONTEXT_MENU:case K.CTRL:case K.DOWN:case K.END:case K.ESC:case K.HOME:case K.INSERT:case K.LEFT:case K.MAC_FF_META:case K.META:case K.NUMLOCK:case K.NUM_CENTER:case K.PAGE_DOWN:case K.PAGE_UP:case K.PAUSE:case K.PRINT_SCREEN:case K.RIGHT:case K.SHIFT:case K.UP:case K.WIN_KEY:case K.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=K.ZERO&&t<=K.NINE||t>=K.NUM_ZERO&&t<=K.NUM_MULTIPLY||t>=K.A&&t<=K.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case K.SPACE:case K.QUESTION_MARK:case K.NUM_PLUS:case K.NUM_MINUS:case K.NUM_PERIOD:case K.NUM_DIVISION:case K.SEMICOLON:case K.DASH:case K.EQUALS:case K.COMMA:case K.PERIOD:case K.SLASH:case K.APOSTROPHE:case K.SINGLE_QUOTE:case K.OPEN_SQUARE_BRACKET:case K.BACKSLASH:case K.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},aP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],wi=void 0;function lP(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,f=e.className,d=e.style,p=e.children,h=e.display,g=e.order,b=e.component,w=b===void 0?"div":b,m=he(e,aP),v=a&&!h;function y($){s(u,$)}c.useEffect(function(){return function(){y(null)}},[]);var S=o&&i!==wi?o(i):p,x;r||(x={opacity:v?0:1,height:v?0:wi,overflowY:v?"hidden":wi,order:a?g:wi,pointerEvents:v?"none":wi,position:v?"absolute":wi});var C={};v&&(C["aria-hidden"]=!0);var E=c.createElement(w,re({className:W(!r&&n,f),style:_(_({},x),d)},C,m,{ref:t}),S);return a&&(E=c.createElement($a,{onResize:function(M){var k=M.offsetWidth;y(k)},disabled:l},E)),E}var ia=c.forwardRef(lP);ia.displayName="Item";function sP(){var e=Tr({}),t=V(e,2),n=t[1],r=c.useRef([]),i=0,o=0;function a(l){var s=i;i+=1,r.current.lengthg,Ye=c.useMemo(function(){var ne=o;return xe?R===null&&$?ne=o:ne=o.slice(0,Math.min(o.length,P/f)):typeof g=="number"&&(ne=o.slice(0,g)),ne},[o,f,R,g,xe]),$t=c.useMemo(function(){return xe?o.slice(ae+1):o.slice(Ye.length)},[o,Ye,xe,ae]),Ge=c.useCallback(function(ne,ve){var Re;return typeof s=="function"?s(ne):(Re=s&&(ne==null?void 0:ne[s]))!==null&&Re!==void 0?Re:ve},[s]),On=c.useCallback(a||function(ne){return ne},[a]);function bt(ne,ve,Re){Z===ne&&(ve===void 0||ve===Ue)||(se(ne),Re||(yt(neP){bt(Pt-1,ne-Tn-oe+X);break}}m&&zn(0)+oe>P&&te(null)}},[P,F,X,oe,Ge,Ye]);var zr=Ke&&!!$t.length,Dr={};Ue!==null&&xe&&(Dr={position:"absolute",left:Ue,top:0});var Qt={prefixCls:_t,responsive:xe,component:S,invalidate:Pn},rr=l?function(ne,ve){var Re=Ge(ne,ve);return c.createElement(Ns.Provider,{key:Re,value:_(_({},Qt),{},{order:ve,item:ne,itemKey:Re,registerSize:nt,display:ve<=ae})},l(ne,ve))}:function(ne,ve){var Re=Ge(ne,ve);return c.createElement(ia,re({},Qt,{order:ve,key:Re,item:ne,renderItem:On,itemKey:Re,registerSize:nt,display:ve<=ae}))},fn,jr={order:zr?ae:Number.MAX_SAFE_INTEGER,className:"".concat(_t,"-rest"),registerSize:Lr,display:zr};if(w)w&&(fn=c.createElement(Ns.Provider,{value:_(_({},Qt),jr)},w($t)));else{var Dn=b||vP;fn=c.createElement(ia,re({},Qt,jr),typeof Dn=="function"?Dn($t):Dn)}var pt=c.createElement(y,re({className:W(!Pn&&r,h),style:p,ref:t},C),Ye.map(rr),At?fn:null,m&&c.createElement(ia,re({},Qt,{responsive:Fn,responsiveDisabled:!xe,order:ae,className:"".concat(_t,"-suffix"),registerSize:Fr,display:!0,style:Dr}),m));return Fn&&(pt=c.createElement($a,{onResize:lt,disabled:!xe},pt)),pt}var Xn=c.forwardRef(mP);Xn.displayName="Overflow";Xn.Item=s1;Xn.RESPONSIVE=u1;Xn.INVALIDATE=c1;var hP=c.forwardRef(function(e,t){var n=e.didUpdate,r=e.getContainer,i=e.children,o=c.useRef(),a=c.useRef();c.useImperativeHandle(t,function(){return{}});var l=c.useRef(!1);return!l.current&&nr()&&(a.current=r(),o.current=a.current.parentNode,l.current=!0),c.useEffect(function(){n==null||n(e)}),c.useEffect(function(){return a.current.parentNode===null&&o.current!==null&&o.current.appendChild(a.current),function(){var s,u;(s=a.current)===null||s===void 0||(u=s.parentNode)===null||u===void 0||u.removeChild(a.current)}},[]),a.current?xa.createPortal(i,a.current):null});function gP(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function yP(e,t,n){var r=e[t]||{};return _(_({},r),n)}function bP(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function VP(e,t,n,r){var i=J.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),J.mix(i,o)}function Op(e){var t,n,r;if(!J.isWindow(e)&&e.nodeType!==9)t=J.offset(e),n=J.outerWidth(e),r=J.outerHeight(e);else{var i=J.getWindow(e);t={left:J.getWindowScrollLeft(i),top:J.getWindowScrollTop(i)},n=J.viewportWidth(i),r=J.viewportHeight(i)}return t.width=n,t.height=r,t}function Zm(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,l=e.top;return n==="c"?l+=o/2:n==="b"&&(l+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:l}}function $l(e,t,n,r,i){var o=Zm(t,n[1]),a=Zm(e,n[0]),l=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-l[0]+r[0]-i[0]),top:Math.round(e.top-l[1]+r[1]-i[1])}}function Jm(e,t,n){return e.leftn.right}function eh(e,t,n){return e.topn.bottom}function WP(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Tp(e,t,n){var r=n.target||t,i=Op(r),o=!KP(r,n.overflow&&n.overflow.alwaysByViewport);return b1(e,i,n,o)}Tp.__getOffsetParent=ld;Tp.__getVisibleRectForElement=Pp;function GP(e,t,n){var r,i,o=J.getDocument(e),a=o.defaultView||o.parentWindow,l=J.getWindowScrollLeft(a),s=J.getWindowScrollTop(a),u=J.viewportWidth(a),f=J.viewportHeight(a);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?i=t.pageY:i=s+t.clientY;var d={left:r,top:i,width:0,height:0},p=r>=0&&r<=l+u&&i>=0&&i<=s+f,h=[n.points[0],"cc"];return b1(e,d,Wm(Wm({},n),{},{points:h}),p)}const S1=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}return!1},XP=function(e,t){var n=Oe.useRef(!1),r=Oe.useRef(null);function i(){window.clearTimeout(r.current)}function o(a){if(i(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,o()},t)}return[o,function(){n.current=!1,i()}]};function qP(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:!1}function YP(e,t){e!==document.activeElement&&Jo(t,e)&&typeof e.focus=="function"&&e.focus()}function rh(e,t){var n=null,r=null;function i(a){var l=V(a,1),s=l[0].target;if(document.documentElement.contains(s)){var u=s.getBoundingClientRect(),f=u.width,d=u.height,p=Math.floor(f),h=Math.floor(d);(n!==p||r!==h)&&Promise.resolve().then(function(){t({width:p,height:h})}),n=p,r=h}}var o=new uy(i);return e&&o.observe(e),function(){o.disconnect()}}function ih(e){return typeof e!="function"?null:e()}function oh(e){return ge(e)!=="object"||!e?null:e}var QP=function(t,n){var r=t.children,i=t.disabled,o=t.target,a=t.align,l=t.onAlign,s=t.monitorWindowResize,u=t.monitorBufferTime,f=u===void 0?0:u,d=Oe.useRef({}),p=Oe.useRef(),h=Oe.Children.only(r),g=Oe.useRef({});g.current.disabled=i,g.current.target=o,g.current.align=a,g.current.onAlign=l;var b=XP(function(){var R=g.current,O=R.disabled,P=R.target,T=R.align,N=R.onAlign,F=p.current;if(!O&&P&&F){var L,I=ih(P),D=oh(P);d.current.element=I,d.current.point=D,d.current.align=T;var j=document,U=j.activeElement;return I&&S1(I)?L=Tp(F,I,T):D&&(L=GP(F,D,T)),YP(U,F),N&&L&&N(F,L),!0}return!1},f),w=V(b,2),m=w[0],v=w[1],y=Oe.useState(),S=V(y,2),x=S[0],C=S[1],E=Oe.useState(),$=V(E,2),M=$[0],k=$[1];return so(function(){C(ih(o)),k(oh(o))}),Oe.useEffect(function(){(d.current.element!==x||!qP(d.current.point,M)||!tE(d.current.align,a))&&m()}),Oe.useEffect(function(){var R=rh(p.current,m);return R},[p.current]),Oe.useEffect(function(){var R=rh(x,m);return R},[x]),Oe.useEffect(function(){i?v():m()},[i]),Oe.useEffect(function(){if(s){var R=Ho(window,"resize",m);return R.remove}},[s]),Oe.useEffect(function(){return function(){v()}},[]),Oe.useImperativeHandle(n,function(){return{forceAlign:function(){return m(!0)}}}),Oe.isValidElement(h)&&(h=Oe.cloneElement(h,{ref:pu(h.ref,p)})),h},w1=Oe.forwardRef(QP);w1.displayName="Align";var ah=["measure","alignPre","align",null,"motion"];const ZP=function(e,t){var n=Tr(null),r=V(n,2),i=r[0],o=r[1],a=c.useRef();function l(f){o(f,!0)}function s(){He.cancel(a.current)}function u(f){s(),a.current=He(function(){l(function(d){switch(i){case"align":return"motion";case"motion":return"stable"}return d}),f==null||f()})}return c.useEffect(function(){l("measure")},[e]),c.useEffect(function(){switch(i){case"measure":t();break}i&&(a.current=He(Da(Cn().mark(function f(){var d,p;return Cn().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:d=ah.indexOf(i),p=ah[d+1],p&&d!==-1&&l(p);case 3:case"end":return g.stop()}},f)}))))},[i]),c.useEffect(function(){return function(){s()}},[]),[i,u]},JP=function(e){var t=c.useState({width:0,height:0}),n=V(t,2),r=n[0],i=n[1];function o(l){var s=l.offsetWidth,u=l.offsetHeight,f=l.getBoundingClientRect(),d=f.width,p=f.height;Math.abs(s-d)<1&&Math.abs(u-p)<1&&(s=d,u=p),i({width:s,height:u})}var a=c.useMemo(function(){var l={};if(e){var s=r.width,u=r.height;e.indexOf("height")!==-1&&u?l.height=u:e.indexOf("minHeight")!==-1&&u&&(l.minHeight=u),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,r]);return[a,o]};var C1=c.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,o=e.style,a=e.children,l=e.zIndex,s=e.stretch,u=e.destroyPopupOnHide,f=e.forceRender,d=e.align,p=e.point,h=e.getRootDomNode,g=e.getClassNameFromAlign,b=e.onAlign,w=e.onMouseEnter,m=e.onMouseLeave,v=e.onMouseDown,y=e.onTouchStart,S=e.onClick,x=c.useRef(),C=c.useRef(),E=c.useState(),$=V(E,2),M=$[0],k=$[1],R=JP(s),O=V(R,2),P=O[0],T=O[1];function N(){s&&T(h())}var F=ZP(n,N),L=V(F,2),I=L[0],D=L[1],j=c.useState(0),U=V(j,2),z=U[0],B=U[1],X=c.useRef();so(function(){I==="alignPre"&&B(0)},[I]);function Y(){return p||h}function q(){var te;(te=x.current)===null||te===void 0||te.forceAlign()}function ee(te,Ee){var Ne=g(Ee);M!==Ne&&k(Ne),B(function(Z){return Z+1}),I==="align"&&(b==null||b(te,Ee))}so(function(){I==="align"&&(z<3?q():D(function(){var te;(te=X.current)===null||te===void 0||te.call(X)}))},[z]);var oe=_({},f1(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(te){var Ee=oe[te];oe[te]=function(Ne,Z){return D(),Ee==null?void 0:Ee(Ne,Z)}});function le(){return new Promise(function(te){X.current=te})}c.useEffect(function(){!oe.motionName&&I==="motion"&&D()},[oe.motionName,I]),c.useImperativeHandle(t,function(){return{forceAlign:q,getElement:function(){return C.current}}});var Ie=_(_({},P),{},{zIndex:l,opacity:I==="motion"||I==="stable"||!n?void 0:0,pointerEvents:!n&&I!=="stable"?"none":void 0},o),ye=!0;d!=null&&d.points&&(I==="align"||I==="stable")&&(ye=!1);var Ue=a;return c.Children.count(a)>1&&(Ue=c.createElement("div",{className:"".concat(r,"-content")},a)),c.createElement(mo,re({visible:n,ref:C,leavedClassName:"".concat(r,"-hidden")},oe,{onAppearPrepare:le,onEnterPrepare:le,removeOnLeave:u,forceRender:f}),function(te,Ee){var Ne=te.className,Z=te.style,se=W(r,i,M,Ne);return c.createElement(w1,{target:Y(),key:"popup",ref:x,monitorWindowResize:!0,disabled:ye,align:d,onAlign:ee},c.createElement("div",{ref:Ee,className:se,onMouseEnter:w,onMouseLeave:m,onMouseDownCapture:v,onTouchStartCapture:y,onClick:S,style:_(_({},Z),Ie)},Ue))})});C1.displayName="PopupInner";var x1=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,o=e.children,a=e.mobile;a=a===void 0?{}:a;var l=a.popupClassName,s=a.popupStyle,u=a.popupMotion,f=u===void 0?{}:u,d=a.popupRender,p=e.onClick,h=c.useRef();c.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return h.current}}});var g=_({zIndex:i},s),b=o;return c.Children.count(o)>1&&(b=c.createElement("div",{className:"".concat(n,"-content")},o)),d&&(b=d(b)),c.createElement(mo,re({visible:r,ref:h,removeOnLeave:!0},f),function(w,m){var v=w.className,y=w.style,S=W(n,l,v);return c.createElement("div",{ref:m,className:S,onClick:p,style:_(_({},y),g)},b)})});x1.displayName="MobilePopupInner";var eO=["visible","mobile"],E1=c.forwardRef(function(e,t){var n=e.visible,r=e.mobile,i=he(e,eO),o=c.useState(n),a=V(o,2),l=a[0],s=a[1],u=c.useState(!1),f=V(u,2),d=f[0],p=f[1],h=_(_({},i),{},{visible:l});c.useEffect(function(){s(n),n&&r&&p(l1())},[n,r]);var g=d?c.createElement(x1,re({},h,{mobile:r,ref:t})):c.createElement(C1,re({},h,{ref:t}));return c.createElement("div",null,c.createElement(SP,h),g)});E1.displayName="Popup";var lh=c.createContext(null);function Cc(){}function tO(){return""}function nO(e){return e?e.ownerDocument:window.document}var rO=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function iO(e){var t=function(n){di(i,n);var r=pi(i);function i(o){var a;Xt(this,i),a=r.call(this,o),A(ie(a),"popupRef",c.createRef()),A(ie(a),"triggerRef",c.createRef()),A(ie(a),"portalContainer",void 0),A(ie(a),"attachId",void 0),A(ie(a),"clickOutsideHandler",void 0),A(ie(a),"touchOutsideHandler",void 0),A(ie(a),"contextMenuOutsideHandler1",void 0),A(ie(a),"contextMenuOutsideHandler2",void 0),A(ie(a),"mouseDownTimeout",void 0),A(ie(a),"focusTime",void 0),A(ie(a),"preClickTime",void 0),A(ie(a),"preTouchTime",void 0),A(ie(a),"delayTimer",void 0),A(ie(a),"hasPopupMouseDown",void 0),A(ie(a),"onMouseEnter",function(s){var u=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",s),a.delaySetPopupVisible(!0,u,u?null:s)}),A(ie(a),"onMouseMove",function(s){a.fireEvents("onMouseMove",s),a.setPoint(s)}),A(ie(a),"onMouseLeave",function(s){a.fireEvents("onMouseLeave",s),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),A(ie(a),"onPopupMouseEnter",function(){a.clearDelayTimer()}),A(ie(a),"onPopupMouseLeave",function(s){var u;s.relatedTarget&&!s.relatedTarget.setTimeout&&Jo((u=a.popupRef.current)===null||u===void 0?void 0:u.getElement(),s.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),A(ie(a),"onFocus",function(s){a.fireEvents("onFocus",s),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay))}),A(ie(a),"onMouseDown",function(s){a.fireEvents("onMouseDown",s),a.preClickTime=Date.now()}),A(ie(a),"onTouchStart",function(s){a.fireEvents("onTouchStart",s),a.preTouchTime=Date.now()}),A(ie(a),"onBlur",function(s){a.fireEvents("onBlur",s),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay)}),A(ie(a),"onContextMenu",function(s){s.preventDefault(),a.fireEvents("onContextMenu",s),a.setPopupVisible(!0,s)}),A(ie(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close()}),A(ie(a),"onClick",function(s){if(a.fireEvents("onClick",s),a.focusTime){var u;if(a.preClickTime&&a.preTouchTime?u=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?u=a.preClickTime:a.preTouchTime&&(u=a.preTouchTime),Math.abs(u-a.focusTime)<20)return;a.focusTime=0}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var f=!a.state.popupVisible;(a.isClickToHide()&&!f||f&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,s)}),A(ie(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1},0),a.context){var s;(s=a.context).onPopupMouseDown.apply(s,arguments)}}),A(ie(a),"onDocumentClick",function(s){if(!(a.props.mask&&!a.props.maskClosable)){var u=s.target,f=a.getRootDomNode(),d=a.getPopupDomNode();(!Jo(f,u)||a.isContextMenuOnly())&&!Jo(d,u)&&!a.hasPopupMouseDown&&a.close()}}),A(ie(a),"getRootDomNode",function(){var s=a.props.getTriggerDOMNode;if(s)return s(a.triggerRef.current);try{var u=Os(a.triggerRef.current);if(u)return u}catch{}return xa.findDOMNode(ie(a))}),A(ie(a),"getPopupClassNameFromAlign",function(s){var u=[],f=a.props,d=f.popupPlacement,p=f.builtinPlacements,h=f.prefixCls,g=f.alignPoint,b=f.getPopupClassNameFromAlign;return d&&p&&u.push(bP(p,h,s,g)),b&&u.push(b(s)),u.join(" ")}),A(ie(a),"getComponent",function(){var s=a.props,u=s.prefixCls,f=s.destroyPopupOnHide,d=s.popupClassName,p=s.onPopupAlign,h=s.popupMotion,g=s.popupAnimation,b=s.popupTransitionName,w=s.popupStyle,m=s.mask,v=s.maskAnimation,y=s.maskTransitionName,S=s.maskMotion,x=s.zIndex,C=s.popup,E=s.stretch,$=s.alignPoint,M=s.mobile,k=s.forceRender,R=s.onPopupClick,O=a.state,P=O.popupVisible,T=O.point,N=a.getPopupAlign(),F={};return a.isMouseEnterToShow()&&(F.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(F.onMouseLeave=a.onPopupMouseLeave),F.onMouseDown=a.onPopupMouseDown,F.onTouchStart=a.onPopupMouseDown,c.createElement(E1,re({prefixCls:u,destroyPopupOnHide:f,visible:P,point:$&&T,className:d,align:N,onAlign:p,animation:g,getClassNameFromAlign:a.getPopupClassNameFromAlign},F,{stretch:E,getRootDomNode:a.getRootDomNode,style:w,mask:m,zIndex:x,transitionName:b,maskAnimation:v,maskTransitionName:y,maskMotion:S,ref:a.popupRef,motion:h,mobile:M,forceRender:k,onClick:R}),typeof C=="function"?C():C)}),A(ie(a),"attachParent",function(s){He.cancel(a.attachId);var u=a.props,f=u.getPopupContainer,d=u.getDocument,p=a.getRootDomNode(),h;f?(p||f.length===0)&&(h=f(p)):h=d(a.getRootDomNode()).body,h?h.appendChild(s):a.attachId=He(function(){a.attachParent(s)})}),A(ie(a),"getContainer",function(){if(!a.portalContainer){var s=a.props.getDocument,u=s(a.getRootDomNode()).createElement("div");u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.width="100%",a.portalContainer=u}return a.attachParent(a.portalContainer),a.portalContainer}),A(ie(a),"setPoint",function(s){var u=a.props.alignPoint;!u||!s||a.setState({point:{pageX:s.pageX,pageY:s.pageY}})}),A(ie(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible)}),A(ie(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var l;return"popupVisible"in o?l=!!o.popupVisible:l=!!o.defaultPopupVisible,a.state={prevPopupVisible:l,popupVisible:l},rO.forEach(function(s){a["fire".concat(s)]=function(u){a.fireEvents(s,u)}}),a}return qt(i,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ho(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ho(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Ho(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Ho(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),He.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var a;return((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,l=a.popupPlacement,s=a.popupAlign,u=a.builtinPlacements;return l&&u?yP(u,l,s):s}},{key:"setPopupVisible",value:function(a,l){var s=this.props.alignPoint,u=this.state.popupVisible;this.clearDelayTimer(),u!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:u}),this.props.onPopupVisibleChange(a)),s&&l&&a&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(a,l,s){var u=this,f=l*1e3;if(this.clearDelayTimer(),f){var d=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){u.setPopupVisible(a,d),u.clearDelayTimer()},f)}else this.setPopupVisible(a,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(a){var l=this.props.children.props,s=this.props;return l[a]&&s[a]?this["fire".concat(a)]:l[a]||s[a]}},{key:"isClickToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign()}}},{key:"fireEvents",value:function(a,l){var s=this.props.children.props[a];s&&s(l);var u=this.props[a];u&&u(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var a=this.state.popupVisible,l=this.props,s=l.children,u=l.forceRender,f=l.alignPoint,d=l.className,p=l.autoDestroy,h=c.Children.only(s),g={key:"trigger"};this.isContextMenuToShow()?g.onContextMenu=this.onContextMenu:g.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(g.onClick=this.onClick,g.onMouseDown=this.onMouseDown,g.onTouchStart=this.onTouchStart):(g.onClick=this.createTwoChains("onClick"),g.onMouseDown=this.createTwoChains("onMouseDown"),g.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(g.onMouseEnter=this.onMouseEnter,f&&(g.onMouseMove=this.onMouseMove)):g.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?g.onMouseLeave=this.onMouseLeave:g.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(g.onFocus=this.onFocus,g.onBlur=this.onBlur):(g.onFocus=this.createTwoChains("onFocus"),g.onBlur=this.createTwoChains("onBlur"));var b=W(h&&h.props&&h.props.className,d);b&&(g.className=b);var w=_({},g);pp(h)&&(w.ref=pu(this.triggerRef,h.ref));var m=c.cloneElement(h,w),v;return(a||this.popupRef.current||u)&&(v=c.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&p&&(v=null),c.createElement(lh.Provider,{value:this.triggerContextValue},m,v)}}],[{key:"getDerivedStateFromProps",value:function(a,l){var s=a.popupVisible,u={};return s!==void 0&&l.popupVisible!==s&&(u.popupVisible=s,u.prevPopupVisible=l.popupVisible),u}}]),i}(c.Component);return A(t,"contextType",lh),A(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:tO,getDocument:nO,onPopupVisibleChange:Cc,afterPopupVisibleChange:Cc,onPopupAlign:Cc,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const Rp=iO(hP),xc=()=>({height:0,opacity:0}),sh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},oO=e=>({height:e?e.offsetHeight:0}),Ec=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",aO=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:xc,onEnterStart:xc,onAppearActive:sh,onEnterActive:sh,onLeaveStart:oO,onLeaveActive:xc,onAppearEnd:Ec,onEnterEnd:Ec,onLeaveEnd:Ec,motionDeadline:500}},$1=(e,t,n)=>n!==void 0?n:`${e}-${t}`,P1=aO,lO=e=>({animationDuration:e,animationFillMode:"both"}),sO=e=>({animationDuration:e,animationFillMode:"both"}),O1=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${o}${e}-enter, + ${o}${e}-appear + `]:Object.assign(Object.assign({},lO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},sO(r)),{animationPlayState:"paused"}),[` + ${o}${e}-enter${e}-enter-active, + ${o}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},uO=new ze("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),cO=new ze("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),fO=new ze("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),dO=new ze("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),pO=new ze("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),vO=new ze("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),mO=new ze("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),hO=new ze("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),gO={"slide-up":{inKeyframes:uO,outKeyframes:cO},"slide-down":{inKeyframes:fO,outKeyframes:dO},"slide-left":{inKeyframes:pO,outKeyframes:vO},"slide-right":{inKeyframes:mO,outKeyframes:hO}},As=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=gO[t];return[O1(r,i,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},yO=new ze("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bO=new ze("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),uh=new ze("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ch=new ze("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),SO=new ze("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wO=new ze("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),CO=new ze("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),xO=new ze("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),EO=new ze("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),$O=new ze("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),PO=new ze("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OO=new ze("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TO={zoom:{inKeyframes:yO,outKeyframes:bO},"zoom-big":{inKeyframes:uh,outKeyframes:ch},"zoom-big-fast":{inKeyframes:uh,outKeyframes:ch},"zoom-left":{inKeyframes:CO,outKeyframes:xO},"zoom-right":{inKeyframes:EO,outKeyframes:$O},"zoom-up":{inKeyframes:SO,outKeyframes:wO},"zoom-down":{inKeyframes:PO,outKeyframes:OO}},T1=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=TO[t];return[O1(r,i,o,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}}]},RO=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`}}}),R1=RO,kO=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},MO=kO,IO=e=>{const{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}-space-item`]:{"&:empty":{display:"none"}}}}},k1=_r("Space",e=>[IO(e),MO(e)]);var M1=globalThis&&globalThis.__rest||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{children:t}=e,n=M1(e,["children"]);return c.createElement(I1.Provider,{value:n},t)},_O=e=>{const{getPrefixCls:t,direction:n}=c.useContext(We),{size:r="middle",direction:i,block:o,prefixCls:a,className:l,children:s}=e,u=M1(e,["size","direction","block","prefixCls","className","children"]),f=t("space-compact",a),[d,p]=k1(f),h=W(f,p,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},l),g=c.useContext(I1),b=wn(s),w=c.useMemo(()=>b.map((m,v)=>{const y=m&&m.key||`${f}-item-${v}`;return c.createElement(NO,{key:y,compactSize:r,compactDirection:i,isFirstItem:v===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:v===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},m)}),[r,b,g]);return b.length===0?null:d(c.createElement("div",Object.assign({className:h},u),w))},AO=_O;var Jt={adjustX:1,adjustY:1},en=[0,0],N1={left:{points:["cr","cl"],overflow:Jt,offset:[-4,0],targetOffset:en},right:{points:["cl","cr"],overflow:Jt,offset:[4,0],targetOffset:en},top:{points:["bc","tc"],overflow:Jt,offset:[0,-4],targetOffset:en},bottom:{points:["tc","bc"],overflow:Jt,offset:[0,4],targetOffset:en},topLeft:{points:["bl","tl"],overflow:Jt,offset:[0,-4],targetOffset:en},leftTop:{points:["tr","tl"],overflow:Jt,offset:[-4,0],targetOffset:en},topRight:{points:["br","tr"],overflow:Jt,offset:[0,-4],targetOffset:en},rightTop:{points:["tl","tr"],overflow:Jt,offset:[4,0],targetOffset:en},bottomRight:{points:["tr","br"],overflow:Jt,offset:[0,4],targetOffset:en},rightBottom:{points:["bl","br"],overflow:Jt,offset:[4,0],targetOffset:en},bottomLeft:{points:["tl","bl"],overflow:Jt,offset:[0,4],targetOffset:en},leftBottom:{points:["br","bl"],overflow:Jt,offset:[-4,0],targetOffset:en}};function _1(e){var t=e.showArrow,n=e.arrowContent,r=e.children,i=e.prefixCls,o=e.id,a=e.overlayInnerStyle,l=e.className,s=e.style;return c.createElement("div",{className:W("".concat(i,"-content"),l),style:s},t!==!1&&c.createElement("div",{className:"".concat(i,"-arrow"),key:"arrow"},n),c.createElement("div",{className:"".concat(i,"-inner"),id:o,role:"tooltip",style:a},typeof r=="function"?r():r))}var LO=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,u=s===void 0?.1:s,f=t.overlayStyle,d=t.prefixCls,p=d===void 0?"rc-tooltip":d,h=t.children,g=t.onVisibleChange,b=t.afterVisibleChange,w=t.transitionName,m=t.animation,v=t.motion,y=t.placement,S=y===void 0?"right":y,x=t.align,C=x===void 0?{}:x,E=t.destroyTooltipOnHide,$=E===void 0?!1:E,M=t.defaultVisible,k=t.getTooltipContainer,R=t.overlayInnerStyle,O=t.arrowContent,P=t.overlay,T=t.id,N=t.showArrow,F=he(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),L=c.useRef(null);c.useImperativeHandle(n,function(){return L.current});var I=_({},F);"visible"in t&&(I.popupVisible=t.visible);var D=function(){return c.createElement(_1,{showArrow:N,arrowContent:O,key:"content",prefixCls:p,id:T,overlayInnerStyle:R},P)},j=!1,U=!1;if(typeof $=="boolean")j=$;else if($&&ge($)==="object"){var z=$.keepParent;j=z===!0,U=z===!1}return c.createElement(Rp,re({popupClassName:r,prefixCls:p,popup:D,action:o,builtinPlacements:N1,popupPlacement:S,ref:L,popupAlign:C,getPopupContainer:k,onPopupVisibleChange:g,afterPopupVisibleChange:b,popupTransitionName:w,popupAnimation:m,popupMotion:v,defaultPopupVisible:M,destroyPopupOnHide:j,autoDestroy:U,mouseLeaveDelay:u,popupStyle:f,mouseEnterDelay:l},I),h)};const FO=c.forwardRef(LO),zO={adjustX:1,adjustY:1},fh={adjustX:0,adjustY:0},DO=[0,0];function dh(e){return typeof e=="boolean"?e?zO:fh:Object.assign(Object.assign({},fh),e)}function jO(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:o}=e,a={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(a).forEach(l=>{a[l]=o?Object.assign(Object.assign({},a[l]),{overflow:dh(i),targetOffset:DO}):Object.assign(Object.assign({},N1[l]),{overflow:dh(i)}),a[l].ignoreShake=!0}),a}function Tl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const sd=8;function HO(e){const t=sd,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=e,a=n/2-Math.ceil(i*(Math.sqrt(2)-1)),l=(r>12?r+2:12)-a,s=o?t-a:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:s}}function BO(e,t){const{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:l}=e,{colorBg:s,showArrowCls:u,contentRadius:f=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:h}=HO({sizePopupArrow:r,contentRadius:f,borderRadiusOuter:a,limitVerticalRadius:d}),g=r/2+i;return{[n]:{[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},E2(r,o,a,s,l)),{"&:before":{background:s}})],[[`&-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:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-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:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[Tl(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:g},[Tl(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:g},[Tl(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:g}},[Tl(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const VO=e=>{const{componentCls:t}=e;return U$.reduce((n,r)=>{const i=e[`${r}-6`];return n[`&${t}-${r}`]={[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{"--antd-arrow-background-color":i}},n},{})},WO=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:f,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vi(e)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${f}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:o>sd?sd:o}},[`${t}-content`]:{position:"relative"}}),VO(e)),{"&-rtl":{direction:"rtl"}})},BO(Ln(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:o,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},A1=(e,t)=>_r("Tooltip",r=>{if(t===!1)return[];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:l}=r,s=Ln(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[WO(s),T1(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=r;return{zIndexPopup:i+70,colorBgDefault:o}})(e),UO=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],ph=new RegExp(`^(${UO.join("|")})(-inverse)?$`);function L1(e,t){const n=W({[`${e}-${t}`]:t&&ph.test(t)}),r={},i={};return t&&!ph.test(t)&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:r,arrowStyle:i}}function KO(e){const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:l}=c.useContext(We),s=l("tooltip",t),[u,f]=A1(s,!0),d=L1(s,o),p=Object.assign(Object.assign({},a),d.overlayStyle),h=d.arrowStyle;return u(c.createElement("div",{className:W(f,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className),style:h},c.createElement(_1,Object.assign({},e,{className:f,prefixCls:s,overlayInnerStyle:p}),i)))}var GO=globalThis&&globalThis.__rest||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{const n={},r=Object.assign({},e);return t.forEach(i=>{e&&i in e&&(n[i]=e[i],delete r[i])}),{picked:n,omitted:r}};function qO(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:i}=XO(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},i),{pointerEvents:"none"}),l=er(e,{style:a,className:null});return c.createElement("span",{style:o,className:W(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const F1=c.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:u,children:f,afterOpenChange:d,afterVisibleChange:p}=e,{getPopupContainer:h,getPrefixCls:g,direction:b}=c.useContext(We),[w,m]=ri(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),v=()=>{const{title:q,overlay:ee}=e;return!q&&!ee&&q!==0},y=q=>{var ee,oe;m(v()?!1:q),v()||((ee=e.onOpenChange)===null||ee===void 0||ee.call(e,q),(oe=e.onVisibleChange)===null||oe===void 0||oe.call(e,q))},S=()=>{const{builtinPlacements:q,arrowPointAtCenter:ee=!1,autoAdjustOverflow:oe=!0}=e;return q||jO({arrowPointAtCenter:ee,autoAdjustOverflow:oe})},x=(q,ee)=>{const oe=S(),le=Object.keys(oe).find(Ue=>{var te,Ee;return oe[Ue].points[0]===((te=ee.points)===null||te===void 0?void 0:te[0])&&oe[Ue].points[1]===((Ee=ee.points)===null||Ee===void 0?void 0:Ee[1])});if(!le)return;const Ie=q.getBoundingClientRect(),ye={top:"50%",left:"50%"};/top|Bottom/.test(le)?ye.top=`${Ie.height-ee.offset[1]}px`:/Top|bottom/.test(le)&&(ye.top=`${-ee.offset[1]}px`),/left|Right/.test(le)?ye.left=`${Ie.width-ee.offset[0]}px`:/right|Left/.test(le)&&(ye.left=`${-ee.offset[0]}px`),q.style.transformOrigin=`${ye.left} ${ye.top}`},C=()=>{const{title:q,overlay:ee}=e;return q===0?q:ee||q||""},{getPopupContainer:E,placement:$="top",mouseEnterDelay:M=.1,mouseLeaveDelay:k=.1,overlayStyle:R}=e,O=GO(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),P=g("tooltip",i),T=g(),N=e["data-popover-inject"];let F=w;!("open"in e)&&!("visible"in e)&&v()&&(F=!1);const L=qO(Jn(f)&&!iP(f)?f:c.createElement("span",null,f),P),I=L.props,D=!I.className||typeof I.className=="string"?W(I.className,{[o||`${P}-open`]:!0}):I.className,[j,U]=A1(P,!N),z=L1(P,s),B=Object.assign(Object.assign({},u),z.overlayStyle),X=z.arrowStyle,Y=W(l,{[`${P}-rtl`]:b==="rtl"},z.className,U);return j(c.createElement(FO,Object.assign({},O,{placement:$,mouseEnterDelay:M,mouseLeaveDelay:k,prefixCls:P,overlayClassName:Y,overlayStyle:Object.assign(Object.assign({},X),R),getTooltipContainer:E||a||h,ref:t,builtinPlacements:S(),overlay:C(),visible:F,onVisibleChange:y,afterVisibleChange:d??p,onPopupAlign:x,overlayInnerStyle:B,arrowContent:c.createElement("span",{className:`${P}-arrow-content`}),motion:{motionName:$1(T,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),F?er(L,{className:D}):L))});F1._InternalPanelDoNotUseOrYouWillBeFired=KO;const YO=F1;var Ma=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(S1(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function V1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Q(e.querySelectorAll("*")).filter(function(r){return vh(r,t)});return vh(e,t)&&n.unshift(e),n}var ud=K.LEFT,cd=K.RIGHT,fd=K.UP,Gl=K.DOWN,Xl=K.ENTER,W1=K.ESC,No=K.HOME,_o=K.END,mh=[fd,Gl,ud,cd];function eT(e,t,n,r){var i,o,a,l,s="prev",u="next",f="children",d="parent";if(e==="inline"&&r===Xl)return{inlineTrigger:!0};var p=(i={},A(i,fd,s),A(i,Gl,u),i),h=(o={},A(o,ud,n?u:s),A(o,cd,n?s:u),A(o,Gl,f),A(o,Xl,f),o),g=(a={},A(a,fd,s),A(a,Gl,u),A(a,Xl,f),A(a,W1,d),A(a,ud,n?f:d),A(a,cd,n?d:f),a),b={inline:p,horizontal:h,vertical:g,inlineSub:p,horizontalSub:g,verticalSub:g},w=(l=b["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(w){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}function tT(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function nT(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function U1(e,t){var n=V1(e,!0);return n.filter(function(r){return t.has(r)})}function hh(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=U1(e,t),o=i.length,a=i.findIndex(function(l){return n===l});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}function rT(e,t,n,r,i,o,a,l,s,u){var f=c.useRef(),d=c.useRef();d.current=t;var p=function(){He.cancel(f.current)};return c.useEffect(function(){return function(){p()}},[]),function(h){var g=h.which;if([].concat(mh,[Xl,W1,No,_o]).includes(g)){var b,w,m,v=function(){b=new Set,w=new Map,m=new Map;var N=o();return N.forEach(function(F){var L=document.querySelector("[data-menu-id='".concat(kp(r,F),"']"));L&&(b.add(L),m.set(L,F),w.set(F,L))}),b};v();var y=w.get(t),S=nT(y,b),x=m.get(S),C=eT(e,a(x,!0).length===1,n,g);if(!C&&g!==No&&g!==_o)return;(mh.includes(g)||[No,_o].includes(g))&&h.preventDefault();var E=function(N){if(N){var F=N,L=N.querySelector("a");L!=null&&L.getAttribute("href")&&(F=L);var I=m.get(N);l(I),p(),f.current=He(function(){d.current===I&&F.focus()})}};if([No,_o].includes(g)||C.sibling||!S){var $;!S||e==="inline"?$=i.current:$=tT(S);var M,k=U1($,b);g===No?M=k[0]:g===_o?M=k[k.length-1]:M=hh($,b,S,C.offset),E(M)}else if(C.inlineTrigger)s(x);else if(C.offset>0)s(x,!0),p(),f.current=He(function(){v();var T=S.getAttribute("aria-controls"),N=document.getElementById(T),F=hh(N,b);E(F)},5);else if(C.offset<0){var R=a(x,!0),O=R[R.length-2],P=w.get(O);s(O,!1),E(P)}}u==null||u(h)}}function iT(e){Promise.resolve().then(e)}var Ip="__RC_UTIL_PATH_SPLIT__",gh=function(t){return t.join(Ip)},oT=function(t){return t.split(Ip)},dd="rc-menu-more";function aT(){var e=c.useState({}),t=V(e,2),n=t[1],r=c.useRef(new Map),i=c.useRef(new Map),o=c.useState([]),a=V(o,2),l=a[0],s=a[1],u=c.useRef(0),f=c.useRef(!1),d=function(){f.current||n({})},p=c.useCallback(function(y,S){var x=gh(S);i.current.set(x,y),r.current.set(y,x),u.current+=1;var C=u.current;iT(function(){C===u.current&&d()})},[]),h=c.useCallback(function(y,S){var x=gh(S);i.current.delete(x),r.current.delete(y)},[]),g=c.useCallback(function(y){s(y)},[]),b=c.useCallback(function(y,S){var x=r.current.get(y)||"",C=oT(x);return S&&l.includes(C[0])&&C.unshift(dd),C},[l]),w=c.useCallback(function(y,S){return y.some(function(x){var C=b(x,!0);return C.includes(S)})},[b]),m=function(){var S=Q(r.current.keys());return l.length&&S.push(dd),S},v=c.useCallback(function(y){var S="".concat(r.current.get(y)).concat(Ip),x=new Set;return Q(i.current.keys()).forEach(function(C){C.startsWith(S)&&x.add(i.current.get(C))}),x},[]);return c.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:g,isSubPathKey:w,getKeyPath:b,getKeys:m,getSubPathKeys:v}}function Ti(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(v.motionAppear=!1);var y=v.onVisibleChanged;return v.onVisibleChanged=function(S){return!p.current&&!S&&w(!0),y==null?void 0:y(S)},b?null:c.createElement(Ia,{mode:o,locked:!p.current},c.createElement(mo,re({visible:m},v,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var x=S.className,C=S.style;return c.createElement(Np,{id:t,className:x,style:C},i)}))}var ET=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$T=["active"],PT=function(t){var n,r=t.style,i=t.className,o=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,u=t.children,f=t.itemIcon,d=t.expandIcon,p=t.popupClassName,h=t.popupOffset,g=t.onClick,b=t.onMouseEnter,w=t.onMouseLeave,m=t.onTitleClick,v=t.onTitleMouseEnter,y=t.onTitleMouseLeave,S=he(t,ET),x=D1(a),C=c.useContext(xn),E=C.prefixCls,$=C.mode,M=C.openKeys,k=C.disabled,R=C.overflowDisabled,O=C.activeKey,P=C.selectedKeys,T=C.itemIcon,N=C.expandIcon,F=C.onItemClick,L=C.onOpenChange,I=C.onActive,D=c.useContext(Mp),j=D._internalRenderSubMenuItem,U=c.useContext(B1),z=U.isSubPathKey,B=ho(),X="".concat(E,"-submenu"),Y=k||l,q=c.useRef(),ee=c.useRef(),oe=f||T,le=d||N,Ie=M.includes(a),ye=!R&&Ie,Ue=z(P,a),te=K1(a,Y,v,y),Ee=te.active,Ne=he(te,$T),Z=c.useState(!1),se=V(Z,2),ae=se[0],_e=se[1],at=function(nt){Y||_e(nt)},Ke=function(nt){at(!0),b==null||b({key:a,domEvent:nt})},yt=function(nt){at(!1),w==null||w({key:a,domEvent:nt})},_t=c.useMemo(function(){return Ee||($!=="inline"?ae||z([O],a):!1)},[$,Ee,O,ae,a,z]),$n=X1(B.length),Fn=function(nt){Y||(m==null||m({key:a,domEvent:nt}),$==="inline"&&L(a,!Ie))},xe=Ti(function(lt){g==null||g(Ls(lt)),F(lt)}),Pn=function(nt){$!=="inline"&&L(a,nt)},At=function(){I(a)},Ye=x&&"".concat(x,"-popup"),$t=c.createElement("div",re({role:"menuitem",style:$n,className:"".concat(X,"-title"),tabIndex:Y?null:-1,ref:q,title:typeof o=="string"?o:null,"data-menu-id":R&&x?null:x,"aria-expanded":ye,"aria-haspopup":!0,"aria-controls":Ye,"aria-disabled":Y,onClick:Fn,onFocus:At},Ne),o,c.createElement(G1,{icon:$!=="horizontal"?le:null,props:_(_({},t),{},{isOpen:ye,isSubMenu:!0})},c.createElement("i",{className:"".concat(X,"-arrow")}))),Ge=c.useRef($);if($!=="inline"&&B.length>1?Ge.current="vertical":Ge.current=$,!R){var On=Ge.current;$t=c.createElement(CT,{mode:On,prefixCls:X,visible:!s&&ye&&$!=="inline",popupClassName:p,popupOffset:h,popup:c.createElement(Ia,{mode:On==="horizontal"?"vertical":On},c.createElement(Np,{id:Ye,ref:ee},u)),disabled:Y,onVisibleChange:Pn},$t)}var bt=c.createElement(Xn.Item,re({role:"none"},S,{component:"li",style:r,className:W(X,"".concat(X,"-").concat($),i,(n={},A(n,"".concat(X,"-open"),ye),A(n,"".concat(X,"-active"),_t),A(n,"".concat(X,"-selected"),Ue),A(n,"".concat(X,"-disabled"),Y),n)),onMouseEnter:Ke,onMouseLeave:yt}),$t,!R&&c.createElement(xT,{id:Ye,open:ye,keyPath:B},u));return j&&(bt=j(bt,t,{selected:Ue,active:_t,open:ye,disabled:Y})),c.createElement(Ia,{onItemClick:xe,mode:$==="horizontal"?"vertical":$,itemIcon:oe,expandIcon:le},bt)};function Eu(e){var t=e.eventKey,n=e.children,r=ho(t),i=_p(n,r),o=xu();c.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]);var a;return o?a=i:a=c.createElement(PT,e,i),c.createElement(H1.Provider,{value:r},a)}var OT=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ci=[],TT=c.forwardRef(function(e,t){var n,r,i=e,o=i.prefixCls,a=o===void 0?"rc-menu":o,l=i.rootClassName,s=i.style,u=i.className,f=i.tabIndex,d=f===void 0?0:f,p=i.items,h=i.children,g=i.direction,b=i.id,w=i.mode,m=w===void 0?"vertical":w,v=i.inlineCollapsed,y=i.disabled,S=i.disabledOverflow,x=i.subMenuOpenDelay,C=x===void 0?.1:x,E=i.subMenuCloseDelay,$=E===void 0?.1:E,M=i.forceSubMenuRender,k=i.defaultOpenKeys,R=i.openKeys,O=i.activeKey,P=i.defaultActiveFirst,T=i.selectable,N=T===void 0?!0:T,F=i.multiple,L=F===void 0?!1:F,I=i.defaultSelectedKeys,D=i.selectedKeys,j=i.onSelect,U=i.onDeselect,z=i.inlineIndent,B=z===void 0?24:z,X=i.motion,Y=i.defaultMotions,q=i.triggerSubMenuAction,ee=q===void 0?"hover":q,oe=i.builtinPlacements,le=i.itemIcon,Ie=i.expandIcon,ye=i.overflowedIndicator,Ue=ye===void 0?"...":ye,te=i.overflowedIndicatorPopupClassName,Ee=i.getPopupContainer,Ne=i.onClick,Z=i.onOpenChange,se=i.onKeyDown;i.openAnimation,i.openTransitionName;var ae=i._internalRenderMenuItem,_e=i._internalRenderSubMenuItem,at=he(i,OT),Ke=c.useMemo(function(){return yT(h,p,Ci)},[h,p]),yt=c.useState(!1),_t=V(yt,2),$n=_t[0],Fn=_t[1],xe=c.useRef(),Pn=sT(b),At=g==="rtl",Ye=ri(k,{value:R,postState:function(we){return we||Ci}}),$t=V(Ye,2),Ge=$t[0],On=$t[1],bt=function(we){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tt(){On(we),Z==null||Z(we)}ke?oa.flushSync(Tt):Tt()},lt=c.useState(Ge),nt=V(lt,2),Lr=nt[0],Fr=nt[1],zn=c.useRef(!1),zr=c.useMemo(function(){return(m==="inline"||m==="vertical")&&v?["vertical",v]:[m,!1]},[m,v]),Dr=V(zr,2),Qt=Dr[0],rr=Dr[1],fn=Qt==="inline",jr=c.useState(Qt),Dn=V(jr,2),pt=Dn[0],ne=Dn[1],ve=c.useState(rr),Re=V(ve,2),Pt=Re[0],Tn=Re[1];c.useEffect(function(){ne(Qt),Tn(rr),zn.current&&(fn?On(Lr):bt(Ci))},[Qt,rr]);var Ru=c.useState(0),Ka=V(Ru,2),Lt=Ka[0],Ga=Ka[1],mi=Lt>=Ke.length-1||pt!=="horizontal"||S;c.useEffect(function(){fn&&Fr(Ge)},[Ge]),c.useEffect(function(){return zn.current=!0,function(){zn.current=!1}},[]);var Rn=aT(),ir=Rn.registerPath,hi=Rn.unregisterPath,So=Rn.refreshOverflowKeys,wo=Rn.isSubPathKey,Xa=Rn.getKeyPath,me=Rn.getKeys,st=Rn.getSubPathKeys,de=c.useMemo(function(){return{registerPath:ir,unregisterPath:hi}},[ir,hi]),Qe=c.useMemo(function(){return{isSubPathKey:wo}},[wo]);c.useEffect(function(){So(mi?Ci:Ke.slice(Lt+1).map(function(De){return De.key}))},[Lt,mi]);var Ot=ri(O||P&&((n=Ke[0])===null||n===void 0?void 0:n.key),{value:O}),Ft=V(Ot,2),Hr=Ft[0],ku=Ft[1],Sb=Ti(function(De){ku(De)}),wb=Ti(function(){ku(void 0)});c.useImperativeHandle(t,function(){return{list:xe.current,focus:function(we){var ke,Tt=Hr??((ke=Ke.find(function(Ib){return!Ib.props.disabled}))===null||ke===void 0?void 0:ke.key);if(Tt){var zt,Br,Co;(zt=xe.current)===null||zt===void 0||(Br=zt.querySelector("li[data-menu-id='".concat(kp(Pn,Tt),"']")))===null||Br===void 0||(Co=Br.focus)===null||Co===void 0||Co.call(Br,we)}}}});var Cb=ri(I||[],{value:D,postState:function(we){return Array.isArray(we)?we:we==null?Ci:[we]}}),Fp=V(Cb,2),qa=Fp[0],xb=Fp[1],Eb=function(we){if(N){var ke=we.key,Tt=qa.includes(ke),zt;L?Tt?zt=qa.filter(function(Co){return Co!==ke}):zt=[].concat(Q(qa),[ke]):zt=[ke],xb(zt);var Br=_(_({},we),{},{selectedKeys:zt});Tt?U==null||U(Br):j==null||j(Br)}!L&&Ge.length&&pt!=="inline"&&bt(Ci)},$b=Ti(function(De){Ne==null||Ne(Ls(De)),Eb(De)}),zp=Ti(function(De,we){var ke=Ge.filter(function(zt){return zt!==De});if(we)ke.push(De);else if(pt!=="inline"){var Tt=st(De);ke=ke.filter(function(zt){return!Tt.has(zt)})}Ma(Ge,ke)||bt(ke,!0)}),Pb=Ti(Ee),Ob=function(we,ke){var Tt=ke??!Ge.includes(we);zp(we,Tt)},Tb=rT(pt,Hr,At,Pn,xe,me,Xa,ku,Ob,se);c.useEffect(function(){Fn(!0)},[]);var Rb=c.useMemo(function(){return{_internalRenderMenuItem:ae,_internalRenderSubMenuItem:_e}},[ae,_e]),kb=pt!=="horizontal"||S?Ke:Ke.map(function(De,we){return c.createElement(Ia,{key:De.key,overflowDisabled:we>Lt},De)}),Mb=c.createElement(Xn,re({id:b,ref:xe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Va,className:W(a,"".concat(a,"-root"),"".concat(a,"-").concat(pt),u,(r={},A(r,"".concat(a,"-inline-collapsed"),Pt),A(r,"".concat(a,"-rtl"),At),r),l),dir:g,style:s,role:"menu",tabIndex:d,data:kb,renderRawItem:function(we){return we},renderRawRest:function(we){var ke=we.length,Tt=ke?Ke.slice(-ke):null;return c.createElement(Eu,{eventKey:dd,title:Ue,disabled:mi,internalPopupClose:ke===0,popupClassName:te},Tt)},maxCount:pt!=="horizontal"||S?Xn.INVALIDATE:Xn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(we){Ga(we)},onKeyDown:Tb},at));return c.createElement(Mp.Provider,{value:Rb},c.createElement(z1.Provider,{value:Pn},c.createElement(Ia,{prefixCls:a,rootClassName:l,mode:pt,openKeys:Ge,rtl:At,disabled:y,motion:$n?X:null,defaultMotions:$n?Y:null,activeKey:Hr,onActive:Sb,onInactive:wb,selectedKeys:qa,inlineIndent:B,subMenuOpenDelay:C,subMenuCloseDelay:$,forceSubMenuRender:M,builtinPlacements:oe,triggerSubMenuAction:ee,getPopupContainer:Pb,itemIcon:le,expandIcon:Ie,onItemClick:$b,onOpenChange:zp},c.createElement(B1.Provider,{value:Qe},Mb),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(j1.Provider,{value:de},Ke)))))}),RT=["className","title","eventKey","children"],kT=["children"],MT=function(t){var n=t.className,r=t.title;t.eventKey;var i=t.children,o=he(t,RT),a=c.useContext(xn),l=a.prefixCls,s="".concat(l,"-item-group");return c.createElement("li",re({},o,{onClick:function(f){return f.stopPropagation()},className:W(s,n)}),c.createElement("div",{className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{className:"".concat(s,"-list")},i))};function $u(e){var t=e.children,n=he(e,kT),r=ho(n.eventKey),i=_p(t,r),o=xu();return o?i:c.createElement(MT,En(n,["warnKey"]),i)}function Ap(e){var t=e.className,n=e.style,r=c.useContext(xn),i=r.prefixCls,o=xu();return o?null:c.createElement("li",{className:W("".concat(i,"-item-divider"),t),style:n})}var go=TT;go.Item=Va;go.SubMenu=Eu;go.ItemGroup=$u;go.Divider=Ap;var IT={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"};const NT=IT;var Y1=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:NT}))};Y1.displayName="EllipsisOutlined";const Q1=c.forwardRef(Y1),_T=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${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"}}}},AT=_T,LT=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})`}}}}},FT=LT,bh=e=>Object.assign({},Vy(e)),zT=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorItemTextSelectedHorizontal:o,colorGroupTitle:a,colorItemBg:l,colorSubItemBg:s,colorItemBgSelectedHorizontal:u,colorItemBgSelected:f,colorActiveBarHeight:d,colorActiveBarWidth:p,colorActiveBarBorderSize:h,motionDurationSlow:g,motionEaseInOut:b,motionEaseOut:w,menuItemPaddingInline:m,motionDurationMid:v,colorItemTextHover:y,lineType:S,colorSplit:x,colorItemTextDisabled:C,colorDangerItemText:E,colorDangerItemTextHover:$,colorDangerItemTextSelected:M,colorDangerItemBgActive:k,colorDangerItemBgSelected:R,colorItemBgHover:O,menuSubMenuBg:P}=e;return{[`${n}-${t}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},bh(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:f}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:f}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:M},["a, a:hover"]:{color:"inherit"}},[`&:not(${n}-horizontal) ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:R}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},bh(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:-h,marginBottom:0,borderRadius:e.radiusItem,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${d}px solid transparent`,transition:`border-color ${g} ${b}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:d,borderBottomColor:o}},["&-selected"]:{color:o,backgroundColor:u,"&::after":{borderBottomWidth:d,borderBottomColor:o}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${h}px ${S} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:h&&p?{width:`calc(100% + ${h}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${p}px solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${w}`,`opacity ${v} ${w}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${b}`,`opacity ${v} ${b}`].join(",")}}}}}},Sh=zT,wh=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:l}=e,s=i+o+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,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:s}}},DT=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:u,fontSizeSM:f,fontSizeLG:d,motionDurationSlow:p,paddingXS:h,boxShadowSecondary:g}=e,b={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},wh(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},wh(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${a*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 ${p}`,`background ${p}`,`padding ${l} ${s}`].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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:b}},{[`${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% - ${f}px)`,textOverflow:"clip",[`${t}-submenu-arrow`]:{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`]:Object.assign(Object.assign({},bu),{paddingInline:h})}}]},jT=DT,Ch=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:l,controlHeightSM:s}=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} ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},By()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},xh=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:o*.6,height:o*.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(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},HT=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:u,colorSplit:f,lineWidth:d,zIndexPopup:p,borderRadiusLG:h,radiusSubMenuItem:g,menuArrowSize:b,menuArrowOffset:w,lineType:m,menuPanelMaskInset:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},lo()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vi(e)),lo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${i}`,`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),["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:`${s}px ${u}px`,fontSize:r,lineHeight:l,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].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:f,borderStyle:m,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ch(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:h,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}`]:Object.assign(Object.assign(Object.assign({borderRadius:h},Ch(e)),xh(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})}}),xh(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${w})`},"&::after":{transform:`rotate(45deg) translateX(-${w})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${b*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${w})`},"&::before":{transform:`rotate(45deg) translateX(${w})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},BT=(e,t)=>_r("Menu",(r,i)=>{let{overrideComponentToken:o}=i;if(t===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:s,colorErrorHover:u,colorTextLightSolid:f,colorTextSecondary:d}=r,{controlHeightLG:p,fontSize:h}=r,g=h/7*5,b=Ln(r,{menuItemHeight:p,menuItemPaddingInline:r.margin,menuArrowSize:g,menuHorizontalHeight:p*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),w=Ln(b,{colorItemText:new on(f).setAlpha(.65).toRgbString(),colorItemTextHover:f,colorGroupTitle:d,colorItemTextSelected:f,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new on(f).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:f,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529"},Object.assign({},o));return[HT(b),AT(b),jT(b),Sh(b,"light"),Sh(w,"dark"),FT(b),R1(b),As(b,"slide-up"),As(b,"slide-down"),T1(b,"zoom-big")]},r=>{const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:f,colorFillAlter:d,colorFillContent:p,lineWidth:h,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:w}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:i,colorGroupTitle:u,colorItemTextSelected:i,colorItemTextSelectedHorizontal:i,colorItemBg:f,colorItemBgHover:w,colorItemBgActive:p,colorSubItemBg:d,colorItemBgSelected:b,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:h,colorItemTextDisabled:a,colorDangerItemText:o,colorDangerItemTextHover:o,colorDangerItemTextSelected:o,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e);globalThis&&globalThis.__rest;const VT=c.createContext(null),Eh=VT;var WT=globalThis&&globalThis.__rest||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{const{prefixCls:t,className:n,dashed:r}=e,i=WT(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=c.useContext(We),a=o("menu",t),l=W({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(Ap,Object.assign({className:l},i))},Z1=UT;var KT={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"};const GT=KT;var J1=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:GT}))};J1.displayName="RightOutlined";const XT=c.forwardRef(J1);globalThis&&globalThis.__rest;const eb=c.createContext({}),qT=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Fs=qT,YT=e=>{const{className:t,children:n,icon:r,title:i,danger:o}=e,{prefixCls:a,firstLevel:l,direction:s,disableMenuItemTitleTooltip:u,inlineCollapsed:f}=c.useContext(Fs),d=h=>{const g=c.createElement("span",{className:`${a}-title-content`},n);return(!r||Jn(n)&&n.type==="span")&&n&&h&&l&&typeof n=="string"?c.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):g},p=h=>{let{siderCollapsed:g}=h;var b;let w=i;typeof i>"u"?w=l?n:"":i===!1&&(w="");const m={title:w};!g&&!f&&(m.title=null,m.open=!1);const v=wn(n).length;let y=c.createElement(Va,Object.assign({},En(e,["title","icon","danger"]),{className:W({[`${a}-item-danger`]:o,[`${a}-item-only-child`]:(r?v+1:v)===1},t),title:typeof i=="string"?i:void 0}),er(r,{className:W(Jn(r)?(b=r.props)===null||b===void 0?void 0:b.className:"",`${a}-item-icon`)}),d(f));return u||(y=c.createElement(YO,Object.assign({},m,{placement:s==="rtl"?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),y)),y};return c.createElement(eb.Consumer,null,p)},tb=YT,QT=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=c.useContext(Fs),{prefixCls:l,inlineCollapsed:s,theme:u,mode:f}=a,d=ho();let p;if(!r)p=s&&!d.length&&i&&typeof i=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},i.charAt(0)):c.createElement("span",{className:`${l}-title-content`},i);else{const b=Jn(i)&&i.type==="span";p=c.createElement(c.Fragment,null,er(r,{className:W(Jn(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),b?i:c.createElement("span",{className:`${l}-title-content`},i))}const h=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),g=f==="horizontal"?[0,8]:[10,0];return c.createElement(Fs.Provider,{value:h},c.createElement(Eu,Object.assign({popupOffset:g},En(e,["icon"]),{title:p,popupClassName:W(l,n,`${l}-${o||u}`)})))},nb=QT;var ZT=globalThis&&globalThis.__rest||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(t&&typeof t=="object"){const r=t,{label:i,children:o,key:a,type:l}=r,s=ZT(r,["label","children","key","type"]),u=a??`tmp-${n}`;return o||l==="group"?l==="group"?c.createElement($u,Object.assign({key:u},s,{title:i}),vd(o)):c.createElement(nb,Object.assign({key:u},s,{title:i}),vd(o)):l==="divider"?c.createElement(Z1,Object.assign({key:u},s)):c.createElement(tb,Object.assign({key:u},s),i)}return null}).filter(t=>t)}function JT(e){return c.useMemo(()=>e&&vd(e),[e])}var eR=globalThis&&globalThis.__rest||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 n;const r=c.useContext(Eh),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:l}=c.useContext(We),s=o(),{prefixCls:u,className:f,theme:d="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:b,items:w,children:m,rootClassName:v,mode:y,selectable:S,onClick:x}=e,C=eR(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),E=En(C,["collapsedWidth"]),$=JT(w)||m;(n=i.validator)===null||n===void 0||n.call(i,{mode:y});const M=rd(function(){var j;x==null||x.apply(void 0,arguments),(j=i.onClick)===null||j===void 0||j.call(i)}),k=i.mode||y,R=S??i.selectable,O=c.useMemo(()=>b!==void 0?b:g,[g,b]),P={horizontal:{motionName:`${s}-slide-up`},inline:P1(s),other:{motionName:`${s}-zoom-big`}},T=o("menu",u||i.prefixCls),[N,F]=BT(T,!r),L=W(`${T}-${d}`,f);let I;typeof p=="function"?I=p:I=er(p||i.expandIcon,{className:`${T}-submenu-expand-icon`});const D=c.useMemo(()=>({prefixCls:T,inlineCollapsed:O||!1,direction:l,firstLevel:!0,theme:d,mode:k,disableMenuItemTitleTooltip:h}),[T,O,l,h,d]);return N(c.createElement(Eh.Provider,{value:null},c.createElement(Fs.Provider,{value:D},c.createElement(go,Object.assign({getPopupContainer:a,overflowedIndicator:c.createElement(Q1,null),overflowedIndicatorPopupClassName:`${T}-${d}`,mode:k,selectable:R,onClick:M},E,{inlineCollapsed:O,className:L,prefixCls:T,direction:l,defaultMotions:P,expandIcon:I,ref:t,rootClassName:W(v,F)}),$))))}),nR=tR,Wa=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(eb);return c.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),c.createElement(nR,Object.assign({ref:n},e,r))});Wa.Item=tb;Wa.SubMenu=nb;Wa.Divider=Z1;Wa.ItemGroup=$u;const rR=Wa;var xi={adjustX:1,adjustY:1},Ei=[0,0],iR={topLeft:{points:["bl","tl"],overflow:xi,offset:[0,-4],targetOffset:Ei},topCenter:{points:["bc","tc"],overflow:xi,offset:[0,-4],targetOffset:Ei},topRight:{points:["br","tr"],overflow:xi,offset:[0,-4],targetOffset:Ei},bottomLeft:{points:["tl","bl"],overflow:xi,offset:[0,4],targetOffset:Ei},bottomCenter:{points:["tc","bc"],overflow:xi,offset:[0,4],targetOffset:Ei},bottomRight:{points:["tr","br"],overflow:xi,offset:[0,4],targetOffset:Ei}},oR=K.ESC,aR=K.TAB;function lR(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,i=e.onVisibleChange,o=e.autoFocus,a=c.useRef(!1),l=function(){if(t&&r.current){var d,p,h,g;(d=r.current)===null||d===void 0||(p=d.triggerRef)===null||p===void 0||(h=p.current)===null||h===void 0||(g=h.focus)===null||g===void 0||g.call(h),n(!1),typeof i=="function"&&i(!1)}},s=function(){var d,p,h,g,b=V1((d=r.current)===null||d===void 0||(p=d.popupRef)===null||p===void 0||(h=p.current)===null||h===void 0||(g=h.getElement)===null||g===void 0?void 0:g.call(h)),w=b[0];return w!=null&&w.focus?(w.focus(),a.current=!0,!0):!1},u=function(d){switch(d.keyCode){case oR:l();break;case aR:{var p=!1;a.current||(p=s()),p?d.preventDefault():l();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&He(s,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var sR=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function uR(e,t){var n=e.arrow,r=n===void 0?!1:n,i=e.prefixCls,o=i===void 0?"rc-dropdown":i,a=e.transitionName,l=e.animation,s=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,p=d===void 0?iR:d,h=e.getPopupContainer,g=e.showAction,b=e.hideAction,w=e.overlayClassName,m=e.overlayStyle,v=e.visible,y=e.trigger,S=y===void 0?["hover"]:y,x=e.autoFocus,C=he(e,sR),E=c.useState(),$=V(E,2),M=$[0],k=$[1],R="visible"in e?v:M,O=c.useRef(null);c.useImperativeHandle(t,function(){return O.current}),lR({visible:R,setTriggerVisible:k,triggerRef:O,onVisibleChange:e.onVisibleChange,autoFocus:x});var P=function(){var B=e.overlay,X;return typeof B=="function"?X=B():X=B,X},T=function(B){var X=e.onOverlayClick;k(!1),X&&X(B)},N=function(B){var X=e.onVisibleChange;k(B),typeof X=="function"&&X(B)},F=function(){var B=P();return c.createElement(c.Fragment,null,r&&c.createElement("div",{className:"".concat(o,"-arrow")}),B)},L=function(){var B=e.overlay;return typeof B=="function"?F:F()},I=function(){var B=e.minOverlayWidthMatchTrigger,X=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?B:!X},D=function(){var B=e.openClassName;return B!==void 0?B:"".concat(o,"-open")},j=function(){var B=e.children,X=B.props?B.props:{},Y=W(X.className,D());return R&&B?c.cloneElement(B,{className:Y}):B},U=b;return!U&&S.indexOf("contextMenu")!==-1&&(U=["click"]),c.createElement(Rp,_(_({builtinPlacements:p},C),{},{prefixCls:o,ref:O,popupClassName:W(w,A({},"".concat(o,"-show-arrow"),r)),popupStyle:m,action:S,showAction:g,hideAction:U||[],popupPlacement:f,popupAlign:s,popupTransitionName:a,popupAnimation:l,popupVisible:R,stretch:I()?"minWidth":"",popup:L(),onPopupVisibleChange:N,onPopupClick:T,getPopupContainer:h}),j())}const cR=c.forwardRef(uR),fR=()=>nr()&&window.document.documentElement;let Rl;const dR=()=>{if(!fR())return!1;if(Rl!==void 0)return Rl;const 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),Rl=e.scrollHeight===1,document.body.removeChild(e),Rl},pR=()=>{const[e,t]=c.useState(!1);return c.useEffect(()=>{t(dR())},[]),e};function vR(e){let{className:t,direction:n,index:r,marginDirection:i,children:o,split:a,wrap:l}=e;const{horizontalSize:s,verticalSize:u,latestIndex:f,supportFlexGap:d}=c.useContext(rb);let p={};return d||(n==="vertical"?r{const{getPrefixCls:t,space:n,direction:r}=c.useContext(We),{size:i=(n==null?void 0:n.size)||"small",align:o,className:a,children:l,direction:s="horizontal",prefixCls:u,split:f,style:d,wrap:p=!1}=e,h=mR(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),g=pR(),[b,w]=c.useMemo(()=>(Array.isArray(i)?i:[i,i]).map(P=>gR(P)),[i]),m=wn(l,{keepEmpty:!0}),v=o===void 0&&s==="horizontal"?"center":o,y=t("space",u),[S,x]=k1(y),C=W(y,x,`${y}-${s}`,{[`${y}-rtl`]:r==="rtl",[`${y}-align-${v}`]:v},a),E=`${y}-item`,$=r==="rtl"?"marginLeft":"marginRight";let M=0;const k=m.map((P,T)=>{P!=null&&(M=T);const N=P&&P.key||`${E}-${T}`;return c.createElement(vR,{className:E,key:N,direction:s,index:T,marginDirection:$,split:f,wrap:p},P)}),R=c.useMemo(()=>({horizontalSize:b,verticalSize:w,latestIndex:M,supportFlexGap:g}),[b,w,M,g]);if(m.length===0)return null;const O={};return p&&(O.flexWrap="wrap",g||(O.marginBottom=-w)),g&&(O.columnGap=b,O.rowGap=w),S(c.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},O),d)},h),c.createElement(rb.Provider,{value:R},k)))},ib=yR;ib.Compact=AO;const bR=ib,SR=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=W({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=W({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),s=c.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return c.createElement("span",{className:W(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},Pu=SR,wR=new ze("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Ou=e=>({height:e,lineHeight:`${e}px`}),Yi=e=>Object.assign({width:e},Ou(e)),CR=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:wR,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),$c=e=>Object.assign({width:e*5,minWidth:e*5},Ou(e)),xR=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Yi(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Yi(i)),[`${t}${t}-sm`]:Object.assign({},Yi(o))}},ER=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,color:a}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},$c(t)),[`${r}-lg`]:Object.assign({},$c(i)),[`${r}-sm`]:Object.assign({},$c(o))}},$h=e=>Object.assign({width:e},Ou(e)),$R=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:i},$h(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},$h(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Pc=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Oc=e=>Object.assign({width:e*2,minWidth:e*2},Ou(e)),PR=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,color:a}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:r*2,minWidth:r*2},Oc(r))},Pc(e,r,n)),{[`${n}-lg`]:Object.assign({},Oc(i))}),Pc(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Oc(o))}),Pc(e,o,`${n}-sm`))},OR=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:f,color:d,padding:p,marginSM:h,borderRadius:g,skeletonTitleHeight:b,skeletonBlockRadius:w,skeletonParagraphLineHeight:m,controlHeightXS:v,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Yi(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Yi(u)),[`${n}-sm`]:Object.assign({},Yi(f))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:b,background:d,borderRadius:w,[`+ ${i}`]:{marginBlockStart:f}},[`${i}`]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:d,borderRadius:w,"+ li":{marginBlockStart:v}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},PR(e)),xR(e)),ER(e)),$R(e)),[`${t}${t}-block`]:{width:"100%",[`${o}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${i} > li, + ${n}, + ${o}, + ${a}, + ${l} + `]:Object.assign({},CR(e))}}},yo=_r("Skeleton",e=>{const{componentCls:t}=e,n=Ln(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"});return[OR(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),TR=e=>{const{prefixCls:t,className:n,active:r,shape:i="circle",size:o="default"}=e,{getPrefixCls:a}=c.useContext(We),l=a("skeleton",t),[s,u]=yo(l),f=En(e,["prefixCls","className"]),d=W(l,`${l}-element`,{[`${l}-active`]:r},n,u);return s(c.createElement("div",{className:d},c.createElement(Pu,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:o},f))))},RR=TR,kR=e=>{const{prefixCls:t,className:n,active:r,block:i=!1,size:o="default"}=e,{getPrefixCls:a}=c.useContext(We),l=a("skeleton",t),[s,u]=yo(l),f=En(e,["prefixCls"]),d=W(l,`${l}-element`,{[`${l}-active`]:r,[`${l}-block`]:i},n,u);return s(c.createElement("div",{className:d},c.createElement(Pu,Object.assign({prefixCls:`${l}-button`,size:o},f))))},MR=kR;var IR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};const NR=IR;var ob=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:NR}))};ob.displayName="DotChartOutlined";const _R=c.forwardRef(ob),AR=e=>{const{prefixCls:t,className:n,style:r,active:i,children:o}=e,{getPrefixCls:a}=c.useContext(We),l=a("skeleton",t),[s,u]=yo(l),f=W(l,`${l}-element`,{[`${l}-active`]:i},u,n),d=o??c.createElement(_R,null);return s(c.createElement("div",{className:f},c.createElement("div",{className:W(`${l}-image`,n),style:r},d)))},LR=AR,FR="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",zR=e=>{const{prefixCls:t,className:n,style:r,active:i}=e,{getPrefixCls:o}=c.useContext(We),a=o("skeleton",t),[l,s]=yo(a),u=W(a,`${a}-element`,{[`${a}-active`]:i},n,s);return l(c.createElement("div",{className:u},c.createElement("div",{className:W(`${a}-image`,n),style:r},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${a}-image-svg`},c.createElement("path",{d:FR,className:`${a}-image-path`})))))},DR=zR,jR=e=>{const{prefixCls:t,className:n,active:r,block:i,size:o="default"}=e,{getPrefixCls:a}=c.useContext(We),l=a("skeleton",t),[s,u]=yo(l),f=En(e,["prefixCls"]),d=W(l,`${l}-element`,{[`${l}-active`]:r,[`${l}-block`]:i},n,u);return s(c.createElement("div",{className:d},c.createElement(Pu,Object.assign({prefixCls:`${l}-input`,size:o},f))))},HR=jR,BR=e=>{const t=l=>{const{width:s,rows:u=2}=e;if(Array.isArray(s))return s[l];if(u-1===l)return s},{prefixCls:n,className:r,style:i,rows:o}=e,a=Q(Array(o)).map((l,s)=>c.createElement("li",{key:s,style:{width:t(s)}}));return c.createElement("ul",{className:W(n,r),style:i},a)},VR=BR,WR=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return c.createElement("h3",{className:W(t,n),style:Object.assign({width:r},i)})},UR=WR;function Tc(e){return e&&typeof e=="object"?e:{}}function KR(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function GR(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function XR(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const bo=e=>{const{prefixCls:t,loading:n,className:r,style:i,children:o,avatar:a=!1,title:l=!0,paragraph:s=!0,active:u,round:f}=e,{getPrefixCls:d,direction:p}=c.useContext(We),h=d("skeleton",t),[g,b]=yo(h);if(n||!("loading"in e)){const w=!!a,m=!!l,v=!!s;let y;if(w){const C=Object.assign(Object.assign({prefixCls:`${h}-avatar`},KR(m,v)),Tc(a));y=c.createElement("div",{className:`${h}-header`},c.createElement(Pu,Object.assign({},C)))}let S;if(m||v){let C;if(m){const $=Object.assign(Object.assign({prefixCls:`${h}-title`},GR(w,v)),Tc(l));C=c.createElement(UR,Object.assign({},$))}let E;if(v){const $=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},XR(w,m)),Tc(s));E=c.createElement(VR,Object.assign({},$))}S=c.createElement("div",{className:`${h}-content`},C,E)}const x=W(h,{[`${h}-with-avatar`]:w,[`${h}-active`]:u,[`${h}-rtl`]:p==="rtl",[`${h}-round`]:f},r,b);return g(c.createElement("div",{className:x,style:i},y,S))}return typeof o<"u"?o:null};bo.Button=MR;bo.Avatar=RR;bo.Input=HR;bo.Image=DR;bo.Node=LR;const qR=bo;var YR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const QR=YR;var ab=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:QR}))};ab.displayName="PlusOutlined";const ZR=c.forwardRef(ab),Tu=c.createContext(null);var lb=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,l=e.tabKey,s=e.children;return c.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!a,style:i,className:W(n,a&&"".concat(n,"-active"),r),ref:t},s)}),JR=["key","forceRender","style","className"];function ek(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,o=e.destroyInactiveTabPane,a=c.useContext(Tu),l=a.prefixCls,s=a.tabs,u=r.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:W("".concat(l,"-content-holder"))},c.createElement("div",{className:W("".concat(l,"-content"),"".concat(l,"-content-").concat(i),A({},"".concat(l,"-content-animated"),u))},s.map(function(d){var p=d.key,h=d.forceRender,g=d.style,b=d.className,w=he(d,JR),m=p===n;return c.createElement(mo,re({key:p,visible:m,forceRender:h,removeOnLeave:!!o,leavedClassName:"".concat(f,"-hidden")},r.tabPaneMotion),function(v,y){var S=v.style,x=v.className;return c.createElement(lb,re({},w,{prefixCls:f,id:t,tabKey:p,animated:u,active:m,style:_(_({},g),S),className:W(b,x),ref:y}))})})))}var Ph={width:0,height:0,left:0,top:0};function tk(e,t,n){return c.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Ph,a=o.left+o.width,l=0;lT?(O=k,C.current="x"):(O=R,C.current="y"),t(-O,-O)&&M.preventDefault()}var $=c.useRef(null);$.current={onTouchStart:y,onTouchMove:S,onTouchEnd:x,onWheel:E},c.useEffect(function(){function M(P){$.current.onTouchStart(P)}function k(P){$.current.onTouchMove(P)}function R(P){$.current.onTouchEnd(P)}function O(P){$.current.onWheel(P)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",R,{passive:!1}),e.current.addEventListener("touchstart",M,{passive:!1}),e.current.addEventListener("wheel",O),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",R)}},[])}var kh={width:0,height:0,left:0,top:0,right:0};function ok(e,t,n,r,i,o,a){var l=a.tabs,s=a.tabPosition,u=a.rtl,f,d,p;return["top","bottom"].includes(s)?(f="width",d=u?"right":"left",p=Math.abs(n)):(f="height",d="top",p=-n),c.useMemo(function(){if(!l.length)return[0,0];for(var h=l.length,g=h,b=0;bp+t){g=b-1;break}}for(var m=0,v=h-1;v>=0;v-=1){var y=e.get(l[v].key)||kh;if(y[d]st?"left":"right"})}),P=V(O,2),T=P[0],N=P[1],F=Oh(0,function(me,st){!R&&y&&y({direction:me>st?"top":"bottom"})}),L=V(F,2),I=L[0],D=L[1],j=c.useState([0,0]),U=V(j,2),z=U[0],B=U[1],X=c.useState([0,0]),Y=V(X,2),q=Y[0],ee=Y[1],oe=c.useState([0,0]),le=V(oe,2),Ie=le[0],ye=le[1],Ue=c.useState([0,0]),te=V(Ue,2),Ee=te[0],Ne=te[1],Z=nk(new Map),se=V(Z,2),ae=se[0],_e=se[1],at=tk(o,ae,q[0]),Ke=kl(z,R),yt=kl(q,R),_t=kl(Ie,R),$n=kl(Ee,R),Fn=KeYe?Ye:me}var Ge=c.useRef(),On=c.useState(),bt=V(On,2),lt=bt[0],nt=bt[1];function Lr(){nt(Date.now())}function Fr(){window.clearTimeout(Ge.current)}ik(E,function(me,st){function de(Qe,Ot){Qe(function(Ft){var Hr=$t(Ft+Ot);return Hr})}return Ke>=yt?!1:(R?de(N,me):de(D,st),Fr(),Lr(),!0)}),c.useEffect(function(){return Fr(),lt&&(Ge.current=window.setTimeout(function(){nt(0)},100)),Fr},[lt]);var zn=ok(at,xe,R?T:I,yt,_t,$n,_(_({},e),{},{tabs:o})),zr=V(zn,2),Dr=zr[0],Qt=zr[1],rr=function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f,de=at.get(st)||{width:0,height:0,left:0,right:0,top:0};if(R){var Qe=T;d?de.rightT+xe&&(Qe=de.right+de.width-xe):de.left<-T?Qe=-de.left:de.left+de.width>-T+xe&&(Qe=-(de.left+de.width-xe)),D(0),N($t(Qe))}else{var Ot=I;de.top<-I?Ot=-de.top:de.top+de.height>-I+xe&&(Ot=-(de.top+de.height-xe)),N(0),D($t(Ot))}},fn={};b==="top"||b==="bottom"?fn[d?"marginRight":"marginLeft"]=w:fn.marginTop=w;var jr=o.map(function(me,st){var de=me.key;return c.createElement(uk,{id:s,prefixCls:i,key:de,tab:me,style:st===0?void 0:fn,closable:me.closable,editable:h,active:de===f,renderWrapper:m,removeAriaLabel:g==null?void 0:g.removeAriaLabel,onClick:function(Ot){v(de,Ot)},onFocus:function(){rr(de),Lr(),E.current&&(d||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Dn=function(){return _e(function(){var st=new Map;return o.forEach(function(de){var Qe,Ot=de.key,Ft=(Qe=$.current)===null||Qe===void 0?void 0:Qe.querySelector('[data-node-key="'.concat(Ot,'"]'));Ft&&st.set(Ot,{width:Ft.offsetWidth,height:Ft.offsetHeight,left:Ft.offsetLeft,top:Ft.offsetTop})}),st})};c.useEffect(function(){Dn()},[o.map(function(me){return me.key}).join("_")]);var pt=sb(function(){var me=$i(S),st=$i(x),de=$i(C);B([me[0]-st[0]-de[0],me[1]-st[1]-de[1]]);var Qe=$i(k);ye(Qe);var Ot=$i(M);Ne(Ot);var Ft=$i($);ee([Ft[0]-Qe[0],Ft[1]-Qe[1]]),Dn()}),ne=o.slice(0,Dr),ve=o.slice(Qt+1),Re=[].concat(Q(ne),Q(ve)),Pt=c.useState(),Tn=V(Pt,2),Ru=Tn[0],Ka=Tn[1],Lt=at.get(f),Ga=c.useRef();function mi(){He.cancel(Ga.current)}c.useEffect(function(){var me={};return Lt&&(R?(d?me.right=Lt.right:me.left=Lt.left,me.width=Lt.width):(me.top=Lt.top,me.height=Lt.height)),mi(),Ga.current=He(function(){Ka(me)}),mi},[Lt,R,d]),c.useEffect(function(){rr()},[f,Mh(Lt),Mh(at),R]),c.useEffect(function(){pt()},[d]);var Rn=!!Re.length,ir="".concat(i,"-nav-wrap"),hi,So,wo,Xa;return R?d?(So=T>0,hi=T+Ke0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=_({inkBar:!0},ge(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var mk=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],_h=0;function hk(e,t){var n,r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,a=e.className,l=e.items,s=e.direction,u=e.activeKey,f=e.defaultActiveKey,d=e.editable,p=e.animated,h=e.tabPosition,g=h===void 0?"top":h,b=e.tabBarGutter,w=e.tabBarStyle,m=e.tabBarExtraContent,v=e.locale,y=e.moreIcon,S=e.moreTransitionName,x=e.destroyInactiveTabPane,C=e.renderTabBar,E=e.onChange,$=e.onTabClick,M=e.onTabScroll,k=e.getPopupContainer,R=e.popupClassName,O=he(e,mk),P=c.useMemo(function(){return(l||[]).filter(function(Z){return Z&&ge(Z)==="object"&&"key"in Z})},[l]),T=s==="rtl",N=vk(p),F=c.useState(!1),L=V(F,2),I=L[0],D=L[1];c.useEffect(function(){D(l1())},[]);var j=ri(function(){var Z;return(Z=P[0])===null||Z===void 0?void 0:Z.key},{value:u,defaultValue:f}),U=V(j,2),z=U[0],B=U[1],X=c.useState(function(){return P.findIndex(function(Z){return Z.key===z})}),Y=V(X,2),q=Y[0],ee=Y[1];c.useEffect(function(){var Z=P.findIndex(function(ae){return ae.key===z});if(Z===-1){var se;Z=Math.max(0,Math.min(q,P.length-1)),B((se=P[Z])===null||se===void 0?void 0:se.key)}ee(Z)},[P.map(function(Z){return Z.key}).join("_"),z,q]);var oe=ri(null,{value:r}),le=V(oe,2),Ie=le[0],ye=le[1];c.useEffect(function(){r||(ye("rc-tabs-".concat(_h)),_h+=1)},[]);function Ue(Z,se){$==null||$(Z,se);var ae=Z!==z;B(Z),ae&&(E==null||E(Z))}var te={id:Ie,activeKey:z,animated:N,tabPosition:g,rtl:T,mobile:I},Ee,Ne=_(_({},te),{},{editable:d,locale:v,moreIcon:y,moreTransitionName:S,tabBarGutter:b,onTabClick:Ue,onTabScroll:M,extra:m,style:w,panes:null,getPopupContainer:k,popupClassName:R});return c.createElement(Tu.Provider,{value:{tabs:P,prefixCls:o}},c.createElement("div",re({ref:t,id:r,className:W(o,"".concat(o,"-").concat(g),(n={},A(n,"".concat(o,"-mobile"),I),A(n,"".concat(o,"-editable"),d),A(n,"".concat(o,"-rtl"),T),n),a)},O),Ee,c.createElement(pk,re({},Ne,{renderTabBar:C})),c.createElement(ek,re({destroyInactiveTabPane:x},te,{animated:N}))))}var gk=c.forwardRef(hk);const yk={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},yk),{motionName:$1(e,"switch")})),n}var Sk=globalThis&&globalThis.__rest||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)}function Ck(e,t){if(e)return e;const n=wn(t).map(r=>{if(c.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:l}=a,s=Sk(a,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return wk(n)}const xk=()=>null,Ek=xk,$k=e=>{const{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}`}}}}},[As(e,"slide-up"),As(e,"slide-down")]]},Pk=$k,Ok=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${o}`,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}}}}}}},Tk=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},vi(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.boxShadow,"&-item":Object.assign(Object.assign({},bu),{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"}}})}})}},Rk=e=>{const{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}}}}}},kk=e=>{const{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`}}}}}},Mk=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:o}=e,a=`${t}-tab`;return{[a]:{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":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Wy(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},[`&${a}-active ${a}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},Ik=e=>{const{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"}}}}},Nk=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorSplit:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},vi(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`]:Object.assign({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Wy(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),Mk(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},_k=_r("Tabs",e=>{const t=e.controlHeightLG,n=Ln(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[kk(n),Ik(n),Rk(n),Tk(n),Ok(n),Nk(n),Pk(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var Ak=globalThis&&globalThis.__rest||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{key:R,event:O}=k;i==null||i(M==="add"?O:R,M)},removeIcon:c.createElement(K2,null),addIcon:l||c.createElement(ZR,null),showAdd:o!==!0});const C=b(),E=Ck(f,u),$=bk(v,d);return y(c.createElement(Ky.Consumer,null,M=>{const k=r!==void 0?r:M;return c.createElement(gk,Object.assign({direction:w,getPopupContainer:m,moreTransitionName:`${C}-slide-up`},p,{items:E,className:W({[`${v}-${k}`]:k,[`${v}-card`]:["card","editable-card"].includes(t),[`${v}-editable-card`]:t==="editable-card",[`${v}-centered`]:a},n,S),popupClassName:W(s,S),editable:x,moreIcon:g,prefixCls:v,animated:$}))}))}cb.TabPane=Ek;var Lk=globalThis&&globalThis.__rest||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{prefixCls:t,className:n,hoverable:r=!0}=e,i=Lk(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=c.useContext(We),a=o("card",t),l=W(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},i,{className:l}))},fb=Fk,zk=e=>{const{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:i,cardHeadTabsMarginBottom:o}=e;return Object.assign(Object.assign({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`},lo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},bu),{[` + > ${n}-typography, + > ${n}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},Dk=e=>{const{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}}},jk=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},lo()),{"& > 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} ${o}`}}})},Hk=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},lo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},bu),"&-description":{color:e.colorTextDescription}}),Bk=e=>{const{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`}}},Vk=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Wk=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadow:o,cardPaddingBase:a}=e;return{[t]:Object.assign(Object.assign({},vi(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:zk(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},lo()),[`${t}-grid`]:Dk(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:jk(e),[`${t}-meta`]:Hk(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`]:Bk(e),[`${t}-loading`]:Vk(e),[`${t}-rtl`]:{direction:"rtl"}}},Uk=e=>{const{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"}}}}},Kk=_r("Card",e=>{const t=Ln(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[Wk(t),Uk(t)]});var Gk=globalThis&&globalThis.__rest||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);ic.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${r}`},c.createElement("span",null,n)))}const qk=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(We),i=c.useContext(Ky),o=Y=>{var q;(q=e.onTabChange)===null||q===void 0||q.call(e,Y)},a=()=>{let Y;return c.Children.forEach(e.children,q=>{q&&q.type&&q.type===fb&&(Y=!0)}),Y},{prefixCls:l,className:s,extra:u,headStyle:f={},bodyStyle:d={},title:p,loading:h,bordered:g=!0,size:b,type:w,cover:m,actions:v,tabList:y,children:S,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:E,hoverable:$,tabProps:M={}}=e,k=Gk(e,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),R=n("card",l),[O,P]=Kk(R),T=c.createElement(qR,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),N=x!==void 0,F=Object.assign(Object.assign({},M),{[N?"activeKey":"defaultActiveKey"]:N?x:C,tabBarExtraContent:E});let L;const I=y&&y.length?c.createElement(cb,Object.assign({size:"large"},F,{className:`${R}-head-tabs`,onChange:o,items:y.map(Y=>{var q;return{label:Y.tab,key:Y.key,disabled:(q=Y.disabled)!==null&&q!==void 0?q:!1}})})):null;(p||u||I)&&(L=c.createElement("div",{className:`${R}-head`,style:f},c.createElement("div",{className:`${R}-head-wrapper`},p&&c.createElement("div",{className:`${R}-head-title`},p),u&&c.createElement("div",{className:`${R}-extra`},u)),I));const D=m?c.createElement("div",{className:`${R}-cover`},m):null,j=c.createElement("div",{className:`${R}-body`,style:d},h?T:S),U=v&&v.length?c.createElement("ul",{className:`${R}-actions`},Xk(v)):null,z=En(k,["onTabChange"]),B=b||i,X=W(R,{[`${R}-loading`]:h,[`${R}-bordered`]:g,[`${R}-hoverable`]:$,[`${R}-contain-grid`]:a(),[`${R}-contain-tabs`]:y&&y.length,[`${R}-${B}`]:B,[`${R}-type-${w}`]:!!w,[`${R}-rtl`]:r==="rtl"},s,P);return O(c.createElement("div",Object.assign({ref:t},z,{className:X}),L,D,j,U))}),Yk=qk;var Qk=globalThis&&globalThis.__rest||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{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Qk(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=c.useContext(We),s=l("card",t),u=W(`${s}-meta`,n),f=r?c.createElement("div",{className:`${s}-meta-avatar`},r):null,d=i?c.createElement("div",{className:`${s}-meta-title`},i):null,p=o?c.createElement("div",{className:`${s}-meta-description`},o):null,h=d||p?c.createElement("div",{className:`${s}-meta-detail`},d,p):null;return c.createElement("div",Object.assign({},a,{className:u}),f,h)},Jk=Zk,Lp=Yk;Lp.Grid=fb;Lp.Meta=Jk;const eM=Lp;function tM(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,l=a===void 0?!1:a,s=r.debounceMode,u=s===void 0?void 0:s,f,d=!1,p=0;function h(){f&&clearTimeout(f)}function g(w){var m=w||{},v=m.upcomingOnly,y=v===void 0?!1:v;h(),d=!y}function b(){for(var w=arguments.length,m=new Array(w),v=0;ve?l?(p=Date.now(),o||(f=setTimeout(u?C:x,e))):x():o!==!0&&(f=setTimeout(u?C:x,u===void 0?e-S:e))}return b.cancel=g,b}function nM(e,t,n){var r=n||{},i=r.atBegin,o=i===void 0?!1:i;return tM(e,t,{debounceMode:o!==!1})}var db=c.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.forceRender,o=e.className,a=e.style,l=e.children,s=e.isActive,u=e.role,f=c.useState(s||i),d=V(f,2),p=d[0],h=d[1];return c.useEffect(function(){(i||s)&&h(!0)},[i,s]),p?c.createElement("div",{ref:t,className:W("".concat(r,"-content"),(n={},A(n,"".concat(r,"-content-active"),s),A(n,"".concat(r,"-content-inactive"),!s),n),o),style:a,role:u},c.createElement("div",{className:"".concat(r,"-content-box")},l)):null});db.displayName="PanelContent";var rM=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],pb=function(e){di(n,e);var t=pi(n);function n(){var r;Xt(this,n);for(var i=arguments.length,o=new Array(i),a=0;a-1;d?u.splice(f,1):u.push(s)}i.setActiveKey(u)},i.getNewChild=function(s,u){if(!s)return null;var f=i.state.activeKey,d=i.props,p=d.prefixCls,h=d.openMotion,g=d.accordion,b=d.destroyInactivePanel,w=d.expandIcon,m=d.collapsible,v=s.key||String(u),y=s.props,S=y.header,x=y.headerClass,C=y.destroyInactivePanel,E=y.collapsible,$=!1;g?$=f[0]===v:$=f.indexOf(v)>-1;var M=E??m,k={key:v,panelKey:v,header:S,headerClass:x,isActive:$,prefixCls:p,destroyInactivePanel:C??b,openMotion:h,accordion:g,children:s.props.children,onItemClick:M==="disabled"?null:i.onClickItem,expandIcon:w,collapsible:M};return typeof s.type=="string"?s:(Object.keys(k).forEach(function(R){typeof k[R]>"u"&&delete k[R]}),c.cloneElement(s,k))},i.getItems=function(){var s=i.props.children;return wn(s).map(i.getNewChild)},i.setActiveKey=function(s){"activeKey"in i.props||i.setState({activeKey:s}),i.props.onChange(i.props.accordion?s[0]:s)};var o=r.activeKey,a=r.defaultActiveKey,l=a;return"activeKey"in r&&(l=o),i.state={activeKey:Ah(l)},i}return qt(n,[{key:"shouldComponentUpdate",value:function(i,o){return!Ma(this.props,i)||!Ma(this.state,o)}},{key:"render",value:function(){var i,o=this.props,a=o.prefixCls,l=o.className,s=o.style,u=o.accordion,f=W((i={},A(i,a,!0),A(i,l,!!l),i));return c.createElement("div",{className:f,style:s,role:u?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(i){var o={};return"activeKey"in i&&(o.activeKey=Ah(i.activeKey)),o}}]),n}(c.Component);Ua.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1};Ua.Panel=pb;Ua.Panel;const iM=e=>{const{getPrefixCls:t}=c.useContext(We),{prefixCls:n,className:r="",showArrow:i=!0}=e,o=t("collapse",n),a=W({[`${o}-no-arrow`]:!i},r);return c.createElement(Ua.Panel,Object.assign({},e,{prefixCls:o,className:a}))},oM=iM,aM=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:l,lineWidth:s,lineType:u,colorBorder:f,colorText:d,colorTextHeading:p,colorTextDisabled:h,fontSize:g,lineHeight:b,marginSM:w,paddingSM:m,motionDurationSlow:v,fontSizeIcon:y}=e,S=`${s}px ${u} ${f}`;return{[t]:Object.assign(Object.assign({},vi(e)),{backgroundColor:o,border:S,borderBottom:0,borderRadius:`${l}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:S,["&:last-child"]:{[` + &, + & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:b,cursor:"pointer",transition:`all ${v}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:g*b,display:"flex",alignItems:"center",paddingInlineEnd:w},[`${t}-arrow`]:Object.assign(Object.assign({},By()),{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}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:m}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:S,[`& > ${t}-content-box`]:{padding:`${r}px ${i}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` + &, + & > .arrow + `]:{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:w}}}}})}},lM=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},sM=e=>{const{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}}}},uM=e=>{const{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}}}}}},cM=_r("Collapse",e=>{const t=Ln(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[aM(t),sM(t),uM(t),lM(t),R1(t)]}),vb=e=>{const{getPrefixCls:t,direction:n}=c.useContext(We),{prefixCls:r,className:i="",bordered:o=!0,ghost:a,expandIconPosition:l="start"}=e,s=t("collapse",r),u=t(),[f,d]=cM(s),p=c.useMemo(()=>l==="left"?"start":l==="right"?"end":l,[l]),h=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{expandIcon:v}=e,y=v?v(m):c.createElement(XT,{rotate:m.isActive?90:void 0});return er(y,()=>({className:W(y.props.className,`${s}-arrow`)}))},g=W(`${s}-icon-position-${p}`,{[`${s}-borderless`]:!o,[`${s}-rtl`]:n==="rtl",[`${s}-ghost`]:!!a},i,d),b=Object.assign(Object.assign({},P1(u)),{motionAppear:!1,leavedClassName:`${s}-content-hidden`}),w=()=>{const{children:m}=e;return wn(m).map((v,y)=>{var S;if(!((S=v.props)===null||S===void 0)&&S.disabled){const x=v.key||String(y),{disabled:C,collapsible:E}=v.props,$=Object.assign(Object.assign({},En(v.props,["disabled"])),{key:x,collapsible:E??(C?"disabled":void 0)});return er(v,$)}return v})};return f(c.createElement(Ua,Object.assign({openMotion:b},e,{expandIcon:h,prefixCls:s,className:g}),w()))};vb.Panel=oM;const mb=vb,fM=new ze("antSpinMove",{to:{opacity:1}}),dM=new ze("antRotate",{to:{transform:"rotate(405deg)"}}),pM=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},vi(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:fM,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:dM,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"}})}),vM=_r("Spin",e=>{const t=Ln(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[pM(t)]},{contentHeight:400});var mM=globalThis&&globalThis.__rest||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{const{spinPrefixCls:t,spinning:n=!0,delay:r=0,className:i,size:o="default",tip:a,wrapperClassName:l,style:s,children:u,hashId:f}=e,d=mM(e,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children","hashId"]),[p,h]=c.useState(()=>n&&!gM(n,r));c.useEffect(()=>{const S=nM(r,()=>{h(n)});return S(),()=>{var x;(x=S==null?void 0:S.cancel)===null||x===void 0||x.call(S)}},[r,n]);const g=c.useMemo(()=>typeof u<"u",[u]),{direction:b}=c.useContext(We),w=W(t,{[`${t}-sm`]:o==="small",[`${t}-lg`]:o==="large",[`${t}-spinning`]:p,[`${t}-show-text`]:!!a,[`${t}-rtl`]:b==="rtl"},i,f),m=W(`${t}-container`,{[`${t}-blur`]:p}),v=En(d,["indicator","prefixCls"]),y=c.createElement("div",Object.assign({},v,{style:s,className:w,"aria-live":"polite","aria-busy":p}),hM(t,e),a?c.createElement("div",{className:`${t}-text`},a):null);return g?c.createElement("div",Object.assign({},v,{className:W(`${t}-nested-loading`,l,f)}),p&&c.createElement("div",{key:"loading"},y),c.createElement("div",{className:m,key:"container"},u)):y},hb=e=>{const{prefixCls:t}=e,{getPrefixCls:n}=c.useContext(We),r=n("spin",t),[i,o]=vM(r),a=Object.assign(Object.assign({},e),{spinPrefixCls:r,hashId:o});return i(c.createElement(yM,Object.assign({},a)))};hb.setDefaultIndicator=e=>{Yl=e};const bM=hb;var SM={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"};const wM=SM;var gb=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:wM}))};gb.displayName="CopyrightOutlined";const CM=c.forwardRef(gb);var xM={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"};const EM=xM;var yb=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:EM}))};yb.displayName="DashboardOutlined";const $M=c.forwardRef(yb);var PM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-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.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.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 0z"}}]},name:"pull-request",theme:"outlined"};const OM=PM;var bb=function(t,n){return c.createElement(Ar,_(_({},t),{},{ref:n,icon:OM}))};bb.displayName="PullRequestOutlined";const TM=c.forwardRef(bb);function RM(e){return wt("div",{className:"greetings",children:[ue("h1",{className:"green",children:e.msg}),wt("h3",{children:["You've successfully created a project with",ue("a",{href:"https://github.com/airconduct/go-probot/",target:"_blank",rel:"noopener",children:" Go-Probot"}),"."]})]})}function Rc(){const e=J0();return console.error(e),wt("div",{id:"error-page",children:[ue("h1",{children:"Oops!"}),ue("p",{children:"Sorry, an unexpected error has occurred."}),ue("p",{children:ue("i",{children:e.statusText||e.message})})]})}const{Panel:kM}=mb;function MM(){const e={items:[]},[t,n]=c.useState(e),r=async()=>{const a=await(await fetch("/api/events")).json();n(l=>a)};c.useEffect(()=>{const o=setInterval(()=>{r()},5e3);return()=>clearInterval(o)});const i=async o=>{};return wt("div",{children:[ue("h1",{children:"Event Listener"}),t.items.length==0?wt(eM,{hoverable:!0,onClick:async()=>{await r()},children:["Loading... ",ue(bM,{})]}):ue(mb,{onChange:i,children:t.items.map((o,a)=>ue(kM,{header:wt(bR,{children:[ue(TM,{}),o.name]}),children:wt("p",{children:["Count: ",o.metrics.count]})},a.toString()))})]})}function IM(){return wt("div",{id:"app",children:[wt("header",{children:[ue("img",{src:lC,className:"logo",alt:"Probot logo",width:"125",height:"125"}),wt("div",{className:"wrapper",children:[ue(RM,{msg:"Welcome!"}),ue(rR,{className:"nav",mode:"horizontal",onClick:e=>{console.log(e)},items:[{key:"1",label:ue(Rf,{to:"/dashboard",children:"Dashboard"}),icon:ue($M,{})},{key:"2",label:ue(Rf,{to:"/dashboard/about",children:"About"}),icon:ue(CM,{})}]})]})]}),wt("main",{children:[ue(sx,{children:wt(Do,{path:"/",children:[ue(Do,{path:"dashboard/about",element:ue(NM,{}),errorElement:ue(Rc,{})}),ue(Do,{path:"dashboard",element:ue(MM,{}),errorElement:ue(Rc,{})}),ue(Do,{path:"*",element:ue(_M,{}),errorElement:ue(Rc,{})})]})}),ue(ax,{})]})]})}function NM(){return wt("div",{children:[ue("h1",{children:"About"}),wt("p",{children:["Do you like this project? Give us a start on ",ue("a",{target:"_blank",href:"https://github.com/airconduct/go-probot",children:"Github"}),"!"]})]})}function _M(){return wt("div",{children:[ue("h2",{children:"Nothing to see here!"}),ue("p",{children:ue(Rf,{to:"/",children:"Go to the home page"})})]})}kc.createRoot(document.getElementById("root")).render(ue(Oe.StrictMode,{children:ue(px,{children:ue(IM,{})})})); diff --git a/web/dist/assets/index-3bcbcabd.js b/web/dist/assets/index-3bcbcabd.js deleted file mode 100644 index e2a9bbc..0000000 --- a/web/dist/assets/index-3bcbcabd.js +++ /dev/null @@ -1,208 +0,0 @@ -function W1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function em(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cl={},K1={get exports(){return Cl},set exports(e){Cl=e}},ls={},f={},X1={get exports(){return f},set exports(e){f=e}},oe={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ia=Symbol.for("react.element"),G1=Symbol.for("react.portal"),Y1=Symbol.for("react.fragment"),q1=Symbol.for("react.strict_mode"),Q1=Symbol.for("react.profiler"),Z1=Symbol.for("react.provider"),J1=Symbol.for("react.context"),ew=Symbol.for("react.forward_ref"),tw=Symbol.for("react.suspense"),nw=Symbol.for("react.memo"),rw=Symbol.for("react.lazy"),up=Symbol.iterator;function ow(e){return e===null||typeof e!="object"?null:(e=up&&e[up]||e["@@iterator"],typeof e=="function"?e:null)}var tm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nm=Object.assign,rm={};function Ao(e,t,n){this.props=e,this.context=t,this.refs=rm,this.updater=n||tm}Ao.prototype.isReactComponent={};Ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=Ao.prototype;function Nf(e,t,n){this.props=e,this.context=t,this.refs=rm,this.updater=n||tm}var _f=Nf.prototype=new om;_f.constructor=Nf;nm(_f,Ao.prototype);_f.isPureReactComponent=!0;var cp=Array.isArray,im=Object.prototype.hasOwnProperty,Ff={current:null},am={key:!0,ref:!0,__self:!0,__source:!0};function lm(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)im.call(t,r)&&!am.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,H=T[U];if(0>>1;Uo(ue,j))Jo(ne,ue)?(T[U]=ne,T[J]=j,U=J):(T[U]=ue,T[Z]=j,U=Z);else if(Jo(ne,j))T[U]=ne,T[J]=j,U=J;else break e}}return z}function o(T,z){var j=T.sortIndex-z.sortIndex;return j!==0?j:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,p=3,g=!1,m=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(T){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=T)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function S(T){if(y=!1,w(T),!m)if(n(s)!==null)m=!0,A(x);else{var z=n(u);z!==null&&L(S,z.startTime-T)}}function x(T,z){m=!1,y&&(y=!1,h(P),P=-1),g=!0;var j=p;try{for(w(z),d=n(s);d!==null&&(!(d.expirationTime>z)||T&&!_());){var U=d.callback;if(typeof U=="function"){d.callback=null,p=d.priorityLevel;var H=U(d.expirationTime<=z);z=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(s)&&r(s),w(z)}else r(s);d=n(s)}if(d!==null)var G=!0;else{var Z=n(u);Z!==null&&L(S,Z.startTime-z),G=!1}return G}finally{d=null,p=j,g=!1}}var b=!1,E=null,P=-1,M=5,$=-1;function _(){return!(e.unstable_now()-$T||125U?(T.sortIndex=j,t(u,T),n(s)===null&&T===n(u)&&(y?(h(P),P=-1):y=!0,L(S,j-U))):(T.sortIndex=H,t(s,T),m||g||(m=!0,A(x))),T},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(T){var z=p;return function(){var j=p;p=z;try{return T.apply(this,arguments)}finally{p=j}}}})(um);(function(e){e.exports=um})(mw);/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var cm=f,kt=Yu;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=Object.prototype.hasOwnProperty,gw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dp={},pp={};function yw(e){return qu.call(pp,e)?!0:qu.call(dp,e)?!1:gw.test(e)?pp[e]=!0:(dp[e]=!0,!1)}function ww(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Sw(e,t,n,r){if(t===null||typeof t>"u"||ww(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Je[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lf=/[\-:]([a-z])/g;function Df(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Lf,Df);Je[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Lf,Df);Je[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Lf,Df);Je[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var o=Je.hasOwnProperty(t)?Je[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var s=` -`+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{tu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?li(e):""}function Cw(e){switch(e.tag){case 5:return li(e.type);case 16:return li("Lazy");case 13:return li("Suspense");case 19:return li("SuspenseList");case 0:case 2:case 15:return e=nu(e.type,!1),e;case 11:return e=nu(e.type.render,!1),e;case 1:return e=nu(e.type,!0),e;default:return""}}function ec(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case no:return"Portal";case Qu:return"Profiler";case jf:return"StrictMode";case Zu:return"Suspense";case Ju:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pm:return(e.displayName||"Context")+".Consumer";case dm:return(e._context.displayName||"Context")+".Provider";case Vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:ec(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return ec(e(t))}catch{}}return null}function bw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ec(t);case 8:return t===jf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function lr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xw(e){var t=hm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pa(e){e._valueTracker||(e._valueTracker=xw(e))}function mm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tc(e,t){var n=t.checked;return Re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=lr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gm(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function nc(e,t){gm(e,t);var n=lr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?rc(e,t.type,n):t.hasOwnProperty("defaultValue")&&rc(e,t.type,lr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function rc(e,t,n){(t!=="number"||xl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var si=Array.isArray;function go(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Oa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _i(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ew=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(e){Ew.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hi[t]=hi[e]})});function Cm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hi.hasOwnProperty(e)&&hi[e]?(""+t).trim():t+"px"}function bm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Pw=Re({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ac(e,t){if(t){if(Pw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function lc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sc=null;function Bf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uc=null,yo=null,wo=null;function wp(e){if(e=sa(e)){if(typeof uc!="function")throw Error(D(280));var t=e.stateNode;t&&(t=ds(t),uc(e.stateNode,e.type,t))}}function xm(e){yo?wo?wo.push(e):wo=[e]:yo=e}function Em(){if(yo){var e=yo,t=wo;if(wo=yo=null,wp(e),t)for(e=0;e>>=0,e===0?32:31-(Aw(e)/Lw|0)|0}var ka=64,Ra=4194304;function ui(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=ui(l):(i&=a,i!==0&&(r=ui(i)))}else a=n&~o,a!==0?r=ui(a):i!==0&&(r=ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function aa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Vw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=gi),Rp=String.fromCharCode(32),Tp=!1;function Um(e,t){switch(e){case"keyup":return hS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function gS(e,t){switch(e){case"compositionend":return Wm(t);case"keypress":return t.which!==32?null:(Tp=!0,Rp);case"textInput":return e=t.data,e===Rp&&Tp?null:e;default:return null}}function yS(e,t){if(oo)return e==="compositionend"||!Qf&&Um(e,t)?(e=Hm(),al=Gf=Un=null,oo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Np(n)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qm(){for(var e=window,t=xl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xl(e.document)}return t}function Zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kS(e){var t=qm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ym(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=_p(n,i);var a=_p(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,io=null,hc=null,wi=null,mc=!1;function Fp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mc||io==null||io!==xl(r)||(r=io,"selectionStart"in r&&Zf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wi&&ji(wi,r)||(wi=r,r=$l(hc,"onSelect"),0so||(e.current=bc[so],bc[so]=null,so--)}function ye(e,t){so++,bc[so]=e.current,e.current=t}var sr={},at=cr(sr),mt=cr(!1),Nr=sr;function Po(e,t){var n=e.type.contextTypes;if(!n)return sr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function Il(){be(mt),be(at)}function Hp(e,t,n){if(at.current!==sr)throw Error(D(168));ye(at,t),ye(mt,n)}function ig(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(D(108,bw(e)||"Unknown",o));return Re({},n,r)}function Nl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sr,Nr=at.current,ye(at,e),ye(mt,mt.current),!0}function Bp(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=ig(e,t,Nr),r.__reactInternalMemoizedMergedChildContext=e,be(mt),be(at),ye(at,e)):be(mt),ye(mt,n)}var bn=null,ps=!1,mu=!1;function ag(e){bn===null?bn=[e]:bn.push(e)}function zS(e){ps=!0,ag(e)}function fr(){if(!mu&&bn!==null){mu=!0;var e=0,t=de;try{var n=bn;for(de=1;e>=a,o-=a,En=1<<32-nn(t)+o|n<P?(M=E,E=null):M=E.sibling;var $=p(h,E,w[P],S);if($===null){E===null&&(E=M);break}e&&E&&$.alternate===null&&t(h,E),v=i($,v,P),b===null?x=$:b.sibling=$,b=$,E=M}if(P===w.length)return n(h,E),Pe&&Sr(h,P),x;if(E===null){for(;PP?(M=E,E=null):M=E.sibling;var _=p(h,E,$.value,S);if(_===null){E===null&&(E=M);break}e&&E&&_.alternate===null&&t(h,E),v=i(_,v,P),b===null?x=_:b.sibling=_,b=_,E=M}if($.done)return n(h,E),Pe&&Sr(h,P),x;if(E===null){for(;!$.done;P++,$=w.next())$=d(h,$.value,S),$!==null&&(v=i($,v,P),b===null?x=$:b.sibling=$,b=$);return Pe&&Sr(h,P),x}for(E=r(h,E);!$.done;P++,$=w.next())$=g(E,h,P,$.value,S),$!==null&&(e&&$.alternate!==null&&E.delete($.key===null?P:$.key),v=i($,v,P),b===null?x=$:b.sibling=$,b=$);return e&&E.forEach(function(k){return t(h,k)}),Pe&&Sr(h,P),x}function C(h,v,w,S){if(typeof w=="object"&&w!==null&&w.type===ro&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ea:e:{for(var x=w.key,b=v;b!==null;){if(b.key===x){if(x=w.type,x===ro){if(b.tag===7){n(h,b.sibling),v=o(b,w.props.children),v.return=h,h=v;break e}}else if(b.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===zn&&qp(x)===b.type){n(h,b.sibling),v=o(b,w.props),v.ref=ei(h,b,w),v.return=h,h=v;break e}n(h,b);break}else t(h,b);b=b.sibling}w.type===ro?(v=Mr(w.props.children,h.mode,S,w.key),v.return=h,h=v):(S=vl(w.type,w.key,w.props,null,h.mode,S),S.ref=ei(h,v,w),S.return=h,h=S)}return a(h);case no:e:{for(b=w.key;v!==null;){if(v.key===b)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(h,v.sibling),v=o(v,w.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=Eu(w,h.mode,S),v.return=h,h=v}return a(h);case zn:return b=w._init,C(h,v,b(w._payload),S)}if(si(w))return m(h,v,w,S);if(Yo(w))return y(h,v,w,S);Fa(h,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,w),v.return=h,h=v):(n(h,v),v=xu(w,h.mode,S),v.return=h,h=v),a(h)):n(h,v)}return C}var ko=vg(!0),hg=vg(!1),ua={},mn=cr(ua),Ui=cr(ua),Wi=cr(ua);function Pr(e){if(e===ua)throw Error(D(174));return e}function ld(e,t){switch(ye(Wi,t),ye(Ui,e),ye(mn,ua),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ic(t,e)}be(mn),ye(mn,t)}function Ro(){be(mn),be(Ui),be(Wi)}function mg(e){Pr(Wi.current);var t=Pr(mn.current),n=ic(t,e.type);t!==n&&(ye(Ui,e),ye(mn,n))}function sd(e){Ui.current===e&&(be(mn),be(Ui))}var Oe=cr(0);function zl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gu=[];function ud(){for(var e=0;en?n:4,e(!0);var r=yu.transition;yu.transition={};try{e(!1),t()}finally{de=n,yu.transition=r}}function Ig(){return Yt().memoizedState}function BS(e,t,n){var r=rr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ng(e))_g(t,n);else if(n=cg(e,t,n,r),n!==null){var o=ct();rn(n,e,r,o),Fg(n,t,r)}}function US(e,t,n){var r=rr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ng(e))_g(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,an(l,a)){var s=t.interleaved;s===null?(o.next=o,id(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=cg(e,t,o,r),n!==null&&(o=ct(),rn(n,e,r,o),Fg(n,t,r))}}function Ng(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function _g(e,t){Si=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Wf(e,n)}}var Vl={readContext:Gt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},WS={readContext:Gt,useCallback:function(e,t){return dn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Zp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cl(4194308,4,kg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return cl(4,2,e,t)},useMemo:function(e,t){var n=dn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=dn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=BS.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=dn();return e={current:e},t.memoizedState=e},useState:Qp,useDebugValue:vd,useDeferredValue:function(e){return dn().memoizedState=e},useTransition:function(){var e=Qp(!1),t=e[0];return e=HS.bind(null,e[1]),dn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,o=dn();if(Pe){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),Xe===null)throw Error(D(349));Fr&30||wg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zp(Cg.bind(null,r,i,e),[e]),r.flags|=2048,Gi(9,Sg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=dn(),t=Xe.identifierPrefix;if(Pe){var n=Pn,r=En;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ki++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pn]=t,e[Bi]=r,Ug(e,t,!1,!1),t.stateNode=e;e:{switch(a=lc(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o$o&&(t.flags|=128,r=!0,ti(i,!1),t.lanes=4194304)}else{if(!r)if(e=zl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ti(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Pe)return rt(t),null}else 2*Fe()-i.renderingStartTime>$o&&n!==1073741824&&(t.flags|=128,r=!0,ti(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fe(),t.sibling=null,n=Oe.current,ye(Oe,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Sd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function JS(e,t){switch(ed(t),t.tag){case 1:return gt(t.type)&&Il(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ro(),be(mt),be(at),ud(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sd(t),null;case 13:if(be(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Oo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Oe),null;case 4:return Ro(),null;case 10:return od(t.type._context),null;case 22:case 23:return Sd(),null;case 24:return null;default:return null}}var La=!1,ot=!1,eC=typeof WeakSet=="function"?WeakSet:Set,V=null;function po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function _c(e,t,n){try{n()}catch(r){Me(e,t,r)}}var lv=!1;function tC(e,t){if(gc=Rl,e=qm(),Zf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(l=a+o),d!==i||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(yc={focusedElem:e,selectionRange:n},Rl=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,C=m.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:Jt(t.type,y),C);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Me(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return m=lv,lv=!1,m}function Ci(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&_c(t,n,i)}o=o.next}while(o!==r)}}function ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Fc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xg(e){var t=e.alternate;t!==null&&(e.alternate=null,Xg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pn],delete t[Bi],delete t[Cc],delete t[LS],delete t[DS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gg(e){return e.tag===5||e.tag===3||e.tag===4}function sv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ml));else if(r!==4&&(e=e.child,e!==null))for(Ac(e,t,n),e=e.sibling;e!==null;)Ac(e,t,n),e=e.sibling}function Lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lc(e,t,n),e=e.sibling;e!==null;)Lc(e,t,n),e=e.sibling}var qe=null,en=!1;function Ln(e,t,n){for(n=n.child;n!==null;)Yg(e,t,n),n=n.sibling}function Yg(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(ss,n)}catch{}switch(n.tag){case 5:ot||po(n,t);case 6:var r=qe,o=en;qe=null,Ln(e,t,n),qe=r,en=o,qe!==null&&(en?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(en?(e=qe,n=n.stateNode,e.nodeType===8?hu(e.parentNode,n):e.nodeType===1&&hu(e,n),Di(e)):hu(qe,n.stateNode));break;case 4:r=qe,o=en,qe=n.stateNode.containerInfo,en=!0,Ln(e,t,n),qe=r,en=o;break;case 0:case 11:case 14:case 15:if(!ot&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&_c(n,t,a),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!ot&&(po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Me(n,t,l)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(ot=(r=ot)||n.memoizedState!==null,Ln(e,t,n),ot=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function uv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new eC),t.forEach(function(r){var o=cC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rC(r/1960))-r,10e?16:e,Wn===null)var r=!1;else{if(e=Wn,Wn=null,Ul=0,ae&6)throw Error(D(331));var o=ae;for(ae|=4,V=e.current;V!==null;){var i=V,a=i.child;if(V.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sFe()-yd?$r(e,0):gd|=n),yt(e,t)}function r0(e,t){t===0&&(e.mode&1?(t=Ra,Ra<<=1,!(Ra&130023424)&&(Ra=4194304)):t=1);var n=ct();e=$n(e,t),e!==null&&(aa(e,t,n),yt(e,n))}function uC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),r0(e,n)}function cC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),r0(e,n)}var o0;o0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,QS(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Pe&&t.flags&1048576&&lg(t,Fl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fl(e,t),e=t.pendingProps;var o=Po(t,at.current);Co(t,n),o=fd(null,t,r,e,o,n);var i=dd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Nl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ad(t),o.updater=vs,t.stateNode=o,o._reactInternals=t,kc(t,r,e,n),t=$c(null,t,r,!0,i,n)):(t.tag=0,Pe&&i&&Jf(t),st(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=dC(r),e=Jt(r,e),o){case 0:t=Tc(null,t,r,e,n);break e;case 1:t=ov(null,t,r,e,n);break e;case 11:t=nv(null,t,r,e,n);break e;case 14:t=rv(null,t,r,Jt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Tc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),ov(e,t,r,o,n);case 3:e:{if(Vg(t),e===null)throw Error(D(387));r=t.pendingProps,i=t.memoizedState,o=i.element,fg(e,t),Dl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=To(Error(D(423)),t),t=iv(e,t,r,n,o);break e}else if(r!==o){o=To(Error(D(424)),t),t=iv(e,t,r,n,o);break e}else for(Et=er(t.stateNode.containerInfo.firstChild),Ot=t,Pe=!0,tn=null,n=hg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oo(),r===o){t=Mn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return mg(t),e===null&&Ec(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,wc(r,o)?a=null:i!==null&&wc(r,i)&&(t.flags|=32),jg(e,t),st(e,t,a,n),t.child;case 6:return e===null&&Ec(t),null;case 13:return Hg(e,t,n);case 4:return ld(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ko(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),nv(e,t,r,o,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,ye(Al,r._currentValue),r._currentValue=a,i!==null)if(an(i.value,a)){if(i.children===o.children&&!mt.current){t=Mn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=On(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Pc(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(D(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Pc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}st(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Co(t,n),o=Gt(o),r=r(o),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),rv(e,t,r,o,n);case 15:return Dg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),fl(e,t),t.tag=1,gt(r)?(e=!0,Nl(t)):e=!1,Co(t,n),pg(t,r,o),kc(t,r,o,n),$c(null,t,r,!0,e,n);case 19:return Bg(e,t,n);case 22:return zg(e,t,n)}throw Error(D(156,t.tag))};function i0(e,t){return Mm(e,t)}function fC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,r){return new fC(e,t,n,r)}function bd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dC(e){if(typeof e=="function")return bd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vf)return 11;if(e===Hf)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vl(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")bd(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ro:return Mr(n.children,o,i,t);case jf:a=8,o|=8;break;case Qu:return e=Ut(12,n,t,o|2),e.elementType=Qu,e.lanes=i,e;case Zu:return e=Ut(13,n,t,o),e.elementType=Zu,e.lanes=i,e;case Ju:return e=Ut(19,n,t,o),e.elementType=Ju,e.lanes=i,e;case vm:return ys(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case dm:a=10;break e;case pm:a=9;break e;case Vf:a=11;break e;case Hf:a=14;break e;case zn:a=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=Ut(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Mr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function ys(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=vm,e.lanes=n,e.stateNode={isHidden:!1},e}function xu(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Eu(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pC(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ou(0),this.expirationTimes=ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ou(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function xd(e,t,n,r,o,i,a,l,s){return e=new pC(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ad(i),e}function vC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Rt})(hw);const qi=em(Ii);var gv=Ii;Gu.createRoot=gv.createRoot,Gu.hydrateRoot=gv.hydrateRoot;const wC="/assets/robot-31049626.svg";/** - * @remix-run/router v1.2.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function CC(){return Math.random().toString(36).substr(2,8)}function wv(e){return{usr:e.state,key:e.key}}function Hc(e,t,n,r){return n===void 0&&(n=null),Xl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?zo(t):t,{state:n,key:t&&t.key||r||CC()})}function Qi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function zo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function bC(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Qi(e);return Ue(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function xC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Kn.Pop,s=null;function u(){l=Kn.Pop,s&&s({action:l,location:p.location})}function c(g,m){l=Kn.Push;let y=Hc(p.location,g,m);n&&n(y,g);let C=wv(y),h=p.createHref(y);try{a.pushState(C,"",h)}catch{o.location.assign(h)}i&&s&&s({action:l,location:p.location})}function d(g,m){l=Kn.Replace;let y=Hc(p.location,g,m);n&&n(y,g);let C=wv(y),h=p.createHref(y);a.replaceState(C,"",h),i&&s&&s({action:l,location:p.location})}let p={get action(){return l},get location(){return e(o,a)},listen(g){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(yv,u),s=g,()=>{o.removeEventListener(yv,u),s=null}},createHref(g){return t(o,g)},encodeLocation(g){let m=bC(typeof g=="string"?g:Qi(g));return{pathname:m.pathname,search:m.search,hash:m.hash}},push:c,replace:d,go(g){return a.go(g)}};return p}var Sv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sv||(Sv={}));function EC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?zo(t):t,o=f0(r.pathname||"/",n);if(o==null)return null;let i=u0(e);PC(i);let a=null;for(let l=0;a==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(Ue(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=ir([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),u0(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:IC(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let s of c0(i.path))o(i,a,s)}),t}function c0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=c0(r.join("/")),l=[];return l.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function PC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:NC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const OC=/^:\w+$/,kC=3,RC=2,TC=1,$C=10,MC=-2,Cv=e=>e==="*";function IC(e,t){let n=e.split("/"),r=n.length;return n.some(Cv)&&(r+=MC),t&&(r+=RC),n.filter(o=>!Cv(o)).reduce((o,i)=>o+(OC.test(i)?kC:i===""?TC:$C),r)}function NC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function _C(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=l[d]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=DC(l[d]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function AC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,l)=>(r.push(l),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function LC(e){try{return decodeURI(e)}catch(t){return kd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function DC(e,t){try{return decodeURIComponent(e)}catch(n){return kd(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function f0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function kd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?zo(e):e;return{pathname:n?n.startsWith("/")?n:jC(n,t):t,search:HC(r),hash:BC(o)}}function jC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Pu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function d0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function p0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=zo(e):(o=Xl({},e),Ue(!o.pathname||!o.pathname.includes("?"),Pu("?","pathname","search",o)),Ue(!o.pathname||!o.pathname.includes("#"),Pu("#","pathname","hash",o)),Ue(!o.search||!o.search.includes("#"),Pu("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(r||a==null)l=n;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}l=d>=0?t[d]:"/"}let s=zC(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const ir=e=>e.join("/").replace(/\/\/+/g,"/"),VC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),HC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,BC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class UC{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function WC(e){return e instanceof UC}const KC=["post","put","patch","delete"];[...KC];/** - * React Router v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Bc(){return Bc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.value=r,o.getSnapshot=t,Ou(o)&&i({inst:o})},[e,r,t]),qC(()=>(Ou(o)&&i({inst:o}),e(()=>{Ou(o)&&i({inst:o})})),[e]),ZC(r),r}function Ou(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!GC(n,r)}catch{return!0}}function eb(e,t,n){return t()}const tb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nb=!tb,rb=nb?eb:JC;"useSyncExternalStore"in bl&&(e=>e.useSyncExternalStore)(bl);const ob=f.createContext(null),ib=f.createContext(null),v0=f.createContext(null),xs=f.createContext(null),Es=f.createContext(null),Hr=f.createContext({outlet:null,matches:[]}),h0=f.createContext(null);function ab(e,t){let{relative:n}=t===void 0?{}:t;ca()||Ue(!1);let{basename:r,navigator:o}=f.useContext(xs),{hash:i,pathname:a,search:l}=m0(e,{relative:n}),s=a;return r!=="/"&&(s=a==="/"?r:ir([r,a])),o.createHref({pathname:s,search:l,hash:i})}function ca(){return f.useContext(Es)!=null}function Ps(){return ca()||Ue(!1),f.useContext(Es).location}function lb(){ca()||Ue(!1);let{basename:e,navigator:t}=f.useContext(xs),{matches:n}=f.useContext(Hr),{pathname:r}=Ps(),o=JSON.stringify(d0(n).map(l=>l.pathnameBase)),i=f.useRef(!1);return f.useEffect(()=>{i.current=!0}),f.useCallback(function(l,s){if(s===void 0&&(s={}),!i.current)return;if(typeof l=="number"){t.go(l);return}let u=p0(l,JSON.parse(o),r,s.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:ir([e,u.pathname])),(s.replace?t.replace:t.push)(u,s.state,s)},[e,t,o,r])}const sb=f.createContext(null);function ub(e){let t=f.useContext(Hr).outlet;return t&&f.createElement(sb.Provider,{value:e},t)}function m0(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=f.useContext(Hr),{pathname:o}=Ps(),i=JSON.stringify(d0(r).map(a=>a.pathnameBase));return f.useMemo(()=>p0(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function cb(e,t){ca()||Ue(!1);let{navigator:n}=f.useContext(xs),r=f.useContext(v0),{matches:o}=f.useContext(Hr),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let s=Ps(),u;if(t){var c;let y=typeof t=="string"?zo(t):t;l==="/"||(c=y.pathname)!=null&&c.startsWith(l)||Ue(!1),u=y}else u=s;let d=u.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",g=EC(e,{pathname:p}),m=vb(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:ir([l,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:ir([l,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r||void 0);return t&&m?f.createElement(Es.Provider,{value:{location:Bc({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Kn.Pop}},m):m}function fb(){let e=g0(),t=WC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unhandled Thrown Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"errorElement")," props on ",f.createElement("code",{style:i},"")))}class db extends f.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?f.createElement(Hr.Provider,{value:this.props.routeContext},f.createElement(h0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pb(e){let{routeContext:t,match:n,children:r}=e,o=f.useContext(ob);return o&&n.route.errorElement&&(o._deepestRenderedBoundaryId=n.route.id),f.createElement(Hr.Provider,{value:t},r)}function vb(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Ue(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,l)=>{let s=a.route.id?o==null?void 0:o[a.route.id]:null,u=n?a.route.errorElement||f.createElement(fb,null):null,c=t.concat(r.slice(0,l+1)),d=()=>f.createElement(pb,{match:a,routeContext:{outlet:i,matches:c}},s?u:a.route.element!==void 0?a.route.element:i);return n&&(a.route.errorElement||l===0)?f.createElement(db,{location:n.location,component:u,error:s,children:d(),routeContext:{outlet:null,matches:c}}):d()},null)}var bv;(function(e){e.UseRevalidator="useRevalidator"})(bv||(bv={}));var Gl;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Gl||(Gl={}));function hb(e){let t=f.useContext(v0);return t||Ue(!1),t}function mb(e){let t=f.useContext(Hr);return t||Ue(!1),t}function gb(e){let t=mb(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function g0(){var e;let t=f.useContext(h0),n=hb(Gl.UseRouteError),r=gb(Gl.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function yb(e){return ub(e.context)}function fi(e){Ue(!1)}function wb(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Kn.Pop,navigator:i,static:a=!1}=e;ca()&&Ue(!1);let l=t.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:l,navigator:i,static:a}),[l,i,a]);typeof r=="string"&&(r=zo(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:g="default"}=r,m=f.useMemo(()=>{let y=f0(u,l);return y==null?null:{pathname:y,search:c,hash:d,state:p,key:g}},[l,u,c,d,p,g]);return m==null?null:f.createElement(xs.Provider,{value:s},f.createElement(Es.Provider,{children:n,value:{location:m,navigationType:o}}))}function Sb(e){let{children:t,location:n}=e,r=f.useContext(ib),o=r&&!t?r.router.routes:Uc(t);return cb(o,n)}var xv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(xv||(xv={}));new Promise(()=>{});function Uc(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;if(r.type===f.Fragment){n.push.apply(n,Uc(r.props.children,t));return}r.type!==fi&&Ue(!1),!r.props.index||!r.props.children||Ue(!1);let i=[...t,o],a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=Uc(r.props.children,i)),n.push(a)}),n}/** - * React Router DOM v6.6.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Wc(){return Wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function bb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function xb(e,t){return e.button===0&&(!t||t==="_self")&&!bb(e)}const Eb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Pb(e){let{basename:t,children:n,window:r}=e,o=f.useRef();o.current==null&&(o.current=SC({window:r,v5Compat:!0}));let i=o.current,[a,l]=f.useState({action:i.action,location:i.location});return f.useLayoutEffect(()=>i.listen(l),[i]),f.createElement(wb,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}const Kc=f.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:l,target:s,to:u,preventScrollReset:c}=t,d=Cb(t,Eb),p=ab(u,{relative:o}),g=Ob(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:o});function m(y){r&&r(y),y.defaultPrevented||g(y)}return f.createElement("a",Wc({},d,{href:p,onClick:i?r:m,ref:n,target:s}))});var Ev;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Ev||(Ev={}));var Pv;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pv||(Pv={}));function Ob(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,l=lb(),s=Ps(),u=m0(e,{relative:a});return f.useCallback(c=>{if(xb(c,n)){c.preventDefault();let d=r!==void 0?r:Qi(s)===Qi(u);l(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[s,l,u,r,o,n,e,i,a])}function $t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e){return ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(e)}function kb(e,t){if(ge(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ge(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y0(e){var t=kb(e,"string");return ge(t)==="symbol"?t:String(t)}function Ov(e,t){for(var n=0;n"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 q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tb(e,t){if(t&&(ge(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}function Ur(e){var t=Rb();return function(){var r=Yl(e),o;if(t){var i=Yl(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Tb(this,o)}}var Gc={},$b={get exports(){return Gc},set exports(e){Gc=e}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(gn(r)):ql.isFragment(r)&&r.props?n=n.concat(gn(r.props.children,t)):n.push(r))}),n}var kv={};function Lb(e,t){}function Db(e,t,n){!t&&!kv[n]&&(e(!1,n),kv[n]=!0)}function Xt(e,t){Db(Lb,e,t)}function F(e,t,n){return t=y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t0},e.prototype.connect_=function(){!Yc||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Wb?(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(){!Yc||!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(t){var n=t.propertyName,r=n===void 0?"":n,o=Ub.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b0=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Mo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new ex(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Mo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new tx(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E0=typeof WeakMap<"u"?new WeakMap:new C0,P0=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Kb.getInstance(),r=new nx(t,n,this);E0.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){P0.prototype[e]=function(){var t;return(t=E0.get(this))[e].apply(t,arguments)}});var O0=function(){return typeof Zl.ResizeObserver<"u"?Zl.ResizeObserver:P0}(),Xn=new Map;function rx(e){e.forEach(function(t){var n,r=t.target;(n=Xn.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var k0=new O0(rx);function ox(e,t){Xn.has(e)||(Xn.set(e,new Set),k0.observe(e)),Xn.get(e).add(t)}function ix(e,t){Xn.has(e)&&(Xn.get(e).delete(t),Xn.get(e).size||(k0.unobserve(e),Xn.delete(e)))}var ax=function(e){Br(n,e);var t=Ur(n);function n(){return $t(this,n),t.apply(this,arguments)}return Mt(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component),qc=f.createContext(null);function lx(e){var t=e.children,n=e.onBatchResize,r=f.useRef(0),o=f.useRef([]),i=f.useContext(qc),a=f.useCallback(function(l,s,u){r.current+=1;var c=r.current;o.current.push({size:l,element:s,data:u}),Promise.resolve().then(function(){c===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,u)},[n,i]);return f.createElement(qc.Provider,{value:a},t)}function sx(e){var t=e.children,n=e.disabled,r=f.useRef(null),o=f.useRef(null),i=f.useContext(qc),a=typeof t=="function",l=a?t(r):t,s=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!a&&f.isValidElement(l)&&Id(l),c=u?l.ref:null,d=f.useMemo(function(){return Md(c,r)},[c,r]),p=f.useRef(e);p.current=e;var g=f.useCallback(function(m){var y=p.current,C=y.onResize,h=y.data,v=m.getBoundingClientRect(),w=v.width,S=v.height,x=m.offsetWidth,b=m.offsetHeight,E=Math.floor(w),P=Math.floor(S);if(s.current.width!==E||s.current.height!==P||s.current.offsetWidth!==x||s.current.offsetHeight!==b){var M={width:E,height:P,offsetWidth:x,offsetHeight:b};s.current=M;var $=x===Math.round(w)?w:x,_=b===Math.round(S)?S:b,k=N(N({},M),{},{offsetWidth:$,offsetHeight:_});i==null||i(k,m,h),C&&Promise.resolve().then(function(){C(k,m)})}},[]);return f.useEffect(function(){var m=Ql(r.current)||Ql(o.current);return m&&!n&&ox(m,g),function(){return ix(m,g)}},[r.current,n]),f.createElement(ax,{ref:o},u?f.cloneElement(l,{ref:d}):l)}var ux="rc-observer-key";function Nd(e){var t=e.children,n=typeof t=="function"?[t]:gn(t);return n.map(function(r,o){var i=(r==null?void 0:r.key)||"".concat(ux,"-").concat(o);return f.createElement(sx,ie({},e,{key:i}),r)})}Nd.Collection=lx;function jo(e,t){var n=N({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Qc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=4;++r,o-=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(o){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)}function dx(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function xe(e,t){if(e==null)return{};var n=dx(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function px(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(Xt(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):yx}function Ls(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wx(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _0(e){return Array.from((Jc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function F0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Nn())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute($v,wx(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;var i=Ls(t),a=i.firstChild;if(r){if(r==="queue"){var l=_0(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute($v))});if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function A0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ls(t);return _0(n).find(function(r){return r.getAttribute(N0(t))===e})}function L0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=A0(e,t);if(n){var r=Ls(t);r.removeChild(n)}}function Sx(e,t){var n=Jc.get(e);if(!n||!Pi(document,n)){var r=F0("",t),o=r.parentNode;Jc.set(e,o),e.removeChild(r)}}function ts(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ls(n);Sx(r,n);var o=A0(t,n);if(o){var i,a;if(!((i=n.csp)===null||i===void 0)&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var l;o.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var s=F0(e,n);return s.setAttribute(N0(n),t),s}function ns(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&ge(r)==="object"?t+=ns(r):t+=r}),t}function Cx(e,t){return Fd("".concat(t,"_").concat(ns(e)))}var Oi="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),D0="903px";function bx(e,t){if(Nn()){var n;ts(e,Oi);var r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);var o=getComputedStyle(r).width===D0;return(n=r.parentNode)===null||n===void 0||n.removeChild(r),L0(Oi),o}return!1}var ku=void 0;function xx(){return ku===void 0&&(ku=bx("@layer ".concat(Oi," { .").concat(Oi," { width: ").concat(D0,"!important; } }"),function(e){e.className=Oi})),ku}var Ex={},Px="css",br=new Map;function Ox(e){br.set(e,(br.get(e)||0)+1)}function kx(e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Zc,'="').concat(e,'"]'));t.forEach(function(n){if(n[Ei]===es){var r;(r=n.parentNode)===null||r===void 0||r.removeChild(n)}})}}function Rx(e){br.set(e,(br.get(e)||0)-1);var t=Array.from(br.keys()),n=t.filter(function(r){var o=br.get(r)||0;return o<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},r=n.salt,o=r===void 0?"":r,i=n.override,a=i===void 0?Ex:i,l=n.formatToken,s=f.useMemo(function(){return Object.assign.apply(Object,[{}].concat(K(t)))},[t]),u=f.useMemo(function(){return ns(s)},[s]),c=f.useMemo(function(){return ns(a)},[a]),d=I0("token",[o,e.id,u,c],function(){var p=e.getDerivativeToken(s),g=N(N({},p),a);l&&(g=l(g));var m=Cx(g,o);g._tokenKey=m,Ox(m);var y="".concat(Px,"-").concat(Fd(m));return g._hashId=y,[g,y]},function(p){Rx(p[0]._tokenKey)});return d}var $x={animationIterationCount: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},z0="comm",j0="rule",V0="decl",Mx="@import",Ix="@keyframes",Nx=Math.abs,Ad=String.fromCharCode;function H0(e){return e.trim()}function ef(e,t,n){return e.replace(t,n)}function _x(e,t){return e.indexOf(t)}function Zi(e,t){return e.charCodeAt(t)|0}function Ji(e,t,n){return e.slice(t,n)}function Vn(e){return e.length}function B0(e){return e.length}function ja(e,t){return t.push(e),e}var Ds=1,Io=1,U0=0,qt=0,Le=0,Vo="";function Ld(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ds,column:Io,length:a,return:""}}function Fx(){return Le}function Ax(){return Le=qt>0?Zi(Vo,--qt):0,Io--,Le===10&&(Io=1,Ds--),Le}function on(){return Le=qt2||tf(Le)>3?"":" "}function jx(e,t){for(;--t&&on()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return zs(e,hl()+(t<6&&Ir()==32&&on()==32))}function nf(e){for(;on();)switch(Le){case e:return qt;case 34:case 39:e!==34&&e!==39&&nf(Le);break;case 40:e===41&&nf(e);break;case 92:on();break}return qt}function Vx(e,t){for(;on()&&e+Le!==47+10;)if(e+Le===42+42&&Ir()===47)break;return"/*"+zs(t,qt-1)+"*"+Ad(e===47?e:on())}function Hx(e){for(;!tf(Ir());)on();return zs(e,qt)}function Bx(e){return Dx(ml("",null,null,null,[""],e=Lx(e),0,[0],e))}function ml(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,g=0,m=0,y=1,C=1,h=1,v=0,w="",S=o,x=i,b=r,E=w;C;)switch(m=v,v=on()){case 40:if(m!=108&&Zi(E,d-1)==58){_x(E+=ef(Ru(v),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:E+=Ru(v);break;case 9:case 10:case 13:case 32:E+=zx(m);break;case 92:E+=jx(hl()-1,7);continue;case 47:switch(Ir()){case 42:case 47:ja(Ux(Vx(on(),hl()),t,n),s);break;default:E+="/"}break;case 123*y:l[u++]=Vn(E)*h;case 125*y:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+c:g>0&&Vn(E)-d&&ja(g>32?Iv(E+";",r,n,d-1):Iv(ef(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(ja(b=Mv(E,t,n,u,c,o,l,w,S=[],x=[],d),i),v===123)if(c===0)ml(E,t,b,b,S,i,d,l,x);else switch(p===99&&Zi(E,3)===110?100:p){case 100:case 109:case 115:ml(e,b,b,r&&ja(Mv(e,b,b,0,0,o,l,w,o,S=[],d),x),o,x,d,l,r?S:x);break;default:ml(E,b,b,b,[""],x,0,l,x)}}u=c=g=0,y=h=1,w=E="",d=a;break;case 58:d=1+Vn(E),g=m;default:if(y<1){if(v==123)--y;else if(v==125&&y++==0&&Ax()==125)continue}switch(E+=Ad(v),v*y){case 38:h=c>0?1:(E+="\f",-1);break;case 44:l[u++]=(Vn(E)-1)*h,h=1;break;case 64:Ir()===45&&(E+=Ru(on())),p=Ir(),c=d=Vn(w=E+=Hx(hl())),v++;break;case 45:m===45&&Vn(E)==2&&(y=0)}}return i}function Mv(e,t,n,r,o,i,a,l,s,u,c){for(var d=o-1,p=o===0?i:[""],g=B0(p),m=0,y=0,C=0;m0?p[h]+" "+v:ef(v,/&\f/g,p[h])))&&(s[C++]=w);return Ld(e,t,n,o===0?j0:l,s,u,c)}function Ux(e,t,n){return Ld(e,t,n,z0,Ad(Fx()),Ji(e,2,-2),0)}function Iv(e,t,n,r){return Ld(e,t,n,V0,Ji(e,0,r),Ji(e,r+1,-1),r)}function rf(e,t){for(var n="",r=B0(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer;n.path;var u=n.hashPriority,c=n.transformers,d=c===void 0?[]:c;n.linters;var p="",g={};function m(w){var S=w.getName(l);if(!g[S]){var x=e(w.style,n,{root:!1,parentSelectors:a}),b=B(x,1),E=b[0];g[S]="@keyframes ".concat(w.getName(l)).concat(E)}}function y(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(x){Array.isArray(x)?y(x,S):x&&S.push(x)}),S}var C=y(Array.isArray(t)?t:[t]);if(C.forEach(function(w){var S=typeof w=="string"&&!o?{}:w;if(typeof S=="string")p+="".concat(S,` -`);else if(S._keyframe)m(S);else{var x=d.reduce(function(b,E){var P;return(E==null||(P=E.visit)===null||P===void 0?void 0:P.call(E,b))||b},S);Object.keys(x).forEach(function(b){var E=x[b];if(ge(E)==="object"&&E&&(b!=="animationName"||!E._keyframe)&&!Xx(E)){var P=!1,M=b.trim(),$=!1;(o||i)&&l?M.startsWith("@")?P=!0:M=Gx(b,l,u):o&&!l&&(M==="&"||M==="")&&(M="",$=!0);var _=e(E,n,{root:$,injectHash:P,parentSelectors:[].concat(K(a),[M])}),k=B(_,2),O=k[0],R=k[1];g=N(N({},g),R),p+="".concat(M).concat(O)}else{var I,A=(I=E==null?void 0:E.value)!==null&&I!==void 0?I:E,L=b.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),T=A;!$x[b]&&typeof T=="number"&&T!==0&&(T="".concat(T,"px")),b==="animationName"&&E!==null&&E!==void 0&&E._keyframe&&(m(E),T=E.getName(l)),p+="".concat(L,":").concat(T,";")}})}}),!o)p="{".concat(p,"}");else if(s&&xx()){var h=s.split(","),v=h[h.length-1].trim();p="@layer ".concat(v," {").concat(p,"}"),h.length>1&&(p="@layer ".concat(s,"{%%%:%}").concat(p))}return[p,g]};function qx(e,t){return Fd("".concat(e.join("%")).concat(t))}function Qx(){return null}function Av(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=f.useContext(T0),l=a.autoClear;a.mock;var s=a.defaultCache,u=a.hashPriority,c=a.container,d=a.ssrInline,p=a.transformers,g=a.linters,m=n._tokenKey,y=[m].concat(K(r)),C=Nv,h=I0("style",y,function(){var b=t(),E=Yx(b,{hashId:o,hashPriority:u,layer:i,path:r.join("-"),transformers:p,linters:g}),P=B(E,2),M=P[0],$=P[1],_=_v(M),k=qx(y,_);if(C){var O=ts(_,k,{mark:Or,prepend:"queue",attachTo:c});O[Ei]=es,O.setAttribute(Zc,m),Object.keys($).forEach(function(R){Fv.has(R)||(Fv.add(R),ts(_v($[R]),"_effect-".concat(R),{mark:Or,prepend:"queue",attachTo:c}))})}return[_,m,k]},function(b,E){var P=B(b,3),M=P[2];(E||l)&&Nv&&L0(M,{mark:Or})}),v=B(h,3),w=v[0],S=v[1],x=v[2];return function(b){var E;if(!d||C||!s)E=f.createElement(Qx,null);else{var P;E=f.createElement("style",ie({},(P={},F(P,Zc,S),F(P,Or,x),P),{dangerouslySetInnerHTML:{__html:w}}))}return f.createElement(f.Fragment,null,E,b)}}var ze=function(){function e(t,n){$t(this,e),F(this,"name",void 0),F(this,"style",void 0),F(this,"_keyframe",!0),this.name=t,this.style=n}return Mt(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Zx(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s,u;a=(s=a)===null||s===void 0||(u=s.map)===null||u===void 0?void 0:u.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,c){var d=B(u,2),p=d[1];return o.internalGet(c)[1]0,void 0),Lv+=1}return Mt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Tu=new Dd;function eE(e){var t=Array.isArray(e)?e:[e];return Tu.has(t)||Tu.set(t,new Jx(t)),Tu.get(t)}function Gr(e){return e.notSplit=!0,e}Gr(["borderTop","borderBottom"]),Gr(["borderTop"]),Gr(["borderBottom"]),Gr(["borderLeft","borderRight"]),Gr(["borderLeft"]),Gr(["borderRight"]);var tE=f.createContext({});const W0=tE;var kr="RC_FORM_INTERNAL_HOOKS",me=function(){Xt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},No=f.createContext({getFieldValue:me,getFieldsValue:me,getFieldError:me,getFieldWarning:me,getFieldsError:me,isFieldsTouched:me,isFieldTouched:me,isFieldValidating:me,isFieldsValidating:me,resetFields:me,setFields:me,setFieldValue:me,setFieldsValue:me,validateFields:me,submit:me,getInternalHooks:function(){return me(),{dispatch:me,initEntityValue:me,registerField:me,useSubscribe:me,setInitialValues:me,destroyForm:me,setCallbacks:me,registerWatch:me,getFields:me,setValidateMessages:me,setPreserve:me,getInitialValue:me}}});function of(e){return e==null?[]:Array.isArray(e)?e:[e]}function ln(){ln=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(k,O,R){k[O]=R.value},o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(k,O,R){return Object.defineProperty(k,O,{value:R,enumerable:!0,configurable:!0,writable:!0}),k[O]}try{s({},"")}catch{s=function(R,I,A){return R[I]=A}}function u(k,O,R,I){var A=O&&O.prototype instanceof p?O:p,L=Object.create(A.prototype),T=new M(I||[]);return r(L,"_invoke",{value:x(k,R,T)}),L}function c(k,O,R){try{return{type:"normal",arg:k.call(O,R)}}catch(I){return{type:"throw",arg:I}}}e.wrap=u;var d={};function p(){}function g(){}function m(){}var y={};s(y,i,function(){return this});var C=Object.getPrototypeOf,h=C&&C(C($([])));h&&h!==t&&n.call(h,i)&&(y=h);var v=m.prototype=p.prototype=Object.create(y);function w(k){["next","throw","return"].forEach(function(O){s(k,O,function(R){return this._invoke(O,R)})})}function S(k,O){function R(A,L,T,z){var j=c(k[A],k,L);if(j.type!=="throw"){var U=j.arg,H=U.value;return H&&ge(H)=="object"&&n.call(H,"__await")?O.resolve(H.__await).then(function(G){R("next",G,T,z)},function(G){R("throw",G,T,z)}):O.resolve(H).then(function(G){U.value=G,T(U)},function(G){return R("throw",G,T,z)})}z(j.arg)}var I;r(this,"_invoke",{value:function(L,T){function z(){return new O(function(j,U){R(L,T,j,U)})}return I=I?I.then(z,z):z()}})}function x(k,O,R){var I="suspendedStart";return function(A,L){if(I==="executing")throw new Error("Generator is already running");if(I==="completed"){if(A==="throw")throw L;return _()}for(R.method=A,R.arg=L;;){var T=R.delegate;if(T){var z=b(T,R);if(z){if(z===d)continue;return z}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(I==="suspendedStart")throw I="completed",R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);I="executing";var j=c(k,O,R);if(j.type==="normal"){if(I=R.done?"completed":"suspendedYield",j.arg===d)continue;return{value:j.arg,done:R.done}}j.type==="throw"&&(I="completed",R.method="throw",R.arg=j.arg)}}}function b(k,O){var R=O.method,I=k.iterator[R];if(I===void 0)return O.delegate=null,R==="throw"&&k.iterator.return&&(O.method="return",O.arg=void 0,b(k,O),O.method==="throw")||R!=="return"&&(O.method="throw",O.arg=new TypeError("The iterator does not provide a '"+R+"' method")),d;var A=c(I,k.iterator,O.arg);if(A.type==="throw")return O.method="throw",O.arg=A.arg,O.delegate=null,d;var L=A.arg;return L?L.done?(O[k.resultName]=L.value,O.next=k.nextLoc,O.method!=="return"&&(O.method="next",O.arg=void 0),O.delegate=null,d):L:(O.method="throw",O.arg=new TypeError("iterator result is not an object"),O.delegate=null,d)}function E(k){var O={tryLoc:k[0]};1 in k&&(O.catchLoc=k[1]),2 in k&&(O.finallyLoc=k[2],O.afterLoc=k[3]),this.tryEntries.push(O)}function P(k){var O=k.completion||{};O.type="normal",delete O.arg,k.completion=O}function M(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(E,this),this.reset(!0)}function $(k){if(k){var O=k[i];if(O)return O.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var R=-1,I=function A(){for(;++R=0;--A){var L=this.tryEntries[A],T=L.completion;if(L.tryLoc==="root")return I("end");if(L.tryLoc<=this.prev){var z=n.call(L,"catchLoc"),j=n.call(L,"finallyLoc");if(z&&j){if(this.prev=0;--I){var A=this.tryEntries[I];if(A.tryLoc<=this.prev&&n.call(A,"finallyLoc")&&this.prev=0;--R){var I=this.tryEntries[R];if(I.finallyLoc===O)return this.complete(I.completion,I.afterLoc),P(I),d}},catch:function(O){for(var R=this.tryEntries.length-1;R>=0;--R){var I=this.tryEntries[R];if(I.tryLoc===O){var A=I.completion;if(A.type==="throw"){var L=A.arg;P(I)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(O,R,I){return this.delegate={iterator:$(O),resultName:R,nextLoc:I},this.method==="next"&&(this.arg=void 0),d}},e}function Dv(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){n(u);return}l.done?t(s):Promise.resolve(s).then(r,o)}function fa(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){Dv(i,r,o,a,l,"next",s)}function l(s){Dv(i,r,o,a,l,"throw",s)}a(void 0)})}}function Rr(){return Rr=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 gl(e,t,n){return rE()?gl=Reflect.construct.bind():gl=function(o,i,a){var l=[null];l.push.apply(l,i);var s=Function.bind.apply(o,l),u=new s;return a&&ea(u,a.prototype),u},gl.apply(null,arguments)}function oE(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function lf(e){var t=typeof Map=="function"?new Map:void 0;return lf=function(r){if(r===null||!oE(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return gl(r,arguments,af(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ea(o,r)},lf(e)}var iE=/%[sdj%]/g,aE=function(){};typeof process<"u"&&process.env;function sf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Pt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function lE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function We(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||lE(t)&&typeof e=="string"&&!e)}function sE(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function zv(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\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},di={integer:function(t){return di.number(t)&&parseInt(t,10)===t},float:function(t){return di.number(t)&&!di.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!di.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Bv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(vE())},hex:function(t){return typeof t=="string"&&!!t.match(Bv.hex)}},hE=function(t,n,r,o,i){if(t.required&&n===void 0){K0(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?di[l](n)||o.push(Pt(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(Pt(i.messages.types[l],t.fullField,t.type))},mE=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,p=typeof n=="number",g=typeof n=="string",m=Array.isArray(n);if(p?d="number":g?d="string":m&&(d="array"),!d)return!1;m&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&o.push(Pt(i.messages[d].len,t.fullField,t.len)):l&&!s&&ct.max?o.push(Pt(i.messages[d].max,t.fullField,t.max)):l&&s&&(ct.max)&&o.push(Pt(i.messages[d].range,t.fullField,t.min,t.max))},Yr="enum",gE=function(t,n,r,o,i){t[Yr]=Array.isArray(t[Yr])?t[Yr]:[],t[Yr].indexOf(n)===-1&&o.push(Pt(i.messages[Yr],t.fullField,t[Yr].join(", ")))},yE=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Pt(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Pt(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},re={required:K0,whitespace:pE,type:hE,range:mE,enum:gE,pattern:yE},wE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n,"string")&&!t.required)return r();re.required(t,n,o,a,i,"string"),We(n,"string")||(re.type(t,n,o,a,i),re.range(t,n,o,a,i),re.pattern(t,n,o,a,i),t.whitespace===!0&&re.whitespace(t,n,o,a,i))}r(a)},SE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&re.type(t,n,o,a,i)}r(a)},CE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&(re.type(t,n,o,a,i),re.range(t,n,o,a,i))}r(a)},bE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&re.type(t,n,o,a,i)}r(a)},xE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),We(n)||re.type(t,n,o,a,i)}r(a)},EE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&(re.type(t,n,o,a,i),re.range(t,n,o,a,i))}r(a)},PE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&(re.type(t,n,o,a,i),re.range(t,n,o,a,i))}r(a)},OE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();re.required(t,n,o,a,i,"array"),n!=null&&(re.type(t,n,o,a,i),re.range(t,n,o,a,i))}r(a)},kE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&re.type(t,n,o,a,i)}r(a)},RE="enum",TE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i),n!==void 0&&re[RE](t,n,o,a,i)}r(a)},$E=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n,"string")&&!t.required)return r();re.required(t,n,o,a,i),We(n,"string")||re.pattern(t,n,o,a,i)}r(a)},ME=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n,"date")&&!t.required)return r();if(re.required(t,n,o,a,i),!We(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),re.type(t,s,o,a,i),s&&re.range(t,s.getTime(),o,a,i)}}r(a)},IE=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;re.required(t,n,o,a,i,l),r(a)},$u=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(We(n,a)&&!t.required)return r();re.required(t,n,o,l,i,a),We(n,a)||re.type(t,n,o,l,i)}r(l)},NE=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(We(n)&&!t.required)return r();re.required(t,n,o,a,i)}r(a)},ki={string:wE,method:SE,number:CE,boolean:bE,regexp:xE,integer:EE,float:PE,array:OE,object:kE,enum:TE,pattern:$E,date:ME,url:$u,hex:$u,email:$u,required:IE,any:NE};function uf(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var cf=uf(),da=function(){function e(n){this.rules=null,this._messages=cf,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Hv(uf(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,s=o,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(y){var C=[],h={};function v(S){if(Array.isArray(S)){var x;C=(x=C).concat.apply(x,S)}else C.push(S)}for(var w=0;w3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!G0(e,t.slice(0,-1))?e:Y0(e,t,n,r)}function js(e){return Array.isArray(e)?LE(e):ge(e)==="object"&&e!==null?AE(e):e}function AE(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=js(e[n]);return t}return e}function LE(e){return e.map(function(t){return js(t)})}function _e(e){return of(e)}function Gn(e,t){var n=G0(e,t);return n}function Dn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=FE(e,t,n,r);return o}function Uv(e,t){var n={};return t.forEach(function(r){var o=Gn(e,r);n=Dn(n,r,o)}),n}function Ri(e,t){return e&&e.some(function(n){return Q0(n,t)})}function Wv(e){return ge(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function q0(e,t){var n=Array.isArray(e)?K(e):N({},e);return t&&Object.keys(t).forEach(function(r){var o=n[r],i=t[r],a=Wv(o)&&Wv(i);n[r]=a?q0(o,i||{}):js(i)}),n}function yl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(K(e.slice(0,n)),[o],K(e.slice(n,t)),K(e.slice(t+1,r))):i<0?[].concat(K(e.slice(0,t)),K(e.slice(t+1,n+1)),[o],K(e.slice(n+1,r))):e}var jE=da;function VE(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var Xv="CODE_LOGIC_ERROR";function ff(e,t,n,r,o){return df.apply(this,arguments)}function df(){return df=fa(ln().mark(function e(t,n,r,o,i){var a,l,s,u,c,d,p,g,m;return ln().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return a=N({},r),delete a.ruleIndex,a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(h){return console.error(h),Promise.reject(Xv)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),u=new jE(F({},t,[a])),c=yl({},X0,o.validateMessages),u.messages(c),d=[],C.prev=9,C.next=12,Promise.resolve(u.validate(F({},t,n),N({},o)));case 12:C.next=17;break;case 14:C.prev=14,C.t0=C.catch(9),C.t0.errors&&(d=C.t0.errors.map(function(h,v){var w=h.message,S=w===Xv?c.default:w;return f.isValidElement(S)?f.cloneElement(S,{key:"error_".concat(v)}):S}));case 17:if(!(!d.length&&s)){C.next=22;break}return C.next=20,Promise.all(n.map(function(h,v){return ff("".concat(t,".").concat(v),h,s,o,i)}));case 20:return p=C.sent,C.abrupt("return",p.reduce(function(h,v){return[].concat(K(h),K(v))},[]));case 22:return g=N(N({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=d.map(function(h){return typeof h=="string"?VE(h,g):h}),C.abrupt("return",m);case 25:case"end":return C.stop()}},e,null,[[9,14]])})),df.apply(this,arguments)}function HE(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(c,d){var p=c.validator,g=N(N({},c),{},{ruleIndex:d});return p&&(g.validator=function(m,y,C){var h=!1,v=function(){for(var x=arguments.length,b=new Array(x),E=0;E0&&arguments[0]!==void 0?arguments[0]:zt;if(o.validatePromise===d){var x;o.validatePromise=null;var b=[],E=[];(x=S.forEach)===null||x===void 0||x.call(S,function(P){var M=P.rule.warningOnly,$=P.errors,_=$===void 0?zt:$;M?E.push.apply(E,K(_)):b.push.apply(b,K(_))}),o.errors=b,o.warnings=E,o.triggerMetaEvent(),o.reRender()}}),w});return o.validatePromise=d,o.dirty=!0,o.errors=zt,o.warnings=zt,o.triggerMetaEvent(),o.reRender(),d},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,u=s.getInternalHooks(kr),c=u.getInitialValue;return c(o.getNamePath())!==void 0},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath()};return s},o.getOnlyChild=function(s){if(typeof s=="function"){var u=o.getMeta();return N(N({},o.getOnlyChild(s(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var c=gn(s);return c.length!==1||!f.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}},o.getValue=function(s){var u=o.props.fieldContext.getFieldsValue,c=o.getNamePath();return Gn(s||u(!0),c)},o.getControlled=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,c=u.trigger,d=u.validateTrigger,p=u.getValueFromEvent,g=u.normalize,m=u.valuePropName,y=u.getValueProps,C=u.fieldContext,h=d!==void 0?d:C.validateTrigger,v=o.getNamePath(),w=C.getInternalHooks,S=C.getFieldsValue,x=w(kr),b=x.dispatch,E=o.getValue(),P=y||function(k){return F({},m,k)},M=s[c],$=N(N({},s),P(E));$[c]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var k,O=arguments.length,R=new Array(O),I=0;I=0&&M<=$.length?(u.keys=[].concat(K(u.keys.slice(0,M)),[u.id],K(u.keys.slice(M))),v([].concat(K($.slice(0,M)),[P],K($.slice(M))))):(u.keys=[].concat(K(u.keys),[u.id]),v([].concat(K($),[P]))),u.id+=1},remove:function(P){var M=S(),$=new Set(Array.isArray(P)?P:[P]);$.size<=0||(u.keys=u.keys.filter(function(_,k){return!$.has(k)}),v(M.filter(function(_,k){return!$.has(k)})))},move:function(P,M){if(P!==M){var $=S();P<0||P>=$.length||M<0||M>=$.length||(u.keys=Kv(u.keys,P,M),v(Kv($,P,M)))}}},b=h||[];return Array.isArray(b)||(b=[]),o(b.map(function(E,P){var M=u.keys[P];return M===void 0&&(u.keys[P]=u.id,M=u.keys[P],u.id+=1),{name:P,key:M,isListField:!0}}),x,y)})))};function GE(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var J0="__@field_split__";function Mu(e){return e.map(function(t){return"".concat(ge(t),":").concat(t)}).join(J0)}var qr=function(){function e(){$t(this,e),this.kvs=new Map}return Mt(e,[{key:"set",value:function(n,r){this.kvs.set(Mu(n),r)}},{key:"get",value:function(n){return this.kvs.get(Mu(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Mu(n))}},{key:"map",value:function(n){return K(this.kvs.entries()).map(function(r){var o=B(r,2),i=o[0],a=o[1],l=i.split(J0);return n({key:l.map(function(s){var u=s.match(/^([^:]*):(.*)$/),c=B(u,3),d=c[1],p=c[2];return d==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),YE=["name","errors"],qE=Mt(function e(t){var n=this;$t(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===kr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Xt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,o){if(n.initialValues=r||{},o){var i,a=yl({},r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=Dn(a,s,Gn(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}},this.destroyForm=function(){var r=new qr;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var o=Gn(n.initialValues,r);return r.length?js(o):o},this.setCallbacks=function(r){n.callbacks=r},this.setValidateMessages=function(r){n.validateMessages=r},this.setPreserve=function(r){n.preserve=r},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue();n.watchList.forEach(function(i){i(o,r)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new qr;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=_e(i);return o.get(a)||{INVALIDATE_NAME_PATH:_e(i)}})},this.getFieldsValue=function(r,o){if(n.warningUnhooked(),r===!0&&!o)return n.store;var i=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),a=[];return i.forEach(function(l){var s,u="INVALIDATE_NAME_PATH"in l?l.INVALIDATE_NAME_PATH:l.getNamePath();if(!(!r&&(!((s=l.isListField)===null||s===void 0)&&s.call(l))))if(!o)a.push(u);else{var c="getMeta"in l?l.getMeta():null;o(c)&&a.push(u)}}),Uv(n.store,a.map(_e))},this.getFieldValue=function(r){n.warningUnhooked();var o=_e(r);return Gn(n.store,o)},this.getFieldsError=function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:_e(r[a]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var o=_e(r),i=n.getFieldsError([o])[0];return i.errors},this.getFieldWarning=function(r){n.warningUnhooked();var o=_e(r),i=n.getFieldsError([o])[0];return i.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new qr,i=n.getFieldEntities(!0);i.forEach(function(s){var u=s.props.initialValue,c=s.getNamePath();if(u!==void 0){var d=o.get(c)||new Set;d.add({entity:s,value:u}),o.set(c,d)}});var a=function(u){u.forEach(function(c){var d=c.props.initialValue;if(d!==void 0){var p=c.getNamePath(),g=n.getInitialValue(p);if(g!==void 0)Xt(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var m=o.get(p);if(m&&m.size>1)Xt(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var y=n.getFieldValue(p);(!r.skipExist||y===void 0)&&n.updateStore(Dn(n.store,p,K(m)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var u=o.get(s);if(u){var c;(c=l).push.apply(c,K(K(u).map(function(d){return d.entity})))}})):l=i,a(l)},this.resetFields=function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(yl({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(_e);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Dn(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)},this.setFields=function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name;a.errors;var s=xe(a,YE),u=_e(l);i.push(u),"value"in s&&n.updateStore(Dn(n.store,u,s.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)},this.getFields=function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=N(N({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o},this.initEntityValue=function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Gn(n.store,i);a===void 0&&n.updateStore(Dn(n.store,i,o))}},this.isMergedPreserve=function(r){var o=r!==void 0?r:n.preserve;return o??!0},this.registerField=function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(d){return!Q0(d.getNamePath(),o)})){var c=n.store;n.updateStore(Dn(c,o,u,!0)),n.notifyObservers(c,[o],{type:"remove"}),n.triggerDependenciesUpdate(c,o)}}n.notifyWatch([o])}},this.dispatch=function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}},this.notifyObservers=function(r,o,i){if(n.subscribable){var a=N(N({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(K(i))}),i},this.updateValue=function(r,o){var i=_e(r),a=n.store;n.updateStore(Dn(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var u=Uv(n.store,[i]);s(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(K(l)))},this.setFieldsValue=function(r){n.warningUnhooked();var o=n.store;if(r){var i=yl(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(r,o){n.setFields([{name:r,value:o}])},this.getDependencyChildrenFields=function(r){var o=new Set,i=[],a=new qr;n.getFieldEntities().forEach(function(s){var u=s.props.dependencies;(u||[]).forEach(function(c){var d=_e(c);a.update(d,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(s),p})})});var l=function s(u){var c=a.get(u)||new Set;c.forEach(function(d){if(!o.has(d)){o.add(d);var p=d.getNamePath();d.isFieldDirty()&&p.length&&(i.push(p),s(p))}})};return l(r),i},this.triggerOnFieldsChange=function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new qr;o.forEach(function(u){var c=u.name,d=u.errors;l.set(c,d)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var s=a.filter(function(u){var c=u.name;return Ri(r,c)});i(s,a)}},this.validateFields=function(r,o){n.warningUnhooked();var i=!!r,a=i?r.map(_e):[],l=[];n.getFieldEntities(!0).forEach(function(c){if(i||a.push(c.getNamePath()),o!=null&&o.recursive&&i){var d=c.getNamePath();d.every(function(m,y){return r[y]===m||r[y]===void 0})&&a.push(d)}if(!(!c.props.rules||!c.props.rules.length)){var p=c.getNamePath();if(!i||Ri(a,p)){var g=c.validateRules(N({validateMessages:N(N({},X0),n.validateMessages)},o));l.push(g.then(function(){return{name:p,errors:[],warnings:[]}}).catch(function(m){var y,C=[],h=[];return(y=m.forEach)===null||y===void 0||y.call(m,function(v){var w=v.rule.warningOnly,S=v.errors;w?h.push.apply(h,K(S)):C.push.apply(C,K(S))}),C.length?Promise.reject({name:p,errors:C,warnings:h}):{name:p,errors:C,warnings:h}}))}}});var s=GE(l);n.lastValidatePromise=s,s.catch(function(c){return c}).then(function(c){var d=c.map(function(p){var g=p.name;return g});n.notifyObservers(n.store,d,{type:"validateFinish"}),n.triggerOnFieldsChange(d,c)});var u=s.then(function(){return n.lastValidatePromise===s?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(c){var d=c.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:d,outOfDate:n.lastValidatePromise!==s})});return u.catch(function(c){return c}),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})},this.forceRootUpdate=t});function ey(e){var t=f.useRef(),n=f.useState({}),r=B(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new qE(i);t.current=a.getForm()}return[t.current]}var hf=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),QE=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=f.useContext(hf),l=f.useRef({});return f.createElement(hf.Provider,{value:N(N({},a),{},{validateMessages:N(N({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:l.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){o&&o(u,{values:c,forms:l.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(l.current=N(N({},l.current),{},F({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=N({},l.current);delete c[u],l.current=c,a.unregisterForm(u)}})},i)},ZE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],JE=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,u=t.component,c=u===void 0?"form":u,d=t.validateMessages,p=t.validateTrigger,g=p===void 0?"onChange":p,m=t.onValuesChange,y=t.onFieldsChange,C=t.onFinish,h=t.onFinishFailed,v=xe(t,ZE),w=f.useContext(hf),S=ey(a),x=B(S,1),b=x[0],E=b.getInternalHooks(kr),P=E.useSubscribe,M=E.setInitialValues,$=E.setCallbacks,_=E.setValidateMessages,k=E.setPreserve,O=E.destroyForm;f.useImperativeHandle(n,function(){return b}),f.useEffect(function(){return w.registerForm(r,b),function(){w.unregisterForm(r)}},[w,b,r]),_(N(N({},w.validateMessages),d)),$({onValuesChange:m,onFieldsChange:function(H){if(w.triggerFormChange(r,H),y){for(var G=arguments.length,Z=new Array(G>1?G-1:0),ue=1;ue1)&&(e=1),e}function Ba(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Tr(e){return e.length===1?"0"+e:String(e)}function a2(e,t,n){return{r:Ze(e,255)*255,g:Ze(t,255)*255,b:Ze(n,255)*255}}function qv(e,t,n){e=Ze(e,255),t=Ze(t,255),n=Ze(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l2(e,t,n){var r,o,i;if(e=Ze(e,360),t=Ze(t,100),n=Ze(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Iu(l,a,e+1/3),o=Iu(l,a,e),i=Iu(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function mf(e,t,n){e=Ze(e,255),t=Ze(t,255),n=Ze(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var yf={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 Jr(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=v2(e)),typeof e=="object"&&(wn(e.r)&&wn(e.g)&&wn(e.b)?(t=a2(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wn(e.h)&&wn(e.s)&&wn(e.v)?(r=Ba(e.s),o=Ba(e.v),t=s2(e.h,r,o),a=!0,l="hsv"):wn(e.h)&&wn(e.s)&&wn(e.l)&&(r=Ba(e.s),i=Ba(e.l),t=l2(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ty(n),{ok:a,format:e.format||l,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 d2="[-\\+]?\\d+%?",p2="[-\\+]?\\d*\\.\\d+%?",Yn="(?:".concat(p2,")|(?:").concat(d2,")"),Nu="[\\s|\\(]+(".concat(Yn,")[,|\\s]+(").concat(Yn,")[,|\\s]+(").concat(Yn,")\\s*\\)?"),_u="[\\s|\\(]+(".concat(Yn,")[,|\\s]+(").concat(Yn,")[,|\\s]+(").concat(Yn,")[,|\\s]+(").concat(Yn,")\\s*\\)?"),Zt={CSS_UNIT:new RegExp(Yn),rgb:new RegExp("rgb"+Nu),rgba:new RegExp("rgba"+_u),hsl:new RegExp("hsl"+Nu),hsla:new RegExp("hsla"+_u),hsv:new RegExp("hsv"+Nu),hsva:new RegExp("hsva"+_u),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 v2(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(yf[e])e=yf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Zt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Zt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Zt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Zt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Zt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Zt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Zt.hex8.exec(e),n?{r:bt(n[1]),g:bt(n[2]),b:bt(n[3]),a:Qv(n[4]),format:t?"name":"hex8"}:(n=Zt.hex6.exec(e),n?{r:bt(n[1]),g:bt(n[2]),b:bt(n[3]),format:t?"name":"hex"}:(n=Zt.hex4.exec(e),n?{r:bt(n[1]+n[1]),g:bt(n[2]+n[2]),b:bt(n[3]+n[3]),a:Qv(n[4]+n[4]),format:t?"name":"hex8"}:(n=Zt.hex3.exec(e),n?{r:bt(n[1]+n[1]),g:bt(n[2]+n[2]),b:bt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wn(e){return Boolean(Zt.CSS_UNIT.exec(String(e)))}var Wt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=f2(t)),this.originalInput=t;var o=Jr(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=ty(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=mf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=mf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=qv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=qv(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),u2(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},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 t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ze(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ze(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+gf(this.r,this.g,this.b,!1),n=0,r=Object.entries(yf);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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=Ha(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=Ha(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Ha(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=Ha(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(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},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();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},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,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ua*t:Math.round(e.h)+Ua*t:r=n?Math.round(e.h)+Ua*t:Math.round(e.h)-Ua*t,r<0?r+=360:r>=360&&(r-=360),r}function th(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Zv*t:t===ry?r=e.s+Zv:r=e.s+h2*t,r>1&&(r=1),n&&t===ny&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function nh(e,t,n){var r;return n?r=e.v+m2*t:r=e.v-g2*t,r>1&&(r=1),Number(r.toFixed(2))}function ta(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Jr(e),o=ny;o>0;o-=1){var i=Jv(r),a=Wa(Jr({h:eh(i,o,!0),s:th(i,o,!0),v:nh(i,o,!0)}));n.push(a)}n.push(Wa(r));for(var l=1;l<=ry;l+=1){var s=Jv(r),u=Wa(Jr({h:eh(s,l),s:th(s,l),v:nh(s,l)}));n.push(u)}return t.theme==="dark"?y2.map(function(c){var d=c.index,p=c.opacity,g=Wa(w2(Jr(t.backgroundColor||"#141414"),Jr(n[d]),p*100));return g}):n}var Fu={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"},Au={},Lu={};Object.keys(Fu).forEach(function(e){Au[e]=ta(Fu[e]),Au[e].primary=Au[e][5],Lu[e]=ta(Fu[e],{theme:"dark",backgroundColor:"#141414"}),Lu[e].primary=Lu[e][5]});const S2=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},C2=S2;function b2(e){const{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)}}const oy={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"},x2=Object.assign(Object.assign({},oy),{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.645, 0.045, 0.355, 1)",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}),jd=x2;function E2(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),p=n(o),g=n(i),m=n(a),y=n(l),C=r(u,c);return Object.assign(Object.assign({},C),{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:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorBgMask:new Wt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const P2=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},O2=P2;function k2(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},O2(r))}const Sn=(e,t)=>new Wt(e).setAlpha(t).toRgbString(),ri=(e,t)=>new Wt(e).darken(t).toHexString(),R2=e=>{const t=ta(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]}},T2=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Sn(r,.88),colorTextSecondary:Sn(r,.65),colorTextTertiary:Sn(r,.45),colorTextQuaternary:Sn(r,.25),colorFill:Sn(r,.15),colorFillSecondary:Sn(r,.06),colorFillTertiary:Sn(r,.04),colorFillQuaternary:Sn(r,.02),colorBgLayout:ri(n,4),colorBgContainer:ri(n,0),colorBgElevated:ri(n,0),colorBgSpotlight:Sn(r,.85),colorBorder:ri(n,15),colorBorderSecondary:ri(n,6)}};function $2(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const M2=e=>{const t=$2(e),n=t.map(o=>o.size),r=t.map(o=>o.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]}},I2=M2;function N2(e){const t=Object.keys(oy).map(n=>{const r=ta(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),E2(e,{generateColorPalettes:R2,generateNeutralColorPalettes:T2})),I2(e.fontSize)),b2(e)),C2(e)),k2(e))}function Du(e){return e>=0&&e<=255}function Ka(e,t){const{r:n,g:r,b:o,a:i}=new Wt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Wt(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),d=Math.round((r-l*(1-u))/u),p=Math.round((o-s*(1-u))/u);if(Du(c)&&Du(d)&&Du(p))return new Wt({r:c,g:d,b:p,a:Math.round(u*100)/100}).toRgbString()}return new Wt({r:n,g:r,b:o,a:1}).toRgbString()}var _2=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[p]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,u=1200,c=1600;return Object.assign(Object.assign(Object.assign({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ka(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ka(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ka(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ka(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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) - `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` - 0 1px 2px -2px ${new Wt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new Wt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new Wt("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)}const A2=(e,t,n,r,o)=>{const i=e/2,a=i-n*(Math.sqrt(2)-1),l=i,s=i+n*(1-1/Math.sqrt(2)),u=i-n*(1-1/Math.sqrt(2)),c=2*i-t*(1/Math.sqrt(2)),d=t*(1/Math.sqrt(2)),p=4*i-c,g=d,m=4*i-s,y=u,C=4*i-a,h=l;return{borderRadius:{_skip_check_:!0,value:`0 0 ${t}px`},pointerEvents:"none",width:e*2,height:e*2,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e*2,height:e/2,background:r,clipPath:`path('M ${a} ${l} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${p} ${g} L ${m} ${y} A ${n} ${n} 0 0 0 ${C} ${h} Z')`,content:'""'}}},L2={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vd=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),iy=()=>({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"},"& &-icon":{display:"block"}}),rh=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),D2=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, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),z2=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},j2=e=>({outline:`${e.lineWidth*4}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),V2="anticon",H2=(e,t)=>t||(e?`ant-${e}`:"ant"),_n=f.createContext({getPrefixCls:H2,iconPrefixCls:V2});function Vs(e,t,n){return r=>{const[o,i,a]=G2(),{getPrefixCls:l,iconPrefixCls:s}=f.useContext(_n),u=l();return Av({theme:o,token:i,hashId:a,path:["Shared",u]},()=>[{"&":D2(i)}]),[Av({theme:o,token:i,hashId:a,path:[e,r,s]},()=>{const{token:c,flush:d}=U2(i),p=typeof n=="function"?n(c):n,g=Object.assign(Object.assign({},p),i[e]),m=`.${r}`,y=_o(c,{componentCls:m,prefixCls:r,iconCls:`.${s}`,antCls:`.${u}`},g),C=t(y,{hashId:a,prefixCls:r,rootPrefixCls:u,iconPrefixCls:s,overrideComponentToken:i[e]});return d(e,g),[z2(i,r),C]}),a]}}const ay=typeof CSSINJS_STATISTIC<"u";let wf=!0;function _o(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),wf=!0,r}function B2(){}function U2(e){let t,n=e,r=B2;return ay&&(t=new Set,n=new Proxy(e,{get(o,i){return wf&&t.add(i),o[i]}}),r=(o,i)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const W2=eE(N2),K2={token:jd,hashed:!0},X2=Ce.createContext(K2);function G2(){const{token:e,hashed:t,theme:n,components:r}=Ce.useContext(X2),o=`${n2}-${t||""}`,i=n||W2,[a,l]=Tx(i,[jd,e],{salt:o,override:Object.assign({override:e},r),formatToken:F2});return[i,a,t?l:""]}globalThis&&globalThis.__rest;var ly=function(t){return+setTimeout(t,16)},sy=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(ly=function(t){return window.requestAnimationFrame(t)},sy=function(t){return window.cancelAnimationFrame(t)});var oh=0,Hd=new Map;function uy(e){Hd.delete(e)}var it=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oh+=1;var r=oh;function o(i){if(i===0)uy(r),t();else{var a=ly(function(){o(i-1)});Hd.set(r,a)}}return o(n),r};it.cancel=function(e){var t=Hd.get(e);return uy(t),sy(t)};function pi(e,t,n,r){var o=qi.unstable_batchedUpdates?function(a){qi.unstable_batchedUpdates(n,a)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o,r)}}}function Y2(e,t){Xt(e,"[@ant-design/icons] ".concat(t))}function ih(e){return ge(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ge(e.icon)==="object"||typeof e.icon=="function")}function ah(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function Sf(e,t,n){return n?Ce.createElement(e.tag,N(N({key:t},ah(e.attrs)),n),(e.children||[]).map(function(r,o){return Sf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Ce.createElement(e.tag,N({key:t},ah(e.attrs)),(e.children||[]).map(function(r,o){return Sf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function cy(e){return ta(e)[0]}function fy(e){return e?Array.isArray(e)?e:[e]:[]}var q2=` -.anticon { - display: inline-block; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - 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); - } -} -`,Q2=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q2,n=f.useContext(W0),r=n.csp;f.useEffect(function(){ts(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},Z2=["icon","className","onClick","style","primaryColor","secondaryColor"],Ti={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function J2(e){var t=e.primaryColor,n=e.secondaryColor;Ti.primaryColor=t,Ti.secondaryColor=n||cy(t),Ti.calculated=!!n}function eP(){return N({},Ti)}var Hs=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=xe(t,Z2),u=Ti;if(a&&(u={primaryColor:a,secondaryColor:l||cy(a)}),Q2(),Y2(ih(n),"icon should be icon definiton, but got ".concat(n)),!ih(n))return null;var c=n;return c&&typeof c.icon=="function"&&(c=N(N({},c),{},{icon:c.icon(u.primaryColor,u.secondaryColor)})),Sf(c.icon,"svg-".concat(c.name),N({className:r,onClick:o,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};Hs.displayName="IconReact";Hs.getTwoToneColors=eP;Hs.setTwoToneColors=J2;const Bd=Hs;function dy(e){var t=fy(e),n=B(t,2),r=n[0],o=n[1];return Bd.setTwoToneColors({primaryColor:r,secondaryColor:o})}function tP(){var e=Bd.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var nP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dy("#1890ff");var Bs=f.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,u=e.twoToneColor,c=xe(e,nP),d=f.useContext(W0),p=d.prefixCls,g=p===void 0?"anticon":p,m=d.rootClassName,y=ee(m,g,(n={},F(n,"".concat(g,"-").concat(o.name),!!o.name),F(n,"".concat(g,"-spin"),!!i||o.name==="loading"),n),r),C=l;C===void 0&&s&&(C=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,v=fy(u),w=B(v,2),S=w[0],x=w[1];return f.createElement("span",N(N({role:"img","aria-label":o.name},c),{},{ref:t,tabIndex:C,onClick:s,className:y}),f.createElement(Bd,{icon:o,primaryColor:S,secondaryColor:x,style:h}))});Bs.displayName="AntdIcon";Bs.getTwoToneColor=tP;Bs.setTwoToneColor=dy;const Ho=Bs;function lh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function rP(e,t){var n={animationend:lh("Animation","AnimationEnd"),transitionend:lh("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var oP=rP(Nn(),typeof window<"u"?window:{}),py={};if(Nn()){var iP=document.createElement("div");py=iP.style}var Xa={};function vy(e){if(Xa[e])return Xa[e];var t=oP[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=it(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var gy=Nn()?f.useLayoutEffect:f.useEffect,dh=[xn,ho,mo,Ud],yy=!1,sP=!0;function wy(e){return e===mo||e===Ud}const uP=function(e,t){var n=ar(fh),r=B(n,2),o=r[0],i=r[1],a=lP(),l=B(a,2),s=l[0],u=l[1];function c(){i(xn,!0)}return gy(function(){if(o!==fh&&o!==Ud){var d=dh.indexOf(o),p=dh[d+1],g=t(o);g===yy?i(p,!0):s(function(m){function y(){m.isCanceled()||i(p,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,o]),f.useEffect(function(){return function(){u()}},[]),[c,o]},cP=function(e){var t=f.useRef(),n=f.useRef(e);n.current=e;var r=f.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(uh,r),a.removeEventListener(sh,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(uh,r),a.addEventListener(sh,r),t.current=a)}return f.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};function fP(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,u=s===void 0?!0:s,c=r.motionDeadline,d=r.motionLeaveImmediately,p=r.onAppearPrepare,g=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,C=r.onEnterStart,h=r.onLeaveStart,v=r.onAppearActive,w=r.onEnterActive,S=r.onLeaveActive,x=r.onAppearEnd,b=r.onEnterEnd,E=r.onLeaveEnd,P=r.onVisibleChanged,M=ar(),$=B(M,2),_=$[0],k=$[1],O=ar(eo),R=B(O,2),I=R[0],A=R[1],L=ar(null),T=B(L,2),z=T[0],j=T[1],U=f.useRef(!1),H=f.useRef(null);function G(){return n()}var Z=f.useRef(!1);function ue(ve){var le=G();if(!(ve&&!ve.deadline&&ve.target!==le)){var Ie=Z.current,Nt;I===Ga&&Ie?Nt=x==null?void 0:x(le,ve):I===Ya&&Ie?Nt=b==null?void 0:b(le,ve):I===qa&&Ie&&(Nt=E==null?void 0:E(le,ve)),I!==eo&&Ie&&Nt!==!1&&(A(eo,!0),j(null,!0))}}var J=cP(ue),ne=B(J,1),ce=ne[0],se=f.useMemo(function(){var ve,le,Ie;switch(I){case Ga:return ve={},F(ve,xn,p),F(ve,ho,y),F(ve,mo,v),ve;case Ya:return le={},F(le,xn,g),F(le,ho,C),F(le,mo,w),le;case qa:return Ie={},F(Ie,xn,m),F(Ie,ho,h),F(Ie,mo,S),Ie;default:return{}}},[I]),je=uP(I,function(ve){if(ve===xn){var le=se[xn];return le?le(G()):yy}if(te in se){var Ie;j(((Ie=se[te])===null||Ie===void 0?void 0:Ie.call(se,G(),null))||null)}return te===mo&&(ce(G()),c>0&&(clearTimeout(H.current),H.current=setTimeout(function(){ue({deadline:!0})},c))),sP}),we=B(je,2),et=we[0],te=we[1],Te=wy(te);Z.current=Te,gy(function(){k(t);var ve=U.current;if(U.current=!0,!!e){var le;!ve&&t&&l&&(le=Ga),ve&&t&&i&&(le=Ya),(ve&&!t&&u||!ve&&d&&!t&&u)&&(le=qa),le&&(A(le),et())}},[t]),f.useEffect(function(){(I===Ga&&!l||I===Ya&&!i||I===qa&&!u)&&A(eo)},[l,i,u]),f.useEffect(function(){return function(){U.current=!1,clearTimeout(H.current)}},[]);var Ve=f.useRef(!1);f.useEffect(function(){_&&(Ve.current=!0),_!==void 0&&I===eo&&((Ve.current||_)&&(P==null||P(_)),Ve.current=!0)},[_,I]);var Ae=z;return se[xn]&&te===ho&&(Ae=N({transition:"none"},Ae)),[I,te,Ae,_??t]}var dP=function(e){Br(n,e);var t=Ur(n);function n(){return $t(this,n),t.apply(this,arguments)}return Mt(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function pP(e){var t=e;ge(e)==="object"&&(t=e.transitionSupport);function n(o){return!!(o.motionName&&t)}var r=f.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,u=s===void 0?!0:s,c=o.forceRender,d=o.children,p=o.motionName,g=o.leavedClassName,m=o.eventProps,y=n(o),C=f.useRef(),h=f.useRef();function v(){try{return C.current instanceof HTMLElement?C.current:Ql(h.current)}catch{return null}}var w=fP(y,l,v,o),S=B(w,4),x=S[0],b=S[1],E=S[2],P=S[3],M=f.useRef(P);P&&(M.current=!0);var $=f.useCallback(function(L){C.current=L,S0(i,L)},[i]),_,k=N(N({},m),{},{visible:l});if(!d)_=null;else if(x===eo||!n(o))P?_=d(N({},k),$):!u&&M.current?_=d(N(N({},k),{},{className:g}),$):c?_=d(N(N({},k),{},{style:{display:"none"}}),$):_=null;else{var O,R;b===xn?R="prepare":wy(b)?R="active":b===ho&&(R="start"),_=d(N(N({},k),{},{className:ee(ch(p,x),(O={},F(O,ch(p,"".concat(x,"-").concat(R)),R),F(O,p,typeof p=="string"),O)),style:E}),$)}if(f.isValidElement(_)&&Id(_)){var I=_,A=I.ref;A||(_=f.cloneElement(_,{ref:$}))}return f.createElement(dP,{ref:h},_)});return r.displayName="CSSMotion",r}const va=pP(aP),{isValidElement:Dr}=bl;function vP(e){return e&&Dr(e)&&e.type===f.Fragment}function hP(e,t,n){return Dr(e)?f.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function zr(e,t){return hP(e,e,t)}function Cf(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a"u"||typeof window>"u")return!1;var 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==null?void 0:e.substr(0,4))};var W={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(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=W.F1&&n<=W.F12)return!1;switch(n){case W.ALT:case W.CAPS_LOCK:case W.CONTEXT_MENU:case W.CTRL:case W.DOWN:case W.END:case W.ESC:case W.HOME:case W.INSERT:case W.LEFT:case W.MAC_FF_META:case W.META:case W.NUMLOCK:case W.NUM_CENTER:case W.PAGE_DOWN:case W.PAGE_UP:case W.PAUSE:case W.PRINT_SCREEN:case W.RIGHT:case W.SHIFT:case W.UP:case W.WIN_KEY:case W.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=W.ZERO&&t<=W.NINE||t>=W.NUM_ZERO&&t<=W.NUM_MULTIPLY||t>=W.A&&t<=W.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case W.SPACE:case W.QUESTION_MARK:case W.NUM_PLUS:case W.NUM_MINUS:case W.NUM_PERIOD:case W.NUM_DIVISION:case W.SEMICOLON:case W.DASH:case W.EQUALS:case W.COMMA:case W.PERIOD:case W.SLASH:case W.APOSTROPHE:case W.SINGLE_QUOTE:case W.OPEN_SQUARE_BRACKET:case W.BACKSLASH:case W.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gP=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Qr=void 0;function yP(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,u=e.itemKey,c=e.className,d=e.style,p=e.children,g=e.display,m=e.order,y=e.component,C=y===void 0?"div":y,h=xe(e,gP),v=a&&!g;function w(P){s(u,P)}f.useEffect(function(){return function(){w(null)}},[]);var S=i&&o!==Qr?i(o):p,x;r||(x={opacity:v?0:1,height:v?0:Qr,overflowY:v?"hidden":Qr,order:a?m:Qr,pointerEvents:v?"none":Qr,position:v?"absolute":Qr});var b={};v&&(b["aria-hidden"]=!0);var E=f.createElement(C,ie({className:ee(!r&&n,c),style:N(N({},x),d)},b,h,{ref:t}),S);return a&&(E=f.createElement(Nd,{onResize:function(M){var $=M.offsetWidth;w($)},disabled:l},E)),E}var Mi=f.forwardRef(yP);Mi.displayName="Item";function wP(){var e=ar({}),t=B(e,2),n=t[1],r=f.useRef([]),o=0,i=0;function a(l){var s=o;o+=1,r.current.lengthm,wt=f.useMemo(function(){var Y=i;return tt?_===null&&P?Y=i:Y=i.slice(0,Math.min(i.length,O/c)):typeof m=="number"&&(Y=i.slice(0,m)),Y},[i,c,_,m,tt]),un=f.useMemo(function(){return tt?i.slice(le+1):i.slice(wt.length)},[i,wt,tt,le]),Ye=f.useCallback(function(Y,fe){var Ne;return typeof s=="function"?s(Y):(Ne=s&&(Y==null?void 0:Y[s]))!==null&&Ne!==void 0?Ne:fe},[s]),An=f.useCallback(a||function(Y){return Y},[a]);function Ft(Y,fe,Ne){Ae===Y&&(fe===void 0||fe===et)||(ve(Y),Ne||(Uo(YO){Ft(Dt-1,Y-mr-ce+Z);break}}h&&hr(0)+ce>O&&te(null)}},[O,A,Z,ce,Ye,wt]);var wa=_t&&!!un.length,Wo={};et!==null&&tt&&(Wo={position:"absolute",left:et,top:0});var cn={prefixCls:yn,responsive:tt,component:S,invalidate:Fn},Ko=l?function(Y,fe){var Ne=Ye(Y,fe);return f.createElement(rs.Provider,{key:Ne,value:N(N({},cn),{},{order:fe,item:Y,itemKey:Ne,registerSize:lt,display:fe<=le})},l(Y,fe))}:function(Y,fe){var Ne=Ye(Y,fe);return f.createElement(Mi,ie({},cn,{order:fe,key:Ne,item:Y,renderItem:An,itemKey:Ne,registerSize:lt,display:fe<=le}))},Wr,Sa={order:wa?le:Number.MAX_SAFE_INTEGER,className:"".concat(yn,"-rest"),registerSize:Ys,display:wa};if(C)C&&(Wr=f.createElement(rs.Provider,{value:N(N({},cn),Sa)},C(un)));else{var Kr=y||PP;Wr=f.createElement(Mi,ie({},cn,Sa),typeof Kr=="function"?Kr(un):Kr)}var Lt=f.createElement(w,ie({className:ee(!Fn&&r,g),style:p,ref:t},b),wt.map(Ko),vr?Wr:null,h&&f.createElement(Mi,ie({},cn,{responsive:pr,responsiveDisabled:!tt,order:le,className:"".concat(yn,"-suffix"),registerSize:qs,display:!0,style:Wo}),h));return pr&&(Lt=f.createElement(Nd,{onResize:At,disabled:!tt},Lt)),Lt}var kn=f.forwardRef(OP);kn.displayName="Overflow";kn.Item=Sy;kn.RESPONSIVE=Cy;kn.INVALIDATE=by;var kP=f.forwardRef(function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,i=f.useRef(),a=f.useRef();f.useImperativeHandle(t,function(){return{}});var l=f.useRef(!1);return!l.current&&Nn()&&(a.current=r(),i.current=a.current.parentNode,l.current=!0),f.useEffect(function(){n==null||n(e)}),f.useEffect(function(){return a.current.parentNode===null&&i.current!==null&&i.current.appendChild(a.current),function(){var s,u;(s=a.current)===null||s===void 0||(u=s.parentNode)===null||u===void 0||u.removeChild(a.current)}},[]),a.current?qi.createPortal(o,a.current):null});function RP(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function TP(e,t,n){var r=e[t]||{};return N(N({},r),n)}function $P(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function eO(e,t,n,r){var o=X.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),X.mix(o,i)}function Gd(e){var t,n,r;if(!X.isWindow(e)&&e.nodeType!==9)t=X.offset(e),n=X.outerWidth(e),r=X.outerHeight(e);else{var o=X.getWindow(e);t={left:X.getWindowScrollLeft(o),top:X.getWindowScrollTop(o)},n=X.viewportWidth(o),r=X.viewportHeight(o)}return t.width=n,t.height=r,t}function xh(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,l=e.top;return n==="c"?l+=i/2:n==="b"&&(l+=i),r==="c"?a+=o/2:r==="r"&&(a+=o),{left:a,top:l}}function Za(e,t,n,r,o){var i=xh(t,n[1]),a=xh(e,n[0]),l=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function Eh(e,t,n){return e.leftn.right}function Ph(e,t,n){return e.topn.bottom}function tO(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Yd(e,t,n){var r=n.target||t,o=Gd(r),i=!rO(r,n.overflow&&n.overflow.alwaysByViewport);return My(e,o,n,i)}Yd.__getOffsetParent=Pf;Yd.__getVisibleRectForElement=Xd;function oO(e,t,n){var r,o,i=X.getDocument(e),a=i.defaultView||i.parentWindow,l=X.getWindowScrollLeft(a),s=X.getWindowScrollTop(a),u=X.viewportWidth(a),c=X.viewportHeight(a);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?o=t.pageY:o=s+t.clientY;var d={left:r,top:o,width:0,height:0},p=r>=0&&r<=l+u&&o>=0&&o<=s+c,g=[n.points[0],"cc"];return My(e,d,hh(hh({},n),{},{points:g}),p)}const Iy=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1},iO=function(e,t){var n=Ce.useRef(!1),r=Ce.useRef(null);function o(){window.clearTimeout(r.current)}function i(a){if(o(),!n.current||a===!0){if(e(a)===!1)return;n.current=!0,r.current=window.setTimeout(function(){n.current=!1},t)}else r.current=window.setTimeout(function(){n.current=!1,i()},t)}return[i,function(){n.current=!1,o()}]};function aO(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:!1}function lO(e,t){e!==document.activeElement&&Pi(t,e)&&typeof e.focus=="function"&&e.focus()}function Rh(e,t){var n=null,r=null;function o(a){var l=B(a,1),s=l[0].target;if(document.documentElement.contains(s)){var u=s.getBoundingClientRect(),c=u.width,d=u.height,p=Math.floor(c),g=Math.floor(d);(n!==p||r!==g)&&Promise.resolve().then(function(){t({width:p,height:g})}),n=p,r=g}}var i=new O0(o);return e&&i.observe(e),function(){i.disconnect()}}function Th(e){return typeof e!="function"?null:e()}function $h(e){return ge(e)!=="object"||!e?null:e}var sO=function(t,n){var r=t.children,o=t.disabled,i=t.target,a=t.align,l=t.onAlign,s=t.monitorWindowResize,u=t.monitorBufferTime,c=u===void 0?0:u,d=Ce.useRef({}),p=Ce.useRef(),g=Ce.Children.only(r),m=Ce.useRef({});m.current.disabled=o,m.current.target=i,m.current.align=a,m.current.onAlign=l;var y=iO(function(){var _=m.current,k=_.disabled,O=_.target,R=_.align,I=_.onAlign,A=p.current;if(!k&&O&&A){var L,T=Th(O),z=$h(O);d.current.element=T,d.current.point=z,d.current.align=R;var j=document,U=j.activeElement;return T&&Iy(T)?L=Yd(A,T,R):z&&(L=oO(A,z,R)),lO(U,A),I&&L&&I(A,L),!0}return!1},c),C=B(y,2),h=C[0],v=C[1],w=Ce.useState(),S=B(w,2),x=S[0],b=S[1],E=Ce.useState(),P=B(E,2),M=P[0],$=P[1];return Fo(function(){b(Th(i)),$($h(i))}),Ce.useEffect(function(){(d.current.element!==x||!aO(d.current.point,M)||!px(d.current.align,a))&&h()}),Ce.useEffect(function(){var _=Rh(p.current,h);return _},[p.current]),Ce.useEffect(function(){var _=Rh(x,h);return _},[x]),Ce.useEffect(function(){o?v():h()},[o]),Ce.useEffect(function(){if(s){var _=pi(window,"resize",h);return _.remove}},[s]),Ce.useEffect(function(){return function(){v()}},[]),Ce.useImperativeHandle(n,function(){return{forceAlign:function(){return h(!0)}}}),Ce.isValidElement(g)&&(g=Ce.cloneElement(g,{ref:Md(g.ref,p)})),g},Ny=Ce.forwardRef(sO);Ny.displayName="Align";var Mh=["measure","alignPre","align",null,"motion"];const uO=function(e,t){var n=ar(null),r=B(n,2),o=r[0],i=r[1],a=f.useRef();function l(c){i(c,!0)}function s(){it.cancel(a.current)}function u(c){s(),a.current=it(function(){l(function(d){switch(o){case"align":return"motion";case"motion":return"stable"}return d}),c==null||c()})}return f.useEffect(function(){l("measure")},[e]),f.useEffect(function(){switch(o){case"measure":t();break}o&&(a.current=it(fa(ln().mark(function c(){var d,p;return ln().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:d=Mh.indexOf(o),p=Mh[d+1],p&&d!==-1&&l(p);case 3:case"end":return m.stop()}},c)}))))},[o]),f.useEffect(function(){return function(){s()}},[]),[o,u]},cO=function(e){var t=f.useState({width:0,height:0}),n=B(t,2),r=n[0],o=n[1];function i(l){var s=l.offsetWidth,u=l.offsetHeight,c=l.getBoundingClientRect(),d=c.width,p=c.height;Math.abs(s-d)<1&&Math.abs(u-p)<1&&(s=d,u=p),o({width:s,height:u})}var a=f.useMemo(function(){var l={};if(e){var s=r.width,u=r.height;e.indexOf("height")!==-1&&u?l.height=u:e.indexOf("minHeight")!==-1&&u&&(l.minHeight=u),e.indexOf("width")!==-1&&s?l.width=s:e.indexOf("minWidth")!==-1&&s&&(l.minWidth=s)}return l},[e,r]);return[a,i]};var _y=f.forwardRef(function(e,t){var n=e.visible,r=e.prefixCls,o=e.className,i=e.style,a=e.children,l=e.zIndex,s=e.stretch,u=e.destroyPopupOnHide,c=e.forceRender,d=e.align,p=e.point,g=e.getRootDomNode,m=e.getClassNameFromAlign,y=e.onAlign,C=e.onMouseEnter,h=e.onMouseLeave,v=e.onMouseDown,w=e.onTouchStart,S=e.onClick,x=f.useRef(),b=f.useRef(),E=f.useState(),P=B(E,2),M=P[0],$=P[1],_=cO(s),k=B(_,2),O=k[0],R=k[1];function I(){s&&R(g())}var A=uO(n,I),L=B(A,2),T=L[0],z=L[1],j=f.useState(0),U=B(j,2),H=U[0],G=U[1],Z=f.useRef();Fo(function(){T==="alignPre"&&G(0)},[T]);function ue(){return p||g}function J(){var te;(te=x.current)===null||te===void 0||te.forceAlign()}function ne(te,Te){var Ve=m(Te);M!==Ve&&$(Ve),G(function(Ae){return Ae+1}),T==="align"&&(y==null||y(te,Te))}Fo(function(){T==="align"&&(H<3?J():z(function(){var te;(te=Z.current)===null||te===void 0||te.call(Z)}))},[H]);var ce=N({},xy(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(te){var Te=ce[te];ce[te]=function(Ve,Ae){return z(),Te==null?void 0:Te(Ve,Ae)}});function se(){return new Promise(function(te){Z.current=te})}f.useEffect(function(){!ce.motionName&&T==="motion"&&z()},[ce.motionName,T]),f.useImperativeHandle(t,function(){return{forceAlign:J,getElement:function(){return b.current}}});var je=N(N({},O),{},{zIndex:l,opacity:T==="motion"||T==="stable"||!n?void 0:0,pointerEvents:!n&&T!=="stable"?"none":void 0},i),we=!0;d!=null&&d.points&&(T==="align"||T==="stable")&&(we=!1);var et=a;return f.Children.count(a)>1&&(et=f.createElement("div",{className:"".concat(r,"-content")},a)),f.createElement(va,ie({visible:n,ref:b,leavedClassName:"".concat(r,"-hidden")},ce,{onAppearPrepare:se,onEnterPrepare:se,removeOnLeave:u,forceRender:c}),function(te,Te){var Ve=te.className,Ae=te.style,ve=ee(r,o,M,Ve);return f.createElement(Ny,{target:ue(),key:"popup",ref:x,monitorWindowResize:!0,disabled:we,align:d,onAlign:ne},f.createElement("div",{ref:Te,className:ve,onMouseEnter:C,onMouseLeave:h,onMouseDownCapture:v,onTouchStartCapture:w,onClick:S,style:N(N({},Ae),je)},et))})});_y.displayName="PopupInner";var Fy=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.visible,o=e.zIndex,i=e.children,a=e.mobile;a=a===void 0?{}:a;var l=a.popupClassName,s=a.popupStyle,u=a.popupMotion,c=u===void 0?{}:u,d=a.popupRender,p=e.onClick,g=f.useRef();f.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return g.current}}});var m=N({zIndex:o},s),y=i;return f.Children.count(i)>1&&(y=f.createElement("div",{className:"".concat(n,"-content")},i)),d&&(y=d(y)),f.createElement(va,ie({visible:r,ref:g,removeOnLeave:!0},c),function(C,h){var v=C.className,w=C.style,S=ee(n,l,v);return f.createElement("div",{ref:h,className:S,onClick:p,style:N(N({},w),m)},y)})});Fy.displayName="MobilePopupInner";var fO=["visible","mobile"],Ay=f.forwardRef(function(e,t){var n=e.visible,r=e.mobile,o=xe(e,fO),i=f.useState(n),a=B(i,2),l=a[0],s=a[1],u=f.useState(!1),c=B(u,2),d=c[0],p=c[1],g=N(N({},o),{},{visible:l});f.useEffect(function(){s(n),n&&r&&p(mP())},[n,r]);var m=d?f.createElement(Fy,ie({},g,{mobile:r,ref:t})):f.createElement(_y,ie({},g,{ref:t}));return f.createElement("div",null,f.createElement(MP,g),m)});Ay.displayName="Popup";var Ih=f.createContext(null);function Uu(){}function dO(){return""}function pO(e){return e?e.ownerDocument:window.document}var vO=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function hO(e){var t=function(n){Br(o,n);var r=Ur(o);function o(i){var a;$t(this,o),a=r.call(this,i),F(q(a),"popupRef",f.createRef()),F(q(a),"triggerRef",f.createRef()),F(q(a),"portalContainer",void 0),F(q(a),"attachId",void 0),F(q(a),"clickOutsideHandler",void 0),F(q(a),"touchOutsideHandler",void 0),F(q(a),"contextMenuOutsideHandler1",void 0),F(q(a),"contextMenuOutsideHandler2",void 0),F(q(a),"mouseDownTimeout",void 0),F(q(a),"focusTime",void 0),F(q(a),"preClickTime",void 0),F(q(a),"preTouchTime",void 0),F(q(a),"delayTimer",void 0),F(q(a),"hasPopupMouseDown",void 0),F(q(a),"onMouseEnter",function(s){var u=a.props.mouseEnterDelay;a.fireEvents("onMouseEnter",s),a.delaySetPopupVisible(!0,u,u?null:s)}),F(q(a),"onMouseMove",function(s){a.fireEvents("onMouseMove",s),a.setPoint(s)}),F(q(a),"onMouseLeave",function(s){a.fireEvents("onMouseLeave",s),a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),F(q(a),"onPopupMouseEnter",function(){a.clearDelayTimer()}),F(q(a),"onPopupMouseLeave",function(s){var u;s.relatedTarget&&!s.relatedTarget.setTimeout&&Pi((u=a.popupRef.current)===null||u===void 0?void 0:u.getElement(),s.relatedTarget)||a.delaySetPopupVisible(!1,a.props.mouseLeaveDelay)}),F(q(a),"onFocus",function(s){a.fireEvents("onFocus",s),a.clearDelayTimer(),a.isFocusToShow()&&(a.focusTime=Date.now(),a.delaySetPopupVisible(!0,a.props.focusDelay))}),F(q(a),"onMouseDown",function(s){a.fireEvents("onMouseDown",s),a.preClickTime=Date.now()}),F(q(a),"onTouchStart",function(s){a.fireEvents("onTouchStart",s),a.preTouchTime=Date.now()}),F(q(a),"onBlur",function(s){a.fireEvents("onBlur",s),a.clearDelayTimer(),a.isBlurToHide()&&a.delaySetPopupVisible(!1,a.props.blurDelay)}),F(q(a),"onContextMenu",function(s){s.preventDefault(),a.fireEvents("onContextMenu",s),a.setPopupVisible(!0,s)}),F(q(a),"onContextMenuClose",function(){a.isContextMenuToShow()&&a.close()}),F(q(a),"onClick",function(s){if(a.fireEvents("onClick",s),a.focusTime){var u;if(a.preClickTime&&a.preTouchTime?u=Math.min(a.preClickTime,a.preTouchTime):a.preClickTime?u=a.preClickTime:a.preTouchTime&&(u=a.preTouchTime),Math.abs(u-a.focusTime)<20)return;a.focusTime=0}a.preClickTime=0,a.preTouchTime=0,a.isClickToShow()&&(a.isClickToHide()||a.isBlurToHide())&&s&&s.preventDefault&&s.preventDefault();var c=!a.state.popupVisible;(a.isClickToHide()&&!c||c&&a.isClickToShow())&&a.setPopupVisible(!a.state.popupVisible,s)}),F(q(a),"onPopupMouseDown",function(){if(a.hasPopupMouseDown=!0,clearTimeout(a.mouseDownTimeout),a.mouseDownTimeout=window.setTimeout(function(){a.hasPopupMouseDown=!1},0),a.context){var s;(s=a.context).onPopupMouseDown.apply(s,arguments)}}),F(q(a),"onDocumentClick",function(s){if(!(a.props.mask&&!a.props.maskClosable)){var u=s.target,c=a.getRootDomNode(),d=a.getPopupDomNode();(!Pi(c,u)||a.isContextMenuOnly())&&!Pi(d,u)&&!a.hasPopupMouseDown&&a.close()}}),F(q(a),"getRootDomNode",function(){var s=a.props.getTriggerDOMNode;if(s)return s(a.triggerRef.current);try{var u=Ql(a.triggerRef.current);if(u)return u}catch{}return qi.findDOMNode(q(a))}),F(q(a),"getPopupClassNameFromAlign",function(s){var u=[],c=a.props,d=c.popupPlacement,p=c.builtinPlacements,g=c.prefixCls,m=c.alignPoint,y=c.getPopupClassNameFromAlign;return d&&p&&u.push($P(p,g,s,m)),y&&u.push(y(s)),u.join(" ")}),F(q(a),"getComponent",function(){var s=a.props,u=s.prefixCls,c=s.destroyPopupOnHide,d=s.popupClassName,p=s.onPopupAlign,g=s.popupMotion,m=s.popupAnimation,y=s.popupTransitionName,C=s.popupStyle,h=s.mask,v=s.maskAnimation,w=s.maskTransitionName,S=s.maskMotion,x=s.zIndex,b=s.popup,E=s.stretch,P=s.alignPoint,M=s.mobile,$=s.forceRender,_=s.onPopupClick,k=a.state,O=k.popupVisible,R=k.point,I=a.getPopupAlign(),A={};return a.isMouseEnterToShow()&&(A.onMouseEnter=a.onPopupMouseEnter),a.isMouseLeaveToHide()&&(A.onMouseLeave=a.onPopupMouseLeave),A.onMouseDown=a.onPopupMouseDown,A.onTouchStart=a.onPopupMouseDown,f.createElement(Ay,ie({prefixCls:u,destroyPopupOnHide:c,visible:O,point:P&&R,className:d,align:I,onAlign:p,animation:m,getClassNameFromAlign:a.getPopupClassNameFromAlign},A,{stretch:E,getRootDomNode:a.getRootDomNode,style:C,mask:h,zIndex:x,transitionName:y,maskAnimation:v,maskTransitionName:w,maskMotion:S,ref:a.popupRef,motion:g,mobile:M,forceRender:$,onClick:_}),typeof b=="function"?b():b)}),F(q(a),"attachParent",function(s){it.cancel(a.attachId);var u=a.props,c=u.getPopupContainer,d=u.getDocument,p=a.getRootDomNode(),g;c?(p||c.length===0)&&(g=c(p)):g=d(a.getRootDomNode()).body,g?g.appendChild(s):a.attachId=it(function(){a.attachParent(s)})}),F(q(a),"getContainer",function(){if(!a.portalContainer){var s=a.props.getDocument,u=s(a.getRootDomNode()).createElement("div");u.style.position="absolute",u.style.top="0",u.style.left="0",u.style.width="100%",a.portalContainer=u}return a.attachParent(a.portalContainer),a.portalContainer}),F(q(a),"setPoint",function(s){var u=a.props.alignPoint;!u||!s||a.setState({point:{pageX:s.pageX,pageY:s.pageY}})}),F(q(a),"handlePortalUpdate",function(){a.state.prevPopupVisible!==a.state.popupVisible&&a.props.afterPopupVisibleChange(a.state.popupVisible)}),F(q(a),"triggerContextValue",{onPopupMouseDown:a.onPopupMouseDown});var l;return"popupVisible"in i?l=!!i.popupVisible:l=!!i.defaultPopupVisible,a.state={prevPopupVisible:l,popupVisible:l},vO.forEach(function(s){a["fire".concat(s)]=function(u){a.fireEvents(s,u)}}),a}return Mt(o,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var a=this.props,l=this.state;if(l.popupVisible){var s;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(s=a.getDocument(this.getRootDomNode()),this.clickOutsideHandler=pi(s,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(s=s||a.getDocument(this.getRootDomNode()),this.touchOutsideHandler=pi(s,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(s=s||a.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=pi(s,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=pi(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),it.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var a;return((a=this.popupRef.current)===null||a===void 0?void 0:a.getElement())||null}},{key:"getPopupAlign",value:function(){var a=this.props,l=a.popupPlacement,s=a.popupAlign,u=a.builtinPlacements;return l&&u?TP(u,l,s):s}},{key:"setPopupVisible",value:function(a,l){var s=this.props.alignPoint,u=this.state.popupVisible;this.clearDelayTimer(),u!==a&&("popupVisible"in this.props||this.setState({popupVisible:a,prevPopupVisible:u}),this.props.onPopupVisibleChange(a)),s&&l&&a&&this.setPoint(l)}},{key:"delaySetPopupVisible",value:function(a,l,s){var u=this,c=l*1e3;if(this.clearDelayTimer(),c){var d=s?{pageX:s.pageX,pageY:s.pageY}:null;this.delayTimer=window.setTimeout(function(){u.setPopupVisible(a,d),u.clearDelayTimer()},c)}else this.setPopupVisible(a,s)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(a){var l=this.props.children.props,s=this.props;return l[a]&&s[a]?this["fire".concat(a)]:l[a]||s[a]}},{key:"isClickToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var a=this.props.action;return a==="contextMenu"||a.length===1&&a[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("contextMenu")!==-1||s.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("click")!==-1||s.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("hover")!==-1||s.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("hover")!==-1||s.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var a=this.props,l=a.action,s=a.showAction;return l.indexOf("focus")!==-1||s.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var a=this.props,l=a.action,s=a.hideAction;return l.indexOf("focus")!==-1||s.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var a;(a=this.popupRef.current)===null||a===void 0||a.forceAlign()}}},{key:"fireEvents",value:function(a,l){var s=this.props.children.props[a];s&&s(l);var u=this.props[a];u&&u(l)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var a=this.state.popupVisible,l=this.props,s=l.children,u=l.forceRender,c=l.alignPoint,d=l.className,p=l.autoDestroy,g=f.Children.only(s),m={key:"trigger"};this.isContextMenuToShow()?m.onContextMenu=this.onContextMenu:m.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(m.onClick=this.onClick,m.onMouseDown=this.onMouseDown,m.onTouchStart=this.onTouchStart):(m.onClick=this.createTwoChains("onClick"),m.onMouseDown=this.createTwoChains("onMouseDown"),m.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(m.onMouseEnter=this.onMouseEnter,c&&(m.onMouseMove=this.onMouseMove)):m.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?m.onMouseLeave=this.onMouseLeave:m.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(m.onFocus=this.onFocus,m.onBlur=this.onBlur):(m.onFocus=this.createTwoChains("onFocus"),m.onBlur=this.createTwoChains("onBlur"));var y=ee(g&&g.props&&g.props.className,d);y&&(m.className=y);var C=N({},m);Id(g)&&(C.ref=Md(this.triggerRef,g.ref));var h=f.cloneElement(g,C),v;return(a||this.popupRef.current||u)&&(v=f.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!a&&p&&(v=null),f.createElement(Ih.Provider,{value:this.triggerContextValue},h,v)}}],[{key:"getDerivedStateFromProps",value:function(a,l){var s=a.popupVisible,u={};return s!==void 0&&l.popupVisible!==s&&(u.popupVisible=s,u.prevPopupVisible=l.popupVisible),u}}]),o}(f.Component);return F(t,"contextType",Ih),F(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:dO,getDocument:pO,onPopupVisibleChange:Uu,afterPopupVisibleChange:Uu,onPopupAlign:Uu,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const Ly=hO(kP),Wu=()=>({height:0,opacity:0}),Nh=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},mO=e=>({height:e?e.offsetHeight:0}),Ku=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",gO=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Wu,onEnterStart:Wu,onAppearActive:Nh,onEnterActive:Nh,onLeaveStart:mO,onLeaveActive:Wu,onAppearEnd:Ku,onEnterEnd:Ku,onLeaveEnd:Ku,motionDeadline:500}},yO=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Dy=gO,wO=e=>({animationDuration:e,animationFillMode:"both"}),SO=e=>({animationDuration:e,animationFillMode:"both"}),zy=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${i}${e}-enter, - ${i}${e}-appear - `]:Object.assign(Object.assign({},wO(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},SO(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"}}},CO=new ze("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),bO=new ze("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xO=new ze("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),EO=new ze("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),PO=new ze("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),OO=new ze("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),kO=new ze("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),RO=new ze("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),TO={"slide-up":{inKeyframes:CO,outKeyframes:bO},"slide-down":{inKeyframes:xO,outKeyframes:EO},"slide-left":{inKeyframes:PO,outKeyframes:OO},"slide-right":{inKeyframes:kO,outKeyframes:RO}},_h=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=TO[t];return[zy(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},$O=new ze("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),MO=new ze("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Fh=new ze("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ah=new ze("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),IO=new ze("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),NO=new ze("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),_O=new ze("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),FO=new ze("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),AO=new ze("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),LO=new ze("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),DO=new ze("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),zO=new ze("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),jO={zoom:{inKeyframes:$O,outKeyframes:MO},"zoom-big":{inKeyframes:Fh,outKeyframes:Ah},"zoom-big-fast":{inKeyframes:Fh,outKeyframes:Ah},"zoom-left":{inKeyframes:_O,outKeyframes:FO},"zoom-right":{inKeyframes:AO,outKeyframes:LO},"zoom-up":{inKeyframes:IO,outKeyframes:NO},"zoom-down":{inKeyframes:DO,outKeyframes:zO}},jy=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=jO[t];return[zy(r,o,i,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}}]},VO=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`}}}),Vy=VO,HO=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},BO=HO,UO=e=>{const{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}-space-item`]:{"&:empty":{display:"none"}}}}},Hy=Vs("Space",e=>[UO(e),BO(e)]);var By=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{var{children:t}=e,n=By(e,["children"]);return f.createElement(Uy.Provider,{value:n},t)},KO=e=>{const{getPrefixCls:t,direction:n}=f.useContext(_n),{size:r="middle",direction:o,block:i,prefixCls:a,className:l,children:s}=e,u=By(e,["size","direction","block","prefixCls","className","children"]),c=t("space-compact",a),[d,p]=Hy(c),g=ee(c,p,{[`${c}-rtl`]:n==="rtl",[`${c}-block`]:i,[`${c}-vertical`]:o==="vertical"},l),m=f.useContext(Uy),y=gn(s),C=f.useMemo(()=>y.map((h,v)=>{const w=h&&h.key||`${c}-item-${v}`;return f.createElement(WO,{key:w,compactSize:r,compactDirection:o,isFirstItem:v===0&&(!m||(m==null?void 0:m.isFirstItem)),isLastItem:v===y.length-1&&(!m||(m==null?void 0:m.isLastItem))},h)}),[r,y,m]);return y.length===0?null:d(f.createElement("div",Object.assign({className:g},u),C))},XO=KO;var jt={adjustX:1,adjustY:1},Vt=[0,0],Wy={left:{points:["cr","cl"],overflow:jt,offset:[-4,0],targetOffset:Vt},right:{points:["cl","cr"],overflow:jt,offset:[4,0],targetOffset:Vt},top:{points:["bc","tc"],overflow:jt,offset:[0,-4],targetOffset:Vt},bottom:{points:["tc","bc"],overflow:jt,offset:[0,4],targetOffset:Vt},topLeft:{points:["bl","tl"],overflow:jt,offset:[0,-4],targetOffset:Vt},leftTop:{points:["tr","tl"],overflow:jt,offset:[-4,0],targetOffset:Vt},topRight:{points:["br","tr"],overflow:jt,offset:[0,-4],targetOffset:Vt},rightTop:{points:["tl","tr"],overflow:jt,offset:[4,0],targetOffset:Vt},bottomRight:{points:["tr","br"],overflow:jt,offset:[0,4],targetOffset:Vt},rightBottom:{points:["bl","br"],overflow:jt,offset:[4,0],targetOffset:Vt},bottomLeft:{points:["tl","bl"],overflow:jt,offset:[0,4],targetOffset:Vt},leftBottom:{points:["br","bl"],overflow:jt,offset:[-4,0],targetOffset:Vt}};function Ky(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,l=e.className,s=e.style;return f.createElement("div",{className:ee("".concat(o,"-content"),l),style:s},t!==!1&&f.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),f.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},typeof r=="function"?r():r))}var GO=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,u=s===void 0?.1:s,c=t.overlayStyle,d=t.prefixCls,p=d===void 0?"rc-tooltip":d,g=t.children,m=t.onVisibleChange,y=t.afterVisibleChange,C=t.transitionName,h=t.animation,v=t.motion,w=t.placement,S=w===void 0?"right":w,x=t.align,b=x===void 0?{}:x,E=t.destroyTooltipOnHide,P=E===void 0?!1:E,M=t.defaultVisible,$=t.getTooltipContainer,_=t.overlayInnerStyle,k=t.arrowContent,O=t.overlay,R=t.id,I=t.showArrow,A=xe(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),L=f.useRef(null);f.useImperativeHandle(n,function(){return L.current});var T=N({},A);"visible"in t&&(T.popupVisible=t.visible);var z=function(){return f.createElement(Ky,{showArrow:I,arrowContent:k,key:"content",prefixCls:p,id:R,overlayInnerStyle:_},O)},j=!1,U=!1;if(typeof P=="boolean")j=P;else if(P&&ge(P)==="object"){var H=P.keepParent;j=H===!0,U=H===!1}return f.createElement(Ly,ie({popupClassName:r,prefixCls:p,popup:z,action:i,builtinPlacements:Wy,popupPlacement:S,ref:L,popupAlign:b,getPopupContainer:$,onPopupVisibleChange:m,afterPopupVisibleChange:y,popupTransitionName:C,popupAnimation:h,popupMotion:v,defaultPopupVisible:M,destroyPopupOnHide:j,autoDestroy:U,mouseLeaveDelay:u,popupStyle:c,mouseEnterDelay:l},T),g)};const YO=f.forwardRef(GO),qO={adjustX:1,adjustY:1},Lh={adjustX:0,adjustY:0},QO=[0,0];function Dh(e){return typeof e=="boolean"?e?qO:Lh:Object.assign(Object.assign({},Lh),e)}function ZO(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:o,arrowPointAtCenter:i}=e,a={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(a).forEach(l=>{a[l]=i?Object.assign(Object.assign({},a[l]),{overflow:Dh(o),targetOffset:QO}):Object.assign(Object.assign({},Wy[l]),{overflow:Dh(o)}),a[l].ignoreShake=!0}),a}function tl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Of=8;function JO(e){const t=Of,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:o,limitVerticalRadius:i}=e,a=n/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(r>12?r+2:12)-a,s=i?t-a:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:s}}function ek(e,t){const{componentCls:n,sizePopupArrow:r,marginXXS:o,borderRadiusXS:i,borderRadiusOuter:a,boxShadowPopoverArrow:l}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:p,dropdownArrowOffset:g}=JO({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:a,limitVerticalRadius:d}),m=r/2+o;return{[n]:{[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},A2(r,i,a,s,l)),{"&:before":{background:s}})],[[`&-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:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-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:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-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:p},[`&-placement-leftBottom ${n}-arrow`]:{bottom:p},[[`&-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:p},[`&-placement-rightBottom ${n}-arrow`]:{bottom:p},[tl(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:m},[tl(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:m},[tl(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:m}},[tl(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:m}}}}}const tk=e=>{const{componentCls:t}=e;return r2.reduce((n,r)=>{const o=e[`${r}-6`];return n[`&${t}-${r}`]={[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{"--antd-arrow-background-color":o}},n},{})},nk=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Vd(e)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:i>Of?Of:i}},[`${t}-content`]:{position:"relative"}}),tk(e)),{"&-rtl":{direction:"rtl"}})},ek(_o(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},Xy=(e,t)=>Vs("Tooltip",r=>{if(t===!1)return[];const{borderRadius:o,colorTextLightSolid:i,colorBgDefault:a,borderRadiusOuter:l}=r,s=_o(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a,tooltipRadiusOuter:l>4?4:l});return[nk(s),jy(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:i}=r;return{zIndexPopup:o+70,colorBgDefault:i}})(e),rk=["pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"],zh=new RegExp(`^(${rk.join("|")})(-inverse)?$`);function Gy(e,t){const n=ee({[`${e}-${t}`]:t&&zh.test(t)}),r={},o={};return t&&!zh.test(t)&&(r.background=t,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:r,arrowStyle:o}}function ok(e){const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=f.useContext(_n),s=l("tooltip",t),[u,c]=Xy(s,!0),d=Gy(s,i),p=Object.assign(Object.assign({},a),d.overlayStyle),g=d.arrowStyle;return u(f.createElement("div",{className:ee(c,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className),style:g},f.createElement(Ky,Object.assign({},e,{className:c,prefixCls:s,overlayInnerStyle:p}),o)))}var ik=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{const n={},r=Object.assign({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}};function lk(e,t){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:r,omitted:o}=ak(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},r),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),l=zr(e,{style:a,className:null});return f.createElement("span",{style:i,className:ee(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}const Yy=f.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:u,children:c,afterOpenChange:d,afterVisibleChange:p}=e,{getPopupContainer:g,getPrefixCls:m,direction:y}=f.useContext(_n),[C,h]=$i(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),v=()=>{const{title:J,overlay:ne}=e;return!J&&!ne&&J!==0},w=J=>{var ne,ce;h(v()?!1:J),v()||((ne=e.onOpenChange)===null||ne===void 0||ne.call(e,J),(ce=e.onVisibleChange)===null||ce===void 0||ce.call(e,J))},S=()=>{const{builtinPlacements:J,arrowPointAtCenter:ne=!1,autoAdjustOverflow:ce=!0}=e;return J||ZO({arrowPointAtCenter:ne,autoAdjustOverflow:ce})},x=(J,ne)=>{const ce=S(),se=Object.keys(ce).find(et=>{var te,Te;return ce[et].points[0]===((te=ne.points)===null||te===void 0?void 0:te[0])&&ce[et].points[1]===((Te=ne.points)===null||Te===void 0?void 0:Te[1])});if(!se)return;const je=J.getBoundingClientRect(),we={top:"50%",left:"50%"};/top|Bottom/.test(se)?we.top=`${je.height-ne.offset[1]}px`:/Top|bottom/.test(se)&&(we.top=`${-ne.offset[1]}px`),/left|Right/.test(se)?we.left=`${je.width-ne.offset[0]}px`:/right|Left/.test(se)&&(we.left=`${-ne.offset[0]}px`),J.style.transformOrigin=`${we.left} ${we.top}`},b=()=>{const{title:J,overlay:ne}=e;return J===0?J:ne||J||""},{getPopupContainer:E,placement:P="top",mouseEnterDelay:M=.1,mouseLeaveDelay:$=.1,overlayStyle:_}=e,k=ik(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),O=m("tooltip",o),R=m(),I=e["data-popover-inject"];let A=C;!("open"in e)&&!("visible"in e)&&v()&&(A=!1);const L=lk(Dr(c)&&!vP(c)?c:f.createElement("span",null,c),O),T=L.props,z=!T.className||typeof T.className=="string"?ee(T.className,{[i||`${O}-open`]:!0}):T.className,[j,U]=Xy(O,!I),H=Gy(O,s),G=Object.assign(Object.assign({},u),H.overlayStyle),Z=H.arrowStyle,ue=ee(l,{[`${O}-rtl`]:y==="rtl"},H.className,U);return j(f.createElement(YO,Object.assign({},k,{placement:P,mouseEnterDelay:M,mouseLeaveDelay:$,prefixCls:O,overlayClassName:ue,overlayStyle:Object.assign(Object.assign({},Z),_),getTooltipContainer:E||a||g,ref:t,builtinPlacements:S(),overlay:b(),visible:A,onVisibleChange:w,afterVisibleChange:d??p,onPopupAlign:x,overlayInnerStyle:G,arrowContent:f.createElement("span",{className:`${O}-arrow-content`}),motion:{motionName:yO(R,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),A?zr(L,{className:z}):L))});Yy._InternalPanelDoNotUseOrYouWillBeFired=ok;const sk=Yy;var ra=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1;if(Iy(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function dk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=K(e.querySelectorAll("*")).filter(function(r){return jh(r,t)});return jh(e,t)&&n.unshift(e),n}var kf=W.LEFT,Rf=W.RIGHT,Tf=W.UP,wl=W.DOWN,Sl=W.ENTER,t1=W.ESC,ii=W.HOME,ai=W.END,Vh=[Tf,wl,kf,Rf];function pk(e,t,n,r){var o,i,a,l,s="prev",u="next",c="children",d="parent";if(e==="inline"&&r===Sl)return{inlineTrigger:!0};var p=(o={},F(o,Tf,s),F(o,wl,u),o),g=(i={},F(i,kf,n?u:s),F(i,Rf,n?s:u),F(i,wl,c),F(i,Sl,c),i),m=(a={},F(a,Tf,s),F(a,wl,u),F(a,Sl,c),F(a,t1,d),F(a,kf,n?c:d),F(a,Rf,n?d:c),a),y={inline:p,horizontal:g,vertical:m,inlineSub:p,horizontalSub:m,verticalSub:m},C=(l=y["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(C){case s:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function vk(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function hk(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function n1(e,t){var n=dk(e,!0);return n.filter(function(r){return t.has(r)})}function Hh(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=n1(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}function mk(e,t,n,r,o,i,a,l,s,u){var c=f.useRef(),d=f.useRef();d.current=t;var p=function(){it.cancel(c.current)};return f.useEffect(function(){return function(){p()}},[]),function(g){var m=g.which;if([].concat(Vh,[Sl,t1,ii,ai]).includes(m)){var y,C,h,v=function(){y=new Set,C=new Map,h=new Map;var I=i();return I.forEach(function(A){var L=document.querySelector("[data-menu-id='".concat(qd(r,A),"']"));L&&(y.add(L),h.set(L,A),C.set(A,L))}),y};v();var w=C.get(t),S=hk(w,y),x=h.get(S),b=pk(e,a(x,!0).length===1,n,m);if(!b&&m!==ii&&m!==ai)return;(Vh.includes(m)||[ii,ai].includes(m))&&g.preventDefault();var E=function(I){if(I){var A=I,L=I.querySelector("a");L!=null&&L.getAttribute("href")&&(A=L);var T=h.get(I);l(T),p(),c.current=it(function(){d.current===T&&A.focus()})}};if([ii,ai].includes(m)||b.sibling||!S){var P;!S||e==="inline"?P=o.current:P=vk(S);var M,$=n1(P,y);m===ii?M=$[0]:m===ai?M=$[$.length-1]:M=Hh(P,y,S,b.offset),E(M)}else if(b.inlineTrigger)s(x);else if(b.offset>0)s(x,!0),p(),c.current=it(function(){v();var R=S.getAttribute("aria-controls"),I=document.getElementById(R),A=Hh(I,y);E(A)},5);else if(b.offset<0){var _=a(x,!0),k=_[_.length-2],O=C.get(k);s(k,!1),E(O)}}u==null||u(g)}}function gk(e){Promise.resolve().then(e)}var Zd="__RC_UTIL_PATH_SPLIT__",Bh=function(t){return t.join(Zd)},yk=function(t){return t.split(Zd)},$f="rc-menu-more";function wk(){var e=f.useState({}),t=B(e,2),n=t[1],r=f.useRef(new Map),o=f.useRef(new Map),i=f.useState([]),a=B(i,2),l=a[0],s=a[1],u=f.useRef(0),c=f.useRef(!1),d=function(){c.current||n({})},p=f.useCallback(function(w,S){var x=Bh(S);o.current.set(x,w),r.current.set(w,x),u.current+=1;var b=u.current;gk(function(){b===u.current&&d()})},[]),g=f.useCallback(function(w,S){var x=Bh(S);o.current.delete(x),r.current.delete(w)},[]),m=f.useCallback(function(w){s(w)},[]),y=f.useCallback(function(w,S){var x=r.current.get(w)||"",b=yk(x);return S&&l.includes(b[0])&&b.unshift($f),b},[l]),C=f.useCallback(function(w,S){return w.some(function(x){var b=y(x,!0);return b.includes(S)})},[y]),h=function(){var S=K(r.current.keys());return l.length&&S.push($f),S},v=f.useCallback(function(w){var S="".concat(r.current.get(w)).concat(Zd),x=new Set;return K(o.current.keys()).forEach(function(b){b.startsWith(S)&&x.add(o.current.get(b))}),x},[]);return f.useEffect(function(){return function(){c.current=!0}},[]),{registerPath:p,unregisterPath:g,refreshOverflowKeys:m,isSubPathKey:C,getKeyPath:y,getKeys:h,getSubPathKeys:v}}function to(e){var t=f.useRef(e);t.current=e;var n=f.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(v.motionAppear=!1);var w=v.onVisibleChanged;return v.onVisibleChanged=function(S){return!p.current&&!S&&C(!0),w==null?void 0:w(S)},y?null:f.createElement(oa,{mode:i,locked:!p.current},f.createElement(va,ie({visible:h},v,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(S){var x=S.className,b=S.style;return f.createElement(Jd,{id:t,className:x,style:b},o)}))}var Lk=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Dk=["active"],zk=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var l=t.disabled,s=t.internalPopupClose,u=t.children,c=t.itemIcon,d=t.expandIcon,p=t.popupClassName,g=t.popupOffset,m=t.onClick,y=t.onMouseEnter,C=t.onMouseLeave,h=t.onTitleClick,v=t.onTitleMouseEnter,w=t.onTitleMouseLeave,S=xe(t,Lk),x=Qy(a),b=f.useContext(sn),E=b.prefixCls,P=b.mode,M=b.openKeys,$=b.disabled,_=b.overflowDisabled,k=b.activeKey,O=b.selectedKeys,R=b.itemIcon,I=b.expandIcon,A=b.onItemClick,L=b.onOpenChange,T=b.onActive,z=f.useContext(Qd),j=z._internalRenderSubMenuItem,U=f.useContext(e1),H=U.isSubPathKey,G=Bo(),Z="".concat(E,"-submenu"),ue=$||l,J=f.useRef(),ne=f.useRef(),ce=c||R,se=d||I,je=M.includes(a),we=!_&&je,et=H(O,a),te=r1(a,ue,v,w),Te=te.active,Ve=xe(te,Dk),Ae=f.useState(!1),ve=B(Ae,2),le=ve[0],Ie=ve[1],Nt=function(lt){ue||Ie(lt)},_t=function(lt){Nt(!0),y==null||y({key:a,domEvent:lt})},Uo=function(lt){Nt(!1),C==null||C({key:a,domEvent:lt})},yn=f.useMemo(function(){return Te||(P!=="inline"?le||H([k],a):!1)},[P,Te,k,le,a,H]),dr=i1(G.length),pr=function(lt){ue||(h==null||h({key:a,domEvent:lt}),P==="inline"&&L(a,!je))},tt=to(function(At){m==null||m(is(At)),A(At)}),Fn=function(lt){P!=="inline"&&L(a,lt)},vr=function(){T(a)},wt=x&&"".concat(x,"-popup"),un=f.createElement("div",ie({role:"menuitem",style:dr,className:"".concat(Z,"-title"),tabIndex:ue?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":_&&x?null:x,"aria-expanded":we,"aria-haspopup":!0,"aria-controls":wt,"aria-disabled":ue,onClick:pr,onFocus:vr},Ve),i,f.createElement(o1,{icon:P!=="horizontal"?se:null,props:N(N({},t),{},{isOpen:we,isSubMenu:!0})},f.createElement("i",{className:"".concat(Z,"-arrow")}))),Ye=f.useRef(P);if(P!=="inline"&&G.length>1?Ye.current="vertical":Ye.current=P,!_){var An=Ye.current;un=f.createElement(Fk,{mode:An,prefixCls:Z,visible:!s&&we&&P!=="inline",popupClassName:p,popupOffset:g,popup:f.createElement(oa,{mode:An==="horizontal"?"vertical":An},f.createElement(Jd,{id:wt,ref:ne},u)),disabled:ue,onVisibleChange:Fn},un)}var Ft=f.createElement(kn.Item,ie({role:"none"},S,{component:"li",style:r,className:ee(Z,"".concat(Z,"-").concat(P),o,(n={},F(n,"".concat(Z,"-open"),we),F(n,"".concat(Z,"-active"),yn),F(n,"".concat(Z,"-selected"),et),F(n,"".concat(Z,"-disabled"),ue),n)),onMouseEnter:_t,onMouseLeave:Uo}),un,!_&&f.createElement(Ak,{id:wt,open:we,keyPath:G},u));return j&&(Ft=j(Ft,t,{selected:et,active:yn,open:we,disabled:ue})),f.createElement(oa,{onItemClick:tt,mode:P==="horizontal"?"vertical":P,itemIcon:ce,expandIcon:se},Ft)};function Xs(e){var t=e.eventKey,n=e.children,r=Bo(t),o=ep(n,r),i=Ws();f.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=f.createElement(zk,e,o),f.createElement(Jy.Provider,{value:r},a)}var jk=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Zr=[],Vk=f.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,u=o.className,c=o.tabIndex,d=c===void 0?0:c,p=o.items,g=o.children,m=o.direction,y=o.id,C=o.mode,h=C===void 0?"vertical":C,v=o.inlineCollapsed,w=o.disabled,S=o.disabledOverflow,x=o.subMenuOpenDelay,b=x===void 0?.1:x,E=o.subMenuCloseDelay,P=E===void 0?.1:E,M=o.forceSubMenuRender,$=o.defaultOpenKeys,_=o.openKeys,k=o.activeKey,O=o.defaultActiveFirst,R=o.selectable,I=R===void 0?!0:R,A=o.multiple,L=A===void 0?!1:A,T=o.defaultSelectedKeys,z=o.selectedKeys,j=o.onSelect,U=o.onDeselect,H=o.inlineIndent,G=H===void 0?24:H,Z=o.motion,ue=o.defaultMotions,J=o.triggerSubMenuAction,ne=J===void 0?"hover":J,ce=o.builtinPlacements,se=o.itemIcon,je=o.expandIcon,we=o.overflowedIndicator,et=we===void 0?"...":we,te=o.overflowedIndicatorPopupClassName,Te=o.getPopupContainer,Ve=o.onClick,Ae=o.onOpenChange,ve=o.onKeyDown;o.openAnimation,o.openTransitionName;var le=o._internalRenderMenuItem,Ie=o._internalRenderSubMenuItem,Nt=xe(o,jk),_t=f.useMemo(function(){return Mk(g,p,Zr)},[g,p]),Uo=f.useState(!1),yn=B(Uo,2),dr=yn[0],pr=yn[1],tt=f.useRef(),Fn=Ck(y),vr=m==="rtl",wt=$i($,{value:_,postState:function(he){return he||Zr}}),un=B(wt,2),Ye=un[0],An=un[1],Ft=function(he){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function pt(){An(he),Ae==null||Ae(he)}Ee?Ii.flushSync(pt):pt()},At=f.useState(Ye),lt=B(At,2),Ys=lt[0],qs=lt[1],hr=f.useRef(!1),wa=f.useMemo(function(){return(h==="inline"||h==="vertical")&&v?["vertical",v]:[h,!1]},[h,v]),Wo=B(wa,2),cn=Wo[0],Ko=Wo[1],Wr=cn==="inline",Sa=f.useState(cn),Kr=B(Sa,2),Lt=Kr[0],Y=Kr[1],fe=f.useState(Ko),Ne=B(fe,2),Dt=Ne[0],mr=Ne[1];f.useEffect(function(){Y(cn),mr(Ko),hr.current&&(Wr?An(Ys):Ft(Zr))},[cn,Ko]);var x1=f.useState(0),np=B(x1,2),Ca=np[0],E1=np[1],Qs=Ca>=_t.length-1||Lt!=="horizontal"||S;f.useEffect(function(){Wr&&qs(Ye)},[Ye]),f.useEffect(function(){return hr.current=!0,function(){hr.current=!1}},[]);var gr=wk(),rp=gr.registerPath,op=gr.unregisterPath,P1=gr.refreshOverflowKeys,ip=gr.isSubPathKey,O1=gr.getKeyPath,k1=gr.getKeys,R1=gr.getSubPathKeys,T1=f.useMemo(function(){return{registerPath:rp,unregisterPath:op}},[rp,op]),$1=f.useMemo(function(){return{isSubPathKey:ip}},[ip]);f.useEffect(function(){P1(Qs?Zr:_t.slice(Ca+1).map(function($e){return $e.key}))},[Ca,Qs]);var M1=$i(k||O&&((n=_t[0])===null||n===void 0?void 0:n.key),{value:k}),ap=B(M1,2),Xo=ap[0],Zs=ap[1],I1=to(function($e){Zs($e)}),N1=to(function(){Zs(void 0)});f.useImperativeHandle(t,function(){return{list:tt.current,focus:function(he){var Ee,pt=Xo??((Ee=_t.find(function(U1){return!U1.props.disabled}))===null||Ee===void 0?void 0:Ee.key);if(pt){var St,yr,Go;(St=tt.current)===null||St===void 0||(yr=St.querySelector("li[data-menu-id='".concat(qd(Fn,pt),"']")))===null||yr===void 0||(Go=yr.focus)===null||Go===void 0||Go.call(yr,he)}}}});var _1=$i(T||[],{value:z,postState:function(he){return Array.isArray(he)?he:he==null?Zr:[he]}}),lp=B(_1,2),ba=lp[0],F1=lp[1],A1=function(he){if(I){var Ee=he.key,pt=ba.includes(Ee),St;L?pt?St=ba.filter(function(Go){return Go!==Ee}):St=[].concat(K(ba),[Ee]):St=[Ee],F1(St);var yr=N(N({},he),{},{selectedKeys:St});pt?U==null||U(yr):j==null||j(yr)}!L&&Ye.length&&Lt!=="inline"&&Ft(Zr)},L1=to(function($e){Ve==null||Ve(is($e)),A1($e)}),sp=to(function($e,he){var Ee=Ye.filter(function(St){return St!==$e});if(he)Ee.push($e);else if(Lt!=="inline"){var pt=R1($e);Ee=Ee.filter(function(St){return!pt.has(St)})}ra(Ye,Ee)||Ft(Ee,!0)}),D1=to(Te),z1=function(he,Ee){var pt=Ee??!Ye.includes(he);sp(he,pt)},j1=mk(Lt,Xo,vr,Fn,tt,k1,O1,Zs,z1,ve);f.useEffect(function(){pr(!0)},[]);var V1=f.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:Ie}},[le,Ie]),H1=Lt!=="horizontal"||S?_t:_t.map(function($e,he){return f.createElement(oa,{key:$e.key,overflowDisabled:he>Ca},$e)}),B1=f.createElement(kn,ie({id:y,ref:tt,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ks,className:ee(a,"".concat(a,"-root"),"".concat(a,"-").concat(Lt),u,(r={},F(r,"".concat(a,"-inline-collapsed"),Dt),F(r,"".concat(a,"-rtl"),vr),r),l),dir:m,style:s,role:"menu",tabIndex:d,data:H1,renderRawItem:function(he){return he},renderRawRest:function(he){var Ee=he.length,pt=Ee?_t.slice(-Ee):null;return f.createElement(Xs,{eventKey:$f,title:et,disabled:Qs,internalPopupClose:Ee===0,popupClassName:te},pt)},maxCount:Lt!=="horizontal"||S?kn.INVALIDATE:kn.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(he){E1(he)},onKeyDown:j1},Nt));return f.createElement(Qd.Provider,{value:V1},f.createElement(qy.Provider,{value:Fn},f.createElement(oa,{prefixCls:a,rootClassName:l,mode:Lt,openKeys:Ye,rtl:vr,disabled:w,motion:dr?Z:null,defaultMotions:dr?ue:null,activeKey:Xo,onActive:I1,onInactive:N1,selectedKeys:ba,inlineIndent:G,subMenuOpenDelay:b,subMenuCloseDelay:P,forceSubMenuRender:M,builtinPlacements:ce,triggerSubMenuAction:ne,getPopupContainer:D1,itemIcon:se,expandIcon:je,onItemClick:L1,onOpenChange:sp},f.createElement(e1.Provider,{value:$1},B1),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(Zy.Provider,{value:T1},_t)))))}),Hk=["className","title","eventKey","children"],Bk=["children"],Uk=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=xe(t,Hk),a=f.useContext(sn),l=a.prefixCls,s="".concat(l,"-item-group");return f.createElement("li",ie({},i,{onClick:function(c){return c.stopPropagation()},className:ee(s,n)}),f.createElement("div",{className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{className:"".concat(s,"-list")},o))};function Gs(e){var t=e.children,n=xe(e,Bk),r=Bo(n.eventKey),o=ep(t,r),i=Ws();return i?o:f.createElement(Uk,jo(n,["warnKey"]),o)}function tp(e){var t=e.className,n=e.style,r=f.useContext(sn),o=r.prefixCls,i=Ws();return i?null:f.createElement("li",{className:ee("".concat(o,"-item-divider"),t),style:n})}var ma=Vk;ma.Item=Ks;ma.SubMenu=Xs;ma.ItemGroup=Gs;ma.Divider=tp;var Wk={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"};const Kk=Wk;var l1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:Kk}))};l1.displayName="EllipsisOutlined";const Xk=f.forwardRef(l1),Gk=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:i,lineType:a,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${i}px ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${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"}}}},Yk=Gk,qk=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})`}}}}},Qk=qk,Wh=e=>Object.assign({},j2(e)),Zk=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorItemTextSelectedHorizontal:i,colorGroupTitle:a,colorItemBg:l,colorSubItemBg:s,colorItemBgSelectedHorizontal:u,colorItemBgSelected:c,colorActiveBarHeight:d,colorActiveBarWidth:p,colorActiveBarBorderSize:g,motionDurationSlow:m,motionEaseInOut:y,motionEaseOut:C,menuItemPaddingInline:h,motionDurationMid:v,colorItemTextHover:w,lineType:S,colorSplit:x,colorItemTextDisabled:b,colorDangerItemText:E,colorDangerItemTextHover:P,colorDangerItemTextSelected:M,colorDangerItemBgActive:$,colorDangerItemBgSelected:_,colorItemBgHover:k,menuSubMenuBg:O}=e;return{[`${n}-${t}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},Wh(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${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:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:c}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:c}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:P}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:M},["a, a:hover"]:{color:"inherit"}},[`&:not(${n}-horizontal) ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:_}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Wh(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:O},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:g,marginTop:-g,marginBottom:0,borderRadius:e.radiusItem,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${d}px solid transparent`,transition:`border-color ${m} ${y}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:d,borderBottomColor:i}},["&-selected"]:{color:i,backgroundColor:u,"&::after":{borderBottomWidth:d,borderBottomColor:i}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${g}px ${S} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:g&&p?{width:`calc(100% + ${g}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${p}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${C}`,`opacity ${v} ${C}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:M}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${y}`,`opacity ${v} ${y}`].join(",")}}}}}},Kh=Zk,Xh=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,marginXXS:l}=e,s=o+i+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,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:s}}},Jk=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:l,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:p,paddingXS:g,boxShadowSecondary:m}=e,y={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:Object.assign({[`&${t}-root`]:{boxShadow:"none"}},Xh(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},Xh(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${a*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 ${p}`,`background ${p}`,`padding ${l} ${s}`].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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:y}},{[`${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% - ${c}px)`,textOverflow:"clip",[`${t}-submenu-arrow`]:{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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},L2),{paddingInline:g})}}]},eR=Jk,Gh=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:i,motionEaseOut:a,iconCls:l,controlHeightSM:s}=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} ${i}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${a}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},iy()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},Yh=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},tR=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,lineHeight:l,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:p,borderRadiusLG:g,radiusSubMenuItem:m,menuArrowSize:y,menuArrowOffset:C,lineType:h,menuPanelMaskInset:v}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},rh()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vd(e)),rh()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:[`background ${o}`,`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`].join(","),["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:`${s}px ${u}px`,fontSize:r,lineHeight:l,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:h,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Gh(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,background:"transparent",borderRadius:g,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}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},Gh(e)),Yh(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),Yh(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${C})`},"&::after":{transform:`rotate(45deg) translateX(-${C})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${y*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${C})`},"&::before":{transform:`rotate(45deg) translateX(${C})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},nR=(e,t)=>Vs("Menu",(r,o)=>{let{overrideComponentToken:i}=o;if(t===!1)return[];const{colorBgElevated:a,colorPrimary:l,colorError:s,colorErrorHover:u,colorTextLightSolid:c,colorTextSecondary:d}=r,{controlHeightLG:p,fontSize:g}=r,m=g/7*5,y=_o(r,{menuItemHeight:p,menuItemPaddingInline:r.margin,menuArrowSize:m,menuHorizontalHeight:p*1.15,menuArrowOffset:`${m*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),C=_o(y,{colorItemText:new Wt(c).setAlpha(.65).toRgbString(),colorItemTextHover:c,colorGroupTitle:d,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Wt(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529"},Object.assign({},i));return[tR(y),Yk(y),eR(y),Kh(y,"light"),Kh(C,"dark"),Qk(y),Vy(y),_h(y,"slide-up"),_h(y,"slide-down"),jy(y,"zoom-big")]},r=>{const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:p,lineWidth:g,lineWidthBold:m,controlItemBgActive:y,colorBgTextHover:C}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:u,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:c,colorItemBgHover:C,colorItemBgActive:p,colorSubItemBg:d,colorItemBgSelected:y,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:m,colorActiveBarBorderSize:g,colorItemTextDisabled:a,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e);globalThis&&globalThis.__rest;const rR=f.createContext(null),qh=rR;var oR=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=oR(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=f.useContext(_n),a=i("menu",t),l=ee({[`${a}-item-divider-dashed`]:!!r},n);return f.createElement(tp,Object.assign({className:l},o))},s1=iR;var aR={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"};const lR=aR;var u1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:lR}))};u1.displayName="RightOutlined";const sR=f.forwardRef(u1);globalThis&&globalThis.__rest;const c1=f.createContext({}),uR=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),as=uR,cR=e=>{const{className:t,children:n,icon:r,title:o,danger:i}=e,{prefixCls:a,firstLevel:l,direction:s,disableMenuItemTitleTooltip:u,inlineCollapsed:c}=f.useContext(as),d=g=>{const m=f.createElement("span",{className:`${a}-title-content`},n);return(!r||Dr(n)&&n.type==="span")&&n&&g&&l&&typeof n=="string"?f.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):m},p=g=>{let{siderCollapsed:m}=g;var y;let C=o;typeof o>"u"?C=l?n:"":o===!1&&(C="");const h={title:C};!m&&!c&&(h.title=null,h.open=!1);const v=gn(n).length;let w=f.createElement(Ks,Object.assign({},jo(e,["title","icon","danger"]),{className:ee({[`${a}-item-danger`]:i,[`${a}-item-only-child`]:(r?v+1:v)===1},t),title:typeof o=="string"?o:void 0}),zr(r,{className:ee(Dr(r)?(y=r.props)===null||y===void 0?void 0:y.className:"",`${a}-item-icon`)}),d(c));return u||(w=f.createElement(sk,Object.assign({},h,{placement:s==="rtl"?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),w)),w};return f.createElement(c1.Consumer,null,p)},f1=cR,fR=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=f.useContext(as),{prefixCls:l,inlineCollapsed:s,theme:u,mode:c}=a,d=Bo();let p;if(!r)p=s&&!d.length&&o&&typeof o=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):f.createElement("span",{className:`${l}-title-content`},o);else{const y=Dr(o)&&o.type==="span";p=f.createElement(f.Fragment,null,zr(r,{className:ee(Dr(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),y?o:f.createElement("span",{className:`${l}-title-content`},o))}const g=f.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),m=c==="horizontal"?[0,8]:[10,0];return f.createElement(as.Provider,{value:g},f.createElement(Xs,Object.assign({popupOffset:m},jo(e,["icon"]),{title:p,popupClassName:ee(l,n,`${l}-${i||u}`)})))},d1=fR;var dR=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:l}=r,s=dR(r,["label","children","key","type"]),u=a??`tmp-${n}`;return i||l==="group"?l==="group"?f.createElement(Gs,Object.assign({key:u},s,{title:o}),If(i)):f.createElement(d1,Object.assign({key:u},s,{title:o}),If(i)):l==="divider"?f.createElement(s1,Object.assign({key:u},s)):f.createElement(f1,Object.assign({key:u},s),o)}return null}).filter(t=>t)}function pR(e){return f.useMemo(()=>e&&If(e),[e])}var vR=globalThis&&globalThis.__rest||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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=f.useContext(qh),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l}=f.useContext(_n),s=i(),{prefixCls:u,className:c,theme:d="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:m,siderCollapsed:y,items:C,children:h,rootClassName:v,mode:w,selectable:S,onClick:x}=e,b=vR(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick"]),E=jo(b,["collapsedWidth"]),P=pR(C)||h;(n=o.validator)===null||n===void 0||n.call(o,{mode:w});const M=Cf(function(){var j;x==null||x.apply(void 0,arguments),(j=o.onClick)===null||j===void 0||j.call(o)}),$=o.mode||w,_=S??o.selectable,k=f.useMemo(()=>y!==void 0?y:m,[m,y]),O={horizontal:{motionName:`${s}-slide-up`},inline:Dy(s),other:{motionName:`${s}-zoom-big`}},R=i("menu",u||o.prefixCls),[I,A]=nR(R,!r),L=ee(`${R}-${d}`,c);let T;typeof p=="function"?T=p:T=zr(p||o.expandIcon,{className:`${R}-submenu-expand-icon`});const z=f.useMemo(()=>({prefixCls:R,inlineCollapsed:k||!1,direction:l,firstLevel:!0,theme:d,mode:$,disableMenuItemTitleTooltip:g}),[R,k,l,g,d]);return I(f.createElement(qh.Provider,{value:null},f.createElement(as.Provider,{value:z},f.createElement(ma,Object.assign({getPopupContainer:a,overflowedIndicator:f.createElement(Xk,null),overflowedIndicatorPopupClassName:`${R}-${d}`,mode:$,selectable:_,onClick:M},E,{inlineCollapsed:k,className:L,prefixCls:R,direction:l,defaultMotions:O,expandIcon:T,ref:t,rootClassName:ee(v,A)}),P))))}),mR=hR,ga=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(c1);return f.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),f.createElement(mR,Object.assign({ref:n},e,r))});ga.Item=f1;ga.SubMenu=d1;ga.Divider=s1;ga.ItemGroup=Gs;const gR=ga,yR=()=>Nn()&&window.document.documentElement;let nl;const wR=()=>{if(!yR())return!1;if(nl!==void 0)return nl;const 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),nl=e.scrollHeight===1,document.body.removeChild(e),nl},SR=()=>{const[e,t]=f.useState(!1);return f.useEffect(()=>{t(wR())},[]),e};function CR(e){let{className:t,direction:n,index:r,marginDirection:o,children:i,split:a,wrap:l}=e;const{horizontalSize:s,verticalSize:u,latestIndex:c,supportFlexGap:d}=f.useContext(p1);let p={};return d||(n==="vertical"?r{const{getPrefixCls:t,space:n,direction:r}=f.useContext(_n),{size:o=(n==null?void 0:n.size)||"small",align:i,className:a,children:l,direction:s="horizontal",prefixCls:u,split:c,style:d,wrap:p=!1}=e,g=bR(e,["size","align","className","children","direction","prefixCls","split","style","wrap"]),m=SR(),[y,C]=f.useMemo(()=>(Array.isArray(o)?o:[o,o]).map(O=>ER(O)),[o]),h=gn(l,{keepEmpty:!0}),v=i===void 0&&s==="horizontal"?"center":i,w=t("space",u),[S,x]=Hy(w),b=ee(w,x,`${w}-${s}`,{[`${w}-rtl`]:r==="rtl",[`${w}-align-${v}`]:v},a),E=`${w}-item`,P=r==="rtl"?"marginLeft":"marginRight";let M=0;const $=h.map((O,R)=>{O!=null&&(M=R);const I=O&&O.key||`${E}-${R}`;return f.createElement(CR,{className:E,key:I,direction:s,index:R,marginDirection:P,split:c,wrap:p},O)}),_=f.useMemo(()=>({horizontalSize:y,verticalSize:C,latestIndex:M,supportFlexGap:m}),[y,C,M,m]);if(h.length===0)return null;const k={};return p&&(k.flexWrap="wrap",m||(k.marginBottom=-C)),m&&(k.columnGap=y,k.rowGap=C),S(f.createElement("div",Object.assign({className:b,style:Object.assign(Object.assign({},k),d)},g),f.createElement(p1.Provider,{value:_},$)))},v1=PR;v1.Compact=XO;const Qh=v1;var h1=f.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,u=e.role,c=f.useState(s||o),d=B(c,2),p=d[0],g=d[1];return f.useEffect(function(){(o||s)&&g(!0)},[o,s]),p?f.createElement("div",{ref:t,className:ee("".concat(r,"-content"),(n={},F(n,"".concat(r,"-content-active"),s),F(n,"".concat(r,"-content-inactive"),!s),n),i),style:a,role:u},f.createElement("div",{className:"".concat(r,"-content-box")},l)):null});h1.displayName="PanelContent";var OR=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],m1=function(e){Br(n,e);var t=Ur(n);function n(){var r;$t(this,n);for(var o=arguments.length,i=new Array(o),a=0;a-1;d?u.splice(c,1):u.push(s)}o.setActiveKey(u)},o.getNewChild=function(s,u){if(!s)return null;var c=o.state.activeKey,d=o.props,p=d.prefixCls,g=d.openMotion,m=d.accordion,y=d.destroyInactivePanel,C=d.expandIcon,h=d.collapsible,v=s.key||String(u),w=s.props,S=w.header,x=w.headerClass,b=w.destroyInactivePanel,E=w.collapsible,P=!1;m?P=c[0]===v:P=c.indexOf(v)>-1;var M=E??h,$={key:v,panelKey:v,header:S,headerClass:x,isActive:P,prefixCls:p,destroyInactivePanel:b??y,openMotion:g,accordion:m,children:s.props.children,onItemClick:M==="disabled"?null:o.onClickItem,expandIcon:C,collapsible:M};return typeof s.type=="string"?s:(Object.keys($).forEach(function(_){typeof $[_]>"u"&&delete $[_]}),f.cloneElement(s,$))},o.getItems=function(){var s=o.props.children;return gn(s).map(o.getNewChild)},o.setActiveKey=function(s){"activeKey"in o.props||o.setState({activeKey:s}),o.props.onChange(o.props.accordion?s[0]:s)};var i=r.activeKey,a=r.defaultActiveKey,l=a;return"activeKey"in r&&(l=i),o.state={activeKey:Zh(l)},o}return Mt(n,[{key:"shouldComponentUpdate",value:function(o,i){return!ra(this.props,o)||!ra(this.state,i)}},{key:"render",value:function(){var o,i=this.props,a=i.prefixCls,l=i.className,s=i.style,u=i.accordion,c=ee((o={},F(o,a,!0),F(o,l,!!l),o));return f.createElement("div",{className:c,style:s,role:u?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(o){var i={};return"activeKey"in o&&(i.activeKey=Zh(o.activeKey)),i}}]),n}(f.Component);ya.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1};ya.Panel=m1;ya.Panel;const kR=e=>{const{getPrefixCls:t}=f.useContext(_n),{prefixCls:n,className:r="",showArrow:o=!0}=e,i=t("collapse",n),a=ee({[`${i}-no-arrow`]:!o},r);return f.createElement(ya.Panel,Object.assign({},e,{prefixCls:i,className:a}))},RR=kR,TR=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:i,collapseHeaderPadding:a,collapsePanelBorderRadius:l,lineWidth:s,lineType:u,colorBorder:c,colorText:d,colorTextHeading:p,colorTextDisabled:g,fontSize:m,lineHeight:y,marginSM:C,paddingSM:h,motionDurationSlow:v,fontSizeIcon:w}=e,S=`${s}px ${u} ${c}`;return{[t]:Object.assign(Object.assign({},Vd(e)),{backgroundColor:i,border:S,borderBottom:0,borderRadius:`${l}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:S,["&:last-child"]:{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:p,lineHeight:y,cursor:"pointer",transition:`all ${v}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:m*y,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},iy()),{fontSize:w,svg:{transition:`transform ${v}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:h}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:S,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[` - &, - & > .arrow - `]:{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},$R=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},MR=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` - > ${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}}}},IR=e=>{const{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}}}}}},NR=Vs("Collapse",e=>{const t=_o(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[TR(t),MR(t),IR(t),$R(t),Vy(t)]}),g1=e=>{const{getPrefixCls:t,direction:n}=f.useContext(_n),{prefixCls:r,className:o="",bordered:i=!0,ghost:a,expandIconPosition:l="start"}=e,s=t("collapse",r),u=t(),[c,d]=NR(s),p=f.useMemo(()=>l==="left"?"start":l==="right"?"end":l,[l]),g=function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{expandIcon:v}=e,w=v?v(h):f.createElement(sR,{rotate:h.isActive?90:void 0});return zr(w,()=>({className:ee(w.props.className,`${s}-arrow`)}))},m=ee(`${s}-icon-position-${p}`,{[`${s}-borderless`]:!i,[`${s}-rtl`]:n==="rtl",[`${s}-ghost`]:!!a},o,d),y=Object.assign(Object.assign({},Dy(u)),{motionAppear:!1,leavedClassName:`${s}-content-hidden`}),C=()=>{const{children:h}=e;return gn(h).map((v,w)=>{var S;if(!((S=v.props)===null||S===void 0)&&S.disabled){const x=v.key||String(w),{disabled:b,collapsible:E}=v.props,P=Object.assign(Object.assign({},jo(v.props,["disabled"])),{key:x,collapsible:E??(b?"disabled":void 0)});return zr(v,P)}return v})};return c(f.createElement(ya,Object.assign({openMotion:y},e,{expandIcon:g,prefixCls:s,className:m}),C()))};g1.Panel=RR;const y1=g1;var _R={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"};const FR=_R;var w1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:FR}))};w1.displayName="CopyrightOutlined";const AR=f.forwardRef(w1);var LR={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"};const DR=LR;var S1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:DR}))};S1.displayName="DashboardOutlined";const zR=f.forwardRef(S1);var jR={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const VR=jR;var C1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:VR}))};C1.displayName="InfoCircleOutlined";const HR=f.forwardRef(C1);var BR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 010-96 48.01 48.01 0 010 96zM384 212c0-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.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.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 0z"}}]},name:"pull-request",theme:"outlined"};const UR=BR;var b1=function(t,n){return f.createElement(Ho,N(N({},t),{},{ref:n,icon:UR}))};b1.displayName="PullRequestOutlined";const WR=f.forwardRef(b1);function KR(e){return ut("div",{className:"greetings",children:[Q("h1",{className:"green",children:e.msg}),ut("h3",{children:["You've successfully created a project with",Q("a",{href:"https://github.com/airconduct/go-probot/",target:"_blank",rel:"noopener",children:" Go-Probot"}),"."]})]})}function Xu(){const e=g0();return console.error(e),ut("div",{id:"error-page",children:[Q("h1",{children:"Oops!"}),Q("p",{children:"Sorry, an unexpected error has occurred."}),Q("p",{children:Q("i",{children:e.statusText||e.message})})]})}const{Panel:Jh}=y1;function XR(){return ut("div",{id:"app",children:[ut("header",{children:[Q("img",{src:wC,className:"logo",alt:"Probot logo",width:"125",height:"125"}),ut("div",{className:"wrapper",children:[Q(KR,{msg:"Welcome!"}),Q(gR,{className:"nav",mode:"horizontal",onClick:e=>{console.log(e)},items:[{key:"1",label:Q(Kc,{to:"/dashboard",children:"Dashboard"}),icon:Q(zR,{})},{key:"2",label:Q(Kc,{to:"/dashboard/about",children:"About"}),icon:Q(AR,{})}]})]})]}),ut("main",{children:[Q(Sb,{children:ut(fi,{path:"/",children:[Q(fi,{path:"dashboard/about",element:Q(GR,{}),errorElement:Q(Xu,{})}),Q(fi,{path:"dashboard",element:Q(YR,{}),errorElement:Q(Xu,{})}),Q(fi,{path:"*",element:Q(qR,{}),errorElement:Q(Xu,{})})]})}),Q(yb,{})]})]})}function GR(){return ut("div",{children:[Q("h1",{children:"About"}),ut("p",{children:["Do you like this project? Give us a start on ",Q("a",{target:"_blank",href:"https://github.com/airconduct/go-probot",children:"Github"}),"!"]})]})}function YR(){return ut("div",{children:[Q("h1",{children:"Event Listener"}),ut(y1,{onChange:t=>{console.log(t)},accordion:!0,children:[Q(Jh,{header:ut(Qh,{children:[Q(HR,{}),Q("div",{children:"issue"})]}),children:"FOO"},"2"),Q(Jh,{header:ut(Qh,{children:[Q(WR,{}),Q("div",{children:"pulls"})]}),children:"BAR"},"1")]})]})}function qR(){return ut("div",{children:[Q("h2",{children:"Nothing to see here!"}),Q("p",{children:Q(Kc,{to:"/",children:"Go to the home page"})})]})}Gu.createRoot(document.getElementById("root")).render(Q(Ce.StrictMode,{children:Q(Pb,{children:Q(XR,{})})})); diff --git a/web/dist/index.html b/web/dist/index.html index 0f9ceb5..afff7f2 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Go-Probot - +